24 "If true, the functor to add is on the right hand side of the equation. By convention, all " 25 "terms are moved to the left hand side, so if true, a factor of -1 is applied.");
32 _functor(getFunctor<
ADReal>(
"functor")),
33 _sign(getParam<bool>(
"functor_on_rhs") ? -1.0 : 1.0)
virtual ADReal precomputeQpResidual() override
Called before forming the residual for an element.
static InputParameters validParams()
FunctorKernel(const InputParameters ¶meters)
DualNumber< Real, DNDerivativeType, true > ADReal
const Real _sign
Sign to apply to functor.
registerMooseObject("MooseApp", FunctorKernel)
const QBase *const & _qrule
active quadrature rule
Argument for requesting functor evaluation at a quadrature point location in an element.
const Moose::Functor< ADReal > & _functor
Functor to add.
static InputParameters validParams()
const Elem *const & _current_elem
Current element.
const MooseArray< Point > & _q_point
The physical location of the element's quadrature Points, indexed by _qp.
unsigned int _qp
The current quadrature point index.
Adds a term from a functor.