XC Open source finite element analysis program
FedeasMaterial.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 ** 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.7 $
48 // $Date: 2004/07/15 21:34:10 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/FedeasMaterial.h,v $
50 
51 // Written: MHS
52 // Created: Jan 2001
53 //
54 // Description: This file contains the class definition for
55 // FedeasMaterial. FedeasMaterial provides a FORTRAN interface
56 // for programming uniaxial material models, using the subroutine
57 // interface from the FEDEAS ML1D library, developed by F.C. Filippou.
58 //
59 // For more information visit the FEDEAS web page:
60 // http://www.ce.berkeley.edu/~filippou/Research/fedeas.htm
61 
62 #ifndef FedeasMaterial_h
63 #define FedeasMaterial_h
64 
65 #include "UniaxialMaterial.h"
66 #include "UniaxialStateVars.h"
67 
68 namespace XC {
70 //
75  {
76  protected:
77  // Invokes the FORTRAN subroutine
78  virtual int invokeSubroutine(int ist);
79 
80  double *matParams;
81  double *hstv;
82 
83  int numData;
84  int numHstv;
85 
88 
89  int sendData(CommParameters &);
90  int recvData(const CommParameters &);
91  public:
92  FedeasMaterial(int tag, int classTag, int numHV, int numData);
93  virtual ~FedeasMaterial(void);
94 
95  virtual int setTrialStrain(double strain, double strainRate = 0.0);
96  virtual int setTrial(double strain, double &stress, double &tangent, double strainRate= 0.0);
97  virtual double getStrain(void) const;
98  virtual double getStress(void) const;
99  virtual double getTangent(void) const;
100 
101  virtual int commitState(void);
102  virtual int revertToLastCommit(void);
103  virtual int revertToStart(void);
104 
105  virtual int sendSelf(CommParameters &);
106  virtual int recvSelf(const CommParameters &);
107 
108  virtual void Print(std::ostream &s, int flag = 0);
109  };
110 } // end of XC namespace
111 
112 #endif
double * matParams
Material parameters array.
Definition: FedeasMaterial.h:80
FedeasMaterial provides a FORTRAN interface for programming uniaxial material models, using the subroutine interface from the FEDEAS ML1D library, developed by F.C. Filippou.
Definition: FedeasMaterial.h:74
int numHstv
Number of history variables.
Definition: FedeasMaterial.h:84
UniaxialStateVars stores values for material strain, stress and stiffness.
Definition: UniaxialStateVars.h:38
virtual void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: FedeasMaterial.cpp:253
int numData
Number of material parameters.
Definition: FedeasMaterial.h:83
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: FedeasMaterial.cpp:209
virtual int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: FedeasMaterial.cpp:236
virtual int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: FedeasMaterial.cpp:222
UniaxialStateVars converged
Committed state.
Definition: FedeasMaterial.h:86
double * hstv
History array: first half is committed, second half is trial.
Definition: FedeasMaterial.h:81
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: FedeasMaterial.cpp:196
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88
UniaxialStateVars trial
Trial state.
Definition: FedeasMaterial.h:87