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

ComputeCosseratIncrementalSmallStrain defines various incremental versions of the Cossserat strain tensor, assuming small strains. More...

#include <ComputeCosseratIncrementalSmallStrain.h>

Inheritance diagram for ComputeCosseratIncrementalSmallStrain:
[legend]

Public Member Functions

 ComputeCosseratIncrementalSmallStrain (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties ()
 
virtual void initQpStatefulProperties ()
 
void initialSetup () override
 
void subtractEigenstrainIncrementFromStrain (RankTwoTensor &strain)
 
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 VariableValue * > _wc_old
 The Cosserat rotations. More...
 
std::vector< const VariableGradient * > _grad_wc
 Grad(Cosserat rotation) More...
 
std::vector< const VariableGradient * > _grad_wc_old
 Grad(Cosserat rotation) More...
 
const MaterialProperty< RankTwoTensor > & _curvature_old
 the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i More...
 
MaterialProperty< RankTwoTensor > & _curvature_increment
 _curvature_increment = (curvature - _curvature_old) More...
 
std::vector< const VariableGradient * > _grad_disp_old
 
MaterialProperty< RankTwoTensor > & _strain_rate
 
MaterialProperty< RankTwoTensor > & _strain_increment
 
MaterialProperty< RankTwoTensor > & _rotation_increment
 
MaterialProperty< RankTwoTensor > & _deformation_gradient
 
const MaterialProperty< RankTwoTensor > & _mechanical_strain_old
 
const MaterialProperty< RankTwoTensor > & _total_strain_old
 
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains_old
 
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

ComputeCosseratIncrementalSmallStrain defines various incremental versions of the Cossserat strain tensor, assuming small strains.

Definition at line 24 of file ComputeCosseratIncrementalSmallStrain.h.

Constructor & Destructor Documentation

◆ ComputeCosseratIncrementalSmallStrain()

ComputeCosseratIncrementalSmallStrain::ComputeCosseratIncrementalSmallStrain ( const InputParameters &  parameters)

Definition at line 29 of file ComputeCosseratIncrementalSmallStrain.C.

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

Member Function Documentation

◆ computeQpProperties()

void ComputeCosseratIncrementalSmallStrain::computeQpProperties ( )
protectedvirtual

Definition at line 62 of file ComputeCosseratIncrementalSmallStrain.C.

63 {
64  RankTwoTensor strain((*_grad_disp[0])[_qp], (*_grad_disp[1])[_qp], (*_grad_disp[2])[_qp]);
65  RankTwoTensor strain_old(
66  (*_grad_disp_old[0])[_qp], (*_grad_disp_old[1])[_qp], (*_grad_disp_old[2])[_qp]);
67  RealVectorValue wc_vector((*_wc[0])[_qp], (*_wc[1])[_qp], (*_wc[2])[_qp]);
68  RealVectorValue wc_vector_old((*_wc_old[0])[_qp], (*_wc_old[1])[_qp], (*_wc_old[2])[_qp]);
69 
70  for (unsigned i = 0; i < LIBMESH_DIM; ++i)
71  for (unsigned j = 0; j < LIBMESH_DIM; ++j)
72  for (unsigned k = 0; k < LIBMESH_DIM; ++k)
73  {
74  strain(i, j) += PermutationTensor::eps(i, j, k) * wc_vector(k);
75  strain_old(i, j) += PermutationTensor::eps(i, j, k) * wc_vector_old(k);
76  }
77 
78  _deformation_gradient[_qp] = strain;
79  _deformation_gradient[_qp].addIa(1.0); // Gauss point deformation gradient
80 
81  const RankTwoTensor total_strain_increment = strain - strain_old;
82 
83  _strain_increment[_qp] = total_strain_increment;
84 
85  // Remove the eigenstrain increment
87 
88  _strain_rate[_qp] = _strain_increment[_qp] / _dt;
89 
90  _total_strain[_qp] = _total_strain_old[_qp] + total_strain_increment;
92 
93  RankTwoTensor curv((*_grad_wc[0])[_qp], (*_grad_wc[1])[_qp], (*_grad_wc[2])[_qp]);
94  RankTwoTensor curv_old((*_grad_wc_old[0])[_qp], (*_grad_wc_old[1])[_qp], (*_grad_wc_old[2])[_qp]);
95  _curvature_increment[_qp] = curv - curv_old;
97 }
const MaterialProperty< RankTwoTensor > & _total_strain_old
MaterialProperty< RankTwoTensor > & _deformation_gradient
MaterialProperty< RankTwoTensor > & _curvature_increment
_curvature_increment = (curvature - _curvature_old)
MaterialProperty< RankTwoTensor > & _curvature
the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i
MaterialProperty< RankTwoTensor > & _strain_increment
std::vector< const VariableValue * > _wc_old
The Cosserat rotations.
std::vector< const VariableGradient * > _grad_wc
Grad(Cosserat rotation)
MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _strain_rate
void subtractEigenstrainIncrementFromStrain(RankTwoTensor &strain)
const MaterialProperty< RankTwoTensor > & _mechanical_strain_old
std::vector< const VariableValue * > _wc
The Cosserat rotations.
std::vector< const VariableGradient * > _grad_disp_old
const MaterialProperty< RankTwoTensor > & _curvature_old
the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i
MaterialProperty< RankTwoTensor > & _total_strain
std::vector< const VariableGradient * > _grad_wc_old
Grad(Cosserat rotation)
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 ComputeIncrementalStrainBase::initialSetup ( )
overrideprotectedinherited

Definition at line 37 of file ComputeIncrementalStrainBase.C.

Referenced by ComputeAxisymmetric1DFiniteStrain::initialSetup(), ComputeAxisymmetricRZIncrementalStrain::initialSetup(), ComputeRSphericalFiniteStrain::initialSetup(), ComputeRSphericalIncrementalStrain::initialSetup(), and ComputeAxisymmetric1DIncrementalStrain::initialSetup().

38 {
40  for (unsigned int i = 0; i < 3; ++i)
41  {
42  if (_fe_problem.isTransient() && i < _ndisp)
43  _grad_disp_old[i] = &coupledGradientOld("displacements", i);
44  else
45  _grad_disp_old[i] = &_grad_zero;
46  }
47 }
unsigned int _ndisp
Coupled displacement variables.
void initialSetup() override
std::vector< const VariableGradient * > _grad_disp_old

◆ initQpStatefulProperties()

void ComputeCosseratIncrementalSmallStrain::initQpStatefulProperties ( )
protectedvirtual

Reimplemented from ComputeIncrementalStrainBase.

Definition at line 54 of file ComputeCosseratIncrementalSmallStrain.C.

55 {
57 
58  _curvature[_qp].zero();
59 }
MaterialProperty< RankTwoTensor > & _curvature
the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i
virtual void initQpStatefulProperties() override

◆ subtractEigenstrainIncrementFromStrain()

void ComputeIncrementalStrainBase::subtractEigenstrainIncrementFromStrain ( RankTwoTensor &  strain)
protectedinherited

Definition at line 66 of file ComputeIncrementalStrainBase.C.

Referenced by ComputeIncrementalSmallStrain::computeProperties(), computeQpProperties(), and ComputeFiniteStrain::computeQpStrain().

67 {
68  for (unsigned int i = 0; i < _eigenstrains.size(); ++i)
69  {
70  strain -= (*_eigenstrains[i])[_qp];
71  strain += (*_eigenstrains_old[i])[_qp];
72  }
73 }
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains_old
std::vector< const MaterialProperty< RankTwoTensor > * > _eigenstrains

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>& ComputeCosseratIncrementalSmallStrain::_curvature
protected

the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i

Definition at line 35 of file ComputeCosseratIncrementalSmallStrain.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().

◆ _curvature_increment

MaterialProperty<RankTwoTensor>& ComputeCosseratIncrementalSmallStrain::_curvature_increment
protected

_curvature_increment = (curvature - _curvature_old)

Definition at line 56 of file ComputeCosseratIncrementalSmallStrain.h.

Referenced by computeQpProperties().

◆ _curvature_old

const MaterialProperty<RankTwoTensor>& ComputeCosseratIncrementalSmallStrain::_curvature_old
protected

the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i

Definition at line 53 of file ComputeCosseratIncrementalSmallStrain.h.

Referenced by computeQpProperties().

◆ _deformation_gradient

MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_deformation_gradient
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

◆ _eigenstrains_old

std::vector<const MaterialProperty<RankTwoTensor> *> ComputeIncrementalStrainBase::_eigenstrains_old
protectedinherited

◆ _global_strain

const MaterialProperty<RankTwoTensor>* ComputeStrainBase::_global_strain
protectedinherited

◆ _grad_disp

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

◆ _grad_disp_old

std::vector<const VariableGradient *> ComputeIncrementalStrainBase::_grad_disp_old
protectedinherited

◆ _grad_wc

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

Grad(Cosserat rotation)

Definition at line 47 of file ComputeCosseratIncrementalSmallStrain.h.

Referenced by ComputeCosseratIncrementalSmallStrain(), and computeQpProperties().

◆ _grad_wc_old

std::vector<const VariableGradient *> ComputeCosseratIncrementalSmallStrain::_grad_wc_old
protected

Grad(Cosserat rotation)

Definition at line 50 of file ComputeCosseratIncrementalSmallStrain.h.

Referenced by ComputeCosseratIncrementalSmallStrain(), and computeQpProperties().

◆ _mechanical_strain

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_mechanical_strain
protectedinherited

◆ _mechanical_strain_old

const MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_mechanical_strain_old
protectedinherited

◆ _ndisp

unsigned int ComputeStrainBase::_ndisp
protectedinherited

◆ _nrots

const unsigned int ComputeCosseratIncrementalSmallStrain::_nrots
protected

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

Definition at line 38 of file ComputeCosseratIncrementalSmallStrain.h.

Referenced by ComputeCosseratIncrementalSmallStrain().

◆ _rotation_increment

MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_rotation_increment
protectedinherited

◆ _strain_increment

MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_strain_increment
protectedinherited

◆ _strain_rate

MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_strain_rate
protectedinherited

◆ _total_strain

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_total_strain
protectedinherited

◆ _total_strain_old

const MaterialProperty<RankTwoTensor>& ComputeIncrementalStrainBase::_total_strain_old
protectedinherited

◆ _volumetric_locking_correction

bool ComputeStrainBase::_volumetric_locking_correction
protectedinherited

◆ _wc

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

The Cosserat rotations.

Definition at line 41 of file ComputeCosseratIncrementalSmallStrain.h.

Referenced by ComputeCosseratIncrementalSmallStrain(), and computeQpProperties().

◆ _wc_old

std::vector<const VariableValue *> ComputeCosseratIncrementalSmallStrain::_wc_old
protected

The Cosserat rotations.

Definition at line 44 of file ComputeCosseratIncrementalSmallStrain.h.

Referenced by ComputeCosseratIncrementalSmallStrain(), and computeQpProperties().


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