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

Class for creating an uniaxial isotropic linear elastic material for one-dimensional elements. More...

#include <Elastic1DLinear.hpp>

Inheritance diagram for Elastic1DLinear:
Collaboration diagram for Elastic1DLinear:

Public Member Functions

 Elastic1DLinear (const double E, const double nu=0, const double rho=0.0)
 Creates a Elastic1DLinear material to be specified at a Gauss-point in an Element. More...
 
 ~Elastic1DLinear ()
 Destroys this Elastic1DLinear material. More...
 
std::unique_ptr< MaterialCopyMaterial ()
 
double GetDensity () const
 Access material density. More...
 
double GetPoissonRatio () const
 Returns the Poisson's ratio. More...
 
double GetBulkModulus () const
 Access bulk modulus. More...
 
double GetShearModulus () const
 Access shear modulus. More...
 
double GetElasticityModulus () const
 Access modulus of elasticity. More...
 
double GetEnergy () const
 Access the material's energy at current strain. More...
 
Eigen::MatrixXd GetDamping () const
 Returns the material viscous damping. More...
 
Eigen::VectorXd GetStrain () const
 Returns the material strain. More...
 
Eigen::VectorXd GetStress () const
 Returns the material stress. More...
 
Eigen::VectorXd GetStrainRate () const
 Returns the material strain rate. More...
 
Eigen::VectorXd GetTotalStress () const
 Computes the material total stress. More...
 
Eigen::MatrixXd GetTangentStiffness () const
 Returns the material stiffness. More...
 
Eigen::MatrixXd GetInitialTangentStiffness () const
 Returns the initial material stiffness. More...
 
void CommitState ()
 Perform converged material state update. More...
 
void ReverseState ()
 Reverse the material states to previous converged state. More...
 
void InitialState ()
 Brings the material states to its initial state in the element. More...
 
void UpdateState (const Eigen::VectorXd strain, const unsigned int cond)
 Update the material state for this iteration. More...
 
- Public Member Functions inherited from Material
 Material (std::string name, bool model)
 Creates a Material to be specified at a Gauss-point in an Element. More...
 
virtual ~Material ()=0
 Destroys this Material object. More...
 
std::string GetName ()
 Gets material information. More...
 
bool IsViscous ()
 Gets material stress model. More...
 

Private Attributes

double E
 Modulus of elasticity. More...
 
double nu
 Poisson's ratio. More...
 
double Rho
 Material density. More...
 
Eigen::VectorXd Strain
 Strain vector. More...
 
Eigen::VectorXd newStrain
 Commited Strain vector. More...
 
Eigen::MatrixXd TangentStiffness
 Tangent stiffness matrix. More...
 

Detailed Description

Class for creating an uniaxial isotropic linear elastic material for one-dimensional elements.

See also
Material.hpp

Constructor & Destructor Documentation

◆ Elastic1DLinear()

Elastic1DLinear::Elastic1DLinear ( const double  E,
const double  nu = 0,
const double  rho = 0.0 
)

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

Parameters
EThe material elasticity modulus.
nuThe material Poisson's ratio.
rhoThe material density.
See also
Elastic1DLinear::E, Elastic1DLinear::nu, Elastic1DLinear::Rho.

◆ ~Elastic1DLinear()

Elastic1DLinear::~Elastic1DLinear ( )

Destroys this Elastic1DLinear material.

Member Function Documentation

◆ CommitState()

void Elastic1DLinear::CommitState ( )
virtual

Perform converged material state update.

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

Implements Material.

◆ CopyMaterial()

std::unique_ptr<Material> Elastic1DLinear::CopyMaterial ( )
virtual
Returns
A Material pointer to the Elastic1DLinear derived class.
See also
Material, Elastic1DLinear.

Implements Material.

◆ GetBulkModulus()

double Elastic1DLinear::GetBulkModulus ( ) const
virtual

Access bulk modulus.

Returns
The material bulk's (K) modulus.

Implements Material.

◆ GetDamping()

Eigen::MatrixXd Elastic1DLinear::GetDamping ( ) const
virtual

Returns the material viscous damping.

Returns
Vector with the material damping components.

Implements Material.

◆ GetDensity()

double Elastic1DLinear::GetDensity ( ) const
virtual

Access material density.

Returns
The material density value.
See also
Elastic1DLinear::Rho.

Implements Material.

◆ GetElasticityModulus()

double Elastic1DLinear::GetElasticityModulus ( ) const
virtual

Access modulus of elasticity.

Returns
The material Elasticity's (E) modulus.
See also
Elastic1DLinear::E.

Implements Material.

◆ GetEnergy()

double Elastic1DLinear::GetEnergy ( ) const
virtual

Access the material's energy at current strain.

Returns
Scalar with the material energy value.

Implements Material.

◆ GetInitialTangentStiffness()

Eigen::MatrixXd Elastic1DLinear::GetInitialTangentStiffness ( ) const
virtual

Returns the initial material stiffness.

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

Implements Material.

◆ GetPoissonRatio()

double Elastic1DLinear::GetPoissonRatio ( ) const
virtual

Returns the Poisson's ratio.

Returns
The material poisson's ratio.
See also
Elastic1DLinear::nu.

Implements Material.

◆ GetShearModulus()

double Elastic1DLinear::GetShearModulus ( ) const
virtual

Access shear modulus.

Returns
The material shear's (G) modulus.

Implements Material.

◆ GetStrain()

Eigen::VectorXd Elastic1DLinear::GetStrain ( ) const
virtual

Returns the material strain.

Returns
Vector with the material strain components.
Note
The strain can be revisited in Elastic1DLinear.
See also
Elastic1DLinear::Strain.

Implements Material.

◆ GetStrainRate()

Eigen::VectorXd Elastic1DLinear::GetStrainRate ( ) const
virtual

Returns the material strain rate.

Returns
Vector with the material strain-rate components.
Note
The stress-rate can be revisited in Elastic1DLinear.

Implements Material.

◆ GetStress()

Eigen::VectorXd Elastic1DLinear::GetStress ( ) const
virtual

Returns the material stress.

Returns
Vector with the material stress components.
Note
The stress can be revisited in Elastic1DLinear.
See also
Elastic1DLinear::Stress.

Implements Material.

◆ GetTangentStiffness()

Eigen::MatrixXd Elastic1DLinear::GetTangentStiffness ( ) const
virtual

Returns the material stiffness.

Returns
Matrix with the material tangent stiffness matrix.
Note
The stiffness matrix can be revisited in Elastic1DLinear.
See also
Elastic1DLinear::TangentStiffness.

Implements Material.

◆ GetTotalStress()

Eigen::VectorXd Elastic1DLinear::GetTotalStress ( ) const
virtual

Computes the material total stress.

Returns
Vector with the material total stress components.
Note
The damping can be revisited in Elastic1DLinear.
See also
Elastic1DLinear::Stress.

Implements Material.

◆ InitialState()

void Elastic1DLinear::InitialState ( )
virtual

Brings the material states to its initial state in the element.

Note
This funtion returns the material states to the beginning.

Implements Material.

◆ ReverseState()

void Elastic1DLinear::ReverseState ( )
virtual

Reverse the material states to previous converged state.

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

Implements Material.

◆ UpdateState()

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

Update the material 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 Material.

Member Data Documentation

◆ E

double Elastic1DLinear::E
private

Modulus of elasticity.

◆ newStrain

Eigen::VectorXd Elastic1DLinear::newStrain
private

Commited Strain vector.

◆ nu

double Elastic1DLinear::nu
private

Poisson's ratio.

◆ Rho

double Elastic1DLinear::Rho
private

Material density.

◆ Strain

Eigen::VectorXd Elastic1DLinear::Strain
private

Strain vector.

◆ TangentStiffness

Eigen::MatrixXd Elastic1DLinear::TangentStiffness
private

Tangent stiffness matrix.