32 #ifndef _LIN2DTRIA3_HPP_ 33 #define _LIN2DTRIA3_HPP_ 39 #include <Eigen/Dense> 66 lin2DTria3(
const std::vector<unsigned int> nodes, std::unique_ptr<Material> &material,
const double th,
const std::string quadrature=
"GAUSS",
const unsigned int nGauss=4);
91 void SetDomain(std::map<
unsigned int, std::shared_ptr<Node> > &nodes);
96 void SetDamping(
const std::shared_ptr<Damping> &damping);
122 Eigen::MatrixXd
GetStrainAt(
double x3,
double x2)
const;
129 Eigen::MatrixXd
GetStressAt(
double x3,
double x2)
const;
191 Eigen::VectorXd
ComputeBodyForces(
const std::shared_ptr<Load> &body,
unsigned int k=0);
220 Eigen::VectorXd
ComputeStrain(
const Eigen::MatrixXd &Bij)
const;
std::unique_ptr< Material > theMaterial
Element material.
Definition: lin2DTria3.hpp:212
void CommitState()
Save the material states in the element.
This file contains the "Load" class declarations, which defines a load that can act in a node or an e...
Eigen::MatrixXd ComputeStrainDisplacementMatrix(const Eigen::MatrixXd &Jij) const
Evaluates the strain-displacement matrix at a given Gauss point.
Eigen::MatrixXd GetStrain() const
Gets the material/section (generalised) strain.
Eigen::MatrixXd GetStrainAt(double x3, double x2) const
Gets the material strain in section at coordinate (x3,x2).
This file contains the abstract "Material object" declarations, which computes the strain...
Eigen::MatrixXd ComputeInitialStiffnessMatrix() const
Compute the initial stiffness matrix of the element using gauss-integration.
Eigen::MatrixXd GetStress() const
Gets the material/section (generalised) stress.
void SetDomain(std::map< unsigned int, std::shared_ptr< Node > > &nodes)
Sets the finite element dependance among objects.
Eigen::VectorXd ComputeInternalDynamicForces()
Compute the elastic, inertial, and viscous forces acting on the element.
Eigen::VectorXd GetVTKResponse(std::string response) const
Gets the element internal response in VTK format for Paraview display.
double ComputeEnergy()
Computes the element energy for a given deformation.
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.
lin2DTria3(const std::vector< unsigned int > nodes, std::unique_ptr< Material > &material, const double th, const std::string quadrature="GAUSS", const unsigned int nGauss=4)
Creates a lin2DTria3 in a finite element Mesh.
void UpdateState()
Update the material states in the element.
Eigen::VectorXd ComputeBodyForces(const std::shared_ptr< Load > &body, unsigned int k=0)
Compute the body forces acting on the element.
Eigen::MatrixXd ComputePMLMatrix()
Compute the PML history matrix using gauss-integration.
std::unique_ptr< QuadratureRule > QuadraturePoints
Coordinate of Gauss points.
Definition: lin2DTria3.hpp:215
Eigen::MatrixXd ComputeShapeFunctionMatrix(const double ri, const double si) const
Evaluates the shape function matrix at a given Gauss point.
Eigen::VectorXd ComputeDomainReductionForces(const std::shared_ptr< Load > &drm, unsigned int k)
Compute the domain reduction forces acting on the element.
Class for creating a 2D linearized three-node triangular element in a mesh.
Definition: lin2DTria3.hpp:55
Eigen::MatrixXd ComputeJacobianMatrix() const
Computes the jacobian of the transformation.
double t
Element thickness.
Definition: lin2DTria3.hpp:203
Eigen::MatrixXd GetStrainRate() const
Gets the material/section (generalised) strain-rate.
Eigen::MatrixXd ComputeMassMatrix()
Compute the lumped/consistent mass matrix of the element.
Virtual class for creating an element in a mesh.
Definition: Element.hpp:51
Eigen::MatrixXd ComputeStiffnessMatrix()
Compute the stiffness matrix of the element using gauss-integration.
void SetDamping(const std::shared_ptr< Damping > &damping)
Sets the damping model.
std::shared_ptr< Damping > theDamping
The Damping model.
Definition: lin2DTria3.hpp:206
Eigen::MatrixXd GetStressAt(double x3, double x2) const
Gets the material stress in section at coordinate (x3,x2).
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-...
Eigen::VectorXd ComputeStrainRate(const Eigen::MatrixXd &Bij) const
Update strain rate in the element.
std::vector< unsigned int > GetTotalDegreeOfFreedom() const
Gets the list of total-degree of freedom of this Element.
Eigen::VectorXd ComputeSurfaceForces(const std::shared_ptr< Load > &surface, unsigned int face)
Compute the surface forces acting on the element.
Eigen::VectorXd ComputeStrain(const Eigen::MatrixXd &Bij) const
Update strain in the element.
void InitialState()
Brings the material/section state to its initial state in this element.
Eigen::VectorXd ComputeInternalForces()
Compute the internal (elastic) forces acting on the element.
std::vector< std::shared_ptr< Node > > theNodes
The Element Nodes.
Definition: lin2DTria3.hpp:209
This file contains the abstract "Quadrature Rule" declarations to integrate quantities in the iso-par...
~lin2DTria3()
Destroys this lin2DTria3 object.
This file contains the "Element" object declarations, which defines an element in a finite element me...