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)
const std::string & _name
static InputParameters validParams()
static InputParameters validParams()
const MaterialProperty< std::vector< Real > > & _p_diag_derivative
material property for the diagonal derivative of the tested property
virtual const std::string & name() const
const GenericMaterialProperty< U, is_ad > & getMaterialPropertyDerivative(const std::string &base, const std::vector< VariableName > &c)
MaterialDerivativeStdVectorRealTestKernel(const InputParameters ¶meters)
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const VariableTestValue & _test
const unsigned int _component_i
the component of the std::vector material property
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
unsigned int mapJvarToCvar(unsigned int jvar)
std::vector< MooseVariableFieldBase *> _coupled_moose_vars
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeQpJacobian() override
registerMooseObject("ThermalHydraulicsTestApp", MaterialDerivativeStdVectorRealTestKernel)
Kernel for testing derivatives of a std::vector<Real> material property.
const VariablePhiValue & _phi
void ErrorVector unsigned int
const unsigned int _n_vars
number of nonlinear variables