www.mooseframework.org
ComputeVolumetricDeformGrad.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<Material>();
14  params.addClassDescription(
15  "Computes volumetric deformation gradient and adjusts the total deformation gradient");
16  params.addRequiredParam<MaterialPropertyName>(
17  "pre_deform_grad_name", "Name of pre-adjusted deformation gradient variable");
18  params.addRequiredParam<MaterialPropertyName>("volumetric_deform_grad_name",
19  "Name of volumetric deformation gradient variable");
20  params.addRequiredParam<MaterialPropertyName>("post_deform_grad_name",
21  "Name of adjusted deformation gradient variable");
22  return params;
23 }
24 
26  : DerivativeMaterialInterface<Material>(parameters),
27  _pre_deform_grad(getMaterialProperty<RankTwoTensor>("pre_deform_grad_name")),
28  _volumetric_deform_grad(declareProperty<RankTwoTensor>(
29  getParam<MaterialPropertyName>("volumetric_deform_grad_name"))),
30  _post_deform_grad(
31  declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("post_deform_grad_name")))
32 {
33 }
34 
35 void
37 {
38  _volumetric_deform_grad[_qp].zero();
39  _volumetric_deform_grad[_qp].addIa(1.0);
40 
41  _post_deform_grad[_qp].zero();
42  _post_deform_grad[_qp].addIa(1.0);
43 }
44 
45 void
47 {
49  _post_deform_grad[_qp] = _volumetric_deform_grad[_qp].inverse() * _pre_deform_grad[_qp];
50 }
51 
52 void
54 {
55  _volumetric_deform_grad[_qp].zero();
56  _volumetric_deform_grad[_qp].addIa(1.0);
57 }
const MaterialProperty< RankTwoTensor > & _pre_deform_grad
MaterialProperty< RankTwoTensor > & _volumetric_deform_grad
MaterialProperty< RankTwoTensor > & _post_deform_grad
ComputeVolumetricDeformGrad(const InputParameters &parameters)
InputParameters validParams< ComputeVolumetricDeformGrad >()