https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ComputeLagrangianObjectiveCustomStress.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
14
15template <bool symmetric>
18{
20 params.addRequiredParam<MaterialPropertyName>("custom_small_stress",
21 "The name of the small stress.");
22 params.addRequiredParam<MaterialPropertyName>("custom_small_jacobian",
23 "The name of the small stress Jacobian.");
24 return params;
25}
26
27template <bool symmetric>
29 const InputParameters & parameters)
31 _custom_stress(getMaterialProperty<StressType>("custom_small_stress")),
32 _custom_jacobian(getMaterialProperty<JacobianType>("custom_small_jacobian"))
33{
34}
35
36template <bool symmetric>
37void
39{
40 _small_stress[_qp] = RankTwoTensor(_custom_stress[_qp]);
41 _small_jacobian[_qp] = RankFourTensor(_custom_jacobian[_qp]);
42}
registerMooseObject("SolidMechanicsApp", ComputeLagrangianObjectiveCustomStress)
Wrapper for custom (external) material models that compute small stress (and small Jacobian)
ComputeLagrangianObjectiveCustomStressTmpl(const InputParameters &parameters)
typename MandelConversion< RankFourTensor, symmetric >::to JacobianType
virtual void computeQpSmallStress()
Method to implement to provide the small stress update.
typename MandelConversion< RankTwoTensor, symmetric >::to StressType
Provide the Cauchy stress via an objective integration of a small stress.
void addRequiredParam(const std::string &name, const std::string &doc_string)