xc
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 "PQyzBase.h"
53 
54 namespace XC {
56 //
59 class PySimple1: public PQyzBase
60  {
61  protected:
62  // Material parameters
63  double drag;
64  private:
65  InternalParamsIn CDrag;
66  InternalParamsIn TDrag;
67 
68  InternalParamsLR CClose;
69  InternalParamsLR TClose;
70 
71  // Functions to get p & y for each component individually
72  void getGap(double ylast, double dy, double dy_old);
73  void getClosure(double ylast, double dy);
74  void getDrag(double ylast, double dy);
75  void getNearField(double ylast, double dy, double dy_old);
76 
77  protected:
78  int sendData(CommParameters &);
79  int recvData(const CommParameters &);
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  void setDragResistanceFactor(const double &);
90  double getDragResistanceFactor(void) const;
91 
92  int commitState(void);
93  int revertToLastCommit(void);
94  int revertToStart(void);
95 
96  UniaxialMaterial *getCopy(void) const;
97 
98  void initialize(void);
99 
100  int sendSelf(CommParameters &);
101  int recvSelf(const CommParameters &);
102 
103  void Print(std::ostream &s, int flag =0);
104 
105  };
106 } // end of XC namespace
107 
108 
109 #endif
PySimple1(void)
Default constructor.
Definition: PySimple1.cpp:76
int recvSelf(const CommParameters &)
Receive the object.
Definition: PySimple1.cpp:636
Internal parameters for a p-y material.
Definition: InternalParamsIn.h:38
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:92
Internal parameters for a p-y material.
Definition: InternalParamsLR.h:39
int sendSelf(CommParameters &)
Send the object.
Definition: PySimple1.cpp:621
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: PySimple1.cpp:609
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: PySimple1.cpp:593
double getDragResistanceFactor(void) const
Return the variable that sets the drag resistance within a fully-mobilized gap as Cd*getUltimateCapac...
Definition: PySimple1.cpp:589
Base class for PySimple1 y QzSimple1.
Definition: PQyzBase.h:38
void Print(std::ostream &s, int flag=0)
Print stuff.
Definition: PySimple1.cpp:654
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: PySimple1.cpp:597
double dashpot
dashpot on the far-field (elastic) component
Definition: PYBase.h:61
void initialize(void)
Initial values for the material parameters.
Definition: PySimple1.cpp:80
void setDragResistanceFactor(const double &)
Set the variable that sets the drag resistance within a fully-mobilized gap as Cd*getUltimateCapacity...
Definition: PySimple1.cpp:585
double getStress(void) const
Return the current value of stress.
Definition: PySimple1.cpp:410
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: PySimple1.cpp:434
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
Simple uniaxial p-y material for use with a zeroLength element.
Definition: PySimple1.h:59
int setTrialStrain(double y, double yRate)
Sets the value of the trial strain.
Definition: PySimple1.cpp:324
double drag
ratio of max gap drag force to spring capacity
Definition: PySimple1.h:63
int soilType
Soil type.
Definition: PYBase.h:56