21 "Represents the matrix and right hand side contributions of a "
22 "solution-independent source term in a partial differential equation.");
23 params.
addParam<MooseFunctorName>(
"source_density", 1.0,
"The source density.");
25 "scaling_factor", 1.0,
"Coefficient to multiply the body force term with.");
31 _source_density(getFunctor<Real>(
"source_density")),
32 _scale(getFunctor<Real>(
"scaling_factor"))
registerMooseObject("MooseApp", LinearFVSource)
const Elem * elem() const
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...
Finite volume kernel that contributes approximations of volumetric integral terms to the matrix and r...
const ElemInfo * _current_elem_info
Pointer to the current element info.
static InputParameters validParams()
Real _current_elem_volume
The coordinate-specific element volume.
Kernel that adds contributions from a external source term discretized using the finite volume method...
virtual Real computeRightHandSideContribution() override
Computes the right hand side contribution for the given variable on the current element.
static InputParameters validParams()
const Moose::Functor< Real > & _source_density
The functor for the source density.
const Moose::Functor< Real > & _scale
Scale factor.
LinearFVSource(const InputParameters ¶ms)
Class constructor.
virtual Real computeMatrixContribution() override
Computes the system matrix contribution for the given variable on the current element.
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.