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

Class for creating an uniaxial viscous material in for one-dimensional elements. More...

#include <Viscous1DLinear.hpp>

Inheritance diagram for Viscous1DLinear:
Collaboration diagram for Viscous1DLinear:

Public Member Functions

 Viscous1DLinear (const double eta)
 Creates a Viscous1DLinear material to be specified at a Gauss-point in an Element. More...
 
 ~Viscous1DLinear ()
 Destroys this Viscous1DLinear 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 eta
 The material viscosity. More...
 
Eigen::VectorXd StrainRate
 The material strain-rate vector. More...
 
Eigen::VectorXd Stress
 The material stress vector. More...
 
Eigen::MatrixXd Damping
 The material damping matrix. More...
 

Detailed Description

Class for creating an uniaxial viscous material in for one-dimensional elements.

See also
Material.hpp

Constructor & Destructor Documentation

◆ Viscous1DLinear()

Viscous1DLinear::Viscous1DLinear ( const double  eta)

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

Parameters
etaThe material viscous coefficient.
See also
Viscous1DLinear::eta.

◆ ~Viscous1DLinear()

Viscous1DLinear::~Viscous1DLinear ( )

Destroys this Viscous1DLinear material.

Member Function Documentation

◆ CommitState()

void Viscous1DLinear::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> Viscous1DLinear::CopyMaterial ( )
virtual
Returns
A Material pointer to the Viscous1DLinear derived class.
See also
Material, Viscous1DLinear.

Implements Material.

◆ GetBulkModulus()

double Viscous1DLinear::GetBulkModulus ( ) const
virtual

Access bulk modulus.

Returns
The material bulk's (K) modulus.

Implements Material.

◆ GetDamping()

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

Returns the material viscous damping.

Returns
Vector with the material damping components.
See also
Viscous1DLinear::Damping.

Implements Material.

◆ GetDensity()

double Viscous1DLinear::GetDensity ( ) const
virtual

Access material density.

Returns
The material density value.

Implements Material.

◆ GetElasticityModulus()

double Viscous1DLinear::GetElasticityModulus ( ) const
virtual

Access modulus of elasticity.

Returns
The material Elasticity's (E) modulus.

Implements Material.

◆ GetEnergy()

double Viscous1DLinear::GetEnergy ( ) const
virtual

Access the material's energy at current strain.

Returns
Scalar with the material energy value.

Implements Material.

◆ GetInitialTangentStiffness()

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

Returns the Poisson's ratio.

Returns
The material poisson's ratio.

Implements Material.

◆ GetShearModulus()

double Viscous1DLinear::GetShearModulus ( ) const
virtual

Access shear modulus.

Returns
The material shear's (G) modulus.

Implements Material.

◆ GetStrain()

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

Returns the material strain.

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

Implements Material.

◆ GetStrainRate()

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

Returns the material strain rate.

Returns
Vector with the material strain-rate components.
Note
The strain-rate can be revisited in Viscous1DLinear.
See also
Viscous1DLinear::StrainRate.

Implements Material.

◆ GetStress()

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

Returns the material stress.

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

Implements Material.

◆ GetTangentStiffness()

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

Returns the material stiffness.

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

Implements Material.

◆ GetTotalStress()

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

Computes the material total stress.

Returns
Vector with the material total stress components.
See also
Viscous1DLinear::Stress.

Implements Material.

◆ InitialState()

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

◆ Damping

Eigen::MatrixXd Viscous1DLinear::Damping
private

The material damping matrix.

◆ eta

double Viscous1DLinear::eta
private

The material viscosity.

◆ StrainRate

Eigen::VectorXd Viscous1DLinear::StrainRate
private

The material strain-rate vector.

◆ Stress

Eigen::VectorXd Viscous1DLinear::Stress
private

The material stress vector.