20 "Demonstrates the multiple ways that scalar values can be introduced "
21 "into finite volume kernels, e.g. (controllable) constants, functions, and "
23 params.
addParam<Real>(
"value", 1.0,
"Coefficient to multiply by the body force term");
24 params.
addParam<FunctionName>(
"function",
"1",
"A function that describes the body force");
26 "postprocessor", 1,
"A postprocessor whose value is multiplied by the body force");
33 _scale(getParam<Real>(
"value")),
34 _function(getFunction(
"function")),
35 _postprocessor(getPostprocessorValue(
"postprocessor"))
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", FVBodyForce)
This kernel implements a generic functional body force term: $ - c \cdof f$.
ADReal computeQpResidual() override
This is the primary function that must be implemented for flux kernel terms.
FVBodyForce(const InputParameters ¶meters)
const Function & _function
Optional function value.
const PostprocessorValue & _postprocessor
Optional Postprocessor value.
const Real & _scale
Scale factor.
static InputParameters validParams()
FVElemental is used for calculating residual contributions from volume integral terms of a PDE where ...
static InputParameters validParams()
const Elem *const & _current_elem
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero,...