19 "Class used for testing derivatives of a std::vector<Real> material property.");
21 "material_property",
"Name of material property for which derivatives are to be tested.");
30 _n_vars(_coupled_moose_vars.size()),
31 _name(getParam<MaterialPropertyName>(
"material_property")),
32 _p(getMaterialProperty<Real>(_name)),
33 _p_off_diag_derivatives(_n_vars),
35 getMaterialPropertyDerivative<
std::vector<Real>>(_name, VariableName(_var.
name()))),
36 _component_i(getParam<unsigned
int>(
"i"))
38 for (
unsigned int m = 0; m <
_n_vars; ++m)
40 _name, VariableName(_coupled_moose_vars[m]->
name()));
66 const unsigned int cvar = mapJvarToCvar(jvar);
registerMooseObject("ThermalHydraulicsTestApp", MaterialDerivativeStdVectorRealTestKernel)
void ErrorVector unsigned int
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative(const std::string &base, const std::vector< VariableName > &c)
static InputParameters validParams()
Kernel for testing derivatives of a std::vector<Real> material property.
const std::string & _name
const MaterialProperty< std::vector< Real > > & _p_diag_derivative
material property for the diagonal derivative of the tested property
const unsigned int _component_i
the component of the std::vector material property
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
MaterialDerivativeStdVectorRealTestKernel(const InputParameters ¶meters)
static InputParameters validParams()
virtual Real computeQpResidual() override
std::vector< const MaterialProperty< std::vector< Real > > * > _p_off_diag_derivatives
material properties for the off-diagonal derivatives of the tested property
virtual Real computeQpJacobian() override
const unsigned int _n_vars
number of nonlinear variables