XC Open source finite element analysis program
PlasticHardeningMaterial.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 #ifndef PlasticHardeningMaterial_h
28 #define PlasticHardeningMaterial_h
29 
30 #include "material/Material.h"
31 
32 namespace XC {
33 class Information;
34 class Response;
35 
37 //
40 //
43  {
44  protected:
45  double val_hist, val_trial;
46  double residual, sFactor;
47  public:
48  PlasticHardeningMaterial (int tag, int classTag);
49 
50  // could be delta_plastic, |back-stress|,
51  // distance between force-point on YS and conjugate
52  // point on Bounding-Surface
53  virtual int setTrialValue(double xVal, double factor);
54  virtual int setTrialIncrValue(double dxVal);
55  void setResidual(double res=1);
56 
57  const Vector &getGeneralizedStress(void) const;
58  const Vector &getGeneralizedStrain(void) const;
59 
60  virtual void setInitialGeneralizedStrain(const Vector &);
61  const Vector &getInitialGeneralizedStrain(void) const;
62 
63  virtual int commitState(void);
64  virtual int revertToLastCommit(void);
65  virtual int revertToStart(void);
66 
67  virtual double getTrialPlasticStiffness()=0;
68  double getTrialValue(void);
69  virtual PlasticHardeningMaterial *getCopy(void)= 0;
70 
71  virtual Response *setResponse(const std::vector<std::string> &argv, Information &matInformation);
72  virtual int getResponse (int responseID, Information &matInformation);
73  virtual void Print(std::ostream &s, int flag =0);
74 
75  virtual int sendSelf(CommParameters &)
76  {return -1;}
77  virtual int recvSelf(const CommParameters &)
78  {return -1;}
79  };
80 } // end of XC namespace
81 
82 
83 #endif
84 
Base class for materials.
Definition: Material.h:85
const Vector & getGeneralizedStress(void) const
Returns the generalized stress value.
Definition: PlasticHardeningMaterial.cpp:90
Definition: Vector.h:82
const Vector & getInitialGeneralizedStrain(void) const
Adds to the initial strain el valor being passed as parameter.
Definition: PlasticHardeningMaterial.cpp:112
virtual int getResponse(int responseID, Information &matInformation)
Returns material response.
Definition: PlasticHardeningMaterial.cpp:123
Information about an element.
Definition: Information.h:80
virtual void setInitialGeneralizedStrain(const Vector &)
Asigna to the initial strain el valor being passed as parameter.
Definition: PlasticHardeningMaterial.cpp:106
const Vector & getGeneralizedStrain(void) const
Returns the generalized strain value.
Definition: PlasticHardeningMaterial.cpp:98
virtual void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: PlasticHardeningMaterial.cpp:126
Plastic material with strain hardening.
Definition: PlasticHardeningMaterial.h:42
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71