xc
InvertMaterial.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis C. 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 ** 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 // $Revision: 1.5 $
48 // $Date: 2008-04-14 21:26:50 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/InvertMaterial.h,v $
50 
51 // Written: MHS
52 // Created: Aug 2001
53 //
54 // Description: This file contains the class definition for
55 // InvertMaterial. InvertMaterial wraps a UniaxialMaterial
56 // and imposes min and max strain limits.
57 
58 #ifndef InvertMaterial_h
59 #define InvertMaterial_h
60 
61 #include "material/uniaxial/EncapsulatedUniaxialMaterial.h"
62 
63 namespace XC {
67  {
68  protected:
69  DbTagData &getDbTagData(void) const;
70  public:
71  InvertMaterial(int tag, UniaxialMaterial &material);
72  InvertMaterial(int tagl= 0);
73  UniaxialMaterial *getCopy(void) const;
74 
75  int setTrialStrain(double strain, double strainRate = 0.0);
76  //int setTrialStrain(double strain, double FiberTemperature, double strainRate);
77  double getStress(void) const;
78  double getTangent(void) const;
79  double getDampTangent(void) const;
80  inline double getInitialTangent(void) const
81  { return this->getMaterial()->getInitialTangent();}
82 
83  int commitState(void);
84  int revertToLastCommit(void);
85  int revertToStart(void);
86 
87 
88  int sendSelf(Communicator &);
89  int recvSelf(const Communicator &);
90 
91  void Print(std::ostream &s, int flag =0) const;
92 
93  // AddingSensitivity:BEGIN //////////////////////////////////////////
94  int setParameter(const std::vector<std::string> &, Parameter &);
95  int updateParameter(int parameterID, Information &info);
96  double getStressSensitivity (int gradIndex, bool conditional);
97  double getStrainSensitivity (int gradIndex);
98  double getInitialTangentSensitivity(int gradIndex);
99  double getDampTangentSensitivity(int gradIndex);
100  double getRhoSensitivity (int gradIndex);
101  int commitSensitivity (double strainGradient, int gradIndex, int numGrads);
102  // AddingSensitivity:END ///////////////////////////////////////////
103  };
104 } // end of XC namespace
105 
106 #endif
107 
InvertMaterial(int tag, UniaxialMaterial &material)
Constructor.
Definition: InvertMaterial.cc:62
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: InvertMaterial.cc:87
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
int sendSelf(Communicator &)
Send the object.
Definition: InvertMaterial.cc:111
int setTrialStrain(double strain, double strainRate=0.0)
Sets the value of the trial strain.
Definition: InvertMaterial.cc:70
double getTangent(void) const
Return the tangent stiffness.
Definition: InvertMaterial.cc:84
int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: InvertMaterial.cc:151
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: InvertMaterial.cc:136
int recvSelf(const Communicator &)
Receive the object.
Definition: InvertMaterial.cc:123
double getStress(void) const
Return the material stress.
Definition: InvertMaterial.cc:80
int setParameter(const std::vector< std::string > &, Parameter &)
Sets the value param to the parameter argv.
Definition: InvertMaterial.cc:142
const UniaxialMaterial * getMaterial(void) const
Return a pointer to the encapsulated material.
Definition: EncapsulatedUniaxialMaterial.h:49
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: InvertMaterial.cc:99
Parameter.
Definition: Parameter.h:68
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: InvertMaterial.cc:104
Encapsulates a copy to an uniaxial material.
Definition: EncapsulatedUniaxialMaterial.h:39
Removes negative part of the stress-strain diagram.
Definition: InvertMaterial.h:66