XC Open source finite element analysis program
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 <utility/handler/ErrorHandler.h>
68 #include <material/damage/DamageModel.h>
69 
70 namespace XC {
71 class DamageResponse;
72 
73 
74 class Kratzig : public DamageModel
75  {
76  public:
77  Kratzig(int tag, double ultimatePosVal , double ultimateNegVal);
78  Kratzig(void);
79 
80  int setTrial(const Vector &trialVector );
81  int setTrial(void) { return -1; }
82 
83  int setInputResponse(Element *elem , const std::vector<std::string> & , int ndof );
84 
85  double getDamage(void);
86  double getPosDamage (void);
87  double getNegDamage (void);
88 
89  int commitState(void);
90  int revertToLastCommit (void);
91  int revertToStart (void);
92 
93  DamageModel *getCopy(void) const;
94 
95  int setVariable(const std::string &argv);
96  int getVariable(int variableID, double &info);
97 
98  int setParameter(const std::vector<std::string> &argv, Information &eleInformation);
99  int updateParameter(int responseID, Information &eleInformation);
100 
101  Response *setResponse(const std::vector<std::string> &argv, Information &);
102  int getResponse(int responseID, Information &info);
103 
104  int sendSelf(CommParameters &);
105  int recvSelf(const CommParameters &);
106  void Print(std::ostream &s, int flag =0);
107 
108  // method for this damage model to update itself according to its new parameters
109  void update(void) {return;}
110  private:
111 
112  // Model parameters
113  double UltimatePosValue , UltimateNegValue;
114 
115  double TrialInfo[10];
116  double CommitInfo[10];
117  double LastCommitInfo[10];
118 
119 };
120 } // end of XC namespace
121 
122 
123 #endif
DamageModel * getCopy(void) const
Virtual constructor.
Definition: Kratzig.cpp:281
Definition: Vector.h:82
Definition: DamageModel.h:87
int setVariable(const std::string &argv)
Returns the identificador de la variable cuyo nombre being passed as parameter.
Definition: Kratzig.cpp:297
Definition: Kratzig.h:74
Information about an element.
Definition: Information.h:80
Base calass for the finite elements.
Definition: Element.h:104
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: Kratzig.cpp:374
Definition: Response.h:71
int getVariable(int variableID, double &info)
Returns the valor de la variable cuyo identificador being passed as parameter.
Definition: Kratzig.cpp:302