xc
Kratzig.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 
28 /* ****************************************************************** **
29 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 
49 
50 // $Revision: 1.1 $
51 // $Date: 2004/09/01 03:54:28 $
52 // $Source: /usr/local/cvs/OpenSees/SRC/damage/Kratzig.h,v $
53 
54 #ifndef Kratzig_h
55 #define Kratzig_h
56 
57 // Written: AA,GGD
58 // Created: 08/02
59 // Revision: AA
60 //
61 // Description: This file contains the class definition for
62 // Damage. Damage is a base class and
63 // thus no objects of it's type can be instantiated. It has pure virtual
64 // functions which must be implemented in it's derived classes.
65 
66 
67 #include <material/damage/DamageModel.h>
68 
69 namespace XC {
70 class DamageResponse;
71 
72 
73 class Kratzig : public DamageModel
74  {
75  public:
76  Kratzig(int tag, double ultimatePosVal , double ultimateNegVal);
77  Kratzig(void);
78 
79  int setTrial(const Vector &trialVector );
80  int setTrial(void) { return -1; }
81 
82  int setInputResponse(Element *elem , const std::vector<std::string> & , int ndof );
83 
84  double getDamage(void);
85  double getPosDamage (void);
86  double getNegDamage (void);
87 
88  int commitState(void);
89  int revertToLastCommit (void);
90  int revertToStart (void);
91 
92  DamageModel *getCopy(void) const;
93 
94  int setVariable(const std::string &argv);
95  int getVariable(int variableID, double &info);
96 
97  int setParameter(const std::vector<std::string> &argv, Information &eleInformation);
98  int updateParameter(int responseID, Information &eleInformation);
99 
100  Response *setResponse(const std::vector<std::string> &argv, Information &);
101  int getResponse(int responseID, Information &info);
102 
103  int sendSelf(CommParameters &);
104  int recvSelf(const CommParameters &);
105  void Print(std::ostream &s, int flag =0);
106 
107  // method for this damage model to update itself according to its new parameters
108  void update(void) {return;}
109  private:
110 
111  // Model parameters
112  double UltimatePosValue , UltimateNegValue;
113 
114  double TrialInfo[10];
115  double CommitInfo[10];
116  double LastCommitInfo[10];
117 
118 };
119 } // end of XC namespace
120 
121 
122 #endif
Float vector abstraction.
Definition: Vector.h:93
Information about an element.
Definition: Information.h:80
Definition: Response.h:71
int getVariable(int variableID, double &info)
Returns the value of the variable cuyo identifier being passed as parameter.
Definition: Kratzig.cpp:302
Base class for the finite elements.
Definition: Element.h:109
int sendSelf(CommParameters &)
Send the object.
Definition: Kratzig.cpp:365
Definition: Kratzig.h:73
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
int setVariable(const std::string &argv)
Returns the identifier of the variable cuyo nombre being passed as parameter.
Definition: Kratzig.cpp:297
int recvSelf(const CommParameters &)
Receive the object.
Definition: Kratzig.cpp:369
DamageModel * getCopy(void) const
Virtual constructor.
Definition: Kratzig.cpp:281
Definition: DamageModel.h:86
int updateParameter(int responseID, Information &eleInformation)
Updates the parameter identified by parameterID with info.
Definition: Kratzig.cpp:311
void Print(std::ostream &s, int flag=0)
Print stuff.
Definition: Kratzig.cpp:374