XC Open source finite element analysis program
DruckerPragerPlaneStrain.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 ** OpenSees - Open System for Earthquake Engineering Simulation **
28 ** Pacific Earthquake Engineering Research Center **
29 ** **
30 ** **
31 ** (C) Copyright 1999, The Regents of the University of California **
32 ** All Rights Reserved. **
33 ** **
34 ** Commercial use of this program without express permission of the **
35 ** University of California, Berkeley, is strictly prohibited. See **
36 ** file 'COPYRIGHT' in main directory for information on usage and **
37 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
38 ** **
39 ** Developed by: **
40 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
41 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
42 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
43 ** **
44 ** ****************************************************************** */
45 
46 // Written: Chris McGann
47 // February 2011
48 
49 #include "DruckerPrager.h"
50 
51 namespace XC {
53 //
56  {
57 
58  public :
59 
60  //null constructor
62 
63  //full constructor
64  DruckerPragerPlaneStrain(int tag, double bulk, double shear,
65  double s_y, double r, double r_bar, double Kinfinity, double Kinit,
66  double d1, double d2, double H, double t, double massDens, double atm);
67 
68 
69  //destructor
71 
72  NDMaterial *getCopy(void) const;
73  const std::string &getType(void) const;
74  int getOrder() const;
75 
76  int setTrialStrain(const Vector &strain_from_element);
77 
78  // Unused trialStrain functions
79  int setTrialStrain(const Vector &v, const Vector &r);
80 
81  //send back the strain
82  const Vector& getStrain();
83 
84  //send back the stress
85  const Vector& getStress();
86 
87  //send back the tangent
88  const Matrix& getTangent();
89  const Matrix& getInitialTangent();
90 
91  private :
92 
93  // static vectors and matrices
94  static Vector strain;
95  static Vector stress;
96  static Matrix tangent;
97 };
98 } // end XC namespace
99 
100 
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
Drucker-Prager material.
Definition: DruckerPrager.h:75
const Vector & getStress()
Returns stress.
Definition: DruckerPragerPlaneStrain.cpp:103
Drucker-Prager plane strain material.
Definition: DruckerPragerPlaneStrain.h:55
const Matrix & getTangent()
Return the tangent stiffness matrix.
Definition: DruckerPragerPlaneStrain.cpp:113
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: DruckerPragerPlaneStrain.cpp:52
const Vector & getStrain()
Returns strain.
Definition: DruckerPragerPlaneStrain.cpp:93
int setTrialStrain(const Vector &strain_from_element)
Asigna el trial strain value.
Definition: DruckerPragerPlaneStrain.cpp:74
Definition: Matrix.h:82
================================================================================
Definition: ContinuaReprComponent.h:34