19 params.
addClassDescription(
"Implements a source term proportional to the value of a coupled "
21 params.
addRequiredParam<MooseFunctorName>(
"v",
"The coupled functor which provides the force");
22 params.
addParam<Real>(
"coef", 1.0,
"Coefficent multiplier for the coupled force term.");
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", FVCoupledForce)
Simple class to demonstrate off diagonal Jacobian contributions.
ADReal computeQpResidual() override
This is the primary function that must be implemented for flux kernel terms.
static InputParameters validParams()
const Real _coef
An optional coefficient multiplying the coupled force.
FVCoupledForce(const InputParameters ¶meters)
const Moose::Functor< ADReal > & _v
The coupled functor applying the force.
FVElemental is used for calculating residual contributions from volume integral terms of a PDE where ...
static InputParameters validParams()
const Elem *const & _current_elem
Moose::ElemArg makeElemArg(const Elem *elem, bool correct_skewnewss=false) const
Helper method to create an elemental argument for a functor that includes whether to perform skewness...
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.