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"))
const ElemInfo * _current_elem_info
Pointer to the current element info.
virtual Real computeRightHandSideContribution() override
Computes the right hand side contribution for the given variable on the current element.
virtual Real computeMatrixContribution() override
Computes the system matrix contribution for the given variable on the current element.
Kernel that adds contributions from a external source term discretized using the finite volume method...
static InputParameters validParams()
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
const Elem * elem() const
static InputParameters validParams()
Finite volume kernel that contributes approximations of volumetric integral terms to the matrix and r...
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...
const Moose::Functor< Real > & _source_density
The functor for the source density.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Moose::Functor< Real > & _scale
Scale factor.
Real _current_elem_volume
The coordinate-specific element volume.
LinearFVSource(const InputParameters ¶ms)
Class constructor.
registerMooseObject("MooseApp", LinearFVSource)