xc
PySimple1.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 ** Module: PySimple1.h
30 **
31 ** Purpose: Provide a simple p-y spring for OpenSees
32 **
33 **
34 ** Developed by Ross W. Boulanger
35 ** (C) Copyright 2001, All Rights Reserved.
36 **
37 ** ****************************************************************** */
38 
39 // $Revision: 1.0
40 // $Date: 2001/10/15
41 // $Source: /OpenSees/SRC/material/uniaxial/PySimple1.h
42 
43 #ifndef PYSIMPLE1_H
44 #define PYSIMPLE1_H
45 
46 // Written: RWB
47 // Created: Oct 2001
48 // tested and checked: Boris Jeremic (jeremic@ucdavis.edu) Spring 2002
49 //
50 // Description: This file contains the class definition for PySimple1.
51 //
52 
53 #include "PQyzBase.h"
54 
55 namespace XC {
57 //
60 class PySimple1: public PQyzBase
61  {
62  protected:
63  // Material parameters
64  double drag;
65  private:
66  InternalParamsIn CDrag;
67  InternalParamsIn TDrag;
68 
69  InternalParamsLR CClose;
70  InternalParamsLR TClose;
71 
72  // Functions to get p & y for each component individually
73  void getGap(double ylast, double dy, double dy_old);
74  void getClosure(double ylast, double dy);
75  void getDrag(double ylast, double dy);
76  void getNearField(double ylast, double dy, double dy_old);
77 
78  protected:
79  int sendData(Communicator &);
80  int recvData(const Communicator &);
81 
82  public:
83  PySimple1(int tag, int classtag, int soilType, double pult, double y50,double drag, double dashpot);
84  PySimple1(int tag, int classtag= MAT_TAG_PySimple1);
85  PySimple1(void);
86 
87  int setTrialStrain(double y, double yRate);
88  double getStress(void) const;
89  double getDampTangent(void) const;
90  void setDragResistanceFactor(const double &);
91  double getDragResistanceFactor(void) const;
92 
93  int commitState(void);
94  int revertToLastCommit(void);
95  int revertToStart(void);
96 
97  UniaxialMaterial *getCopy(void) const;
98 
99  void initialize(void);
100 
101  int sendSelf(Communicator &);
102  int recvSelf(const Communicator &);
103 
104  void Print(std::ostream &s, int flag =0) const;
105 
106  };
107 } // end of XC namespace
108 
109 
110 #endif
PySimple1(void)
Default constructor.
Definition: PySimple1.cpp:76
Communication parameters between processes.
Definition: Communicator.h:66
Internal parameters for a p-y material.
Definition: InternalParamsIn.h:39
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
int recvSelf(const Communicator &)
Receive the object.
Definition: PySimple1.cpp:661
Internal parameters for a p-y material.
Definition: InternalParamsLR.h:40
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: PySimple1.cpp:618
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: PySimple1.cpp:622
double getDragResistanceFactor(void) const
Return the variable that sets the drag resistance within a fully-mobilized gap as Cd*getUltimateCapac...
Definition: PySimple1.cpp:614
int sendSelf(Communicator &)
Send the object.
Definition: PySimple1.cpp:646
Base class for PySimple1 y QzSimple1.
Definition: PQyzBase.h:39
double dashpot
dashpot on the far-field (elastic) component
Definition: PYBase.h:62
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: PySimple1.cpp:634
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:610
double getStress(void) const
Return the current value of stress.
Definition: PySimple1.cpp:434
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: PySimple1.cpp:458
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: PySimple1.cpp:679
Simple uniaxial p-y material for use with a zeroLength element.
Definition: PySimple1.h:60
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:64
int soilType
Soil type.
Definition: PYBase.h:57