https://mooseframework.inl.gov
ComputeLagrangianCauchyCustomStress.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 
19  params.addClassDescription("Custom stress update providing the Cauchy stress");
20 
21  params.addRequiredParam<MaterialPropertyName>("custom_cauchy_stress",
22  "The name of the Cauchy stress.");
23  params.addRequiredParam<MaterialPropertyName>("custom_cauchy_jacobian",
24  "The name of the Cauchy stress Jacobian.");
25 
26  return params;
27 }
28 
30  const InputParameters & parameters)
31  : ComputeLagrangianStressCauchy(parameters),
32  _custom_stress(getMaterialProperty<RankTwoTensor>("custom_cauchy_stress")),
33  _custom_jacobian(getMaterialProperty<RankFourTensor>("custom_cauchy_jacobian"))
34 {
35 }
36 
37 void
39 {
42 }
ComputeLagrangianCauchyCustomStress(const InputParameters &parameters)
const MaterialProperty< RankTwoTensor > & _custom_stress
const MaterialProperty< RankFourTensor > & _custom_jacobian
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
MaterialProperty< RankTwoTensor > & _cauchy_stress
The Cauchy stress.
virtual void computeQpCauchyStress() override
Implement the copy.
Native interface for providing the Cauchy stress.
registerMooseObject("SolidMechanicsApp", ComputeLagrangianCauchyCustomStress)
Provide the Cauchy stress and jacobian directly.
void addClassDescription(const std::string &doc_string)
MaterialProperty< RankFourTensor > & _cauchy_jacobian
The derivative of the Cauchy stress wrt the increment in the spatial velocity gradient.