XC Open source finite element analysis program
CableMaterial.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.5 $
48 // $Date: 2003/02/25 23:33:37 $: 2001/07/16 08:23:22 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/CableMaterial.h,v $
50 
51 
52 #ifndef CableMaterial_h
53 #define CableMaterial_h
54 
55 // Written: Charles Chadwell
56 // Created: 07/01
57 //
58 // Description: This file contains the class definition for
59 // CableMaterial. CableMaterial provides the abstraction
60 // of an elastic uniaxial material,
61 //
62 // The input parameters are the Prestress, E, Effective Self Weight (gravity component of
63 // Weight per volume transverse to the cable), and Length of the cable.
64 //
65 // The cable Force Displacement is converted to Stress Strain material for use
66 // with the truss element. The stress strain ranges from slack (large strain at zero
67 // stress) to taught (linear with modulus E). The material has no history and is not
68 // path dependent.
69 //
70 //
71 // What: "@(#) CableMaterial.h, revA"
72 
73 
74 #include <material/uniaxial/ElasticBaseMaterial.h>
75 
76 namespace XC {
78 //
89  {
90  private:
91  double Ps;
92  double Mue;
93  double L;
94  double trialStress; // current trial stress
95  double trialTangent; // current trial tangent
96 
97  double evalStress(double stress);
98  protected:
99  DbTagData &getDbTagData(void) const;
100  int sendData(CommParameters &);
101  int recvData(const CommParameters &);
102 
103  public:
104  CableMaterial(int tag, double Prestress, double E, double unitWeightEff, double L_Element);
105  CableMaterial(int tag= 0);
106 
107  void setLength(const double &);
108  inline double getLength(void) const
109  { return L; }
110  int setTrialStrain(double strain, double strainRate = 0.0);
111  int setTrial(double strain, double &stress, double &tangent, double strainRate = 0.0);
112 
113  inline double getStrain(void) const
114  {return trialStrain;};
115  double getStress(void) const;
116  double getTangent(void) const;
117  inline double getInitialTangent(void) const
118  {return 1.0e-8;};
119 
120  inline void setPrestress(const double &d)
121  { Ps= d; }
122  double getPrestress(void) const
123  { return Ps; }
124 
125  int commitState(void);
126  int revertToLastCommit(void);
127  int revertToStart(void);
128 
129  UniaxialMaterial *getCopy(void) const;
130 
131  int sendSelf(CommParameters &);
132  int recvSelf(const CommParameters &);
133 
134  void Print(std::ostream &s, int flag =0);
135 
136 
137  //int setParameter(const std::vector<std::string> &argv, Parameter &param);
138  //int updateParameter(int parameterID, Information &info);
139  };
140 } // end of XC namespace
141 
142 
143 #endif
144 
CableMaterial provides the abstraction of an elastic uniaxial material, the input parameters are the ...
Definition: CableMaterial.h:88
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: CableMaterial.cpp:242
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: CableMaterial.cpp:220
double E
Elastic modulus.
Definition: ElasticBaseMaterial.h:42
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: CableMaterial.cpp:200
Base class for uniaxial elastic materials.
Definition: ElasticBaseMaterial.h:38
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: CableMaterial.cpp:259
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: CableMaterial.cpp:228
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: CableMaterial.cpp:212
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88
DbTagData & getDbTagData(void) const
Returns a vector para almacenar los dbTags de los miembros de la clase.
Definition: CableMaterial.cpp:205