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

ComputeSmallStrain defines a strain tensor, assuming small strains. More...

#include <ComputeSmallStrain.h>

Inheritance diagram for ComputeSmallStrain:
[legend]

Public Member Functions

 ComputeSmallStrain (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeProperties () override
 
virtual void initQpStatefulProperties () override
 

Protected Attributes

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

ComputeSmallStrain defines a strain tensor, assuming small strains.

Definition at line 15 of file ComputeSmallStrain.h.

Constructor & Destructor Documentation

ComputeSmallStrain::ComputeSmallStrain ( const InputParameters &  parameters)

Definition at line 21 of file ComputeSmallStrain.C.

22  : ComputeStrainBase(parameters)
23 {
24 }
ComputeStrainBase(const InputParameters &parameters)

Member Function Documentation

void ComputeSmallStrain::computeProperties ( )
overrideprotectedvirtual

Reimplemented in Compute1DSmallStrain, Compute2DSmallStrain, and ComputeRSphericalSmallStrain.

Definition at line 27 of file ComputeSmallStrain.C.

28 {
29  Real volumetric_strain = 0.0;
30  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
31  {
32  // strain = (grad_disp + grad_disp^T)/2
33  RankTwoTensor grad_tensor((*_grad_disp[0])[_qp], (*_grad_disp[1])[_qp], (*_grad_disp[2])[_qp]);
34 
35  _total_strain[_qp] = (grad_tensor + grad_tensor.transpose()) / 2.0;
36 
38  volumetric_strain += _total_strain[_qp].trace() * _JxW[_qp] * _coord[_qp];
39  }
40 
42  volumetric_strain /= _current_elem_volume;
43 
44  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
45  {
47  {
48  Real trace = _total_strain[_qp].trace();
49  _total_strain[_qp](0, 0) += (volumetric_strain - trace) / 3.0;
50  _total_strain[_qp](1, 1) += (volumetric_strain - trace) / 3.0;
51  _total_strain[_qp](2, 2) += (volumetric_strain - trace) / 3.0;
52  }
53 
55 
56  // Remove the Eigen strain
57  for (auto es : _eigenstrains)
58  _mechanical_strain[_qp] -= (*es)[_qp];
59  }
60 }
const Real & _current_elem_volume
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _total_strain
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains
std::vector< const VariableGradient * > _grad_disp
void ComputeStrainBase::initQpStatefulProperties ( )
overrideprotectedvirtualinherited

Reimplemented in ComputeCosseratIncrementalSmallStrain, and ComputeIncrementalStrainBase.

Definition at line 78 of file ComputeStrainBase.C.

Referenced by ComputeStrainBase::~ComputeStrainBase().

79 {
80  _mechanical_strain[_qp].zero();
81  _total_strain[_qp].zero();
82 }
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _total_strain

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
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 VariableGradient *> ComputeStrainBase::_grad_disp
protectedinherited
MaterialProperty<RankTwoTensor>& ComputeStrainBase::_mechanical_strain
protectedinherited
unsigned int ComputeStrainBase::_ndisp
protectedinherited
MaterialProperty<RankTwoTensor>& ComputeStrainBase::_total_strain
protectedinherited
bool ComputeStrainBase::_volumetric_locking_correction
protectedinherited

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