16#include "libmesh/quadrature.h"
25 "\\frac{\\partial u_h}{\\partial t})$.");
26 params.
addParam<
bool>(
"lumping",
false,
"True for mass matrix lumping, false otherwise");
32 :
TimeKernel(parameters), _lumping(getParam<bool>(
"lumping"))
registerMooseObject("MooseApp", TimeDerivative)
const MooseArray< Real > & _coord
The scaling factor to convert from cartesian to another coordinate system (e.g rz,...
unsigned int _qp
The current quadrature point index.
const MooseArray< Real > & _JxW
The current quadrature point weight value.
unsigned int _j
current index for the shape function
unsigned int _i
current index for the test function
const QBase *const & _qrule
active quadrature rule
MooseVariable & _var
This is a regular kernel so we cast to a regular MooseVariable.
const VariablePhiValue & _phi
the current shape functions
const VariableTestValue & _test
the current test function
unsigned int number() const
Get variable number coming from libMesh.
virtual void precalculateJacobian()
Assembly & _assembly
Reference to this Kernel's assembly object.
virtual void computeJacobian()=0
Compute this object's contribution to the diagonal Jacobian entries.
DenseMatrix< Number > _local_ke
Holds local Jacobian entries as they are accumulated by this Kernel.
void accumulateTaggedLocalMatrix()
Local Jacobian blocks will be appended by adding the current local kernel Jacobian.
void prepareMatrixTag(Assembly &assembly, unsigned int ivar, unsigned int jvar)
Prepare data for computing element jacobian according to the active tags.
TimeDerivative(const InputParameters ¶meters)
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
virtual void computeJacobian() override
Compute this Kernel's contribution to the diagonal Jacobian entries.
virtual Real computeQpJacobian() override
Compute this Kernel's contribution to the Jacobian at the current quadrature point.
static InputParameters validParams()
All time kernels should inherit from this class.
const VariableValue & _u_dot
Time derivative of u.
const VariableValue & _du_dot_du
Derivative of u_dot with respect to u.
static InputParameters validParams()