xc
CompressionOnlyMaterial.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/CompressionOnlyMaterial.h,v $
50 
51 // Written: MHS
52 // Created: Aug 2001
53 //
54 // Description: This file contains the class definition for
55 // CompressionOnlyMaterial. CompressionOnlyMaterial wraps a UniaxialMaterial
56 // and removes the positive part of its stress-strain diagram.
57 
58 #ifndef CompressionOnlyMaterial_h
59 #define CompressionOnlyMaterial_h
60 
61 #include "material/uniaxial/HalfDiagramMaterial.h"
62 
63 namespace XC {
67  {
68  public:
69  CompressionOnlyMaterial(int tag, UniaxialMaterial &material);
70  CompressionOnlyMaterial(int tagl= 0);
71  UniaxialMaterial *getCopy(void) const;
72 
73  double getStress(void) const;
74  double getTangent(void) const;
75  double getDampTangent(void) const;
76 
77  int commitState(void);
78 
79  // AddingSensitivity:BEGIN //////////////////////////////////////////
80  double getStressSensitivity (int gradIndex, bool conditional);
81  double getDampTangentSensitivity(int gradIndex);
82  int commitSensitivity (double strainGradient, int gradIndex, int numGrads);
83  // AddingSensitivity:END ///////////////////////////////////////////
84  };
85 } // end of XC namespace
86 
87 #endif
88 
double getStress(void) const
Return the material stress.
Definition: CompressionOnlyMaterial.cpp:71
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: CompressionOnlyMaterial.cpp:92
Removes negative part of the stress-strain diagram.
Definition: HalfDiagramMaterial.h:66
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
double getTangent(void) const
Return the tangent stiffness.
Definition: CompressionOnlyMaterial.cpp:81
CompressionOnlyMaterial(int tag, UniaxialMaterial &material)
Constructor.
Definition: CompressionOnlyMaterial.cpp:62
Removes negative part of the stress-strain diagram.
Definition: CompressionOnlyMaterial.h:66
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: CompressionOnlyMaterial.cpp:114