xc
TzLiq1.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: TzLiq1.h
30 **
31 ** Purpose: Provide a t-z 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/2/5
42 // $Source: /OpenSees/SRC/material/uniaxial/TzLiq1.h
43 
44 #ifndef TZLIQ1_H
45 #define TZLIQ1_H
46 
47 // Written: RWB
48 // Created: Feb 2002
49 //
50 // Description: This file contains the class definition for TzLiq1.
51 //
52 
53 #include "TzSimple1.h"
54 
55 namespace XC {
56 class FourNodeQuad;
57 
59 //
61 class TzLiq1: public TzSimple1
62  {
63  private:
64  // Committed and trial values for t, z, and ru
65  double Tz;
66  double Cz;
67  double Tt;
68  double Ct;
69  double Tangent;
70  double maxTangent;
71  double Tru;
72  double Cru;
73  double Hru;
74 
75  // Solid element from which pore pressures are obtained, domain pointer
76  // and stage information to get the initial vertical effective stress.
77  int solidElem1;
78  int solidElem2;
79 
80  double meanConsolStress;
81  double ru;
82 
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  TzLiq1(int tag, int classtag, int tzType, double tult, double z50,
101  double dashpot, int solidElem1, int solidElem2, Domain *theDomain);
102  TzLiq1(int tag, int classtag= MAT_TAG_TzLiq1);
103  TzLiq1(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 
127  void Print(std::ostream &s, int flag =0) const;
128  };
129 } // end of XC namespace
130 
131 #endif // TZLIQ1_H
Float vector abstraction.
Definition: Vector.h:94
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: TzLiq1.cpp:502
int sendSelf(Communicator &)
Send the object.
Definition: TzLiq1.cpp:470
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: TzLiq1.cpp:458
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
static int getMaterialStage(void)
return the material stage (0:elastic 1:plastic).
Definition: TzLiq1.cpp:397
Simple uniaxial t-z material for use with a zeroLength element.
Definition: TzSimple1.h:59
double getStress(void) const
Return the current value of stress.
Definition: TzLiq1.cpp:179
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: TzLiq1.cpp:434
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: TzLiq1.cpp:201
int updateParameter(int snum, Information &eleInformation)
Updates the parameter identified by parameterID with info.
Definition: TzLiq1.cpp:417
Uniaxial t-z material that incorporates liquefaction effects.
Definition: TzLiq1.h:61
double getTangent(void) const
Return the material tangent stiffness.
Definition: TzLiq1.cpp:193
double getStrainRate(void) const
default operation for strain rate is zero
Definition: TzLiq1.cpp:213
TzLiq1(void)
Default constructor.
Definition: TzLiq1.cpp:87
double dashpot
dashpot on the far-field (elastic) component
Definition: PYBase.h:62
int setTrialStrain(double y, double yRate)
Sets the value of the trial strain.
Definition: TzLiq1.cpp:93
double getInitialTangent(void) const
Return the material initial stiffness.
Definition: TzLiq1.cpp:197
int recvSelf(const Communicator &)
Receive the object.
Definition: TzLiq1.cpp:484
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int revertToStart(void)
Revert the material to its initial state.
Definition: TzLiq1.cpp:244
Four node quadrilateral element for two-dimensional problems.
Definition: FourNodeQuad.h:76
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: TzLiq1.cpp:446
static void updateMaterialStage(int)
Update material stage.
Definition: TzLiq1.cpp:405