www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ComputeEigenstrainBase Class Referenceabstract

ComputeEigenstrainBase is the base class for eigenstrain tensors. More...

#include <ComputeEigenstrainBase.h>

Inheritance diagram for ComputeEigenstrainBase:
[legend]

Public Member Functions

 ComputeEigenstrainBase (const InputParameters &parameters)
 

Protected Member Functions

virtual void initQpStatefulProperties ()
 
virtual void computeQpProperties ()
 
virtual void computeQpEigenstrain ()=0
 Compute the eigenstrain and store in _eigenstrain. More...
 
Real computeVolumetricStrainComponent (const Real volumetric_strain) const
 Helper function for models that compute the eigenstrain based on a volumetric strain. More...
 

Protected Attributes

std::string _base_name
 Base name prepended to material property name. More...
 
std::string _eigenstrain_name
 Material property name for the eigenstrain tensor. More...
 
bool _incremental_form
 Whether the eigenstrain model should compute the total or incremental eigenstrain. More...
 
MaterialProperty< RankTwoTensor > & _eigenstrain
 Stores the current total eigenstrain. More...
 
const MaterialProperty< RankTwoTensor > * _eigenstrain_old
 Stores the total eigenstrain in the previous step (only for incremental form) More...
 
bool & _step_zero
 Restartable data to check for the zeroth and first time steps for thermal calculations. More...
 

Detailed Description

ComputeEigenstrainBase is the base class for eigenstrain tensors.

Definition at line 17 of file ComputeEigenstrainBase.h.

Constructor & Destructor Documentation

ComputeEigenstrainBase::ComputeEigenstrainBase ( const InputParameters &  parameters)

Definition at line 30 of file ComputeEigenstrainBase.C.

31  : Material(parameters),
32  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
33  _eigenstrain_name(_base_name + getParam<std::string>("eigenstrain_name")),
34  _incremental_form(getParam<bool>("incremental_form")),
35  _eigenstrain(declareProperty<RankTwoTensor>(_eigenstrain_name)),
36  _eigenstrain_old(_incremental_form ? &getMaterialPropertyOld<RankTwoTensor>(_eigenstrain_name)
37  : NULL),
38  _step_zero(declareRestartableData<bool>("step_zero", true))
39 {
40 }
std::string _eigenstrain_name
Material property name for the eigenstrain tensor.
std::string _base_name
Base name prepended to material property name.
MaterialProperty< RankTwoTensor > & _eigenstrain
Stores the current total eigenstrain.
bool _incremental_form
Whether the eigenstrain model should compute the total or incremental eigenstrain.
bool & _step_zero
Restartable data to check for the zeroth and first time steps for thermal calculations.
const MaterialProperty< RankTwoTensor > * _eigenstrain_old
Stores the total eigenstrain in the previous step (only for incremental form)

Member Function Documentation

virtual void ComputeEigenstrainBase::computeQpEigenstrain ( )
protectedpure virtual

Compute the eigenstrain and store in _eigenstrain.

Implemented in ComputeVariableBaseEigenStrain, ComputeReducedOrderEigenstrain, ComputeEigenstrain, and ComputeEigenstrainFromInitialStress.

Referenced by computeQpProperties().

void ComputeEigenstrainBase::computeQpProperties ( )
protectedvirtual

Definition at line 50 of file ComputeEigenstrainBase.C.

51 {
52  if (_t_step >= 1)
53  _step_zero = false;
54 
55  // Skip the eigenstrain calculation in step zero because no solution is computed during
56  // the zeroth step, hence computing the eigenstrain in the zeroth step would result in
57  // an incorrect calculation of mechanical_strain, which is stateful.
58  if (!_step_zero)
60 }
virtual void computeQpEigenstrain()=0
Compute the eigenstrain and store in _eigenstrain.
bool & _step_zero
Restartable data to check for the zeroth and first time steps for thermal calculations.
Real ComputeEigenstrainBase::computeVolumetricStrainComponent ( const Real  volumetric_strain) const
protected

Helper function for models that compute the eigenstrain based on a volumetric strain.

This function computes the diagonal components of the eigenstrain tensor. param volumetric_strain The current volumetric strain to be applied

Definition at line 63 of file ComputeEigenstrainBase.C.

64 {
65 
66  Real volumetric_strain_comp = std::cbrt(volumetric_strain + 1.0) - 1.0;
67 
68  // Convert to logarithmic strain to compute strains to exactly recover
69  // volumetric strain in finite strain models
70  volumetric_strain_comp = std::log(1.0 + volumetric_strain_comp);
71 
72  return volumetric_strain_comp;
73 }
void ComputeEigenstrainBase::initQpStatefulProperties ( )
protectedvirtual

Reimplemented in ComputeReducedOrderEigenstrain.

Definition at line 43 of file ComputeEigenstrainBase.C.

44 {
46  _eigenstrain[_qp].zero();
47 }
MaterialProperty< RankTwoTensor > & _eigenstrain
Stores the current total eigenstrain.
bool _incremental_form
Whether the eigenstrain model should compute the total or incremental eigenstrain.

Member Data Documentation

std::string ComputeEigenstrainBase::_base_name
protected

Base name prepended to material property name.

Definition at line 30 of file ComputeEigenstrainBase.h.

Referenced by ComputeReducedOrderEigenstrain::ComputeReducedOrderEigenstrain().

MaterialProperty<RankTwoTensor>& ComputeEigenstrainBase::_eigenstrain
protected
std::string ComputeEigenstrainBase::_eigenstrain_name
protected

Material property name for the eigenstrain tensor.

Definition at line 33 of file ComputeEigenstrainBase.h.

const MaterialProperty<RankTwoTensor>* ComputeEigenstrainBase::_eigenstrain_old
protected

Stores the total eigenstrain in the previous step (only for incremental form)

Definition at line 42 of file ComputeEigenstrainBase.h.

bool ComputeEigenstrainBase::_incremental_form
protected

Whether the eigenstrain model should compute the total or incremental eigenstrain.

Definition at line 36 of file ComputeEigenstrainBase.h.

Referenced by ComputeEigenstrainFromInitialStress::ComputeEigenstrainFromInitialStress(), ComputeReducedOrderEigenstrain::ComputeReducedOrderEigenstrain(), and initQpStatefulProperties().

bool& ComputeEigenstrainBase::_step_zero
protected

Restartable data to check for the zeroth and first time steps for thermal calculations.

Definition at line 52 of file ComputeEigenstrainBase.h.

Referenced by computeQpProperties().


The documentation for this class was generated from the following files: