Seismo-VLAB  1.3
An Open-Source Finite Element Software for Meso-Scale Simulations
Lin2DCircularTube Class Reference

Class for creating a solid circular tube section for 2D analysis with linear elastic material for a frame elements. More...

#include <Lin2DCircularTube.hpp>

Inheritance diagram for Lin2DCircularTube:
Collaboration diagram for Lin2DCircularTube:

Public Member Functions

 Lin2DCircularTube (double re, double ri, std::unique_ptr< Material > &material, double theta=0.0, unsigned int ip=10)
 Creates a Section to be specified at a Gauss-point in an Element. More...
 
 ~Lin2DCircularTube ()
 Destroys this Lin2DCircularTube object. More...
 
std::unique_ptr< SectionCopySection ()
 Clone the 'Lin2DCircularTube' section. More...
 
Eigen::VectorXd GetStrain ()
 Returns the resultant (generalised) strain vector over the section. More...
 
Eigen::VectorXd GetStress ()
 Returns the resultant (generalised) stress vector over the section. More...
 
Eigen::MatrixXd GetDensity ()
 Access the section density matrix. More...
 
Eigen::MatrixXd GetTangentStiffness ()
 Returns the section stiffness matrix. More...
 
Eigen::MatrixXd GetInitialTangentStiffness ()
 Returns the section initial stiffness matrix. More...
 
Eigen::VectorXd GetStrainAt (double x3=0, double x2=0)
 Returns the section strain at given position. More...
 
Eigen::VectorXd GetStressAt (double x3=0, double x2=0)
 Returns the section stress at given position. More...
 
void CommitState ()
 Perform converged section state update. More...
 
void ReverseState ()
 Reverse the section states to previous converged state. More...
 
void InitialState ()
 Brings the section states to its initial state. More...
 
void UpdateState (const Eigen::VectorXd strain, const unsigned int cond)
 Update the section state for this iteration. More...
 
- Public Member Functions inherited from Section
 Section (std::string name)
 Creates a Section to be specified at a Gauss-point in an Element. More...
 
virtual ~Section ()=0
 Destroys this Section object. More...
 
std::string GetName ()
 Gets Section name. More...
 

Protected Member Functions

double GetArea ()
 Computes the Angle area. More...
 
double GetShearArea2 ()
 Computes the Angle shear area. More...
 
double GetShearArea3 ()
 Computes the Angle shear area. More...
 
double GetInertiaAxis2 ()
 Computes the Angle flexural inertia. More...
 
double GetInertiaAxis3 ()
 Computes the Angle flexural inertia. More...
 
void ComputeSectionCenter (double &zcm, double &ycm)
 Gets the section centroid. More...
 
- Protected Member Functions inherited from Section
Eigen::MatrixXd GetLineRotationMatrix (double theta)
 Gets Local Axis Rotation for Line Section according to provided angle. More...
 
Eigen::MatrixXd GetAreaRotationMatrix (double Theta)
 Gets Local Axis Rotation for Area Section according to provided angle. More...
 
Eigen::MatrixXd GetLineTranslationMatrix (double h, double b, double zc, double yc, unsigned int ip)
 Gets centroid translation axis for Line Section according to insertion point. More...
 
void InsertionPointCoordinates (double &x3, double &x2, double h, double b, double zc, double yc, unsigned int ip)
 Gets the coordinate according to insertion point. More...
 
Eigen::MatrixXd ComputeLineLocalAxes (double h, double b, double zcm, double ycm, double angle, unsigned int ip)
 Transforms generalised strain/stresses from Element to Section local coordinate. More...
 

Private Attributes

double re
 External radius. More...
 
double ri
 Internal radius. More...
 
double Theta
 Rotation angle. More...
 
unsigned int InsertPoint
 Local axis coordinate. More...
 
Eigen::VectorXd Strain
 Generalized Strain vector. More...
 
std::unique_ptr< MaterialtheMaterial
 The section's material. More...
 

Detailed Description

Class for creating a solid circular tube section for 2D analysis with linear elastic material for a frame elements.

See also
Section.hpp

Constructor & Destructor Documentation

◆ Lin2DCircularTube()

Lin2DCircularTube::Lin2DCircularTube ( double  re,
double  ri,
std::unique_ptr< Material > &  material,
double  theta = 0.0,
unsigned int  ip = 10 
)

Creates a Section to be specified at a Gauss-point in an Element.

Parameters
reThe external radius.
materialThe Material that this Section is made out of.
thetaThe angle of rotation about x3-axis.
ipThe insertion point where the section axes are located.
Note
Details about insertion point and local axis rotation can be found at Insertion Point and Local Axes.
See also
Lin2DCircularTube::re, Lin2DCircularTube::ri, Lin2DCircularTube::theMaterial, Lin2DCircularTube::Theta, Lin2DCircularTube::InsertPoint.

◆ ~Lin2DCircularTube()

Lin2DCircularTube::~Lin2DCircularTube ( )

Destroys this Lin2DCircularTube object.

Member Function Documentation

◆ CommitState()

void Lin2DCircularTube::CommitState ( )
virtual

Perform converged section state update.

Note
This function sets the trail stress and strain as converged.

Implements Section.

◆ ComputeSectionCenter()

void Lin2DCircularTube::ComputeSectionCenter ( double &  zcm,
double &  ycm 
)
protected

Gets the section centroid.

Parameters
zcmThe centroid position along x3 axis.
ycmThe centroid position along x2 axis.
See also
The geometric properties can be revisited at Lin3DCircularTube.

◆ CopySection()

std::unique_ptr<Section> Lin2DCircularTube::CopySection ( )
virtual

Clone the 'Lin2DCircularTube' section.

Returns
A Section pointer to the derived class.
See also
Section.

Implements Section.

◆ GetArea()

double Lin2DCircularTube::GetArea ( )
protected

Computes the Angle area.

Returns
A constant with the cross-section area.
See also
The geometric properties can be revisited at Lin3DCircularTube.

◆ GetDensity()

Eigen::MatrixXd Lin2DCircularTube::GetDensity ( )
virtual

Access the section density matrix.

Returns
The section density matrix.

Implements Section.

◆ GetInertiaAxis2()

double Lin2DCircularTube::GetInertiaAxis2 ( )
protected

Computes the Angle flexural inertia.

Returns
A constant with the moment of inertia about axis x2.
See also
The geometric properties can be revisited at Lin3DCircularTube.

◆ GetInertiaAxis3()

double Lin2DCircularTube::GetInertiaAxis3 ( )
protected

Computes the Angle flexural inertia.

Returns
A constant with the moment of inertia about axis x3.
See also
The geometric properties can be revisited at Lin3DCircularTube.

◆ GetInitialTangentStiffness()

Eigen::MatrixXd Lin2DCircularTube::GetInitialTangentStiffness ( )
virtual

Returns the section initial stiffness matrix.

Returns
Matrix with the initial section tangent stiffness matrix.
Note
The initial tangent stiffness matrix is computed when the generalized strain vector is zero.

Implements Section.

◆ GetShearArea2()

double Lin2DCircularTube::GetShearArea2 ( )
protected

Computes the Angle shear area.

Returns
A constant with the shear area along axis x2.
See also
The geometric properties can be revisited at Lin3DCircularTube.

◆ GetShearArea3()

double Lin2DCircularTube::GetShearArea3 ( )
protected

Computes the Angle shear area.

Returns
A constant with the shear area along axis x3.
See also
The geometric properties can be revisited at Lin3DCircularTube.

◆ GetStrain()

Eigen::VectorXd Lin2DCircularTube::GetStrain ( )
virtual

Returns the resultant (generalised) strain vector over the section.

Returns
Vector with the resultant strain components.

Implements Section.

◆ GetStrainAt()

Eigen::VectorXd Lin2DCircularTube::GetStrainAt ( double  x3 = 0,
double  x2 = 0 
)
virtual

Returns the section strain at given position.

Parameters
x3Position on the x3-axis where the strain is evaluated.
x2Position on the x2-axis where the strain is evaluated.
Returns
Vector with the strain components at coordinate (x3,x2).

Implements Section.

◆ GetStress()

Eigen::VectorXd Lin2DCircularTube::GetStress ( )
virtual

Returns the resultant (generalised) stress vector over the section.

Returns
Vector with the resultant stress components.

Implements Section.

◆ GetStressAt()

Eigen::VectorXd Lin2DCircularTube::GetStressAt ( double  x3 = 0,
double  x2 = 0 
)
virtual

Returns the section stress at given position.

Parameters
x3Position on the x3-axis where the stress is evaluated.
x2Position on the x2-axis where the stress is evaluated.
Returns
Vector with the stress components at coordinate (x3,x2).

Implements Section.

◆ GetTangentStiffness()

Eigen::MatrixXd Lin2DCircularTube::GetTangentStiffness ( )
virtual

Returns the section stiffness matrix.

Returns
Matrix with the section consistent tangent stiffness matrix.

Implements Section.

◆ InitialState()

void Lin2DCircularTube::InitialState ( )
virtual

Brings the section states to its initial state.

Note
This function returns the material states to the beginning.

Implements Section.

◆ ReverseState()

void Lin2DCircularTube::ReverseState ( )
virtual

Reverse the section states to previous converged state.

Note
This function returns the material states to previous converged states.

Implements Section.

◆ UpdateState()

void Lin2DCircularTube::UpdateState ( const Eigen::VectorXd  strain,
const unsigned int  cond 
)
virtual

Update the section state for this iteration.

Parameters
strainVector with the strain components at this Gauss-point.
condIf the the elastic/plastic material components will be updated.
Note
This function computes the strain and tanget stiffness matrix once the trial strain converged.

Implements Section.

Member Data Documentation

◆ InsertPoint

unsigned int Lin2DCircularTube::InsertPoint
private

Local axis coordinate.

◆ re

double Lin2DCircularTube::re
private

External radius.

◆ ri

double Lin2DCircularTube::ri
private

Internal radius.

◆ Strain

Eigen::VectorXd Lin2DCircularTube::Strain
private

Generalized Strain vector.

◆ theMaterial

std::unique_ptr<Material> Lin2DCircularTube::theMaterial
private

The section's material.

◆ Theta

double Lin2DCircularTube::Theta
private

Rotation angle.