XC Open source finite element analysis program
YS_Evolution2D.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 // YS_Evolution2D.h
28 //
30 
31 #ifndef YS_EVOLUTION2D_H
32 #define YS_EVOLUTION2D_H
33 
34 #include "YS_Evolution.h"
35 #include "material/yieldSurface/plasticHardeningMaterial/PlasticHardeningMaterial.h"
36 
37 namespace XC {
42  {
43  public:
44  YS_Evolution2D(int tag, int classTag, double min_iso_factor,
45  double iso_ratio, double kin_ratio);
46 
47 // Methods inherited
48  virtual void Print(std::ostream &s, int flag =0) =0;
49  virtual YS_Evolution *getCopy(void) = 0;
50  virtual Response *setResponse(const std::vector<std::string> &argv, Information &info);
51  virtual int getResponse(int responseID, Information &info);
52 
53  virtual int update(int flag);
54 
55  virtual int sendSelf(CommParameters &){return -1;}
56  virtual int recvSelf(const CommParameters &){return -1;}
57 
58  virtual int commitState();
59  virtual int revertToLastCommit(void);
60  virtual const Vector &getEquiPlasticStiffness(void)=0;
61 
62  // no checks are performed
63  virtual int evolveSurface(YieldSurface_BC *ys, double magPlasticDefo, Vector &G, Vector &F_Surface, int flag=0);
64 
65 protected:
66  virtual void setTrialPlasticStrains(double ep, const Vector &f, const Vector &g)=0;
67  virtual double getIsoPlasticStiffness(int dir)=0;
68  virtual double getKinPlasticStiffness(int dir)=0;
69  virtual Vector& getEvolDirection(Vector &f_new)=0;
70 
71 protected:
72 // double sumPlasticDeformX, sumPlasticDeformX_hist;
73 // double sumPlasticDeformY, sumPlasticDeformY_hist;
74  bool softening;
75  static Vector v2;
76  double minIsoFactor;
77  YieldSurface_BC *tmpYSPtr;
78  };
79 } // end of XC namespace
80 
81 #endif
82 
virtual void Print(std::ostream &s, int flag=0)=0
Imprime el objeto.
Definition: Vector.h:82
Information about an element.
Definition: Information.h:80
Yield surface.
Definition: YieldSurface_BC.h:46
2D yield surface evolution.
Definition: YS_Evolution2D.h:41
Yield surface evolution.
Definition: YS_Evolution.h:46
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71