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"))
60 _value = -std::numeric_limits<Real>::max();
64 _value = std::numeric_limits<Real>::max();
74 _value = std::numeric_limits<Real>::max();
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
registerMooseObject("MooseApp", TimeExtremeValue)
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
static InputParameters validParams()
bool isRecovering() const
Whether or not this is a "recover" calculation.
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.
A postprocessor for reporting the max/min value of another postprocessor over time.
ExtremeType
What type of extreme value we are going to compute.
Real & _time
The time the extreme value occurred.
OutputType
What output to return, the extreme value, or the time it occurred.
static InputParameters validParams()
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
TimeExtremeValue(const InputParameters ¶meters)
Class constructor.
virtual void execute() override
Execute method.
Real & _value
The extreme value.
const PostprocessorValue & _postprocessor
ExtremeType _type
The extreme value type ("max", "min", etc.)