49 _n_vars(_coupled_moose_vars.size()),
51 _p(this->template getMaterialPropertyDerivative<T>(
"material_property", _derivative)),
52 _p_off_diag_derivatives(_n_vars),
53 _p_diag_derivative(this->template getMaterialPropertyDerivative<T>(
56 for (
unsigned int m = 0; m <
_n_vars; ++m)
69 "material_property",
"Name of material property for which derivatives are to be tested.");
72 params.
addParam<std::vector<SymbolName>>(
75 "Select derivative to test derivatives of (leave empty for checking " 76 "derivatives of the original material property)");
std::string name(const ElemQuality q)
const unsigned int _n_vars
number of nonlinear variables
static InputParameters validParams()
T concatenate(T c1, const T &c2)
Returns a container that contains the content of second passed in container inserted into the first p...
Interface class ("Veneer") for Kernel to provide a mapping from 'jvar' in computeQpOffDiagJacobian in...
virtual const std::string & name() const
Get the name of the class.
This kernel is used for testing derivatives of a material property.
const MaterialProperty< T > & _p
material property for which to test derivatives
const MaterialProperty< T > & _p_diag_derivative
material property for the diagonal derivative of the tested property
MaterialDerivativeTestKernelBase(const InputParameters ¶meters)
DerivativeMaterialPropertyNameInterface::SymbolName SymbolName
std::vector< MooseVariableFieldBase * > _coupled_moose_vars
Vector of all coupled variables.
Interface class ("Veneer") to provide generator methods for derivative material property names...
const InputParameters & parameters() const
Get the parameters of the object.
std::vector< SymbolName > _derivative
select material property derivative to test derivatives of
std::vector< const MaterialProperty< T > * > _p_off_diag_derivatives
material properties for the off-diagonal derivatives of the tested property
static InputParameters validParams()