21 "Residual term (u - prop) to set variable u equal to a given material property prop");
23 "prop_name",
"Name of material property to be used in the kernel");
25 "positive",
true,
"If the kernel is positive, this is true, if negative, it is false");
32 _kernel_sign(this->template getParam<bool>(
"positive") ? 1.0 : -1.0),
33 _prop(this->template getGenericMaterialProperty<Real, is_ad>(
"prop_name"))
41 return _kernel_sign * (_prop[_qp] - _u[_qp]);
48 return _kernel_sign * (_prop[_qp] - _u[_qp]);
55 return -_kernel_sign * _phi[_j][_qp];
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("MooseApp", MaterialPropertyValue)
typename std::conditional< is_ad, ADKernelValue, KernelValue >::type KernelValueParent
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
virtual GenericReal< is_ad > precomputeQpResidual()
MaterialPropertyValueTempl(const InputParameters ¶meters)
static InputParameters validParams()
virtual Real precomputeQpJacobian()