www.mooseframework.org
ComputeDeformGradBasedStress.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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("Computes stress based on Lagrangian strain");
19  params.addRequiredParam<MaterialPropertyName>("deform_grad_name",
20  "Name of deformation gradient variable");
21  params.addRequiredParam<MaterialPropertyName>("elasticity_tensor_name",
22  "Name of elasticity tensor variable");
23  params.addRequiredParam<MaterialPropertyName>("stress_name", "Name of stress variable");
24  params.addRequiredParam<MaterialPropertyName>("jacobian_name", "Name of Jacobian variable");
25  return params;
26 }
27 
30  _deformation_gradient(getMaterialProperty<RankTwoTensor>("deform_grad_name")),
31  _elasticity_tensor(getMaterialProperty<RankFourTensor>("elasticity_tensor_name")),
32  _stress(declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("stress_name"))),
33  _Jacobian_mult(declareProperty<RankFourTensor>(getParam<MaterialPropertyName>("jacobian_name")))
34 {
35 }
36 
37 void
39 {
40  _stress[_qp].zero();
41 }
42 
43 void
45 {
47 }
48 
49 void
51 {
53  RankTwoTensor ee =
54  0.5 * (_deformation_gradient[_qp].transpose() * _deformation_gradient[_qp] - iden);
56 
60 }
ComputeDeformGradBasedStress(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
ComputeDeformGradBasedStress computes stress based on lagrangian strain definition.
static InputParameters validParams()
MaterialProperty< RankTwoTensor > & _stress
The stress tensor to be calculated.
const MaterialProperty< RankTwoTensor > & _deformation_gradient
MaterialProperty< RankFourTensor > & _Jacobian_mult
registerMooseObject("SolidMechanicsApp", ComputeDeformGradBasedStress)
void addClassDescription(const std::string &doc_string)
const MaterialProperty< RankFourTensor > & _elasticity_tensor