https://mooseframework.inl.gov
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 
14 template <bool is_ad>
16 {
17 public:
19 
21 
22 protected:
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;
48 
53 };
54 
Moose::GenericType< Real, is_ad > GenericReal
virtual GenericReal< is_ad > initialGuess(const GenericReal< is_ad > &) override
Compute an initial guess for the value of the scalar.
static InputParameters validParams()
PowerLawCreepTestTempl< false > PowerLawCreepTest
This class uses the stress update material in a radial return isotropic creep model.
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.
virtual GenericReal< is_ad > maximumPermissibleValue(const GenericReal< is_ad > &) const override
Compute the maximum permissible value of the scalar.
PowerLawCreepTestTempl(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
PowerLawCreepTestTempl< true > ADPowerLawCreepTest
virtual GenericReal< is_ad > minimumPermissibleValue(const GenericReal< is_ad > &) const override
Compute the minimum permissible value of the scalar.
const InputParameters & parameters() const