19 "Time derivative Array Kernel that acts on a coupled variable. Weak form: "
20 "$(\\psi_i, \\frac{\\partial v_h}{\\partial t})$. The coupled variable and "
21 "the variable must have the same dimensionality");
28 _v_dot(coupledArrayDot(
"v")),
29 _dv_dot(coupledArrayDotDu(
"v")),
38 "The variable and coupled variable have unequal sizes:\n variable size : " +
40 " coupled variable size: " + std::to_string(
_v_dot.size()));
48 return RealEigenVector::Zero(
_var.
count());
56 RealEigenVector::Ones(jvar.
count()).asDiagonal();
registerMooseObject("MooseApp", ArrayCoupledTimeDerivative)
This calculates the time derivative for a coupled variable.
const ArrayVariableValue & _v_dot
The first temporal derivative of the coupled variable.
virtual void computeQpResidual(RealEigenVector &residual) override
Compute this Kernel's contribution to the residual at the current quadrature point,...
virtual RealEigenMatrix computeQpOffDiagJacobian(const MooseVariableFEBase &jvar) override
This is the virtual that derived classes should override for computing a full Jacobian component.
ArrayCoupledTimeDerivative(const InputParameters ¶meters)
const unsigned int _v_var
The number of the coupled variable.
static InputParameters validParams()
virtual RealEigenVector computeQpJacobian() override
Compute this Kernel's contribution to the diagonal Jacobian at the current quadrature point.
const VariableValue & _dv_dot
The Jacobian of the time derivative of the coupled variable with respect to the coupled variable.
const ArrayVariableTestValue & _test
the current test function
static InputParameters validParams()
ArrayMooseVariable & _var
This is an array kernel so we cast to a ArrayMooseVariable.
const ArrayVariablePhiValue & _phi
the current shape functions
unsigned int _qp
The current quadrature point index.
unsigned int _j
current index for the shape function
unsigned int _i
current index for the test function
unsigned int number() const
Get variable number coming from libMesh.
unsigned int count() const
Get the number of components Note: For standard and vector variables, the number is one.
This class provides an interface for common operations on field variables of both FE and FV types wit...