www.mooseframework.org
ComputeCosseratStressBase.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 /****************************************************************/
7 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<ComputeStressBase>();
15  params.addClassDescription("Compute stress and couple stress in the Cosserat situation");
16  return params;
17 }
18 
19 ComputeCosseratStressBase::ComputeCosseratStressBase(const InputParameters & parameters)
20  : ComputeStressBase(parameters),
21  _curvature(getMaterialPropertyByName<RankTwoTensor>("curvature")),
22  _elastic_flexural_rigidity_tensor(
23  getMaterialPropertyByName<RankFourTensor>("elastic_flexural_rigidity_tensor")),
24  _stress_couple(declareProperty<RankTwoTensor>("couple_stress")),
25  _Jacobian_mult_couple(declareProperty<RankFourTensor>("couple_Jacobian_mult"))
26 {
27 }
28 
29 void
31 {
33  _stress_couple[_qp].zero();
34 }
ComputeStressBase is the base class for stress tensors.
InputParameters validParams< ComputeCosseratStressBase >()
MaterialProperty< RankTwoTensor > & _stress_couple
the Cosserat couple-stress
InputParameters validParams< ComputeStressBase >()
virtual void initQpStatefulProperties() override
ComputeCosseratStressBase(const InputParameters &parameters)