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

ComputeAxisymmetricRZSmallStrain defines small strains in an Axisymmetric system. More...

#include <ComputeAxisymmetricRZSmallStrain.h>

Inheritance diagram for ComputeAxisymmetricRZSmallStrain:
[legend]

Public Member Functions

 ComputeAxisymmetricRZSmallStrain (const InputParameters &parameters)
 

Protected Member Functions

virtual void initialSetup () override
 
virtual Real computeOutOfPlaneStrain () override
 
virtual void computeProperties () override
 
virtual void displacementIntegrityCheck () override
 
virtual void initQpStatefulProperties () override
 

Protected Attributes

const unsigned int _out_of_plane_direction
 
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
 
const MaterialProperty< RankTwoTensor > * _global_strain
 
bool _volumetric_locking_correction
 
const Real & _current_elem_volume
 

Detailed Description

ComputeAxisymmetricRZSmallStrain defines small strains in an Axisymmetric system.

The COORD_TYPE in the Problem block must be set to RZ.

Definition at line 24 of file ComputeAxisymmetricRZSmallStrain.h.

Constructor & Destructor Documentation

◆ ComputeAxisymmetricRZSmallStrain()

ComputeAxisymmetricRZSmallStrain::ComputeAxisymmetricRZSmallStrain ( const InputParameters &  parameters)

Definition at line 25 of file ComputeAxisymmetricRZSmallStrain.C.

27  : Compute2DSmallStrain(parameters)
28 {
29 }
Compute2DSmallStrain(const InputParameters &parameters)

Member Function Documentation

◆ computeOutOfPlaneStrain()

Real ComputeAxisymmetricRZSmallStrain::computeOutOfPlaneStrain ( )
overrideprotectedvirtual

Implements Compute2DSmallStrain.

Definition at line 45 of file ComputeAxisymmetricRZSmallStrain.C.

46 {
47  if (!MooseUtils::absoluteFuzzyEqual(_q_point[_qp](0), 0.0))
48  return (*_disp[0])[_qp] / _q_point[_qp](0);
49  else
50  return 0.0;
51 }
std::vector< const VariableValue * > _disp

◆ computeProperties()

void Compute2DSmallStrain::computeProperties ( )
overrideprotectedvirtualinherited

Reimplemented from ComputeSmallStrain.

Definition at line 53 of file Compute2DSmallStrain.C.

54 {
55  Real volumetric_strain = 0.0;
56  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
57  {
59  {
60  case 0: // x
61  {
63  _total_strain[_qp](1, 1) = (*_grad_disp[1])[_qp](1);
64  _total_strain[_qp](1, 2) = ((*_grad_disp[1])[_qp](2) + (*_grad_disp[2])[_qp](1)) / 2.0;
65  _total_strain[_qp](2, 1) = _total_strain[_qp](1, 2); // force the symmetrical strain tensor
66  _total_strain[_qp](2, 2) = (*_grad_disp[2])[_qp](2);
67  break;
68  }
69  case 1: // y
70  {
71  _total_strain[_qp](0, 0) = (*_grad_disp[0])[_qp](0);
72  _total_strain[_qp](0, 2) = ((*_grad_disp[0])[_qp](2) + (*_grad_disp[2])[_qp](0)) / 2.0;
74  _total_strain[_qp](2, 0) = _total_strain[_qp](0, 2); // force the symmetrical strain tensor
75  _total_strain[_qp](2, 2) = (*_grad_disp[2])[_qp](2);
76  break;
77  }
78  default: // z
79  {
80  _total_strain[_qp](0, 0) = (*_grad_disp[0])[_qp](0);
81  _total_strain[_qp](1, 1) = (*_grad_disp[1])[_qp](1);
82  _total_strain[_qp](0, 1) = ((*_grad_disp[0])[_qp](1) + (*_grad_disp[1])[_qp](0)) / 2.0;
83  _total_strain[_qp](1, 0) = _total_strain[_qp](0, 1); // force the symmetrical strain tensor
85  break;
86  }
87  }
88 
90  volumetric_strain += _total_strain[_qp].trace() * _JxW[_qp] * _coord[_qp];
91  }
92 
94  volumetric_strain /= _current_elem_volume;
95 
96  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
97  {
99  {
100  Real trace = _total_strain[_qp].trace();
101  _total_strain[_qp](0, 0) += (volumetric_strain - trace) / 3.0;
102  _total_strain[_qp](1, 1) += (volumetric_strain - trace) / 3.0;
103  _total_strain[_qp](2, 2) += (volumetric_strain - trace) / 3.0;
104  }
105 
106  _mechanical_strain[_qp] = _total_strain[_qp];
107 
108  // Remove the eigenstrains
109  for (auto es : _eigenstrains)
110  _mechanical_strain[_qp] -= (*es)[_qp];
111  }
112 }
const Real & _current_elem_volume
const unsigned int _out_of_plane_direction
virtual Real computeOutOfPlaneStrain()=0
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _total_strain
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains
std::vector< const VariableGradient * > _grad_disp

◆ displacementIntegrityCheck()

void Compute2DSmallStrain::displacementIntegrityCheck ( )
overrideprotectedvirtualinherited

Reimplemented from ComputeStrainBase.

Definition at line 115 of file Compute2DSmallStrain.C.

Referenced by Compute2DSmallStrain::initialSetup().

116 {
117  if (_out_of_plane_direction != 2 && _ndisp != 3)
118  mooseError("For 2D simulations where the out-of-plane direction is x or y the number of "
119  "supplied displacements must be three.");
120  else if (_out_of_plane_direction == 2 && _ndisp != 2)
121  mooseError("For 2D simulations where the out-of-plane direction is z the number of supplied "
122  "displacements must be two.");
123 }
const unsigned int _out_of_plane_direction
unsigned int _ndisp
Coupled displacement variables.

◆ initialSetup()

void ComputeAxisymmetricRZSmallStrain::initialSetup ( )
overrideprotectedvirtual

Definition at line 32 of file ComputeAxisymmetricRZSmallStrain.C.

33 {
35 
36  if (getBlockCoordSystem() != Moose::COORD_RZ)
37  mooseError("The coordinate system must be set to RZ for Axisymmetric geometries.");
38 
39  if (_out_of_plane_direction != 2)
40  paramError("out_of_plane_direction",
41  "The out-of-plane direction for axisymmetric systems is currently restricted to z");
42 }
const unsigned int _out_of_plane_direction
void initialSetup() override

◆ initQpStatefulProperties()

void ComputeStrainBase::initQpStatefulProperties ( )
overrideprotectedvirtualinherited

Reimplemented in ComputeCosseratIncrementalSmallStrain, and ComputeIncrementalStrainBase.

Definition at line 96 of file ComputeStrainBase.C.

97 {
98  _mechanical_strain[_qp].zero();
99  _total_strain[_qp].zero();
100 }
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _total_strain

Member Data Documentation

◆ _base_name

std::string ComputeStrainBase::_base_name
protectedinherited

Definition at line 43 of file ComputeStrainBase.h.

Referenced by ComputeStrainBase::ComputeStrainBase().

◆ _current_elem_volume

const Real& ComputeStrainBase::_current_elem_volume
protectedinherited

◆ _disp

std::vector<const VariableValue *> ComputeStrainBase::_disp
protectedinherited

◆ _eigenstrain_names

std::vector<MaterialPropertyName> ComputeStrainBase::_eigenstrain_names
protectedinherited

◆ _eigenstrains

std::vector<const MaterialProperty<RankTwoTensor> *> ComputeStrainBase::_eigenstrains
protectedinherited

◆ _global_strain

const MaterialProperty<RankTwoTensor>* ComputeStrainBase::_global_strain
protectedinherited

◆ _grad_disp

std::vector<const VariableGradient *> ComputeStrainBase::_grad_disp
protectedinherited

◆ _mechanical_strain

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_mechanical_strain
protectedinherited

◆ _ndisp

unsigned int ComputeStrainBase::_ndisp
protectedinherited

◆ _out_of_plane_direction

const unsigned int Compute2DSmallStrain::_out_of_plane_direction
protectedinherited

◆ _total_strain

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_total_strain
protectedinherited

◆ _volumetric_locking_correction

bool ComputeStrainBase::_volumetric_locking_correction
protectedinherited

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