xc
EvolutionLaw_T.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 
30 // COPYRIGHT (C): :-)) |
31 // PROJECT: Object Oriented Finite Element Program |
32 // PURPOSE: General platform for elaso-plastic efficient and easy |
33 // constitutive model implementation |
34 // |
35 // CLASS: EvolutionLaw_T (the base class for tensorial |
36 // evolution law) |
37 // |
38 // VERSION: |
39 // LANGUAGE: C++.ver >= 2.0 ( Borland C++ ver=3.00, SUN C++ ver=2.1 ) |
40 // TARGET OS: DOS || UNIX || . . . |
41 // DESIGNER(S): Boris Jeremic, Zhaohui Yang |
42 // PROGRAMMER(S): Boris Jeremic, Zhaohui Yang |
43 // |
44 // |
45 // DATE: 09-02-2000 |
46 // UPDATE HISTORY: |
47 // |
48 // |
49 // |
50 // |
51 // SHORT EXPLANATION: The base class is necessary for we need to use to |
52 // runtime polymorphism of C++ to achieve the fexibility|
53 // of the platform. |
54 // |
55 //==========================================================================
56 //
57 
58 #ifndef EL_T_H
59 #define EL_T_H
60 
61 #include <iostream>
62 #include "utility/kernel/CommandEntity.h"
63 
64 namespace XC {
65 class EPState;
66 class PotentialSurface;
67  class BJtensor;
68 
73  {
74  public:
75  // Constructor
76  EvolutionLaw_T(void) {}
77  virtual ~EvolutionLaw_T(void) {}
78  //create a clone of itself
79  virtual EvolutionLaw_T *getCopy(void) const;
80 
81  // Not necessary since the increment of internal var can be evalulated in constitutive driver!
82  //virtual void UpdateVar( EPState *EPS, double dlamda ) = 0; // Evolve only one internal variable
83 
84  //Print the contents of the evolution law
85  virtual void print(std::ostream &) const;
86 
87  // updating E, e, D and m for Manzari-Dafalias model,
88  virtual int updateEeDm( EPState *EPS, double st_vol, double dLamda);
89 
90  //virtual void setInitD( EPState *EPS) = 0; // Initializing D once current st hits the y.s. for Manzari-Dafalias model ,
91  // // other model might not need it
92 
93  //Why can't i put const before EPState???????????????????????? Aug. 16, 2000
94  //virtual double h( EPState *EPS, double d ) = 0; // Evaluating hardening function h
95  // Evaluating hardening function h_t
96  virtual BJtensor h_t(EPState *EPS, PotentialSurface *PS);
97 
98  };
99 
100 std::ostream& operator<<(std::ostream &, const EvolutionLaw_T &);
101 } // end of XC namespace
102 
103 
104 #endif
105 
Boris Jeremic tensor class.
Definition: BJtensor.h:112
Definition: PotentialSurface.h:76
virtual void print(std::ostream &) const
Print vars defined in Linear Evolution Law_T.
Definition: EvolutionLaw_T.cpp:95
Base class for all elasto-plastic states.
Definition: EPState.h:151
Objet that can execute python scripts.
Definition: CommandEntity.h:40
Base class for tensorial evolution laws.
Definition: EvolutionLaw_T.h:72
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35