20 "Computes a 'mass matrix', which will just be a diagonal matrix for the finite volume "
21 "method, meant for use in preconditioning schemes which require one");
22 params.
addParam<MooseFunctorName>(
"density", 1.0,
"Optional density weighting functor");
28 params.
set<
bool>(
"matrix_only") =
true;
36 mooseError(
"One of 'matrix_tags' or 'extra_matrix_tags' must be provided");
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", FVMassMatrix)
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
FVElemental is used for calculating residual contributions from volume integral terms of a PDE where ...
static InputParameters validParams()
MooseVariableFV< Real > & _var
const Elem *const & _current_elem
Computes a 'mass matrix', which will just be a diagonal matrix for the finite volume method,...
virtual void computeResidual() override
Usually you should not override these functions - they have some tricky stuff in them that you don't ...
FVMassMatrix(const InputParameters ¶meters)
ADReal computeQpResidual() override
This is the primary function that must be implemented for flux kernel terms.
static InputParameters validParams()
const Moose::Functor< Real > & _density
Elemental weighting functor.
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...
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type.
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.