35 #ifndef _LIN3DFRAME2_HPP_ 36 #define _LIN3DFRAME2_HPP_ 41 #include <Eigen/Dense> 68 lin3DFrame2(
const std::vector<unsigned int> nodes, std::unique_ptr<Section> §ion,
bool formulation=
false,
const std::string quadrature=
"GAUSS",
unsigned int nGauss=3);
93 void SetDomain(std::map<
unsigned int, std::shared_ptr<Node> > &nodes);
98 void SetDamping(
const std::shared_ptr<Damping> &damping);
124 Eigen::MatrixXd
GetStrainAt(
double x3,
double x2)
const;
131 Eigen::MatrixXd
GetStressAt(
double x3,
double x2)
const;
193 Eigen::VectorXd
ComputeBodyForces(
const std::shared_ptr<Load> &body,
unsigned int k=0);
239 Eigen::VectorXd
ComputeStrain(
const Eigen::MatrixXd &Bij)
const;
Eigen::MatrixXd ComputeStrainDisplacementMatrix(const double ri) const
Evaluates the strain-displacement matrix at a given Gauss point.
Eigen::MatrixXd ComputeStiffnessMatrix()
Compute the stiffness matrix of the element using gauss-integration.
Eigen::MatrixXd ComputeShapeFunctionMatrix(const double ri) const
Evaluates the shape function matrix at a given Gauss point.
This file contains the "Load" class declarations, which defines a load that can act in a node or an e...
Class for creating a 3D linearized two-node frame element in a mesh.
Definition: lin3DFrame2.hpp:57
Eigen::VectorXd ComputeDomainReductionForces(const std::shared_ptr< Load > &drm, unsigned int k)
Compute the domain reduction forces acting on the element.
void SetDamping(const std::shared_ptr< Damping > &damping)
Sets the damping model.
void InitialState()
Brings the material/section state to its initial state in this element.
void CommitState()
Save the material states in the element.
This file contains the abstract "Section object" declarations, which computes the strain...
Eigen::MatrixXd GetStrain() const
Gets the material/section (generalised) strain.
double ComputeLength() const
Compute the current length of the element.
void UpdateState()
Update the material states in the element.
double Phiy
Section Shear Factor axis-2.
Definition: lin3DFrame2.hpp:211
Eigen::MatrixXd ComputeLocalAxes() const
Compute/update the local axis-1 of the element.
std::unique_ptr< QuadratureRule > QuadraturePoints
Coordinate of Gauss points.
Definition: lin3DFrame2.hpp:226
Eigen::MatrixXd ComputePMLMatrix()
Compute the PML history matrix using gauss-integration.
double Phiz
Section Shear Factor axis-3.
Definition: lin3DFrame2.hpp:214
~lin3DFrame2()
Destroys this lin3DFrame2 object.
Eigen::MatrixXd GetStrainAt(double x3, double x2) const
Gets the material strain in section at coordinate (x3,x2).
Eigen::MatrixXd GetStress() const
Gets the material/section (generalised) stress.
Eigen::VectorXd GetVTKResponse(std::string response) const
Gets the element internal response in VTK format for Paraview display.
Eigen::VectorXd ComputeStrain(const Eigen::MatrixXd &Bij) const
Update strain in the element.
lin3DFrame2(const std::vector< unsigned int > nodes, std::unique_ptr< Section > §ion, bool formulation=false, const std::string quadrature="GAUSS", unsigned int nGauss=3)
Creates a lin3DFrame2 in a finite element Mesh.
Eigen::VectorXd ComputeBodyForces(const std::shared_ptr< Load > &body, unsigned int k=0)
Compute the body forces acting on the element.
Eigen::MatrixXd ComputeInitialStiffnessMatrix() const
Compute the initial stiffness matrix of the element.
std::vector< unsigned int > GetTotalDegreeOfFreedom() const
Gets the list of total-degree of freedom of this Element.
Virtual class for creating an element in a mesh.
Definition: Element.hpp:51
Eigen::VectorXd ComputeInternalDynamicForces()
Compute the elastic, inertial, and viscous forces acting on the element.
Eigen::MatrixXd GetStressAt(double x3, double x2) const
Gets the material stress in section at coordinate (x3,x2).
Eigen::MatrixXd GetStrainRate() const
Gets the material/section (generalised) strain-rate.
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.
Eigen::MatrixXd ComputeMassMatrix()
Compute the lumped/consistent mass matrix of the element.
This file contains the "Damping object" declarations to update damping matrix to account for Caughey-...
void SetDomain(std::map< unsigned int, std::shared_ptr< Node > > &nodes)
Sets the finite element dependance among objects.
void ReverseState()
Reverse the material/section states to previous converged state in this element.
Eigen::VectorXd ComputeInternalForces()
Compute the internal (elastic) forces acting on the element.
bool Formulation
The element formulation.
Definition: lin3DFrame2.hpp:208
std::shared_ptr< Damping > theDamping
The Damping model.
Definition: lin3DFrame2.hpp:217
Eigen::VectorXd ComputeStrainRate(const Eigen::MatrixXd &Bij) const
Update strain rate in the element.
std::vector< std::shared_ptr< Node > > theNodes
The Element's Nodes.
Definition: lin3DFrame2.hpp:220
Eigen::VectorXd ComputeSurfaceForces(const std::shared_ptr< Load > &surface, unsigned int face)
Compute the surface forces acting on the element.
double L
Length of the element.
Definition: lin3DFrame2.hpp:205
double ComputeEnergy()
Computes the element energy for a given deformation.
This file contains the abstract "Quadrature Rule" declarations to integrate quantities in the iso-par...
std::vector< std::unique_ptr< Section > > theSection
The Element's Section.
Definition: lin3DFrame2.hpp:223
Eigen::MatrixXd ComputeDampingMatrix()
Compute the damping matrix of the element using gauss-integration.
This file contains the "Element" object declarations, which defines an element in a finite element me...