XC Open source finite element analysis program
BkStressLimSurface2D.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 // BkStressLimSurface2D.h
28 //
30 
31 #ifndef BKSTRESSLIMSURFACE2D_H
32 #define BKSTRESSLIMSURFACE2D_H
33 
34 #include "material/yieldSurface/evolution/YS_Evolution2D.h"
35 namespace XC {
36 class YieldSurface_BC;
37 
41  {
42  protected:
43  virtual void setTrialPlasticStrains(double ep, const Vector &f, const Vector &g);
44  virtual double getIsoPlasticStiffness(int dir);
45  virtual double getKinPlasticStiffness(int dir);
46  virtual Vector& getEvolDirection(Vector &f_new);
47 
48  PlasticHardeningMaterial *kinMatX, *kinMatY;
49  PlasticHardeningMaterial *isoMatXPos, *isoMatXNeg;
50  PlasticHardeningMaterial *isoMatYPos, *isoMatYNeg;
51 
52  YieldSurface_BC *limSurface;
53  bool defPosX, defPosY;
54  bool resHardening, resApproach;
55  int resAlgo;
56  double resFactor, appFactor;
57  double direction, direction_orig;
58  public:
59  BkStressLimSurface2D(int tag, int classTag, double min_iso_factor,
60  double iso_ratio, double kin_ratio,
61  YieldSurface_BC &lim_surface,
64  PlasticHardeningMaterial &isoXPos,
65  PlasticHardeningMaterial &isoXNeg,
66  PlasticHardeningMaterial &isoYPos,
67  PlasticHardeningMaterial &isoYNeg,
68  int restype, double res_Fact, double app_Fact, double dir
69  );
70 
71  virtual ~BkStressLimSurface2D();
72  virtual int commitState();
73  virtual int revertToLastCommit(void);
74 
75  virtual void Print(std::ostream &s, int flag =0);
76  void setResidual(double res=1.0);
77  virtual YS_Evolution *getCopy(void)=0;
78  virtual const Vector &getEquiPlasticStiffness(void);
79  double getTrialPlasticStrains(int dof);
80  double getCommitPlasticStrains(int dof);
81  };
82 } // end of XC namespace
83 
84 #endif
Definition: Vector.h:82
??.
Definition: BkStressLimSurface2D.h:40
Yield surface.
Definition: YieldSurface_BC.h:46
2D yield surface evolution.
Definition: YS_Evolution2D.h:41
Yield surface evolution.
Definition: YS_Evolution.h:46
Plastic material with strain hardening.
Definition: PlasticHardeningMaterial.h:42
================================================================================
Definition: ContinuaReprComponent.h:34
virtual void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: BkStressLimSurface2D.cpp:381
virtual void setTrialPlasticStrains(double ep, const Vector &f, const Vector &g)
Definition: BkStressLimSurface2D.cpp:132