https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PowerLawCreepTest.h
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
10#pragma once
11
13
14template <bool is_ad>
16{
17public:
19
21
22protected:
23 virtual GenericReal<is_ad> computeResidual(const GenericReal<is_ad> & effective_trial_stress,
24 const GenericReal<is_ad> & scalar) override;
25 virtual GenericReal<is_ad> computeDerivative(const GenericReal<is_ad> & effective_trial_stress,
26 const GenericReal<is_ad> & scalar) override;
27
28 virtual GenericReal<is_ad>
29 maximumPermissibleValue(const GenericReal<is_ad> & /*effective_trial_stress*/) const override
30 {
31 return 4.0;
32 }
33
34 virtual GenericReal<is_ad>
35 minimumPermissibleValue(const GenericReal<is_ad> & /*effective_trial_stress*/) const override
36 {
37 return 0.0;
38 }
39
40 virtual GenericReal<is_ad>
41 initialGuess(const GenericReal<is_ad> & /*effective_trial_stress*/) override
42 {
43 return _initial_guess;
44 }
45
46 const int _failure_step;
47 const Real _initial_guess;
48
53};
54
Moose::GenericType< Real, is_ad > GenericReal
PowerLawCreepTestTempl< false > PowerLawCreepTest
PowerLawCreepTestTempl< true > ADPowerLawCreepTest
FEProblemBase & _fe_problem
const InputParameters & parameters() const
This class uses the stress update material in a radial return isotropic creep model.
static InputParameters validParams()
virtual GenericReal< is_ad > minimumPermissibleValue(const GenericReal< is_ad > &) const override
Compute the minimum permissible value of the scalar.
virtual GenericReal< is_ad > maximumPermissibleValue(const GenericReal< is_ad > &) const override
Compute the maximum permissible value of the scalar.
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 > initialGuess(const GenericReal< is_ad > &) override
Compute an initial guess for the value of the scalar.
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.
bool _check_range
Whether to check to see whether iterative solution is within admissible range, and set within that ra...
int & _t_step