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

ComputeCosseratSmallStrain defines Cossserat strain tensor, assuming small strains. More...

#include <ComputeCosseratSmallStrain.h>

Inheritance diagram for ComputeCosseratSmallStrain:
[legend]

Public Member Functions

 ComputeCosseratSmallStrain (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties () override
 
void initialSetup () override
 
virtual void initQpStatefulProperties () override
 
virtual void displacementIntegrityCheck ()
 

Protected Attributes

MaterialProperty< RankTwoTensor > & _curvature
 the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i More...
 
const unsigned int _nrots
 the number of Cosserat rotation variables supplied by the user (must be 3 in current implementation) More...
 
std::vector< const VariableValue * > _wc
 The Cosserat rotations. More...
 
std::vector< const VariableGradient * > _grad_wc
 Grad(Cosserat rotation) More...
 
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

ComputeCosseratSmallStrain defines Cossserat strain tensor, assuming small strains.

Definition at line 23 of file ComputeCosseratSmallStrain.h.

Constructor & Destructor Documentation

◆ ComputeCosseratSmallStrain()

ComputeCosseratSmallStrain::ComputeCosseratSmallStrain ( const InputParameters &  parameters)

Definition at line 29 of file ComputeCosseratSmallStrain.C.

30  : ComputeStrainBase(parameters),
31  _curvature(declareProperty<RankTwoTensor>("curvature")),
32  _nrots(coupledComponents("Cosserat_rotations")),
33  _wc(_nrots),
35 {
36  if (_nrots != 3)
37  mooseError("ComputeCosseratSmallStrain: This Material is only defined for 3-dimensional "
38  "simulations so 3 Cosserat rotation variables are needed");
39  for (unsigned i = 0; i < _nrots; ++i)
40  {
41  _wc[i] = &coupledValue("Cosserat_rotations", i);
42  _grad_wc[i] = &coupledGradient("Cosserat_rotations", i);
43  }
44 }
const unsigned int _nrots
the number of Cosserat rotation variables supplied by the user (must be 3 in current implementation) ...
ComputeStrainBase(const InputParameters &parameters)
MaterialProperty< RankTwoTensor > & _curvature
the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i
std::vector< const VariableValue * > _wc
The Cosserat rotations.
std::vector< const VariableGradient * > _grad_wc
Grad(Cosserat rotation)

Member Function Documentation

◆ computeQpProperties()

void ComputeCosseratSmallStrain::computeQpProperties ( )
overrideprotectedvirtual

Definition at line 47 of file ComputeCosseratSmallStrain.C.

48 {
49  RankTwoTensor strain((*_grad_disp[0])[_qp], (*_grad_disp[1])[_qp], (*_grad_disp[2])[_qp]);
50  RealVectorValue wc_vector((*_wc[0])[_qp], (*_wc[1])[_qp], (*_wc[2])[_qp]);
51 
52  for (unsigned i = 0; i < LIBMESH_DIM; ++i)
53  for (unsigned j = 0; j < LIBMESH_DIM; ++j)
54  for (unsigned k = 0; k < LIBMESH_DIM; ++k)
55  strain(i, j) += PermutationTensor::eps(i, j, k) * wc_vector(k);
56 
57  _total_strain[_qp] = strain;
58 
59  _mechanical_strain[_qp] = strain;
60  for (auto es : _eigenstrains)
61  _mechanical_strain[_qp] -= (*es)[_qp];
62 
63  _curvature[_qp] = RankTwoTensor((*_grad_wc[0])[_qp], (*_grad_wc[1])[_qp], (*_grad_wc[2])[_qp]);
64 }
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _curvature
the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i
std::vector< const VariableValue * > _wc
The Cosserat rotations.
std::vector< const VariableGradient * > _grad_wc
Grad(Cosserat rotation)
MaterialProperty< RankTwoTensor > & _total_strain
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains
std::vector< const VariableGradient * > _grad_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.

◆ initialSetup()

void ComputeStrainBase::initialSetup ( )
overrideprotectedinherited

Definition at line 67 of file ComputeStrainBase.C.

Referenced by ComputeIncrementalStrainBase::initialSetup(), and ComputeAxisymmetric1DSmallStrain::initialSetup().

68 {
70  // fetch coupled variables and gradients (as stateful properties if necessary)
71  for (unsigned int i = 0; i < _ndisp; ++i)
72  {
73  _disp[i] = &coupledValue("displacements", i);
74  _grad_disp[i] = &coupledGradient("displacements", i);
75  }
76 
77  // set unused dimensions to zero
78  for (unsigned i = _ndisp; i < 3; ++i)
79  {
80  _disp[i] = &_zero;
81  _grad_disp[i] = &_grad_zero;
82  }
83 }
virtual void displacementIntegrityCheck()
std::vector< const VariableValue * > _disp
unsigned int _ndisp
Coupled displacement variables.
std::vector< const VariableGradient * > _grad_disp

◆ 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

◆ _curvature

MaterialProperty<RankTwoTensor>& ComputeCosseratSmallStrain::_curvature
protected

the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i

Definition at line 32 of file ComputeCosseratSmallStrain.h.

Referenced by computeQpProperties().

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

◆ _grad_wc

std::vector<const VariableGradient *> ComputeCosseratSmallStrain::_grad_wc
protected

Grad(Cosserat rotation)

Definition at line 41 of file ComputeCosseratSmallStrain.h.

Referenced by ComputeCosseratSmallStrain(), and computeQpProperties().

◆ _mechanical_strain

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_mechanical_strain
protectedinherited

◆ _ndisp

unsigned int ComputeStrainBase::_ndisp
protectedinherited

◆ _nrots

const unsigned int ComputeCosseratSmallStrain::_nrots
protected

the number of Cosserat rotation variables supplied by the user (must be 3 in current implementation)

Definition at line 35 of file ComputeCosseratSmallStrain.h.

Referenced by ComputeCosseratSmallStrain().

◆ _total_strain

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_total_strain
protectedinherited

◆ _volumetric_locking_correction

bool ComputeStrainBase::_volumetric_locking_correction
protectedinherited

◆ _wc

std::vector<const VariableValue *> ComputeCosseratSmallStrain::_wc
protected

The Cosserat rotations.

Definition at line 38 of file ComputeCosseratSmallStrain.h.

Referenced by ComputeCosseratSmallStrain(), and computeQpProperties().


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