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

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

#include <Lin3DUserDefined.hpp>

Inheritance diagram for Lin3DUserDefined:
Collaboration diagram for Lin3DUserDefined:

Public Member Functions

 Lin3DUserDefined (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...
 
 ~Lin3DUserDefined ()
 Destroys this Lin3DUserDefined object. More...
 
std::unique_ptr< SectionCopySection ()
 Clone the 'Lin3DUserDefined' 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 As3
 Shear area 3-axis. More...
 
double J
 Polar Inertia 1-axis. More...
 
double I22
 Inertia 2-axis. More...
 
double I33
 Inertia 3-axis. More...
 
double I23
 Product of Inertia. 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

◆ Lin3DUserDefined()

Lin3DUserDefined::Lin3DUserDefined ( 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
Lin3DUserDefined::theMaterial, Lin3DUserDefined::Theta.

◆ ~Lin3DUserDefined()

Lin3DUserDefined::~Lin3DUserDefined ( )

Destroys this Lin3DUserDefined object.

Member Function Documentation

◆ CommitState()

void Lin3DUserDefined::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> Lin3DUserDefined::CopySection ( )
virtual

Clone the 'Lin3DUserDefined' section.

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

Implements Section.

◆ GetDensity()

Eigen::MatrixXd Lin3DUserDefined::GetDensity ( )
virtual

Access the section density matrix.

Returns
The section density matrix.

Implements Section.

◆ GetInitialTangentStiffness()

Eigen::MatrixXd Lin3DUserDefined::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 Lin3DUserDefined::GetStrain ( )
virtual

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

Returns
Vector with the resultant strain components.

Implements Section.

◆ GetStrainAt()

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

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

Returns
Vector with the resultant stress components.

Implements Section.

◆ GetStressAt()

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

Returns the section stiffness matrix.

Returns
Matrix with the section consistent tangent stiffness matrix.

Implements Section.

◆ InitialState()

void Lin3DUserDefined::InitialState ( )
virtual

Brings the section states to its initial state.

Note
This function returns the material states to the beginning.

Implements Section.

◆ ReverseState()

void Lin3DUserDefined::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 Lin3DUserDefined::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 Lin3DUserDefined::A
private

Area.

◆ As2

double Lin3DUserDefined::As2
private

Shear area 2-axis.

◆ As3

double Lin3DUserDefined::As3
private

Shear area 3-axis.

◆ I22

double Lin3DUserDefined::I22
private

Inertia 2-axis.

◆ I23

double Lin3DUserDefined::I23
private

Product of Inertia.

◆ I33

double Lin3DUserDefined::I33
private

Inertia 3-axis.

◆ J

double Lin3DUserDefined::J
private

Polar Inertia 1-axis.

◆ Strain

Eigen::VectorXd Lin3DUserDefined::Strain
private

Generalized Strain vector.

◆ theMaterial

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

The section's material.

◆ Theta

double Lin3DUserDefined::Theta
private

Rotation angle.