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