www.mooseframework.org
ComputeCosseratLinearElasticStress.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<ComputeCosseratStressBase>();
14  params.addClassDescription(
15  "Compute Cosserat stress and couple-stress elasticity for small strains");
16  return params;
17 }
18 
20  const InputParameters & parameters)
21  : ComputeCosseratStressBase(parameters)
22 {
23 }
24 
25 void
27 {
28  if (hasBlockMaterialProperty<RankTwoTensor>(_base_name + "strain_increment"))
29  mooseError("This linear elastic stress calculation only works for small strains");
30 }
31 
32 void
34 {
36  addQpInitialStress(); // InitialStress Deprecation: remove this line
38 
39  _elastic_strain[_qp] = _mechanical_strain[_qp];
40 
43 }
MaterialProperty< RankFourTensor > & _Jacobian_mult
derivative of stress w.r.t. strain (_dstress_dstrain)
const MaterialProperty< RankFourTensor > & _elastic_flexural_rigidity_tensor
The Cosserat elastic flexural rigidity tensor.
ComputeCosseratLinearElasticStress(const InputParameters &parameters)
MaterialProperty< RankTwoTensor > & _stress
const MaterialProperty< RankTwoTensor > & _curvature
The Cosserat curvature strain.
MaterialProperty< RankFourTensor > & _Jacobian_mult_couple
derivative of couple-stress w.r.t. curvature
InputParameters validParams< ComputeCosseratStressBase >()
const MaterialProperty< RankTwoTensor > & _mechanical_strain
MaterialProperty< RankTwoTensor > & _stress_couple
the Cosserat couple-stress
ComputeCosseratStressBase is the base class for stress tensors.
void addQpInitialStress()
InitialStress Deprecation: remove this method.
const std::string _base_name
const MaterialProperty< RankFourTensor > & _elasticity_tensor
MaterialProperty< RankTwoTensor > & _elastic_strain
InputParameters validParams< ComputeCosseratLinearElasticStress >()