18 params.
addClassDescription(
"Class used for testing derivatives of a scalar material property.");
30 return _p[_qp] * _test[_i][_qp];
registerMooseObject("MooseApp", MaterialDerivativeTestKernel)
unsigned int mapJvarToCvar(unsigned int jvar)
Return index into the _coupled_moose_vars array for a given jvar.
This kernel is used for testing derivatives of a material property.
const MaterialProperty< Real > & _p
material property for which to test derivatives
const MaterialProperty< Real > & _p_diag_derivative
material property for the diagonal derivative of the tested property
static InputParameters validParams()
std::vector< const MaterialProperty< Real > * > _p_off_diag_derivatives
material properties for the off-diagonal derivatives of the tested property
This kernel is used for testing derivatives of a material property.
MaterialDerivativeTestKernel(const InputParameters ¶meters)
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
static InputParameters validParams()
virtual Real computeQpResidual() override
virtual Real computeQpJacobian() override