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

ComputePlaneSmallStrain defines small strains under generalized plane strain and plane stress assumptions, where the out of plane strain can be uniformly or non-uniformly zero or nonzero. More...

#include <ComputePlaneSmallStrain.h>

Inheritance diagram for ComputePlaneSmallStrain:
[legend]

Public Member Functions

 ComputePlaneSmallStrain (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeStrainZZ ()
 
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
 

Private Attributes

const bool _scalar_out_of_plane_strain_coupled
 
const VariableValue & _scalar_out_of_plane_strain
 
const bool _out_of_plane_strain_coupled
 
const VariableValue & _out_of_plane_strain
 

Detailed Description

ComputePlaneSmallStrain defines small strains under generalized plane strain and plane stress assumptions, where the out of plane strain can be uniformly or non-uniformly zero or nonzero.

Definition at line 17 of file ComputePlaneSmallStrain.h.

Constructor & Destructor Documentation

ComputePlaneSmallStrain::ComputePlaneSmallStrain ( const InputParameters &  parameters)

Definition at line 23 of file ComputePlaneSmallStrain.C.

24  : Compute2DSmallStrain(parameters),
25  _scalar_out_of_plane_strain_coupled(isCoupledScalar("scalar_out_of_plane_strain")),
27  ? coupledScalarValue("scalar_out_of_plane_strain")
28  : _zero),
29  _out_of_plane_strain_coupled(isCoupled("out_of_plane_strain")),
30  _out_of_plane_strain(_out_of_plane_strain_coupled ? coupledValue("out_of_plane_strain") : _zero)
31 {
33  mooseError("Must define only one of out_of_plane_strain or scalar_out_of_plane_strain");
34 }
const VariableValue & _out_of_plane_strain
Compute2DSmallStrain(const InputParameters &parameters)
const VariableValue & _scalar_out_of_plane_strain

Member Function Documentation

void Compute2DSmallStrain::computeProperties ( )
overrideprotectedvirtualinherited

Reimplemented from ComputeSmallStrain.

Definition at line 27 of file Compute2DSmallStrain.C.

28 {
29  Real volumetric_strain = 0.0;
30  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
31  {
32  _total_strain[_qp](0, 0) = (*_grad_disp[0])[_qp](0);
33  _total_strain[_qp](1, 1) = (*_grad_disp[1])[_qp](1);
34  _total_strain[_qp](0, 1) = ((*_grad_disp[0])[_qp](1) + (*_grad_disp[1])[_qp](0)) / 2.0;
35  _total_strain[_qp](1, 0) = _total_strain[_qp](0, 1); // force the symmetrical strain tensor
36  _total_strain[_qp](2, 2) = computeStrainZZ();
37 
39  volumetric_strain += _total_strain[_qp].trace() * _JxW[_qp] * _coord[_qp];
40  }
41 
43  volumetric_strain /= _current_elem_volume;
44 
45  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
46  {
48  {
49  Real trace = _total_strain[_qp].trace();
50  _total_strain[_qp](0, 0) += (volumetric_strain - trace) / 3.0;
51  _total_strain[_qp](1, 1) += (volumetric_strain - trace) / 3.0;
52  _total_strain[_qp](2, 2) += (volumetric_strain - trace) / 3.0;
53  }
54 
56 
57  // Remove the eigenstrains
58  for (auto es : _eigenstrains)
59  _mechanical_strain[_qp] -= (*es)[_qp];
60  }
61 }
const Real & _current_elem_volume
virtual Real computeStrainZZ()=0
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _total_strain
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains
std::vector< const VariableGradient * > _grad_disp
Real ComputePlaneSmallStrain::computeStrainZZ ( )
protectedvirtual

Implements Compute2DSmallStrain.

Definition at line 37 of file ComputePlaneSmallStrain.C.

38 {
41  else
42  return _out_of_plane_strain[_qp];
43 }
const VariableValue & _out_of_plane_strain
const VariableValue & _scalar_out_of_plane_strain
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
const VariableValue& ComputePlaneSmallStrain::_out_of_plane_strain
private

Definition at line 30 of file ComputePlaneSmallStrain.h.

Referenced by computeStrainZZ().

const bool ComputePlaneSmallStrain::_out_of_plane_strain_coupled
private

Definition at line 29 of file ComputePlaneSmallStrain.h.

Referenced by ComputePlaneSmallStrain().

const VariableValue& ComputePlaneSmallStrain::_scalar_out_of_plane_strain
private

Definition at line 27 of file ComputePlaneSmallStrain.h.

Referenced by computeStrainZZ().

const bool ComputePlaneSmallStrain::_scalar_out_of_plane_strain_coupled
private

Definition at line 26 of file ComputePlaneSmallStrain.h.

Referenced by ComputePlaneSmallStrain(), and computeStrainZZ().

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_total_strain
protectedinherited
bool ComputeStrainBase::_volumetric_locking_correction
protectedinherited

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