XC Open source finite element analysis program
PySimple1.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: PySimple1.h
29 **
30 ** Purpose: Provide a simple p-y spring for OpenSees
31 **
32 **
33 ** Developed by Ross W. Boulanger
34 ** (C) Copyright 2001, All Rights Reserved.
35 **
36 ** ****************************************************************** */
37 
38 // $Revision: 1.0
39 // $Date: 2001/10/15
40 // $Source: /OpenSees/SRC/material/uniaxial/PySimple1.h
41 
42 #ifndef PYSIMPLE1_H
43 #define PYSIMPLE1_H
44 
45 // Written: RWB
46 // Created: Oct 2001
47 // tested and checked: Boris Jeremic (jeremic@ucdavis.edu) Spring 2002
48 //
49 // Description: This file contains the class definition for PySimple1.
50 //
51 
52 #include <material/uniaxial/PY/PQyzBase.h>
53 
54 namespace XC {
56 //
58 class PySimple1: public PQyzBase
59  {
60  protected:
61  // Material parameters
62  double drag; // ratio of max gap drag force to spring capacity
63  private:
64  InternalParamsIn CDrag; // Committed internal parameters for the Drag component
65  InternalParamsIn TDrag; // Trial internal parameters for the Drag component
66 
67  InternalParamsLR CClose; // Committed internal parameters for the Closure component
68  InternalParamsLR TClose; // Trial internal parameters for the Closure component
69 
70  // Functions to get p & y for each component individually
71  void getGap(double ylast, double dy, double dy_old);
72  void getClosure(double ylast, double dy);
73  void getDrag(double ylast, double dy);
74  void getNearField(double ylast, double dy, double dy_old);
75 
76  protected:
77  int sendData(CommParameters &);
78  int recvData(const CommParameters &);
79 
80 
81  public:
82  PySimple1(int tag, int classtag, int soilType, double pult, double y50,double drag, double dashpot);
83  PySimple1(int tag, int classtag= MAT_TAG_PySimple1);
84  PySimple1(void);
85 
86  int setTrialStrain(double y, double yRate);
87  double getStress(void) const;
88  double getDampTangent(void) const;
89 
90  int commitState(void);
91  int revertToLastCommit(void);
92  int revertToStart(void);
93 
94  UniaxialMaterial *getCopy(void) const;
95 
96  int sendSelf(CommParameters &);
97  int recvSelf(const CommParameters &);
98 
99  void Print(std::ostream &s, int flag =0);
100 
101  };
102 } // end of XC namespace
103 
104 
105 #endif
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: PySimple1.cpp:584
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: PySimple1.cpp:641
Material que representa una curva p-y.
Definition: PySimple1.h:58
int soilType
Soil type.
Definition: PYBase.h:51
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: PySimple1.cpp:430
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: PySimple1.cpp:596
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: PySimple1.cpp:580
double dashpot
dashpot on the far-field (elastic) component
Definition: PYBase.h:56
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Internal parameters for a p-y material.
Definition: InternalParamsLR.h:38
Internal parameters for a p-y material.
Definition: InternalParamsIn.h:38
PySimple1(void)
Default constructor.
Definition: PySimple1.cpp:78
Base class for PySimple1 y QzSimple1.
Definition: PQyzBase.h:38
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88