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

ComputeAxisymmetric1DSmallStrain defines small strains in an Axisymmetric 1D problem. More...

#include <ComputeAxisymmetric1DSmallStrain.h>

Inheritance diagram for ComputeAxisymmetric1DSmallStrain:
[legend]

Public Member Functions

 ComputeAxisymmetric1DSmallStrain (const InputParameters &parameters)
 

Protected Member Functions

void initialSetup () override
 
Real computeStrainYY () override
 Computes the strain_yy for axisymmetric problems. More...
 
Real computeStrainZZ () override
 Computes the strain_zz for axisymmetric problems, where \( \epsilon_{\theta} = \frac{u_r}{r} \). More...
 
unsigned int getCurrentSubblockIndex () const
 gets its subblock index for current element More...
 
void computeProperties () override
 
virtual void initQpStatefulProperties () override
 
virtual void displacementIntegrityCheck ()
 

Protected Attributes

const SubblockIndexProvider_subblock_id_provider
 
const bool _has_out_of_plane_strain
 
const VariableValue & _out_of_plane_strain
 
const bool _has_scalar_out_of_plane_strain
 
unsigned int _nscalar_strains
 
std::vector< const VariableValue * > _scalar_out_of_plane_strain
 
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

ComputeAxisymmetric1DSmallStrain defines small strains in an Axisymmetric 1D problem.

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

Definition at line 25 of file ComputeAxisymmetric1DSmallStrain.h.

Constructor & Destructor Documentation

◆ ComputeAxisymmetric1DSmallStrain()

ComputeAxisymmetric1DSmallStrain::ComputeAxisymmetric1DSmallStrain ( const InputParameters &  parameters)

Definition at line 28 of file ComputeAxisymmetric1DSmallStrain.C.

30  : Compute1DSmallStrain(parameters),
31  _subblock_id_provider(isParamValid("subblock_index_provider")
32  ? &getUserObject<SubblockIndexProvider>("subblock_index_provider")
33  : nullptr),
34  _has_out_of_plane_strain(isParamValid("out_of_plane_strain")),
35  _out_of_plane_strain(_has_out_of_plane_strain ? coupledValue("out_of_plane_strain") : _zero),
36  _has_scalar_out_of_plane_strain(isParamValid("scalar_out_of_plane_strain")),
37  _nscalar_strains(coupledScalarComponents("scalar_out_of_plane_strain"))
38 {
40  mooseError("Must define only one of out_of_plane_strain or scalar_out_of_plane_strain");
41 
43  mooseError("Must define either out_of_plane_strain or scalar_out_of_plane_strain");
44 
46  {
48  for (unsigned int i = 0; i < _nscalar_strains; ++i)
49  _scalar_out_of_plane_strain[i] = &coupledScalarValue("scalar_out_of_plane_strain", i);
50  }
51 }
std::vector< const VariableValue * > _scalar_out_of_plane_strain
const SubblockIndexProvider * _subblock_id_provider
Compute1DSmallStrain(const InputParameters &parameters)

Member Function Documentation

◆ computeProperties()

void Compute1DSmallStrain::computeProperties ( )
overrideprotectedvirtualinherited

Reimplemented from ComputeSmallStrain.

Definition at line 29 of file Compute1DSmallStrain.C.

30 {
31  for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
32  {
33  _total_strain[_qp](0, 0) = (*_grad_disp[0])[_qp](0);
34  _total_strain[_qp](1, 1) = computeStrainYY();
35  _total_strain[_qp](2, 2) = computeStrainZZ();
36 
38 
39  // Remove the eigenstrain
40  for (auto es : _eigenstrains)
41  _mechanical_strain[_qp] -= (*es)[_qp];
42  }
43 }
virtual Real computeStrainYY()=0
Computes the strain_yy; as a virtual function, this function is overwritten for the specific geometri...
virtual Real computeStrainZZ()=0
Computes the strain_zz; as a virtual function, this function is overwritten for the specific geometri...
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _total_strain
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains
std::vector< const VariableGradient * > _grad_disp

◆ computeStrainYY()

Real ComputeAxisymmetric1DSmallStrain::computeStrainYY ( )
overrideprotectedvirtual

Computes the strain_yy for axisymmetric problems.

Implements Compute1DSmallStrain.

Definition at line 63 of file ComputeAxisymmetric1DSmallStrain.C.

64 {
67  else
68  return _out_of_plane_strain[_qp];
69 }
unsigned int getCurrentSubblockIndex() const
gets its subblock index for current element
std::vector< const VariableValue * > _scalar_out_of_plane_strain

◆ computeStrainZZ()

Real ComputeAxisymmetric1DSmallStrain::computeStrainZZ ( )
overrideprotectedvirtual

Computes the strain_zz for axisymmetric problems, where \( \epsilon_{\theta} = \frac{u_r}{r} \).

Implements Compute1DSmallStrain.

Definition at line 72 of file ComputeAxisymmetric1DSmallStrain.C.

73 {
74  if (!MooseUtils::absoluteFuzzyEqual(_q_point[_qp](0), 0.0))
75  return (*_disp[0])[_qp] / _q_point[_qp](0);
76  else
77  return 0.0;
78 }
std::vector< const VariableValue * > _disp

◆ displacementIntegrityCheck()

void ComputeStrainBase::displacementIntegrityCheck ( )
protectedvirtualinherited

Reimplemented in Compute2DFiniteStrain, Compute2DIncrementalStrain, and Compute2DSmallStrain.

Definition at line 86 of file ComputeStrainBase.C.

Referenced by ComputeStrainBase::initialSetup().

87 {
88  // Checking for consistency between mesh size and length of the provided displacements vector
89  if (_ndisp != _mesh.dimension())
90  paramError(
91  "displacements",
92  "The number of variables supplied in 'displacements' must match the mesh dimension.");
93 }
unsigned int _ndisp
Coupled displacement variables.

◆ getCurrentSubblockIndex()

unsigned int ComputeAxisymmetric1DSmallStrain::getCurrentSubblockIndex ( ) const
inlineprotected

gets its subblock index for current element

Definition at line 41 of file ComputeAxisymmetric1DSmallStrain.h.

Referenced by computeStrainYY().

42  {
43  return _subblock_id_provider ? _subblock_id_provider->getSubblockIndex(*_current_elem) : 0;
44  };
const SubblockIndexProvider * _subblock_id_provider
virtual unsigned int getSubblockIndex(const Elem &) const =0
The index of subblock this element is on.

◆ initialSetup()

void ComputeAxisymmetric1DSmallStrain::initialSetup ( )
overrideprotected

Definition at line 54 of file ComputeAxisymmetric1DSmallStrain.C.

55 {
57 
58  if (getBlockCoordSystem() != Moose::COORD_RZ)
59  mooseError("The coordinate system must be set to RZ for Axisymmetric geometries.");
60 }
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

◆ _has_out_of_plane_strain

const bool ComputeAxisymmetric1DSmallStrain::_has_out_of_plane_strain
protected

Definition at line 48 of file ComputeAxisymmetric1DSmallStrain.h.

Referenced by ComputeAxisymmetric1DSmallStrain().

◆ _has_scalar_out_of_plane_strain

const bool ComputeAxisymmetric1DSmallStrain::_has_scalar_out_of_plane_strain
protected

◆ _mechanical_strain

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_mechanical_strain
protectedinherited

◆ _ndisp

unsigned int ComputeStrainBase::_ndisp
protectedinherited

◆ _nscalar_strains

unsigned int ComputeAxisymmetric1DSmallStrain::_nscalar_strains
protected

Definition at line 52 of file ComputeAxisymmetric1DSmallStrain.h.

Referenced by ComputeAxisymmetric1DSmallStrain().

◆ _out_of_plane_strain

const VariableValue& ComputeAxisymmetric1DSmallStrain::_out_of_plane_strain
protected

Definition at line 49 of file ComputeAxisymmetric1DSmallStrain.h.

Referenced by computeStrainYY().

◆ _scalar_out_of_plane_strain

std::vector<const VariableValue *> ComputeAxisymmetric1DSmallStrain::_scalar_out_of_plane_strain
protected

◆ _subblock_id_provider

const SubblockIndexProvider* ComputeAxisymmetric1DSmallStrain::_subblock_id_provider
protected

Definition at line 44 of file ComputeAxisymmetric1DSmallStrain.h.

Referenced by getCurrentSubblockIndex().

◆ _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: