xc
PyLiq1.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: PyLiq1.h
30 **
31 ** Purpose: Provide a p-y material that gets pore pressure from a
32 ** specified element that contains a PorousFluidSolid.
33 **
34 **
35 ** Developed by Ross W. Boulanger
36 ** (C) Copyright 2002, All Rights Reserved.
37 **
38 ** ****************************************************************** */
39 
40 // $Revision: 1.0
41 // $Date: 2002/5/15
42 // $Source: /OpenSees/SRC/material/uniaxial/PyLiq1.h
43 
44 #ifndef PYLIQ1_H
45 #define PYLIQ1_H
46 
47 // Written: RWB
48 // Created: May 2002
49 //
50 // Description: This file contains the class definition for PyLiq1.
51 //
52 
53 #include "PySimple1.h"
54 
55 namespace XC{
56  class FourNodeQuad;
57 
59 //
61 class PyLiq1: public PySimple1
62  {
63  private:
64  // other parameters in PySimple1 base class
65  double pRes;
66 
67  // Committed and trial values for p, y, and ru
68  double Ty;
69  double Cy;
70  double Tp;
71  double Cp;
72  double Tangent;
73  double maxTangent;
74  double Tru;
75  double Cru;
76  double Hru;
77 
78  // Solid element from which pore pressures are obtained, domain pointer
79  // and stage information to get the initial vertical effective stress.
80  int solidElem1;
81  int solidElem2;
82  double meanConsolStress;
83  static int loadStage;
84  int lastLoadStage;
85  std::string elemFlag;
86  Domain *theDomain;
87  FourNodeQuad *theQuad1;
88  FourNodeQuad *theQuad2;
89 
90  // Initial tangent
91  double initialTangent;
92 
93  // Function for obtaining effective stresses from adjoining solid soil elements
94  double getEffectiveStress(void);
95  static Vector stressV3;
96  protected:
97  int sendData(Communicator &);
98  int recvData(const Communicator &);
99  public:
100  PyLiq1(int tag, int classtag, int soilType, double pult, double y50, double drag,
101  double dashpot, double pRes, int solidElem1, int solidElem2, Domain *theDomain);
102  PyLiq1(int tag, int classtag= MAT_TAG_PyLiq1);
103  PyLiq1(void);
104 
105  int setTrialStrain(double y, double yRate);
106  double getStrain(void) const;
107  double getStress(void) const;
108  double getTangent(void) const;
109  double getStrainRate(void) const;
110  double getDampTangent(void) const;
111  double getInitialTangent(void) const;
112 
113  static int getMaterialStage(void);
114  static void updateMaterialStage(int);
115  int commitState(void);
116  int revertToLastCommit(void);
117  int revertToStart(void);
118 
119  UniaxialMaterial *getCopy(void) const;
120 
121  int sendSelf(Communicator &);
122  int recvSelf(const Communicator &);
123 
124  // Command for initiating vertConsolStress from TclUpdateMaterialStageCommand
125  int updateParameter(int snum, Information &eleInformation);
126  void Print(std::ostream &s, int flag =0) const;
127  };
128 }// fin namespace
129 #endif // PYLIQ1_H
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: PyLiq1.cpp:467
Float vector abstraction.
Definition: Vector.h:94
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: PyLiq1.cpp:499
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
double getTangent(void) const
Return the material tangent stiffness.
Definition: PyLiq1.cpp:200
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: PyLiq1.cpp:481
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: PyLiq1.cpp:443
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: PyLiq1.cpp:207
Uniaxial p-y material that incorporates liquefaction effects.
Definition: PyLiq1.h:61
static int getMaterialStage(void)
return the material stage (0:elastic 1:plastic).
Definition: PyLiq1.cpp:401
double getStress(void) const
Return the current value of stress.
Definition: PyLiq1.cpp:185
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: PyLiq1.cpp:438
double dashpot
dashpot on the far-field (elastic) component
Definition: PYBase.h:62
int revertToStart(void)
Revert the material to its initial state.
Definition: PyLiq1.cpp:250
int updateParameter(int snum, Information &eleInformation)
Updates the parameter identified by parameterID with info.
Definition: PyLiq1.cpp:422
static void updateMaterialStage(int)
Update material stage.
Definition: PyLiq1.cpp:409
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Four node quadrilateral element for two-dimensional problems.
Definition: FourNodeQuad.h:76
Simple uniaxial p-y material for use with a zeroLength element.
Definition: PySimple1.h:60
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
int setTrialStrain(double y, double yRate)
Sets the value of the trial strain.
Definition: PyLiq1.cpp:93
double getStrainRate(void) const
default operation for strain rate is zero
Definition: PyLiq1.cpp:219
double drag
ratio of max gap drag force to spring capacity
Definition: PySimple1.h:64
double getInitialTangent(void) const
Return the material initial stiffness.
Definition: PyLiq1.cpp:204
int soilType
Soil type.
Definition: PYBase.h:57
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: PyLiq1.cpp:455