21 "The name of the functor that this object operates on");
23 "prefactor", 1,
"The name of a pre-factor inside the integrand");
25 MooseEnum evaluation_type(getFunctorEvaluationTypeOptions(),
"QUADRATURE_POINT");
27 "evaluation_type", evaluation_type,
"How the functor should be evaluated.");
35 _functor(getFunctor<
GenericReal<is_ad>>(
"functor")),
36 _prefactor(getFunctor<
GenericReal<is_ad>>(
"prefactor")),
38 getParam<
MooseEnum>(
"evaluation_type").template getEnum<FunctorEvaluationType>())
46 switch (_evaluation_type)
48 case FunctorEvaluationType::QUADRATURE_POINT:
50 case FunctorEvaluationType::CELL_AVERAGE:
51 return _current_elem_volume * cellAverage();
ElementIntegralFunctorPostprocessorTempl(const InputParameters ¶meters)
virtual Real computeQpIntegral() override
This postprocessor computes a volume integral of the specified variable.
Moose::GenericType< Real, is_ad > GenericReal
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
virtual Real computeIntegral() override
registerMooseObject("MooseApp", ElementIntegralFunctorPostprocessor)
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...
A structure that is used to evaluate Moose functors logically at an element/cell center.
Argument for requesting functor evaluation at a quadrature point location in an element.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeIntegral()
virtual Real cellAverage()
This postprocessor computes an element integral of the specified functor.