Class for creating a 2D finite kinematic two-node truss element in a mesh. More...
#include <kin2DTruss2.hpp>
Public Member Functions | |
kin2DTruss2 (const std::vector< unsigned int > nodes, std::unique_ptr< Material > &material, const double area) | |
Creates a kin2DTruss2 in a finite element Mesh. More... | |
~kin2DTruss2 () | |
Destroys this kin3DTruss2 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... | |
double | ComputeAxialForce () const |
Compute the axial force in element. More... | |
Eigen::VectorXd | ComputeLocalAxes () const |
Compute/update the local axis-1 of the element. More... | |
Eigen::MatrixXd | ComputeGeometricAxes () const |
Compute/update the geometric global axis of the element. More... | |
Eigen::MatrixXd | ComputeTransformationAxes () const |
Compute/update the tranformation matrix from local to global axis. More... | |
Eigen::VectorXd | ComputeStrain () const |
Update strain in the element: More... | |
Eigen::VectorXd | ComputeStrainRate () const |
Update strain rate in the element: More... | |
Eigen::MatrixXd | ComputeInitialStiffnessMatrix () const |
Compute the initial stiffness matrix of the element. More... | |
Private Attributes | |
double | Lo |
Length of the element undeformed configuration. More... | |
double | A |
Area of cross-section. More... | |
std::shared_ptr< Damping > | theDamping |
The Damping model. More... | |
std::vector< std::shared_ptr< Node > > | theNodes |
The Element's Nodes. More... | |
std::unique_ptr< Material > | theMaterial |
The Element's material. More... | |
Class for creating a 2D finite kinematic two-node truss element in a mesh.
kin2DTruss2::kin2DTruss2 | ( | const std::vector< unsigned int > | nodes, |
std::unique_ptr< Material > & | material, | ||
const double | area | ||
) |
Creates a kin2DTruss2 in a finite element Mesh.
nodes | The Node connectivity array of this Element. |
material | Pointer to the Material that this Element is made out of. |
area | The cross-section area of the kin2DTruss2 Element. |
kin2DTruss2::~kin2DTruss2 | ( | ) |
Destroys this kin3DTruss2 object.
|
virtual |
|
private |
Compute the axial force in element.
|
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/update the geometric global axis of the 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 |
|
virtual |
Compute the stiffness matrix of the element using gauss-integration.
Implements Element.
|
private |
Update strain in the element:
|
private |
Update strain rate in the element:
|
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.
|
private |
Compute/update the tranformation matrix from local to global axis.
|
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 |
Area of cross-section.
|
private |
Length of the element undeformed configuration.