xc
CamClayYieldSurface.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: Cam Clay yield criterion #
33 //# CLASS: CamClayYieldSurface01(for monotonic loading) #
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: Mar. 28, 2001 #
42 //# UPDATE HISTORY: #
43 //# #
44 //# #
45 //# #
46 //# #
47 //# SHORT EXPLANATION: #
48 //# #
49 //# #
50 //================================================================================
51 //*/
52 
53 #ifndef CamClayYieldSurface_H
54 #define CamClayYieldSurface_H
55 
56 #include "material/nD/template_3d_ep/YieldSurface.h"
57 
58 
59 namespace XC {
64  {
65  // Private vars to define the Manzari-Dafalias Yield Surface
66  private:
67  double M;
68  public:
69  CamClayYieldSurface(const double &Mp= 1.2); // Default constructor
70  YieldSurface *getCopy(void) const; // create a clone of itself
71 
72  double f(const EPState *EPS) const;
73  BJtensor dFods(const EPState *EPS) const;
74 
75  // Redefine 1st derivative of F over scalar internal variables
76  double xi_s1( const EPState *EPS ) const; // df/dm
77 
78  // Redefine 1st derivative of F over tensorial internal variables
79 
80  double getM() const;
81  void setM(const double &);
82  void print(std::ostream &os) const;
83  };
84 
85 } // end of XC namespace
86 
87 #endif
88 
double getM() const
Return the slope of critical state line.
Definition: CamClayYieldSurface.cpp:117
Boris Jeremic tensor class.
Definition: BJtensor.h:112
Cam-Clay yield surface.
Definition: CamClayYieldSurface.h:63
double xi_s1(const EPState *EPS) const
double xi_s1 = dF/dpo = -M*M*p Derivative in terms of first scalar var
Definition: CamClayYieldSurface.cpp:109
YieldSurface * getCopy(void) const
Virtual constructor.
Definition: CamClayYieldSurface.cpp:62
Base class for yield surfaces.
Definition: YieldSurface.h:69
Base class for all elasto-plastic states.
Definition: EPState.h:151
void setM(const double &)
Set the slope of critical state line.
Definition: CamClayYieldSurface.cpp:121
double f(const EPState *EPS) const
Yield criterion evaluation function F(EPState)
Definition: CamClayYieldSurface.cpp:74
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
void print(std::ostream &os) const
Print stuff.
Definition: CamClayYieldSurface.cpp:125
CamClayYieldSurface(const double &Mp=1.2)
Default constructor.
Definition: CamClayYieldSurface.cpp:57
BJtensor dFods(const EPState *EPS) const
BJtensor dF/dsigma_ij.
Definition: CamClayYieldSurface.cpp:88