22 "vectorpostprocessor",
"The vectorpostprocessor from which a value is extracted");
24 "Name of the vector for which to report a value");
27 MooseEnum(
"max=0 min=1 sum=2 average=3",
"sum"),
28 "Type of reduction operation. Options are max, min, sum, and average.");
29 params.
addClassDescription(
"Takes a VectorPostprocessor and performs a reduction operation on it " 30 "(max, min, sum, average) and stores as postprocessor.");
38 _vpp_name(getParam<VectorPostprocessorName>(
"vectorpostprocessor")),
39 _vector_name(getParam<
std::string>(
"vector_name")),
40 _vpp_values(getVectorPostprocessorValue(
"vectorpostprocessor", _vector_name)),
41 _value_type(getParam<
MooseEnum>(
"value_type"))
53 r = std::numeric_limits<Real>::lowest();
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
auto max(const L &left, const R &right)
registerMooseObject("MooseApp", VectorPostprocessorReductionValue)
static InputParameters validParams()
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
const VectorPostprocessorValue & _vpp_values
VectorPostprocessorValue object to read a specified component from.
VectorPostprocessorReductionValue(const InputParameters ¶meters)
const MooseEnum _value_type
The type pf reduction operation performed on the vpp.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real