12 #include "metaphysicl/raw_type.h" 27 "Material property for which to find the extreme");
31 "Type of extreme value to return: 'max' " 32 "returns the maximum value and 'min' returns " 33 "the minimum value.");
36 "Determines the minimum or maximum of a material property over a volume.");
46 _mat_prop(getGenericMaterialProperty<
Real, is_ad>(
"mat_prop")),
73 for (_qp = 0; _qp < _qrule->n_points(); _qp++)
100 template <
bool is_ad>
115 template <
bool is_ad>
124 _value =
std::max(_value, pps._value);
127 _value =
std::min(_value, pps._value);
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
static InputParameters validParams()
auto max(const L &left, const R &right)
virtual void computeQpValue()
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
ExtremeType
Type of extreme value to compute.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void execute() override
Execute method.
ElementExtremeMaterialPropertyTempl(const InputParameters ¶meters)
virtual void threadJoin(const UserObject &y) override
Must override.
static InputParameters validParams()
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
auto min(const L &left, const R &right)
void ErrorVector unsigned int
Base class for user-specific data.
Determines the minimum or maximum of a material property over a volume.
registerMooseObject("MooseApp", ElementExtremeMaterialProperty)