XC Open source finite element analysis program
YS.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 /*
28 ################################################################################
29 # COPYRIGHT (C): :-)) #
30 # PROJECT: Object Oriented Finite Element Program #
31 # PURPOSE: General platform for elaso-plastic constitutive model #
32 # implementation #
33 # CLASS: YieldSurface (the base class for all yield surfaces) #
34 # #
35 # VERSION: #
36 # LANGUAGE: C++.ver >= 2.0 ( Borland C++ ver=3.00, SUN C++ ver=2.1 ) #
37 # TARGET OS: DOS || UNIX || . . . #
38 # DESIGNER(S): Boris Jeremic, Zhaohui Yang #
39 # PROGRAMMER(S): Boris Jeremic, Zhaohui Yang #
40 # #
41 # #
42 # DATE: 08-03-2000 #
43 # UPDATE HISTORY: #
44 # #
45 # #
46 # #
47 # #
48 # SHORT EXPLANATION: The goal is to create a platform for efficient and easy #
49 # implemetation of any elasto-plastic constitutive model! #
50 # #
51 ################################################################################*/
52 
53 #ifndef YS_H
54 #define YS_H
55 
56 #include <iostream>
57 
58 namespace XC {
59  class EPState;
60  class BJtensor;
61 
63 //
65 //
67 //
71  {
72  public:
73  YieldSurface(void){} //Normal Constructor
74  inline virtual ~YieldSurface(void){}
75  virtual YieldSurface *newObj(void)= 0; //create a clone of itself
76 
77  virtual double f( const EPState *EPS ) const = 0; //pure virtual func
78  virtual BJtensor dFods( const EPState *EPS ) const = 0; //pure virtual func
79  virtual void print() = 0; //pure virtual func
80 
81  // 1st derivative of F over scalar internal variables (at most 4 scalar internal vars allowed currently)
82  virtual double xi_s1( const EPState *EPS ) const;
83  virtual double xi_s2( const EPState *EPS ) const;
84  virtual double xi_s3( const EPState *EPS ) const;
85  virtual double xi_s4( const EPState *EPS ) const;
86 
87  // 1st derivative of F over scalar internal variables (at most 4 tensor internal vars allowed currently)
88  virtual BJtensor xi_t1( const EPState *EPS ) const;
89  virtual BJtensor xi_t2( const EPState *EPS ) const;
90  virtual BJtensor xi_t3( const EPState *EPS ) const;
91  virtual BJtensor xi_t4( const EPState *EPS ) const;
92 
93 
94  //================================================================================
95  // Overloaded Insertion Operator
96  // prints an YieldSurface's contents
97  //================================================================================
98  friend std::ostream& operator<< (std::ostream& os, const YieldSurface & YS);
99 };
100 } // end of XC namespace
101 
102 
103 #endif
104 
Definition: BJtensor.h:110
The goal is to create a platform for efficient and easy implemetation of any elasto-plastic constitut...
Definition: YS.h:70
3
Definition: EPState.h:73
================================================================================
Definition: ContinuaReprComponent.h:34