XC Open source finite element analysis program
NineFourNodeQuadUP.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 //----------------------------------------------------------------------------
28 // Description: This file contains the class declaration for //
29 // NineFourNodeQuadUP, a 9-4-node (9 node for solid and 4 node for fluid) //
30 // plane strain element for solid-fluid fully coupled analysis. This //
31 // implementation is a simplified u-p formulation of Biot theory //
32 // (u - solid displacement, p - fluid pressure). Each element node has two //
33 // DOFs for u and 1 DOF for p. //
34 // //
35 // Written by Zhaohui Yang (March 2004) //
36 // //
38 
39 // $Revision: 1.1 $
40 // $Date: 2005/09/22 21:28:36 $
41 // $Source: /usr/local/cvs/OpenSees/SRC/element/UP-ucsd/Nine_Four_Node_QuadUP.h,v $
42 
43 #ifndef NineFourNodeQuadUP_h
44 #define NineFourNodeQuadUP_h
45 
46 #include <domain/mesh/element/ElemWithMaterial.h>
47 #include <utility/matrix/Matrix.h>
48 #include <utility/matrix/Vector.h>
49 #include "domain/mesh/element/utils/physical_properties/SolidMech2D.h"
50 #include "domain/mesh/element/utils/body_forces/BodyForces2D.h"
51 
52 namespace XC {
53 class Node;
54 class NDMaterial;
55 class Response;
56 
58 //
64 class NineFourNodeQuadUP: public ElemWithMaterial<9,SolidMech2D>
65  {
66  private:
67  BodyForces2D bf;
68  mutable Matrix *Ki;
69 
70  double kc; // combined bulk modulus
71  double perm[2]; // lateral/vertical permeability
72 
73  static Matrix K; // Element stiffness, damping, and mass Matrix
74  static Vector P; // Element resisting force vector
75  static const int nintu;
76  static const int nintp;
77  static const int nenu;
78  static const int nenp;
79 
80  static double shgu[3][9][9]; // Stores shape functions and derivatives (overwritten)
81  static double shgp[3][4][4]; // Stores shape functions and derivatives (overwritten)
82  static double shgq[3][9][4]; // Stores shape functions and derivatives (overwritten)
83  static double shlu[3][9][9]; // Stores shape functions and derivatives
84  static double shlp[3][4][4]; // Stores shape functions and derivatives
85  static double shlq[3][9][4]; // Stores shape functions and derivatives
86  static double wu[9]; // Stores quadrature weights
87  static double wp[4]; // Stores quadrature weights
88  static double dvolu[9]; // Stores detJacobian (overwritten)
89  static double dvolp[4]; // Stores detJacobian (overwritten)
90  static double dvolq[4]; // Stores detJacobian (overwritten)
91 
92  // private member functions - only objects of this class can call these
93  double mixtureRho(int ipt) const; // Mixture mass density at integration point i
94  void shapeFunction(double *w, int nint, int nen, int mode) const;
95  void globalShapeFunction(double *dvol, double *w, int nint, int nen, int mode) const;
96  protected:
97  int sendData(CommParameters &);
98  int recvData(const CommParameters &);
99  public:
100  NineFourNodeQuadUP(int tag, int nd1, int nd2, int nd3, int nd4,
101  int nd5, int nd6, int nd7, int nd8, int nd9,
102  NDMaterial &m, const char *type,
103  double t, double bulk, double rhof, double perm1, double perm2,
104  const BodyForces2D &bForces= BodyForces2D());
105  NineFourNodeQuadUP(void);
106  Element *getCopy(void) const;
107  virtual ~NineFourNodeQuadUP();
108 
109  int getNumDOF(void) const;
110  void setDomain(Domain *theDomain);
111 
112  // public methods to set the state of the element
113  int update(void);
114 
115  // public methods to obtain stiffness, mass, damping and residual information
116  const Matrix &getTangentStiff(void) const;
117  const Matrix &getInitialStiff(void) const;
118  const Matrix &getDamp(void) const;
119  const Matrix &getMass(void) const;
120 
121  int addLoad(ElementalLoad *theLoad, double loadFactor);
122  int addInertiaLoadToUnbalance(const Vector &accel);
123  const Vector &getResistingForce(void) const;
124  const Vector &getResistingForceIncInertia(void) const;
125 
126  // public methods for element output
127  int sendSelf(CommParameters &);
128  int recvSelf(const CommParameters &);
129  void Print(std::ostream &s, int flag =0);
130 
131  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
132  int getResponse(int responseID, Information &eleInformation);
133 
134  int setParameter(const std::vector<std::string> &argv, Parameter &param);
135  int updateParameter(int parameterID, Information &info);
136 
137  // RWB; PyLiq1 & TzLiq1 need to see the excess pore pressure and initial stresses.
138  friend class PyLiq1;
139  friend class TzLiq1;
140  };
141 } // end of XC namespace
142 
143 #endif
144 
??.
Definition: TzLiq1.h:60
Element with material.
Definition: ElemWithMaterial.h:40
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: NineFourNodeQuadUP.cpp:122
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: NineFourNodeQuadUP.cpp:585
int update(void)
Actualiza el estado of the element.
Definition: NineFourNodeQuadUP.cpp:139
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: NineFourNodeQuadUP.cpp:635
Information about an element.
Definition: Information.h:80
Base calass for the finite elements.
Definition: Element.h:104
Base class for loads over elements.
Definition: ElementalLoad.h:73
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: NineFourNodeQuadUP.cpp:595
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: NineFourNodeQuadUP.cpp:375
Definition: Matrix.h:82
??.
Definition: PyLiq1.h:62
Body forces over an element.
Definition: BodyForces2D.h:39
const Vector & getResistingForceIncInertia(void) const
Returns the action of the element over its attached nodes. Computes damping matrix.
Definition: NineFourNodeQuadUP.cpp:520
Element * getCopy(void) const
Virtual constructor.
Definition: NineFourNodeQuadUP.cpp:111
9-4-node (9 node for solid and 4 node for fluid) plane strain element for solid-fluid fully coupled a...
Definition: NineFourNodeQuadUP.h:64
Definition: Parameter.h:65
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71
const Matrix & getDamp(void) const
Returns the matriz de amortiguamiento.
Definition: NineFourNodeQuadUP.cpp:303