XC Open source finite element analysis program
TzSimple1.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 ** Module: TzSimple1.h
29 **
30 ** Purpose: Provide a simple t-z spring for OpenSees
31 **
32 ** Developed by Ross W. Boulanger
33 ** (C) Copyright 2002, All Rights Reserved.
34 **
35 ** ****************************************************************** */
36 
37 // $Revision: 1.0
38 // $Date: 2002/1/19
39 // $Source: /OpenSees/SRC/material/uniaxial/TzSimple1.h
40 
41 #ifndef TZSIMPLE1_H
42 #define TZSIMPLE1_H
43 
44 // Written: RWB
45 // Created: Jan 2002
46 // tested and checked: Boris Jeremic (jeremic@ucdavis.edu) Spring 2002
47 //
48 // Description: This file contains the class definition for TzSimple1.
49 //
50 
51 #include <material/uniaxial/PY/PYBase.h>
52 
53 
54 namespace XC {
56 //
58 class TzSimple1: public PYBase
59  {
60  private:
61  InternalParamsIn CNF; // Committed internal parameters for the NearField plastic component
62  InternalParamsIn TNF; // Trial internal parameters for the NearField plastic component
63 
64  // Functions to get t & z for elastic & plastic components
65  void getNearField(double zlast, double dz, double dz_old);
66  protected:
67  int sendData(CommParameters &);
68  int recvData(const CommParameters &);
69 
70 
71  public:
72  TzSimple1(int tag, int classtag, int tzType, double tult, double z50, double dashpot);
73  TzSimple1(int tag, int classtag= MAT_TAG_TzSimple1);
74  TzSimple1(void);
75 
76  int setTrialStrain(double y, double yRate);
77  double getStress(void) const;
78  double getDampTangent(void) const;
79 
80  int commitState(void);
81  int revertToLastCommit(void);
82  int revertToStart(void);
83 
84  UniaxialMaterial *getCopy(void) const;
85 
86  int sendSelf(CommParameters &);
87  int recvSelf(const CommParameters &);
88 
89  void Print(std::ostream &s, int flag =0);
90 
91 
92  };
93 } // end of XC namespace
94 
95 
96 #endif
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: TzSimple1.cpp:388
Material que representa una curva t-z.
Definition: TzSimple1.h:58
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: TzSimple1.cpp:410
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: TzSimple1.cpp:392
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: TzSimple1.cpp:270
Material que representa una curva p-y.
Definition: PYBase.h:40
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: TzSimple1.cpp:401
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: TzSimple1.cpp:424
double dashpot
dashpot on the far-field (elastic) component
Definition: PYBase.h:56
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: TzSimple1.cpp:443
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Internal parameters for a p-y material.
Definition: InternalParamsIn.h:38
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88