xc
BkStressLimSurface2D.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 // BkStressLimSurface2D.h
29 //
31 
32 #ifndef BKSTRESSLIMSURFACE2D_H
33 #define BKSTRESSLIMSURFACE2D_H
34 
35 #include "material/yieldSurface/evolution/YS_Evolution2D.h"
36 namespace XC {
37 class YieldSurface_BC;
38 class PlasticHardeningMaterial;
39 
44  {
45  protected:
46  virtual void setTrialPlasticStrains(double ep, const Vector &f, const Vector &g);
47  virtual double getIsoPlasticStiffness(int dir);
48  virtual double getKinPlasticStiffness(int dir);
49  virtual Vector& getEvolDirection(Vector &f_new);
50 
51  PlasticHardeningMaterial *kinMatX, *kinMatY;
52  PlasticHardeningMaterial *isoMatXPos, *isoMatXNeg;
53  PlasticHardeningMaterial *isoMatYPos, *isoMatYNeg;
54 
55  YieldSurface_BC *limSurface;
56  bool defPosX, defPosY;
57  bool resHardening, resApproach;
58  int resAlgo;
59  double resFactor, appFactor;
60  double direction, direction_orig;
61  public:
62  BkStressLimSurface2D(int tag, int classTag, double min_iso_factor,
63  double iso_ratio, double kin_ratio,
64  YieldSurface_BC &lim_surface,
67  PlasticHardeningMaterial &isoXPos,
68  PlasticHardeningMaterial &isoXNeg,
69  PlasticHardeningMaterial &isoYPos,
70  PlasticHardeningMaterial &isoYNeg,
71  int restype, double res_Fact, double app_Fact, double dir
72  );
73 
74  virtual ~BkStressLimSurface2D();
75  virtual int commitState();
76  virtual int revertToLastCommit(void);
77 
78  virtual void Print(std::ostream &s, int flag =0) const;
79  void setResidual(double res=1.0);
80  virtual YS_Evolution *getCopy(void)=0;
81  virtual const Vector &getEquiPlasticStiffness(void);
82  double getTrialPlasticStrains(int dof) const;
83  double getCommitPlasticStrains(int dof);
84  };
85 } // end of XC namespace
86 
87 #endif
Plastic material with strain hardening.
Definition: PlasticHardeningMaterial.h:43
double getTrialPlasticStrains(int dof) const
Return trial values of plastic strains.
Definition: BkStressLimSurface2D.cpp:319
Float vector abstraction.
Definition: Vector.h:94
virtual void setTrialPlasticStrains(double ep, const Vector &f, const Vector &g)
Definition: BkStressLimSurface2D.cpp:133
virtual void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: BkStressLimSurface2D.cpp:383
Yield surface evolution law.
Definition: YS_Evolution.h:50
virtual int commitState()
Commit the state of the material.
Definition: BkStressLimSurface2D.cpp:105
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Back-strees isotropic model evolution law.
Definition: BkStressLimSurface2D.h:43
YieldSurface_BC is an abstract class and provides the interface between the specific yield surface de...
Definition: YieldSurface_BC.h:53
2D yield surface evolution law.
Definition: YS_Evolution2D.h:40