xc
QzSimple1.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: QzSimple1.h
29 **
30 ** Purpose: Provide a simple Q-z material for OpenSees
31 **
32 **
33 ** Developed by Ross W. Boulanger
34 ** (C) Copyright 2002, All Rights Reserved.
35 **
36 ** ****************************************************************** */
37 
38 // $Revision: 1.0
39 // $Date: 2002/1/22
40 // $Source: /OpenSees/SRC/material/uniaxial/QzSimple1.h
41 
42 #ifndef QZSIMPLE1_H
43 #define QZSIMPLE1_H
44 
45 // Written: RWB
46 // Created: Jan 2002
47 // tested and checked: Boris Jeremic (jeremic@ucdavis.edu) Spring 2002
48 //
49 // Description: This file contains the class definition for QzSimple1.
50 //
51 
52 #include "PQyzBase.h"
53 
54 
55 namespace XC {
57 //
60 class QzSimple1: public PQyzBase
61  {
62  private:
63  // Material parameters
64  double suction;
65  double maxElast;
66 
67  InternalParamsIn CSuction;
68  InternalParamsIn TSuction;
69 
70  InternalParamsA CClose;
71  InternalParamsA TClose;
72 
73  // Functions to get Q & z for each component individually
74  void getGap(double zlast, double dz, double dz_old);
75  void getClosure(double zlast, double dz);
76  void getSuction(double zlast, double zy);
77  void getNearField(double zlast, double dz, double dz_old);
78  protected:
79  int sendData(CommParameters &);
80  int recvData(const CommParameters &);
81 
82  public:
83  QzSimple1(int tag, int qzType, double Qult, double z50, double suction,double dashpot);
84  QzSimple1(int tag, int classtag= MAT_TAG_QzSimple1);
85  QzSimple1(void);
86 
87  void set_suction(const double &);
88  double get_suction(void) const;
89 
90  int setTrialStrain(double z, double zRate);
91  double getStress(void) const;
92  double getDampTangent(void) const;
93 
94  int commitState(void);
95  int revertToLastCommit(void);
96  int revertToStart(void);
97 
98  UniaxialMaterial *getCopy(void) const;
99 
100  int sendSelf(CommParameters &);
101  int recvSelf(const CommParameters &);
102 
103  void Print(std::ostream &s, int flag =0);
104 
105 
106 
107 
108  };
109 } // end of XC namespace
110 
111 #endif
Internal parameters for a p-y material.
Definition: InternalParamsIn.h:38
QzSimple1(void)
Default constructor.
Definition: QzSimple1.cpp:87
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:92
Simple uniaxial q-z material for use with a zeroLength element.
Definition: QzSimple1.h:60
int sendSelf(CommParameters &)
Send the object.
Definition: QzSimple1.cpp:616
double getDampTangent(void) const
default operation for damping tangent is zero
Definition: QzSimple1.cpp:443
double getStress(void) const
Return the current value of stress.
Definition: QzSimple1.cpp:420
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: QzSimple1.cpp:604
Base class for PySimple1 y QzSimple1.
Definition: PQyzBase.h:38
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: QzSimple1.cpp:588
void Print(std::ostream &s, int flag=0)
Print stuff.
Definition: QzSimple1.cpp:648
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: QzSimple1.cpp:592
double dashpot
dashpot on the far-field (elastic) component
Definition: PYBase.h:61
int setTrialStrain(double z, double zRate)
Sets the value of the trial strain.
Definition: QzSimple1.cpp:333
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
int recvSelf(const CommParameters &)
Receive the object.
Definition: QzSimple1.cpp:630
Internal parameters for the Gap (Drag + Closure).
Definition: InternalParamsA.h:38
void set_suction(const double &)
Set the suction parameter (Uplift resistance is equal to suction*qult).
Definition: QzSimple1.cpp:469
double get_suction(void) const
Return the suction parameter (Uplift resistance is equal to suction*qult)
Definition: QzSimple1.cpp:480