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