https://mooseframework.inl.gov
ComputeVolumetricDeformGrad.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
16 {
18  params.addClassDescription(
19  "Computes volumetric deformation gradient and adjusts the total deformation gradient");
20  params.addRequiredParam<MaterialPropertyName>(
21  "pre_deform_grad_name", "Name of pre-adjusted deformation gradient variable");
22  params.addRequiredParam<MaterialPropertyName>("volumetric_deform_grad_name",
23  "Name of volumetric deformation gradient variable");
24  params.addRequiredParam<MaterialPropertyName>("post_deform_grad_name",
25  "Name of adjusted deformation gradient variable");
26  return params;
27 }
28 
31  _pre_deform_grad(getMaterialProperty<RankTwoTensor>("pre_deform_grad_name")),
32  _volumetric_deform_grad(declareProperty<RankTwoTensor>(
33  getParam<MaterialPropertyName>("volumetric_deform_grad_name"))),
34  _post_deform_grad(
35  declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("post_deform_grad_name")))
36 {
37 }
38 
39 void
41 {
42  _post_deform_grad[_qp].setToIdentity();
43  _volumetric_deform_grad[_qp].setToIdentity();
44 }
45 
46 void
48 {
51 }
52 
53 void
55 {
56  _volumetric_deform_grad[_qp].setToIdentity();
57 }
registerMooseObject("SolidMechanicsApp", ComputeVolumetricDeformGrad)
const MaterialProperty< RankTwoTensor > & _pre_deform_grad
void addRequiredParam(const std::string &name, const std::string &doc_string)
MaterialProperty< RankTwoTensor > & _volumetric_deform_grad
static InputParameters validParams()
static InputParameters validParams()
MaterialProperty< RankTwoTensor > & _post_deform_grad
ComputeVolumetricDeformGrad(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
ComputeVolumetricDeformGrad is the class to compute volumetric deformation gradient Modification base...