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