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
 
virtual void initQpStatefulProperties () override
 

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
 
bool _volumetric_locking_correction
 
const Real & _current_elem_volume
 

Detailed Description

ComputeCosseratSmallStrain defines Cossserat strain tensor, assuming small strains.

Definition at line 15 of file ComputeCosseratSmallStrain.h.

Constructor & Destructor Documentation

ComputeCosseratSmallStrain::ComputeCosseratSmallStrain ( const InputParameters &  parameters)

Definition at line 25 of file ComputeCosseratSmallStrain.C.

26  : ComputeStrainBase(parameters),
27  _curvature(declareProperty<RankTwoTensor>("curvature")),
28  _nrots(coupledComponents("Cosserat_rotations")),
29  _wc(_nrots),
31 {
32  if (_nrots != 3)
33  mooseError("ComputeCosseratSmallStrain: This Material is only defined for 3-dimensional "
34  "simulations so 3 Cosserat rotation variables are needed");
35  for (unsigned i = 0; i < _nrots; ++i)
36  {
37  _wc[i] = &coupledValue("Cosserat_rotations", i);
38  _grad_wc[i] = &coupledGradient("Cosserat_rotations", i);
39  }
40 }
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

void ComputeCosseratSmallStrain::computeQpProperties ( )
overrideprotectedvirtual

Definition at line 43 of file ComputeCosseratSmallStrain.C.

44 {
45  RankTwoTensor strain((*_grad_disp[0])[_qp], (*_grad_disp[1])[_qp], (*_grad_disp[2])[_qp]);
46  RealVectorValue wc_vector((*_wc[0])[_qp], (*_wc[1])[_qp], (*_wc[2])[_qp]);
47 
48  for (unsigned i = 0; i < LIBMESH_DIM; ++i)
49  for (unsigned j = 0; j < LIBMESH_DIM; ++j)
50  for (unsigned k = 0; k < LIBMESH_DIM; ++k)
51  strain(i, j) += PermutationTensor::eps(i, j, k) * wc_vector(k);
52 
53  _total_strain[_qp] = strain;
54 
55  _mechanical_strain[_qp] = strain;
56  for (auto es : _eigenstrains)
57  _mechanical_strain[_qp] -= (*es)[_qp];
58 
59  _curvature[_qp] = RankTwoTensor((*_grad_wc[0])[_qp], (*_grad_wc[1])[_qp], (*_grad_wc[2])[_qp]);
60 }
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
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
MaterialProperty<RankTwoTensor>& ComputeCosseratSmallStrain::_curvature
protected

the Cosserat curvature strain: curvature_ij = nabla_j CosseratRotation_i

Definition at line 24 of file ComputeCosseratSmallStrain.h.

Referenced by computeQpProperties().

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
std::vector<const VariableGradient *> ComputeCosseratSmallStrain::_grad_wc
protected

Grad(Cosserat rotation)

Definition at line 33 of file ComputeCosseratSmallStrain.h.

Referenced by ComputeCosseratSmallStrain(), and computeQpProperties().

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_mechanical_strain
protectedinherited
unsigned int ComputeStrainBase::_ndisp
protectedinherited
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 27 of file ComputeCosseratSmallStrain.h.

Referenced by ComputeCosseratSmallStrain().

MaterialProperty<RankTwoTensor>& ComputeStrainBase::_total_strain
protectedinherited
bool ComputeStrainBase::_volumetric_locking_correction
protectedinherited
std::vector<const VariableValue *> ComputeCosseratSmallStrain::_wc
protected

The Cosserat rotations.

Definition at line 30 of file ComputeCosseratSmallStrain.h.

Referenced by ComputeCosseratSmallStrain(), and computeQpProperties().


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