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

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

#include <Lin2DUserDefined.hpp>

Inheritance diagram for Lin2DUserDefined:
Collaboration diagram for Lin2DUserDefined:

Public Member Functions

 Lin2DUserDefined (std::vector< double > properties, std::unique_ptr< Material > &material, double theta=0.0)
 Creates a Section to be specified at a Gauss-point in an Element. More...
 
 ~Lin2DUserDefined ()
 Destroys this Lin2DUserDefined object. More...
 
std::unique_ptr< SectionCopySection ()
 Clone the 'Lin2DUserDefined' 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...
 

Private Attributes

double A
 Area. More...
 
double As2
 Shear area 2-axis. More...
 
double I33
 Inertia 3-axis. More...
 
double Theta
 Rotation angle. More...
 
Eigen::VectorXd Strain
 Generalized Strain vector. More...
 
std::unique_ptr< MaterialtheMaterial
 The section's material. More...
 

Additional Inherited Members

- 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...
 

Detailed Description

Class for creating a general solid section for 3D analysis with linear elastic material for a frame elements.

See also
Section.hpp

Constructor & Destructor Documentation

◆ Lin2DUserDefined()

Lin2DUserDefined::Lin2DUserDefined ( std::vector< double >  properties,
std::unique_ptr< Material > &  material,
double  theta = 0.0 
)

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

Parameters
propertiesThe geometric properties of the section.
materialThe Material that this Section is made out of.
thetaThe angle of rotation about x3-axis.
Note
Details about local axis rotation can be found at Local Axes.
See also
Lin2DUserDefined::theMaterial, Lin2DUserDefined::Theta.

◆ ~Lin2DUserDefined()

Lin2DUserDefined::~Lin2DUserDefined ( )

Destroys this Lin2DUserDefined object.

Member Function Documentation

◆ CommitState()

void Lin2DUserDefined::CommitState ( )
virtual

Perform converged section state update.

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

Implements Section.

◆ CopySection()

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

Clone the 'Lin2DUserDefined' section.

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

Implements Section.

◆ GetDensity()

Eigen::MatrixXd Lin2DUserDefined::GetDensity ( )
virtual

Access the section density matrix.

Returns
The section density matrix.

Implements Section.

◆ GetInitialTangentStiffness()

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

◆ GetStrain()

Eigen::VectorXd Lin2DUserDefined::GetStrain ( )
virtual

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

Returns
Vector with the resultant strain components.

Implements Section.

◆ GetStrainAt()

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

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

Returns
Vector with the resultant stress components.

Implements Section.

◆ GetStressAt()

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

Returns the section stiffness matrix.

Returns
Matrix with the section consistent tangent stiffness matrix.

Implements Section.

◆ InitialState()

void Lin2DUserDefined::InitialState ( )
virtual

Brings the section states to its initial state.

Note
This function returns the material states to the beginning.

Implements Section.

◆ ReverseState()

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

◆ A

double Lin2DUserDefined::A
private

Area.

◆ As2

double Lin2DUserDefined::As2
private

Shear area 2-axis.

◆ I33

double Lin2DUserDefined::I33
private

Inertia 3-axis.

◆ Strain

Eigen::VectorXd Lin2DUserDefined::Strain
private

Generalized Strain vector.

◆ theMaterial

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

The section's material.

◆ Theta

double Lin2DUserDefined::Theta
private

Rotation angle.