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

Class for creating a biaxial isotropic linear elastic material in plane stress conditions for two-dimensional elements. More...

#include <Elastic2DPlaneStress.hpp>

Inheritance diagram for Elastic2DPlaneStress:
Collaboration diagram for Elastic2DPlaneStress:

Public Member Functions

 Elastic2DPlaneStress (const double E, const double nu, const double rho=0.0)
 Creates a Elastic2DPlaneStress material to be specified at a Gauss-point in an Element. More...
 
 ~Elastic2DPlaneStress ()
 Destroys this Elastic2DPlaneStress material. More...
 
std::unique_ptr< MaterialCopyMaterial ()
 Clone the selected material. More...
 
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 a biaxial isotropic linear elastic material in plane stress conditions for two-dimensional elements.

See also
Material.hpp

Constructor & Destructor Documentation

◆ Elastic2DPlaneStress()

Elastic2DPlaneStress::Elastic2DPlaneStress ( const double  E,
const double  nu,
const double  rho = 0.0 
)

Creates a Elastic2DPlaneStress 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
Elastic2DPlaneStress::E, Elastic2DPlaneStress::nu, Elastic2DPlaneStress::Rho.

◆ ~Elastic2DPlaneStress()

Elastic2DPlaneStress::~Elastic2DPlaneStress ( )

Destroys this Elastic2DPlaneStress material.

Member Function Documentation

◆ CommitState()

void Elastic2DPlaneStress::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> Elastic2DPlaneStress::CopyMaterial ( )
virtual

Clone the selected material.

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

Implements Material.

◆ GetBulkModulus()

double Elastic2DPlaneStress::GetBulkModulus ( ) const
virtual

Access bulk modulus.

Returns
The material bulk's (K) modulus.

Implements Material.

◆ GetDamping()

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

Returns the material viscous damping.

Returns
Vector with the material damping components.

Implements Material.

◆ GetDensity()

double Elastic2DPlaneStress::GetDensity ( ) const
virtual

Access material density.

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

Implements Material.

◆ GetElasticityModulus()

double Elastic2DPlaneStress::GetElasticityModulus ( ) const
virtual

Access modulus of elasticity.

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

Implements Material.

◆ GetEnergy()

double Elastic2DPlaneStress::GetEnergy ( ) const
virtual

Access the material's energy at current strain.

Returns
Scalar with the material energy value.

Implements Material.

◆ GetInitialTangentStiffness()

Eigen::MatrixXd Elastic2DPlaneStress::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 Elastic2DPlaneStress::GetPoissonRatio ( ) const
virtual

Returns the Poisson's ratio.

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

Implements Material.

◆ GetShearModulus()

double Elastic2DPlaneStress::GetShearModulus ( ) const
virtual

Access shear modulus.

Returns
The material shear's (G) modulus.

Implements Material.

◆ GetStrain()

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

Returns the material strain.

Returns
Vector with the material strain components.
Note
The strain can be revisited in Elastic2DPlaneStress.

Implements Material.

◆ GetStrainRate()

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

Returns the material strain rate.

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

Implements Material.

◆ GetStress()

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

Returns the material stress.

Returns
Vector with the material stress components.
Note
The stress can be revisited in Elastic2DPlaneStress.

Implements Material.

◆ GetTangentStiffness()

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

Returns the material stiffness.

Returns
Matrix with the material tangent stiffness matrix.
Note
The stiffness matrix can be revisited in Elastic2DPlaneStress.

Implements Material.

◆ GetTotalStress()

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

Computes the material total stress.

Returns
Vector with the material total stress components.

Implements Material.

◆ InitialState()

void Elastic2DPlaneStress::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 Elastic2DPlaneStress::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 Elastic2DPlaneStress::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 Elastic2DPlaneStress::E
private

Modulus of elasticity.

◆ newStrain

Eigen::VectorXd Elastic2DPlaneStress::newStrain
private

Commited Strain vector.

◆ nu

double Elastic2DPlaneStress::nu
private

Poisson's ratio.

◆ Rho

double Elastic2DPlaneStress::Rho
private

Material density.

◆ Strain

Eigen::VectorXd Elastic2DPlaneStress::Strain
private

Strain vector.

◆ TangentStiffness

Eigen::MatrixXd Elastic2DPlaneStress::TangentStiffness
private

Tangent stiffness matrix.