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];
static InputParameters validParams()
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
typename std::conditional< is_ad, ADKernelValue, KernelValue >::type KernelValueParent
DualNumber< Real, DNDerivativeType, true > ADReal
InputParameters validParams()
virtual Real precomputeQpJacobian()
virtual GenericReal< is_ad > precomputeQpResidual()
MaterialPropertyValueTempl(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("MooseApp", MaterialPropertyValue)