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

Class for creating an uniaxial elastic gap material compatible with zero-length element. More...

#include <Elastic1DGap.hpp>

Inheritance diagram for Elastic1DGap:
Collaboration diagram for Elastic1DGap:

Public Member Functions

 Elastic1DGap (double E, double gap, bool behavior=false)
 Creates a Elastic1DGap material to be specified at a Gauss-point in an Element. More...
 
 ~Elastic1DGap ()
 Destroys this Elastic1DGap 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
 Returns linear 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=0)
 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
 The elastic moduli of this material. More...
 
double Gap
 The separation from which the material start reacting. More...
 
bool Behavior
 The material behavior (true: Tension, false: Compression) More...
 
double oldStrain
 Elastic Gap history variables: More...
 
double newStrain
 Commited Elastic Gap history variables: More...
 

Detailed Description

Class for creating an uniaxial elastic gap material compatible with zero-length element.

See also
Material.hpp

Constructor & Destructor Documentation

◆ Elastic1DGap()

Elastic1DGap::Elastic1DGap ( double  E,
double  gap,
bool  behavior = false 
)

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

Parameters
EThe elastic moduli of this material
gapThe separation from which the material start reacting
behaviorThe material behavior (true: Tension, false: Compression)
See also
Elastic1DGap::E, Elastic1DGap::gap.

◆ ~Elastic1DGap()

Elastic1DGap::~Elastic1DGap ( )

Destroys this Elastic1DGap material.

Member Function Documentation

◆ CommitState()

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

Implements Material.

◆ GetBulkModulus()

double Elastic1DGap::GetBulkModulus ( ) const
virtual

Access bulk modulus.

Returns
The material bulk's (K) modulus.

Implements Material.

◆ GetDamping()

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

Returns the material viscous damping.

Returns
Vector with the material damping components.

Implements Material.

◆ GetDensity()

double Elastic1DGap::GetDensity ( ) const
virtual

Access material density.

Returns
The material density value.

Implements Material.

◆ GetElasticityModulus()

double Elastic1DGap::GetElasticityModulus ( ) const
virtual

Access modulus of elasticity.

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

Implements Material.

◆ GetEnergy()

double Elastic1DGap::GetEnergy ( ) const
virtual

Access the material's energy at current strain.

Returns
Scalar with the material energy value.

Implements Material.

◆ GetInitialTangentStiffness()

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

Returns the Poisson's ratio.

Returns
The material poisson's ratio.

Implements Material.

◆ GetShearModulus()

double Elastic1DGap::GetShearModulus ( ) const
virtual

Returns linear shear modulus.

Returns
The material density value.

Implements Material.

◆ GetStrain()

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

Returns the material strain.

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

Implements Material.

◆ GetStrainRate()

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

Returns the material strain rate.

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

Implements Material.

◆ GetStress()

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

Returns the material stress.

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

Implements Material.

◆ GetTangentStiffness()

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

Returns the material stiffness.

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

Implements Material.

◆ GetTotalStress()

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

Computes the material total stress.

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

Implements Material.

◆ InitialState()

void Elastic1DGap::InitialState ( )
virtual

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

Note
This function returns the material states to the beginning.

Implements Material.

◆ ReverseState()

void Elastic1DGap::ReverseState ( )
virtual

Reverse the material states to previous converged state.

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

Implements Material.

◆ UpdateState()

void Elastic1DGap::UpdateState ( const Eigen::VectorXd  strain,
const unsigned int  cond = 0 
)
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

◆ Behavior

bool Elastic1DGap::Behavior
private

The material behavior (true: Tension, false: Compression)

◆ E

double Elastic1DGap::E
private

The elastic moduli of this material.

◆ Gap

double Elastic1DGap::Gap
private

The separation from which the material start reacting.

◆ newStrain

double Elastic1DGap::newStrain
private

Commited Elastic Gap history variables:

◆ oldStrain

double Elastic1DGap::oldStrain
private

Elastic Gap history variables: