Class for creating a 3D linearized two-node frame element in a mesh. More...
#include <lin3DFrame2.hpp>
Public Member Functions | |
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. More... | |
~lin3DFrame2 () | |
Destroys this lin3DFrame2 object. More... | |
void | CommitState () |
Save the material states in the element. More... | |
void | ReverseState () |
Reverse the material/section states to previous converged state in this element. More... | |
void | InitialState () |
Brings the material/section state to its initial state in this element. More... | |
void | UpdateState () |
Update the material states in the element. More... | |
void | SetDomain (std::map< unsigned int, std::shared_ptr< Node > > &nodes) |
Sets the finite element dependance among objects. More... | |
void | SetDamping (const std::shared_ptr< Damping > &damping) |
Sets the damping model. More... | |
std::vector< unsigned int > | GetTotalDegreeOfFreedom () const |
Gets the list of total-degree of freedom of this Element. More... | |
Eigen::MatrixXd | GetStrain () const |
Gets the material/section (generalised) strain. More... | |
Eigen::MatrixXd | GetStress () const |
Gets the material/section (generalised) stress. More... | |
Eigen::MatrixXd | GetStrainRate () const |
Gets the material/section (generalised) strain-rate. More... | |
Eigen::MatrixXd | GetStrainAt (double x3, double x2) const |
Gets the material strain in section at coordinate (x3,x2). More... | |
Eigen::MatrixXd | GetStressAt (double x3, double x2) const |
Gets the material stress in section at coordinate (x3,x2). More... | |
Eigen::VectorXd | GetVTKResponse (std::string response) const |
Gets the element internal response in VTK format for Paraview display. More... | |
double | ComputeEnergy () |
Computes the element energy for a given deformation. More... | |
Eigen::MatrixXd | ComputeMassMatrix () |
Compute the lumped/consistent mass matrix of the element. More... | |
Eigen::MatrixXd | ComputeStiffnessMatrix () |
Compute the stiffness matrix of the element using gauss-integration. More... | |
Eigen::MatrixXd | ComputeDampingMatrix () |
Compute the damping matrix of the element using gauss-integration. More... | |
Eigen::MatrixXd | ComputePMLMatrix () |
Compute the PML history matrix using gauss-integration. More... | |
Eigen::VectorXd | ComputeInternalForces () |
Compute the internal (elastic) forces acting on the element. More... | |
Eigen::VectorXd | ComputeInternalDynamicForces () |
Compute the elastic, inertial, and viscous forces acting on the element. More... | |
Eigen::VectorXd | ComputeSurfaceForces (const std::shared_ptr< Load > &surface, unsigned int face) |
Compute the surface forces acting on the element. More... | |
Eigen::VectorXd | ComputeBodyForces (const std::shared_ptr< Load > &body, unsigned int k=0) |
Compute the body forces acting on the element. More... | |
Eigen::VectorXd | ComputeDomainReductionForces (const std::shared_ptr< Load > &drm, unsigned int k) |
Compute the domain reduction forces acting on the element. More... | |
Public Member Functions inherited from Element | |
Element (std::string name, const std::vector< unsigned int > nodes, unsigned int ndofs, unsigned int VTKcell, unsigned int SVLcell) | |
Creates an Element in a finite element Mesh. More... | |
virtual | ~Element ()=0 |
Destroys this Element object. More... | |
std::string | GetName () const |
Gets the Element Name. More... | |
unsigned int | GetVTKCellType () const |
Gets the Element VTK cell type. More... | |
unsigned int | GetVTKGroupType () const |
Gets the Element VTK group type. More... | |
unsigned int | GetNumberOfNodes () const |
Returns the number of nodes in element. More... | |
unsigned int | GetNumberOfDegreeOfFreedom () const |
Returns total number of degree of freedom in the element. More... | |
const std::vector< unsigned int > & | GetNodes () const |
Returns the Node Connectivity Indexes. More... | |
bool | HasFixedNode (const std::vector< std::shared_ptr< Node > > &nodes) const |
Returns if the element has fixed nodes. More... | |
Private Member Functions | |
double | ComputeLength () const |
Compute the current length of the element. More... | |
Eigen::MatrixXd | ComputeLocalAxes () const |
Compute/update the local axis-1 of the element. More... | |
Eigen::VectorXd | ComputeStrain (const Eigen::MatrixXd &Bij) const |
Update strain in the element. More... | |
Eigen::VectorXd | ComputeStrainRate (const Eigen::MatrixXd &Bij) const |
Update strain rate in the element. More... | |
Eigen::MatrixXd | ComputeShapeFunctionMatrix (const double ri) const |
Evaluates the shape function matrix at a given Gauss point. More... | |
Eigen::MatrixXd | ComputeStrainDisplacementMatrix (const double ri) const |
Evaluates the strain-displacement matrix at a given Gauss point. More... | |
Eigen::MatrixXd | ComputeInitialStiffnessMatrix () const |
Compute the initial stiffness matrix of the element. More... | |
Private Attributes | |
double | L |
Length of the element. More... | |
bool | Formulation |
The element formulation. More... | |
double | Phiy |
Section Shear Factor axis-2. More... | |
double | Phiz |
Section Shear Factor axis-3. More... | |
std::shared_ptr< Damping > | theDamping |
The Damping model. More... | |
std::vector< std::shared_ptr< Node > > | theNodes |
The Element's Nodes. More... | |
std::vector< std::unique_ptr< Section > > | theSection |
The Element's Section. More... | |
std::unique_ptr< QuadratureRule > | QuadraturePoints |
Coordinate of Gauss points. More... | |
Class for creating a 3D linearized two-node frame element in a mesh.
lin3DFrame2::lin3DFrame2 | ( | const std::vector< unsigned int > | nodes, |
std::unique_ptr< Section > & | section, | ||
bool | formulation = false , |
||
const std::string | quadrature = "GAUSS" , |
||
unsigned int | nGauss = 3 |
||
) |
Creates a lin3DFrame2 in a finite element Mesh.
nodes | The Node connectivity array of this Element. |
section | Pointer to the Section that this Element is made out of. |
formulation | The frame formulation: "Bernoulli", "Timoshenko". |
quadrature | The integration rule to be employed. |
nGauss | Number of Gauss points for Element integration. |
lin3DFrame2::~lin3DFrame2 | ( | ) |
Destroys this lin3DFrame2 object.
|
virtual |
|
virtual |
Compute the body forces acting on the element.
body | Pointer to the Load object that contains this information. |
k | The time step at which the body load is evaluated. |
Implements Element.
|
virtual |
Compute the damping matrix of the element using gauss-integration.
Implements Element.
|
virtual |
Compute the domain reduction forces acting on the element.
drm | Pointer to the DRM Load object that contains this information. |
k | The time step at which the body load is evaluated. |
Implements Element.
|
virtual |
Computes the element energy for a given deformation.
Implements Element.
|
private |
Compute the initial stiffness matrix of the element.
|
virtual |
|
virtual |
Compute the internal (elastic) forces acting on the element.
Implements Element.
|
private |
Compute the current length of the element.
|
private |
Compute/update the local axis-1 of the element.
|
virtual |
Compute the lumped/consistent mass matrix of the element.
Implements Element.
|
virtual |
|
private |
Evaluates the shape function matrix at a given Gauss point.
ri | The Gauss coordinate in the r-axis. |
|
virtual |
Compute the stiffness matrix of the element using gauss-integration.
Implements Element.
|
private |
Update strain in the element.
Bij | The strain-displacement matrix. |
|
private |
Evaluates the strain-displacement matrix at a given Gauss point.
ri | The Gauss coordinate in the r-axis. |
|
private |
Update strain rate in the element.
Bij | The strain-displacement matrix. |
|
virtual |
Compute the surface forces acting on the element.
surface | Pointer to the Load object that contains this information. |
k | The time step at which the surface load is evaluated. |
Implements Element.
|
virtual |
Gets the material/section (generalised) strain.
Implements Element.
|
virtual |
Gets the material strain in section at coordinate (x3,x2).
x3 | Local coordinate along the x3-axis. |
x2 | Local coordinate along the x2-axis. |
Implements Element.
|
virtual |
Gets the material/section (generalised) strain-rate.
Implements Element.
|
virtual |
Gets the material/section (generalised) stress.
Implements Element.
|
virtual |
Gets the material stress in section at coordinate (x3,x2).
x3 | Local coordinate along the x3-axis. |
x2 | Local coordinate along the x2-axis. |
Implements Element.
|
virtual |
|
virtual |
|
virtual |
Brings the material/section state to its initial state in this element.
Implements Element.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
The element formulation.
|
private |
Length of the element.
|
private |
Section Shear Factor axis-2.
|
private |
Section Shear Factor axis-3.
|
private |
Coordinate of Gauss points.