xc
FedeasMaterial.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
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 // $Revision: 1.7 $
49 // $Date: 2004/07/15 21:34:10 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/FedeasMaterial.h,v $
51 
52 // Written: MHS
53 // Created: Jan 2001
54 //
55 // Description: This file contains the class definition for
56 // FedeasMaterial. FedeasMaterial provides a FORTRAN interface
57 // for programming uniaxial material models, using the subroutine
58 // interface from the FEDEAS ML1D library, developed by F.C. Filippou.
59 //
60 // For more information visit the FEDEAS web page:
61 // http://www.ce.berkeley.edu/~filippou/Research/fedeas.htm
62 
63 #ifndef FedeasMaterial_h
64 #define FedeasMaterial_h
65 
66 #include "UniaxialMaterial.h"
67 #include "UniaxialStateVars.h"
68 
69 namespace XC {
71 //
76  {
77  protected:
78  // Invokes the FORTRAN subroutine
79  virtual int invokeSubroutine(int ist);
80 
81  double *matParams;
82  double *hstv;
83 
84  int numData;
85  int numHstv;
86 
89 
90  int sendData(Communicator &);
91  int recvData(const Communicator &);
92  public:
93  FedeasMaterial(int tag, int classTag, int numHV, int numData);
94  virtual ~FedeasMaterial(void);
95 
96  virtual int setTrialStrain(double strain, double strainRate = 0.0);
97  virtual int setTrial(double strain, double &stress, double &tangent, double strainRate= 0.0);
98  virtual double getStrain(void) const;
99  virtual double getStress(void) const;
100  virtual double getTangent(void) const;
101 
102  virtual int commitState(void);
103  virtual int revertToLastCommit(void);
104  virtual int revertToStart(void);
105 
106  virtual int sendSelf(Communicator &);
107  virtual int recvSelf(const Communicator &);
108 
109  virtual void Print(std::ostream &s, int flag = 0) const;
110  };
111 } // end of XC namespace
112 
113 #endif
int numHstv
Number of history variables.
Definition: FedeasMaterial.h:85
Communication parameters between processes.
Definition: Communicator.h:66
virtual void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: FedeasMaterial.cpp:256
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
virtual int commitState(void)
Commit the state of the material.
Definition: FedeasMaterial.cpp:168
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: FedeasMaterial.cpp:212
double * hstv
History array: first half is committed, second half is trial.
Definition: FedeasMaterial.h:82
UniaxialStateVars trial
Trial state.
Definition: FedeasMaterial.h:88
virtual int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: FedeasMaterial.cpp:225
double * matParams
Material parameters array.
Definition: FedeasMaterial.h:81
UniaxialStateVars stores values for material strain, stress and stiffness.
Definition: UniaxialStateVars.h:39
virtual double getTangent(void) const
Return the material tangent stiffness.
Definition: FedeasMaterial.cpp:164
UniaxialStateVars converged
Committed state.
Definition: FedeasMaterial.h:87
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual double getStress(void) const
Return the current value of stress.
Definition: FedeasMaterial.cpp:160
virtual int setTrialStrain(double strain, double strainRate=0.0)
Sets the value of the trial strain.
Definition: FedeasMaterial.cpp:121
FedeasMaterial provides a FORTRAN interface for programming uniaxial material models, using the subroutine interface from the FEDEAS ML1D library, developed by F.C.
Definition: FedeasMaterial.h:75
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: FedeasMaterial.cpp:199
virtual int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: FedeasMaterial.cpp:239
int numData
Number of material parameters.
Definition: FedeasMaterial.h:84