XC Open source finite element analysis program
PyLiq1.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: PyLiq1.h
29 **
30 ** Purpose: Provide a p-y material that gets pore pressure from a
31 ** specified element that contains a PorousFluidSolid.
32 **
33 **
34 ** Developed by Ross W. Boulanger
35 ** (C) Copyright 2002, All Rights Reserved.
36 **
37 ** ****************************************************************** */
38 
39 // $Revision: 1.0
40 // $Date: 2002/5/15
41 // $Source: /OpenSees/SRC/material/uniaxial/PyLiq1.h
42 
43 #ifndef PYLIQ1_H
44 #define PYLIQ1_H
45 
46 // Written: RWB
47 // Created: May 2002
48 //
49 // Description: This file contains the class definition for PyLiq1.
50 //
51 
52 #include <material/uniaxial/PY/PySimple1.h>
53 #include <iostream>
54 #include <string>
55 
56 namespace XC{
57  class FourNodeQuad;
58 
60 //
62 class PyLiq1 : public PySimple1
63  {
64  private:
65  // Residual p (other parameters in PySimple1 base class)
66  double pRes;
67 
68  // Committed and trial values for p, y, and ru
69  double Ty;
70  double Cy;
71  double Tp;
72  double Cp;
73  double Tangent;
74  double maxTangent;
75  double Tru;
76  double Cru;
77  double Hru;
78 
79  // Solid element from which pore pressures are obtained, domain pointer
80  // and stage information to get the initial vertical effective stress.
81  int solidElem1;
82  int solidElem2;
83  double meanConsolStress;
84  static int loadStage;
85  int lastLoadStage;
86  std::string elemFlag;
87  Domain *theDomain;
88  FourNodeQuad *theQuad1;
89  FourNodeQuad *theQuad2;
90 
91  // Initial tangent
92  double initialTangent;
93 
94  // Function for obtaining effective stresses from adjoining solid soil elements
95  double getEffectiveStress(void);
96  static Vector stressV3;
97  protected:
98  int sendData(CommParameters &);
99  int recvData(const CommParameters &);
100  public:
101  PyLiq1(int tag, int classtag, int soilType, double pult, double y50, double drag,
102  double dashpot, double pRes, int solidElem1, int solidElem2, Domain *theDomain);
103  PyLiq1(int tag, int classtag= MAT_TAG_PyLiq1);
104  PyLiq1(void);
105 
106  int setTrialStrain(double y, double yRate);
107  double getStrain(void) const;
108  double getStress(void) const;
109  double getTangent(void) const;
110  double getStrainRate(void) const;
111  double getDampTangent(void) const;
112  double getInitialTangent(void) const;
113 
114  int commitState(void);
115  int revertToLastCommit(void);
116  int revertToStart(void);
117 
118  UniaxialMaterial *getCopy(void) const;
119 
120  int sendSelf(CommParameters &);
121  int recvSelf(const CommParameters &);
122 
123  // Command for initiating vertConsolStress from TclUpdateMaterialStageCommand
124  int updateParameter(int snum, Information &eleInformation);
125  void Print(std::ostream &s, int flag =0);
126  };
127 }// fin namespace
128 #endif // PYLIQ1_H
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Definition: Vector.h:82
Material que representa una curva p-y.
Definition: PySimple1.h:58
Four node quad.
Definition: FourNodeQuad.h:73
int soilType
Soil type.
Definition: PYBase.h:51
Information about an element.
Definition: Information.h:80
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: PyLiq1.cpp:423
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: PyLiq1.cpp:205
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: PyLiq1.cpp:428
??.
Definition: PyLiq1.h:62
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: PyLiq1.cpp:440
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: PyLiq1.cpp:452
double dashpot
dashpot on the far-field (elastic) component
Definition: PYBase.h:56
double getStrainRate(void) const
default operation for strain rate is zero
Definition: PyLiq1.cpp:217
Communication parameters between processes.
Definition: CommParameters.h:65
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: PyLiq1.cpp:466
================================================================================
Definition: ContinuaReprComponent.h:34
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: PyLiq1.cpp:484
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88