xc
PlasticHardening2D.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 // PlasticHardening2D.h
29 //
31 
32 #ifndef PLASTICHARDENING2D_H
33 #define PLASTICHARDENING2D_H
34 
35 #include "material/yieldSurface/evolution/YS_Evolution2D.h"
36 
37 namespace XC {
38 class PlasticHardeningMaterial;
39 
44  {
45  protected:
46 // double minIsoFactor;
47  PlasticHardeningMaterial *kpMatXPos, *kpMatYPos;
48  PlasticHardeningMaterial *kpMatXNeg, *kpMatYNeg;
49  bool defPosX, defPosY;
50  double direction;
51 // bool pinchX;
52 public:
53  PlasticHardening2D(int tag, int classTag, double min_iso_factor,
54  double iso_ratio, double kin_ratio,
55  PlasticHardeningMaterial &kpx_pos,
56  PlasticHardeningMaterial &kpx_neg,
57  PlasticHardeningMaterial &kpy_pos,
58  PlasticHardeningMaterial &kpy_neg, double dir);
59 
60  virtual ~PlasticHardening2D();
61 
62  virtual int commitState();
63  virtual int revertToLastCommit(void);
64 
65  virtual void Print(std::ostream &s, int flag =0) const;
66  virtual YS_Evolution *getCopy(void)=0;
67  virtual const Vector &getEquiPlasticStiffness(void);
68  double getTrialPlasticStrains(int dof) const;
69  double getCommitPlasticStrains(int dof);
70 
71 protected:
72  virtual void setTrialPlasticStrains(double ep, const Vector &f, const Vector &g);
73  virtual double getIsoPlasticStiffness(int dir);
74  virtual double getKinPlasticStiffness(int dir);
75  virtual Vector& getEvolDirection(Vector &f_new);
76  };
77 } // end of XC namespace
78 
79 #endif
Plastic material with strain hardening.
Definition: PlasticHardeningMaterial.h:43
virtual int commitState()
Commit the state of the material.
Definition: PlasticHardening2D.cpp:81
Float vector abstraction.
Definition: Vector.h:94
Plastic hardening yield surface evolution law (2D).
Definition: PlasticHardening2D.h:43
virtual void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: PlasticHardening2D.cpp:289
double getTrialPlasticStrains(int dof) const
Return trial values of plastic strains.
Definition: PlasticHardening2D.cpp:221
Yield surface evolution law.
Definition: YS_Evolution.h:50
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
2D yield surface evolution law.
Definition: YS_Evolution2D.h:40