23 "The rank two material tensor name");
25 "property_name",
"Name of the material property computed by this model");
27 "VonMisesStress EffectiveStrain Hydrostatic L2norm VolumetricStrain FirstInvariant "
28 "SecondInvariant ThirdInvariant TriaxialityStress MaxShear StressIntensity MaxPrincipal "
29 "MidPrincipal MinPrincipal");
31 params.
addParam<
MooseEnum>(
"invariant", mixedInvariants,
"Type of invariant output");
42 _tensor(getGenericMaterialProperty<
RankTwoTensor, is_ad>(
"rank_two_tensor")),
43 _tensor_old(_stateful ? &getMaterialPropertyOld<
RankTwoTensor>(
"rank_two_tensor") : nullptr),
44 _property(declareGenericProperty<Real, is_ad>(
"property_name")),
45 _property_old(_stateful ? &getMaterialPropertyOld<Real>(
"property_name") : nullptr)
89 mooseAssert(_tensor_old,
"The selected invariant requires the input material to be stateful");
90 mooseAssert(_property_old,
91 "The selected invariant requires the output material to be stateful");
92 _property[_qp] = (*_property_old)[_qp] +
98 mooseError(
"Not a recognized invariant for RankTwoInvariant");
void mooseError(Args &&... args)
Moose::GenericType< RealVectorValue, is_ad > GenericRealVectorValue
registerMooseObject("SolidMechanicsApp", RankTwoInvariant)
static InputParameters validParams()
RankTwoInvariant computes invariant scalar values from Rank-2 tensors.
virtual void initQpStatefulProperties() override
static InputParameters validParams()
virtual void computeQpProperties() override
RankTwoInvariantTempl(const InputParameters ¶meters)