23 params.
addParam<MaterialPropertyName>(
"density", 1,
"The material property defining the density");
29 params.
set<
bool>(
"matrix_only") =
true;
34 :
Kernel(parameters), _density(getMaterialProperty<
Real>(
"density"))
37 mooseError(
"One of 'matrix_tags' or 'extra_matrix_tags' must be provided");
43 mooseError(
"Residual should not be calculated for the MassMatrix kernel");
static InputParameters validParams()
virtual Real computeQpJacobian() override
Compute this Kernel's contribution to the Jacobian at the current quadrature point.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
registerMooseObject("MooseApp", MassMatrix)
const MaterialProperty< Real > & _density
The density of the material.
const VariableTestValue & _test
the current test function
unsigned int _i
current index for the test function
MassMatrix(const InputParameters ¶meters)
unsigned int _j
current index for the shape function
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Computes a finite element mass matrix.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...
const VariablePhiValue & _phi
the current shape functions
static InputParameters validParams()
unsigned int _qp
The current quadrature point index.