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"))
ADReal computeQpResidual() override
This is the primary function that must be implemented for flux kernel terms.
registerMooseObject("MooseApp", FVBodyForce)
DualNumber< Real, DNDerivativeType, true > ADReal
FVBodyForce(const InputParameters ¶meters)
const PostprocessorValue & _postprocessor
Optional Postprocessor value.
FVElemental is used for calculating residual contributions from volume integral terms of a PDE where ...
const Elem *const & _current_elem
This kernel implements a generic functional body force term: $ - c f$.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
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...
const Real & _scale
Scale factor.
const Function & _function
Optional function value.