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();
const VariableValue & _dv_dot
The Jacobian of the time derivative of the coupled variable with respect to the coupled variable...
unsigned int number() const
Get variable number coming from libMesh.
const unsigned int _v_var
The number of the coupled variable.
This calculates the time derivative for a coupled variable.
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...
registerMooseObject("MooseApp", ArrayCoupledTimeDerivative)
static InputParameters validParams()
const ArrayVariableValue & _v_dot
The first temporal derivative of the coupled variable.
virtual RealEigenMatrix computeQpOffDiagJacobian(const MooseVariableFEBase &jvar) override
This is the virtual that derived classes should override for computing a full Jacobian component...
const ArrayVariableTestValue & _test
the current test function
unsigned int _i
current index for the test function
ArrayCoupledTimeDerivative(const InputParameters ¶meters)
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic > RealEigenMatrix
virtual void computeQpResidual(RealEigenVector &residual) override
Compute this Kernel's contribution to the residual at the current quadrature point, to be filled in residual.
unsigned int _j
current index for the shape function
const ArrayVariablePhiValue & _phi
the current shape functions
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
virtual RealEigenVector computeQpJacobian() override
Compute this Kernel's contribution to the diagonal Jacobian at the current quadrature point...
ArrayMooseVariable & _var
This is an array kernel so we cast to a ArrayMooseVariable.
static InputParameters validParams()
unsigned int _qp
The current quadrature point index.