xc
DruckerPragerPotentialSurface.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 //----------------------------------------------------------------------------
29 //################################################################################
30 //# COPYRIGHT (C): :-)) #
31 //# PROJECT: Object Oriented Finite Element Program #
32 //# PURPOSE: Drucker - Prager potential criterion #
33 //# CLASS: DruckerPragerPotentialSurface #
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 //# PROGRAMMER(S): Boris Jeremic, ZHaohui Yang #
39 //# #
40 //# #
41 //# DATE: August 03 '93 #
42 //# UPDATE HISTORY: August 08 '00 #
43 //# #
44 //# #
45 //# #
46 //# #
47 //# SHORT EXPLANATION: #
48 //# #
49 //# if alfa1#=0 && alfa2#=0 && alfa1#=alfa2 => #
50 //# Drucker-Prager with non-associated flow rule #
51 //# #
52 //# if alfa1#=0 && alfa2#=0 && alfa1==alfa2 => #
53 //# Drucker-Prager with associated flow rule #
54 //# #
55 //# if alfa1==0 && alfa2#=0 => #
56 //# Von Mises with non-associated Drucker-Prager flow rule #
57 //# #
58 //# if alfa1#=0 && alfa2==0 => #
59 //# Drucker-Prager with non-associated Von Mises flow rule #
60 //# #
61 //# if alfa1==0 && alfa2==0 => #
62 //# Von Mises with associated flow rule #
63 //# #
64 //##############################################################################
65 //*/
66 
67 #ifndef DruckerPragerPotentialSurface_H
68 #define DruckerPragerPotentialSurface_H
69 
70 #include "material/nD/template_3d_ep/PotentialSurface.h"
71 
72 namespace XC {
77  {
78  private:
79  double alfa2; // potential surface orientation angle.
80  public:
81  DruckerPragerPotentialSurface( double a2d = 0.0 )
82  : alfa2(a2d) {} // Default constructor
84  { }; //Virtual functions not all redefined
85  PotentialSurface *getCopy(void) const; // virtual constructor.
86 
87  double getalfa2() const;
88  void setAlfa2(const double &);
89 
90  BJtensor dQods(const EPState *EPS) const;
91  BJtensor d2Qods2(const EPState *EPS) const;
92 
93  BJtensor d2Qodsds1(const EPState *EPS) const; // For Consistent Algorithm, Z Cheng, Jan 2004
94 
95  virtual void print(std::ostream &) const;
96  };
97 
98 //================================================================================
99 // Overloaded Insertion Operator
100 // prints an DruckerPrager-PotentialSurface's contents
101 //================================================================================
102 std::ostream& operator<<(std::ostream &, const DruckerPragerPotentialSurface &);
103 
104 } // end of XC namespace
105 
106 #endif
107 
Drucker-Prager model potential surface.
Definition: DruckerPragerPotentialSurface.h:76
Boris Jeremic tensor class.
Definition: BJtensor.h:112
BJtensor d2Qodsds1(const EPState *EPS) const
The d(dQ/dsigma_ij)/ds1.
Definition: DruckerPragerPotentialSurface.cpp:186
Definition: PotentialSurface.h:76
PotentialSurface * getCopy(void) const
Virtual constructor.
Definition: DruckerPragerPotentialSurface.cpp:75
virtual void print(std::ostream &) const
Print stuff.
Definition: DruckerPragerPotentialSurface.cpp:199
Base class for all elasto-plastic states.
Definition: EPState.h:151
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35