35 #ifndef _TIEQLIN2DQUAD4_HPP_ 36 #define _TIEQLIN2DQUAD4_HPP_ 41 #include <Eigen/Dense> 73 TIEQlin2DQuad4(
const std::vector<unsigned int> nodes, std::unique_ptr<Material> &material,
const double th,
const std::string quadrature=
"GAUSS",
const unsigned int nGauss=4,
const std::string
Type=
"DARENDELI",
const double zref=0.0,
const double cf1=0.0,
const double cf2=0.0,
const double eref=0.0);
98 void SetDomain(std::map<
unsigned int, std::shared_ptr<Node> > &nodes);
103 void SetDamping(
const std::shared_ptr<Damping> &damping);
129 Eigen::MatrixXd
GetStrainAt(
double x3,
double x2)
const;
136 Eigen::MatrixXd
GetStressAt(
double x3,
double x2)
const;
198 Eigen::VectorXd
ComputeBodyForces(
const std::shared_ptr<Load> &body,
unsigned int k=0);
242 Eigen::VectorXd
ComputeStrain(
const Eigen::MatrixXd &Bij)
const;
273 Eigen::VectorXd
ComputeGGmaxDamping(
const double vs,
const double z,
const double rho)
const;
Eigen::VectorXd ComputeDomainReductionForces(const std::shared_ptr< Load > &drm, unsigned int k)
Compute the domain reduction forces acting on the element.
double ComputeEnergy()
Computes the element energy for a given deformation.
Eigen::MatrixXd ComputeStrainDisplacementMatrix(const double ri, const double si, const Eigen::MatrixXd &Jij) const
Evaluates the strain-displacement matrix at a given Gauss point.
std::vector< std::unique_ptr< Material > > theMaterial
The Element's material.
Definition: TIEQlin2DQuad4.hpp:234
Eigen::VectorXd ComputeInternalDynamicForces()
Compute the elastic, inertial, and viscous forces acting on the element.
~TIEQlin2DQuad4()
Destroys this TIEQlin2DQuad4 object.
std::unique_ptr< QuadratureRule > QuadraturePoints
Coordinate of Gauss points.
Definition: TIEQlin2DQuad4.hpp:237
This file contains the "Load" class declarations, which defines a load that can act in a node or an e...
double t
Element thickness.
Definition: TIEQlin2DQuad4.hpp:210
Eigen::MatrixXd ComputePMLMatrix()
Compute the PML history matrix using gauss-integration.
void SetDomain(std::map< unsigned int, std::shared_ptr< Node > > &nodes)
Sets the finite element dependance among objects.
std::vector< unsigned int > GetTotalDegreeOfFreedom() const
Gets the list of total-degree of freedom of this Element.
std::shared_ptr< Damping > theDamping
The Damping model.
Definition: TIEQlin2DQuad4.hpp:228
Eigen::MatrixXd ComputeShapeFunctionMatrix(const double ri, const double si) const
Evaluates the shape function matrix at a given Gauss point.
This file contains the abstract "Material object" declarations, which computes the strain...
double cf2
Upper corner frequencies for damping.
Definition: TIEQlin2DQuad4.hpp:216
std::vector< std::shared_ptr< Node > > theNodes
The Element's Nodes.
Definition: TIEQlin2DQuad4.hpp:231
Eigen::VectorXd ComputeSurfaceForces(const std::shared_ptr< Load > &surface, unsigned int face)
Compute the surface forces acting on the element.
Eigen::MatrixXd GetStrainAt(double x3, double x2) const
Gets the material strain in section at coordinate (x3,x2).
Class for creating a 2D time invariant equivalent linear four-node quadrilateral element in a mesh...
Definition: TIEQlin2DQuad4.hpp:57
double eref
Reference shear strain metric to read G/Gmax and damping curves.
Definition: TIEQlin2DQuad4.hpp:222
Eigen::VectorXd ComputeStrain(const Eigen::MatrixXd &Bij) const
Update strain in the element.
Eigen::MatrixXd ComputeDampingMatrix()
Compute the damping matrix of the element using gauss-integration.
void ReverseState()
Reverse the material/section states to previous converged state in this element.
Eigen::VectorXd ComputeGGmaxDamping(const double vs, const double z, const double rho) const
Compute GGmax and Damping for nType = 1 ==> equivalent linear model.
void CommitState()
Save the material states in the element.
Eigen::VectorXd ComputeStrainRate(const Eigen::MatrixXd &Bij) const
Update strain rate in the element.
void UpdateState()
Update the material states in the element.
Eigen::MatrixXd ComputeStiffnessMatrix()
Compute the stiffness matrix of the element using gauss-integration.
Eigen::VectorXd ComputeInternalForces()
Compute the internal (elastic) forces acting on the element.
Virtual class for creating an element in a mesh.
Definition: Element.hpp:51
Eigen::VectorXd GetVTKResponse(std::string response) const
Gets the element internal response in VTK format for Paraview display.
This file contains the "Node object" declarations, which is stores the coordinates, state variables, degrees-of-freedom, and total-degree of freedom lists of a node in a finite element mesh.
This file contains the "Damping object" declarations to update damping matrix to account for Caughey-...
void InitialState()
Brings the material/section state to its initial state in this element.
void SetDamping(const std::shared_ptr< Damping > &damping)
Sets the damping model.
std::string Type
Determine the type of modulus reduction and damping curve.
Definition: TIEQlin2DQuad4.hpp:225
Eigen::MatrixXd ComputeMassMatrix()
Compute the lumped/consistent mass matrix of the element.
Eigen::MatrixXd GetStressAt(double x3, double x2) const
Gets the material stress in section at coordinate (x3,x2).
double zref
Reference elevation to compute GGmax and damping.
Definition: TIEQlin2DQuad4.hpp:219
Eigen::MatrixXd GetStress() const
Gets the material/section (generalised) stress.
double cf1
Lower corner frequencies for damping.
Definition: TIEQlin2DQuad4.hpp:213
Eigen::MatrixXd GetStrainRate() const
Gets the material/section (generalised) strain-rate.
Eigen::MatrixXd ComputeJacobianMatrix(const double ri, const double si) const
Computes the jacobian of the transformation.
Eigen::MatrixXd GetStrain() const
Gets the material/section (generalised) strain.
TIEQlin2DQuad4(const std::vector< unsigned int > nodes, std::unique_ptr< Material > &material, const double th, const std::string quadrature="GAUSS", const unsigned int nGauss=4, const std::string Type="DARENDELI", const double zref=0.0, const double cf1=0.0, const double cf2=0.0, const double eref=0.0)
Creates a TIEQlin2DQuad4 in a finite element Mesh.
This file contains the abstract "Quadrature Rule" declarations to integrate quantities in the iso-par...
Eigen::VectorXd ComputeBodyForces(const std::shared_ptr< Load > &body, unsigned int k=0)
Compute the body forces acting on the element.
This file contains the "Element" object declarations, which defines an element in a finite element me...