xc
SeriesMaterial.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.5 $
49 // $Date: 2003/02/25 23:33:40 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/SeriesMaterial.h,v $
51 
52 #ifndef SeriesMaterial_h
53 #define SeriesMaterial_h
54 
55 // Written: MHS
56 // Created: Sept 2000
57 //
58 // Description: This file contains the class definition for
59 // SeriesMaterial. SeriesMaterial is an aggregation
60 // of UniaxialMaterial objects all considered acting in Series.
61 
62 #include "ConnectedMaterial.h"
63 
64 namespace XC {
66 //
69  {
70  private:
71  double Tstrain;
72  double Cstrain;
73 
74  double Tstress;
75  double Cstress;
76 
77  double Ttangent;
78  double Ctangent;
79 
80  int maxIterations;
81  double tolerance;
82 
83  std::vector<double> stress;
84  std::vector<double> flex;
85  std::vector<double> strain;
86 
87  bool initialFlag;
88 
89  protected:
90  int sendData(Communicator &);
91  int recvData(const Communicator &);
92  void setup(void);
93  public:
94  SeriesMaterial(int tag,const DqUniaxialMaterial &theMaterials, int maxIter = 1, double tol = 1.0e-10);
95  SeriesMaterial(int tag= 0);
96 
97 
98  virtual void setMaterials(const boost::python::list &);
99 
100  int setTrialStrain(double strain, double strainRate = 0.0);
101  double getStrain(void) const;
102  double getStress(void) const;
103  double getTangent(void) const;
104  double getInitialTangent(void) const;
105 
106  int commitState(void);
107  int revertToLastCommit(void);
108  int revertToStart(void);
109 
110  UniaxialMaterial *getCopy(void) const;
111 
112  int sendSelf(Communicator &);
113  int recvSelf(const Communicator &);
114 
115  void Print(std::ostream &s, int flag =0) const;
116 
117  Response *setResponse(const std::vector<std::string> &argv, Information &matInformation);
118  int getResponse(int responseID, Information &matInformation);
119  };
120 } // end of XC namespace
121 
122 
123 #endif
124 
int getResponse(int responseID, Information &matInformation)
Returns material response.
Definition: SeriesMaterial.cpp:373
int setTrialStrain(double strain, double strainRate=0.0)
Sets the value of the trial strain.
Definition: SeriesMaterial.cpp:108
Information about an element.
Definition: Information.h:81
Serially connected uniaxial materials.
Definition: SeriesMaterial.h:68
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: SeriesMaterial.cpp:298
void setup(void)
Prepare object members.
Definition: SeriesMaterial.cpp:69
int recvData(const Communicator &)
Receives its members through the communicator argument.
Definition: SeriesMaterial.cpp:283
double getStress(void) const
Return the current value of stress.
Definition: SeriesMaterial.cpp:179
Pointers to UniaxialMaterial container.
Definition: DqUniaxialMaterial.h:45
double getInitialTangent(void) const
Return the material initial stiffness.
Definition: SeriesMaterial.cpp:188
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: SeriesMaterial.cpp:266
int commitState(void)
Commit the state of the material.
Definition: SeriesMaterial.cpp:211
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: SeriesMaterial.cpp:331
int revertToStart(void)
Revert the material to its initial state.
Definition: SeriesMaterial.cpp:247
double getTangent(void) const
Return the material tangent stiffness.
Definition: SeriesMaterial.cpp:183
Connected uniaxial materials (parallel or serial).
Definition: ConnectedMaterial.h:40
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: SeriesMaterial.cpp:312
virtual void setMaterials(const boost::python::list &)
Set the materials in the serie.
Definition: SeriesMaterial.cpp:87
int sendData(Communicator &)
Send its members through the communicator argument.
Definition: SeriesMaterial.cpp:270