21 MooseEnum type_options(
"max=0 min=1 abs_max=2 abs_min=3",
"max");
24 MooseEnum output_type_options(
"extreme_value=0 time=1",
"extreme_value");
30 "Type of extreme value to return." 31 "'max' returns the maximum value." 32 "'min' returns the minimum value." 33 "'abs_max' returns the maximum absolute value." 34 "'abs_min' returns the minimum absolute value.");
37 "Output to return. 'extreme_value' returns the extreme_value. 'time' " 38 "returns the time at which the extreme_value occurred.");
40 "postprocessor",
"The name of the postprocessor used for reporting time extreme values");
42 "A postprocessor for reporting the extreme value of another postprocessor over time.");
49 _postprocessor(getPostprocessorValue(
"postprocessor")),
52 _value(declareRestartableData<
Real>(
"value")),
53 _time(declareRestartableData<
Real>(
"time"))
static InputParameters validParams()
registerMooseObject("MooseApp", TimeExtremeValue)
ExtremeType _type
The extreme value type ("max", "min", etc.)
Real & _time
The time the extreme value occurred.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
virtual void execute() override
Execute method.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
auto max(const L &left, const R &right)
ADRealEigenVector< T, D, asd > abs(const ADRealEigenVector< T, D, asd > &)
static InputParameters validParams()
TimeExtremeValue(const InputParameters ¶meters)
Class constructor.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
MooseApp & _app
The MOOSE application this is associated with.
ExtremeType
What type of extreme value we are going to compute.
const PostprocessorValue & _postprocessor
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
Real & _value
The extreme value.
bool isRecovering() const
Whether or not this is a "recover" calculation.
auto min(const L &left, const R &right)
A postprocessor for reporting the max/min value of another postprocessor over time.
OutputType
What output to return, the extreme value, or the time it occurred.