xc
ASDShellQ4.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 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 // $Revision: 1.10 $
49 // $Date: 2020/05/18 22:51:21 $
50 
51 // Original implementation: Massimo Petracca (ASDEA)
52 //
53 // A 4-node general shell element based on
54 // the AGQ6-I formulation for the membrane part,
55 // and the MITC4 formulation for the shear-deformable bending part.
56 //
57 // It supports both linear and corotational kinematics. Warped geometries
58 // can be modelled since this element is not assumed flat.
59 //
60 // References:
61 //
62 // 1 Chen, Xiao-Ming, et al. "Membrane elements insensitive to distortion
63 // using the quadrilateral area coordinate method."
64 // Computers & Structures 82.1 (2004): 35-54.
65 // http://www.paper.edu.cn/scholar/showpdf/MUT2ANwINTT0Ax5h
66 //
67 // 2 Dvorkin, Eduardo N., and Klaus-Jurgen Bathe.
68 // "A continuum mechanics based four-node shell element for
69 // general non-linear analysis." Engineering computations (1984).
70 // https://www.researchgate.net/profile/Eduardo_Dvorkin/publication/235313212_A_Continuum_mechanics_based_four-node_shell_element_for_general_nonlinear_analysis/links/00b7d52611d8813ffe000000.pdf
71 //
72 // 3 Bathe, Klaus-Jurgen, and Eduardo N. Dvorkin.
73 // "A four-node plate bending element based on Mindlin/Reissner plate theory
74 // and a mixed interpolation."
75 // International Journal for Numerical Methods in Engineering 21.2 (1985): 367-383.
76 // http://www.simytec.com/docs/Short_communicaion_%20four_node_plate.pdf
77 //
78 // 4 Hughes, Thomas JR, and F. Brezzi.
79 // "On drilling degrees of freedom."
80 // Computer methods in applied mechanics and engineering 72.1 (1989): 105-121.
81 // https://www.sciencedirect.com/science/article/pii/0045782589901242
82 //
83 // Notes:
84 //
85 // - The AGQ6-I formulation greatly enhances the membrane behavior of the
86 // standard 4-node iso-parametric element. However it does not pass the constant-strain
87 // patch test as most of the enhanced elements based on incompatible-modes.
88 // In this implementation the enhancing BQ matrix is corrected to make the element
89 // pass the constant strain patch test. At each gauss point the BQ = BQ - 1/V*BQ_mean
90 //
91 // - The drilling DOF is treated using the Hughes-Brezzi formulation. The drilling
92 // stiffness is taken equal to the initial (elastic) in-plane section shear modulus.
93 // Taking the real shear modulus (and not a scaled version of it, as suggested in many
94 // articles) is mandatory to obtain a correct response for warped shells, i.e. when
95 // the drilling rotation affects the bending rotation. However using the full shear modulus
96 // deteriorates the element membrane behavior, making the element stiffer. For example,
97 // when using softening material models, this drilling stiffness makes the element lock
98 // failing in representing crack propagation correctly.
99 // Here we solved this problem using a reduced integration for the drilling part. However
100 // a pure reduced integration for the drilling DOFs, leads to 3 spurious zero-energy modes.
101 // Therefore we also include a fully integrated contribution of the drilling DOFs
102 // scaling the drilling stiffness by 1.0e-4, so just to suppress these spurious zero energy modes.
103 //
104 
105 #ifndef ASDShellQ4_h
106 #define ASDShellQ4_h
107 
108 #include "utility/matrix/Vector.h"
109 #include "utility/matrix/Matrix.h"
110 #include "utility/matrix/ID.h"
111 #include "domain/mesh/element/plane/QuadBase4N.h"
112 #include "domain/mesh/element/utils/physical_properties/SectionFDPhysicalProperties.h"
113 #include "domain/mesh/element/utils/damping/DampingVector.h"
114 
115 namespace XC {
116 
117 class SectionForceDeformation;
118 class ASDShellQ4Transformation;
119 class ASDShellQ4LocalCoordinateSystem;
120 
121 class ASDShellQ4: public QuadBase4N<SectionFDPhysicalProperties>
122  {
123  public:
124  enum DrillingDOFMode
125  {
126  DrillingDOF_Elastic = 0,
127  DrillingDOF_NonLinear = 1,
128  };
130  {
131  public:
132  std::vector<Vector> strain_comm = { Vector(8), Vector(8), Vector(8), Vector(8) };
133  std::vector<Vector> stress_comm = { Vector(8), Vector(8), Vector(8), Vector(8) };
134  std::vector<double> damage = { 0.0, 0.0, 0.0, 0.0 };
135  std::vector<double> damage_comm = { 0.0, 0.0, 0.0, 0.0 };
136  };
137  class EASData
138  {
139  public:
140  Vector Q = Vector(4);
141  Vector Q_converged = Vector(4);
142  Vector U = Vector(24);
143  Vector U_converged = Vector(24);
144  Vector Q_residual = Vector(4);
145  Matrix KQQ_inv = Matrix(4, 4);
146  Matrix KQU = Matrix(4, 24); // L = G'*C*B
147  Matrix KUQ = Matrix(24, 4); // L^T = B'*C'*G
148  };
149 
150  private:
151  // coordinate transformation
152  ASDShellQ4Transformation *m_transformation= nullptr;
153 
154  // vectors for applying load.
155  Vector m_load;
156 
157  // drilling strain for the indipendent rotation field (Hughes-Brezzi)
158  mutable std::vector<double> m_drill_strain= { 0.0, 0.0, 0.0, 0.0 };
159  double m_drill_stiffness = 0.0;
160 
161  // section orientation with respect to the local coordinate system
162  Vector m_local_x;
163  double m_angle = 0.0;
164 
165  // initialization flag
166  bool m_initialized= false;
167  // damping
168  DampingVector m_damping;
169 
170  // members for non-linear treatment of AGQI internal DOFs:
171  // it has 24 displacement DOFs
172  // and 4 internal DOFs for membrane enhancement
173  EASData *m_eas= nullptr;
174 
175  // drilling strain for the independent rotation field (Hughes-Brezzi)
176  DrillingDOFMode m_drill_mode = DrillingDOF_Elastic;
177  double m_drill_stab = 0.01;
178  NLDrillingData* m_nldrill= nullptr;
179 
180  private:
181 
182  void free_mem(void);
183  void free_crd_transf(void);
184  void free_eas(void);
185  void free_nldrill(void);
186  void alloc(bool corotational);
187  void alloc(const ASDShellQ4Transformation *);
188  void alloc_eas(void);
189  void copy_eas(const EASData &);
190  void alloc_nldrill(void);
191  void copy_nldrill(const NLDrillingData &);
192  // internal method to compute everything using switches...
193  int calculateAll(Matrix& LHS, Vector& RHS, int options) const;
194 
195  void AGQIinitialize(void);
196  void AGQIupdate(const Vector& UL) const;
197  void AGQIbeginGaussLoop(const ASDShellQ4LocalCoordinateSystem& reference_cs) const;
198  protected:
199  int sendData(Communicator &);
200  int recvData(const Communicator &);
201 
202  public:
203 
204  // life cycle
205  ASDShellQ4(int tag= 0, bool corotational= true);
206  ASDShellQ4(int tag,const SectionForceDeformation *ptr_mat);
207  ASDShellQ4(int tag,
208  int node1,
209  int node2,
210  int node3,
211  int node4,
212  SectionForceDeformation* section,
213  const Vector &local_x,
214  bool corotational= true,
215  bool use_eas = true,
216  DrillingDOFMode drill_mode = DrillingDOF_Elastic,
217  double drilling_stab = 0.01,
218  Damping *theDamping= nullptr);
219  ASDShellQ4(const ASDShellQ4 &);
220  ASDShellQ4 &operator=(const ASDShellQ4 &);
221  virtual ~ASDShellQ4();
222  Element *getCopy(void) const;
223 
224  // domain
225  int resetNodalCoordinates(void);
226  void setDomain(Domain* theDomain);
227  int setDamping(Domain *theDomain, Damping *theDamping);
228 
229  // print
230  void Print(std::ostream &, int flag);
231 
232  int getNumDOF(void) const;
233 
234  virtual const SectionForceDeformation *getSectionPtr(const size_t &) const;
235 
236  // methods dealing with committed state and update
237  int commitState(void);
238  int revertToLastCommit(void);
239  int revertToStart(void);
240  int update(void);
241 
242  // methods to return the current linearized stiffness,
243  // damping and mass matrices
244  const Matrix &getTangentStiff(void) const;
245  const Matrix &getInitialStiff(void) const;
246  const Matrix &getMass(void) const;
247 
248  double getCharacteristicLength(void) const;
249 
250  // methods for applying loads
251  void alive(void);
252  void zeroLoad(void);
253  int addLoad(ElementalLoad* theLoad, double loadFactor);
254  int addInertiaLoadToUnbalance(const Vector& accel);
255 
256  // methods for obtaining resisting force (force includes elemental loads)
257  const Vector &getResistingForce(void) const;
258  const Vector &getResistingForceIncInertia(void) const;
259 
260  // public methods for element output
261  int sendSelf(Communicator &);
262  int recvSelf(const Communicator &);
263 
264  Response *setResponse(const std::vector<std::string> &argv, Information &eleInformation);
265  int getResponse(int responseID, Information &eleInformation);
266 
267  int setParameter(const std::vector<std::string> &argv, Parameter &param);
268  };
269 } // end of XC namespace
270 #endif // ASDShellQ4_h
int sendData(Communicator &)
Send members through the communicator argument.
Definition: ASDShellQ4.cpp:1192
Base class for force deformation section models.
Definition: SectionForceDeformation.h:88
Float vector abstraction.
Definition: Vector.h:94
void zeroLoad(void)
Zeroes the loads over the element.
Definition: ASDShellQ4.cpp:1120
int sendSelf(Communicator &)
Send the object.
Definition: ASDShellQ4.cpp:1278
Information about an element.
Definition: Information.h:81
const Vector & getResistingForceIncInertia(void) const
Returns the resisting force vector including inertia forces.
Definition: ASDShellQ4.cpp:1164
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
int getNumDOF(void) const
return the number of DOF associated with the element.
Definition: ASDShellQ4.cpp:917
const Vector & getResistingForce(void) const
Returns the resisting force vector for the element.
Definition: ASDShellQ4.cpp:1155
ASDShellQ4 & operator=(const ASDShellQ4 &)
Assignment operator.
Definition: ASDShellQ4.cpp:748
const Matrix & getTangentStiff(void) const
Return the tangent stiffness matrix.
Definition: ASDShellQ4.cpp:1037
This class represent the local coordinate system of any element whose geometry is a 4-node Quadrilate...
Definition: ASDShellQ4LocalCoordinateSystem.h:41
int revertToStart(void)
Reverts the element to its initial state.
Definition: ASDShellQ4.cpp:1002
void alive(void)
Reactivates the element.
Definition: ASDShellQ4.cpp:1106
Base class for 4 node quads.
Definition: QuadBase4N.h:45
Base class for the finite elements.
Definition: Element.h:112
Damping pointer container.
Definition: DampingVector.h:44
Response * setResponse(const std::vector< std::string > &argv, Information &eleInformation)
setResponse() is a method invoked to determine if the element will respond to a request for a certain...
Definition: ASDShellQ4.cpp:1314
int recvData(const Communicator &)
Receives members through the communicator argument.
Definition: ASDShellQ4.cpp:1234
int update(void)
Updates the element state.
Definition: ASDShellQ4.cpp:1029
Definition: ASDShellQ4.h:129
int revertToLastCommit(void)
Revert to the last committed state.
Definition: ASDShellQ4.cpp:969
Element * getCopy(void) const
Virtual constructor.
Definition: ASDShellQ4.cpp:729
virtual const SectionForceDeformation * getSectionPtr(const size_t &) const
Return a pointer to the i-th section of the element.
Definition: ASDShellQ4.cpp:922
int resetNodalCoordinates(void)
Reinitialize values that depend on the nodal coordinates (for example after a "manual" change in the ...
Definition: ASDShellQ4.cpp:766
int commitState(void)
Commit the current element state.
Definition: ASDShellQ4.cpp:936
int getResponse(int responseID, Information &eleInformation)
Obtain information from an analysis.
Definition: ASDShellQ4.cpp:1455
Definition: ASDShellQ4.h:137
int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: ASDShellQ4.cpp:1522
double getCharacteristicLength(void) const
Return the characteristic length of this element.
Definition: ASDShellQ4.cpp:1550
Definition: Damping.h:83
Definition: ASDShellQ4.h:121
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
ASDShellQ4(int tag=0, bool corotational=true)
Constructor.
Definition: ASDShellQ4.cpp:683
Matrix of floats.
Definition: Matrix.h:111
Parameter.
Definition: Parameter.h:68
const Matrix & getMass(void) const
Returns the mass matrix.
Definition: ASDShellQ4.cpp:1055
void setDomain(Domain *theDomain)
Sets the domain for the element.
Definition: ASDShellQ4.cpp:818
Base class for loads over elements.
Definition: ElementalLoad.h:79
This class represents a basic (linear) coordinate transformation that can be used by any element whos...
Definition: ASDShellQ4Transformation.h:74
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
int recvSelf(const Communicator &)
Receive the object.
Definition: ASDShellQ4.cpp:1293