www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ComputeIncrementalStrainBase Class Reference

ComputeIncrementalStrainBase is the base class for strain tensors using incremental formulations. More...

#include <ComputeIncrementalStrainBase.h>

Inheritance diagram for ComputeIncrementalStrainBase:
[legend]

Public Member Functions

 ComputeIncrementalStrainBase (const InputParameters &parameters)
 
virtual ~ComputeIncrementalStrainBase ()
 

Protected Member Functions

virtual void initQpStatefulProperties () override
 
void subtractEigenstrainIncrementFromStrain (RankTwoTensor &strain)
 

Protected Attributes

std::vector< const VariableGradient * > _grad_disp_old
 
MaterialProperty< RankTwoTensor > & _strain_rate
 
MaterialProperty< RankTwoTensor > & _strain_increment
 
MaterialProperty< RankTwoTensor > & _rotation_increment
 
MaterialProperty< RankTwoTensor > & _deformation_gradient
 
const MaterialProperty< RankTwoTensor > & _mechanical_strain_old
 
const MaterialProperty< RankTwoTensor > & _total_strain_old
 
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains_old
 
unsigned int _ndisp
 Coupled displacement variables. More...
 
std::vector< const VariableValue * > _disp
 
std::vector< const VariableGradient * > _grad_disp
 
std::string _base_name
 
MaterialProperty< RankTwoTensor > & _mechanical_strain
 
MaterialProperty< RankTwoTensor > & _total_strain
 
std::vector< MaterialPropertyName > _eigenstrain_names
 
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains
 
bool _volumetric_locking_correction
 
const Real & _current_elem_volume
 

Detailed Description

ComputeIncrementalStrainBase is the base class for strain tensors using incremental formulations.

Definition at line 15 of file ComputeIncrementalStrainBase.h.

Constructor & Destructor Documentation

ComputeIncrementalStrainBase::ComputeIncrementalStrainBase ( const InputParameters &  parameters)

Definition at line 19 of file ComputeIncrementalStrainBase.C.

20  : ComputeStrainBase(parameters),
21  _grad_disp_old(3),
22  _strain_rate(declareProperty<RankTwoTensor>(_base_name + "strain_rate")),
23  _strain_increment(declareProperty<RankTwoTensor>(_base_name + "strain_increment")),
24  _rotation_increment(declareProperty<RankTwoTensor>(_base_name + "rotation_increment")),
25  _deformation_gradient(declareProperty<RankTwoTensor>(_base_name + "deformation_gradient")),
26  _mechanical_strain_old(getMaterialPropertyOld<RankTwoTensor>(_base_name + "mechanical_strain")),
27  _total_strain_old(getMaterialPropertyOld<RankTwoTensor>(_base_name + "total_strain")),
29 {
30  for (unsigned int i = 0; i < _eigenstrains_old.size(); ++i)
31  _eigenstrains_old[i] = &getMaterialPropertyOld<RankTwoTensor>(_eigenstrain_names[i]);
32 
33  // fetch coupled old displacement gradient, setting components for unused dimensions to zero
34  for (unsigned int i = 0; i < 3; ++i)
35  {
36  if (_fe_problem.isTransient() && i < _ndisp)
37  _grad_disp_old[i] = &coupledGradientOld("displacements", i);
38  else
39  _grad_disp_old[i] = &_grad_zero;
40  }
41 }
const MaterialProperty< RankTwoTensor > & _total_strain_old
MaterialProperty< RankTwoTensor > & _deformation_gradient
ComputeStrainBase(const InputParameters &parameters)
std::string _base_name
MaterialProperty< RankTwoTensor > & _strain_increment
MaterialProperty< RankTwoTensor > & _strain_rate
unsigned int _ndisp
Coupled displacement variables.
const MaterialProperty< RankTwoTensor > & _mechanical_strain_old
std::vector< const VariableGradient * > _grad_disp_old
MaterialProperty< RankTwoTensor > & _rotation_increment
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains_old
std::vector< MaterialPropertyName > _eigenstrain_names
virtual ComputeIncrementalStrainBase::~ComputeIncrementalStrainBase ( )
inlinevirtual

Definition at line 19 of file ComputeIncrementalStrainBase.h.

19 {}

Member Function Documentation

void ComputeIncrementalStrainBase::initQpStatefulProperties ( )
overrideprotectedvirtual

Reimplemented from ComputeStrainBase.

Reimplemented in ComputeCosseratIncrementalSmallStrain.

Definition at line 44 of file ComputeIncrementalStrainBase.C.

Referenced by ComputeCosseratIncrementalSmallStrain::initQpStatefulProperties(), and ~ComputeIncrementalStrainBase().

45 {
46  _mechanical_strain[_qp].zero();
47  _total_strain[_qp].zero();
48  _deformation_gradient[_qp].zero();
49  _deformation_gradient[_qp].addIa(1.0);
50 
51  // Note that for some models (small strain), the rotation increment is
52  // never updated. Because we always have stateful properties, this method
53  // always gets called, so we can rely on this getting set here without
54  // setting it again when properties get computed.
55  _rotation_increment[_qp].zero();
56  _rotation_increment[_qp].addIa(1.0);
57 }
MaterialProperty< RankTwoTensor > & _deformation_gradient
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _rotation_increment
MaterialProperty< RankTwoTensor > & _total_strain
void ComputeIncrementalStrainBase::subtractEigenstrainIncrementFromStrain ( RankTwoTensor &  strain)
protected

Definition at line 60 of file ComputeIncrementalStrainBase.C.

Referenced by ComputeIncrementalSmallStrain::computeProperties(), ComputeCosseratIncrementalSmallStrain::computeQpProperties(), ComputeFiniteStrain::computeQpStrain(), and ~ComputeIncrementalStrainBase().

61 {
62  for (unsigned int i = 0; i < _eigenstrains.size(); ++i)
63  {
64  strain -= (*_eigenstrains[i])[_qp];
65  strain += (*_eigenstrains_old[i])[_qp];
66  }
67 }
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains_old
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains

Member Data Documentation

std::string ComputeStrainBase::_base_name
protectedinherited

Definition at line 33 of file ComputeStrainBase.h.

Referenced by ComputeStrainBase::ComputeStrainBase().

const Real& ComputeStrainBase::_current_elem_volume
protectedinherited
MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_deformation_gradient
protected
std::vector<const VariableValue *> ComputeStrainBase::_disp
protectedinherited
std::vector<MaterialPropertyName> ComputeStrainBase::_eigenstrain_names
protectedinherited
std::vector<const MaterialProperty<RankTwoTensor> *> ComputeStrainBase::_eigenstrains
protectedinherited
std::vector<const MaterialProperty<RankTwoTensor> *> ComputeIncrementalStrainBase::_eigenstrains_old
protected
std::vector<const VariableGradient *> ComputeStrainBase::_grad_disp
protectedinherited
std::vector<const VariableGradient *> ComputeIncrementalStrainBase::_grad_disp_old
protected
MaterialProperty<RankTwoTensor>& ComputeStrainBase::_mechanical_strain
protectedinherited
const MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_mechanical_strain_old
protected
unsigned int ComputeStrainBase::_ndisp
protectedinherited
MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_rotation_increment
protected
MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_strain_increment
protected
MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_strain_rate
protected
MaterialProperty<RankTwoTensor>& ComputeStrainBase::_total_strain
protectedinherited
const MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_total_strain_old
protected
bool ComputeStrainBase::_volumetric_locking_correction
protectedinherited

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