23 "This class duplicates the PowerLawCreepStressUpdate, except at a specificed time step and " 24 "the 1st iteration, at which time a high residual is computed, forcing an exception. " 25 "Optionally, a high or low initial guess can be used to test the check_rage limits, which " 26 "will also force an exception.");
27 params.
addParam<
int>(
"failure_step", 2,
"Time step for which to inject a high residual.");
28 params.
addParam<
Real>(
"initial_guess", 0.0,
"Initial guess for inner Newton solve.");
36 _failure_step(this->template getParam<
int>(
"failure_step")),
37 _initial_guess(this->template getParam<
Real>(
"initial_guess"))
47 if (_fe_problem.getNonlinearSystemBase(0).getCurrentNonlinearIterationNumber() ==
49 _t_step == _failure_step && _dt == 1.0)
60 if (_fe_problem.getNonlinearSystemBase(0).getCurrentNonlinearIterationNumber() ==
62 _t_step == _failure_step && _dt == 1.0)
virtual GenericReal< is_ad > computeResidual(const GenericReal< is_ad > &effective_trial_stress, const GenericReal< is_ad > &scalar) override
Compute the residual for a predicted value of the scalar.
Moose::GenericType< Real, is_ad > GenericReal
static InputParameters validParams()
This class uses the stress update material in a radial return isotropic creep model.
registerMooseObject("SolidMechanicsTestApp", PowerLawCreepTest)
virtual GenericReal< is_ad > computeDerivative(const GenericReal< is_ad > &effective_trial_stress, const GenericReal< is_ad > &scalar) override
Compute the derivative of the residual as a function of the scalar variable.
virtual GenericReal< is_ad > computeResidual(const GenericReal< is_ad > &effective_trial_stress, const GenericReal< is_ad > &scalar) override
Compute the residual for a predicted value of the scalar.
PowerLawCreepTestTempl(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
virtual GenericReal< is_ad > computeDerivative(const GenericReal< is_ad > &effective_trial_stress, const GenericReal< is_ad > &scalar) override
Compute the derivative of the residual as a function of the scalar variable.
bool _check_range
Whether to check to see whether iterative solution is within admissible range, and set within that ra...
void ErrorVector unsigned int