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

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

#include <Lin2DRectangular.hpp>

Inheritance diagram for Lin2DRectangular:
Collaboration diagram for Lin2DRectangular:

Public Member Functions

 Lin2DRectangular (double h, double b, 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...
 
 ~Lin2DRectangular ()
 Destroys this Lin2DCircular object. More...
 
std::unique_ptr< SectionCopySection ()
 Clone the 'Lin2DRectangular' 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 h
 Height. More...
 
double b
 Width. 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 rectangular section for 2D analysis with linear elastic material for a frame elements.

See also
Section.hpp

Constructor & Destructor Documentation

◆ Lin2DRectangular()

Lin2DRectangular::Lin2DRectangular ( double  h,
double  b,
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
hThe total height of the section.
bThe total width of the section.
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
Lin2DRectangular::h, Lin2DRectangular::b, Lin2DRectangular::theMaterial, Lin2DRectangular::Theta, Lin2DRectangular::InsertPoint.

◆ ~Lin2DRectangular()

Lin2DRectangular::~Lin2DRectangular ( )

Destroys this Lin2DCircular object.

Member Function Documentation

◆ CommitState()

void Lin2DRectangular::CommitState ( )
virtual

Perform converged section state update.

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

Implements Section.

◆ ComputeSectionCenter()

void Lin2DRectangular::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 Lin3DRectangular.

◆ CopySection()

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

Clone the 'Lin2DRectangular' section.

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

Implements Section.

◆ GetArea()

double Lin2DRectangular::GetArea ( )
protected

Computes the Angle area.

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

◆ GetDensity()

Eigen::MatrixXd Lin2DRectangular::GetDensity ( )
virtual

Access the section density matrix.

Returns
The section density matrix.

Implements Section.

◆ GetInertiaAxis2()

double Lin2DRectangular::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 Lin3DRectangular.

◆ GetInertiaAxis3()

double Lin2DRectangular::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 Lin3DRectangular.

◆ GetInitialTangentStiffness()

Eigen::MatrixXd Lin2DRectangular::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 Lin2DRectangular::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 Lin3DRectangular.

◆ GetShearArea3()

double Lin2DRectangular::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 Lin3DRectangular.

◆ GetStrain()

Eigen::VectorXd Lin2DRectangular::GetStrain ( )
virtual

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

Returns
Vector with the resultant strain components.

Implements Section.

◆ GetStrainAt()

Eigen::VectorXd Lin2DRectangular::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 Lin2DRectangular::GetStress ( )
virtual

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

Returns
Vector with the resultant stress components.

Implements Section.

◆ GetStressAt()

Eigen::VectorXd Lin2DRectangular::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 Lin2DRectangular::GetTangentStiffness ( )
virtual

Returns the section stiffness matrix.

Returns
Matrix with the section consistent tangent stiffness matrix.

Implements Section.

◆ InitialState()

void Lin2DRectangular::InitialState ( )
virtual

Brings the section states to its initial state.

Note
This function returns the material states to the beginning.

Implements Section.

◆ ReverseState()

void Lin2DRectangular::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 Lin2DRectangular::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

◆ b

double Lin2DRectangular::b
private

Width.

◆ h

double Lin2DRectangular::h
private

Height.

◆ InsertPoint

unsigned int Lin2DRectangular::InsertPoint
private

Local axis coordinate.

◆ Strain

Eigen::VectorXd Lin2DRectangular::Strain
private

Generalized Strain vector.

◆ theMaterial

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

The section's material.

◆ Theta

double Lin2DRectangular::Theta
private

Rotation angle.