20 params.
addClassDescription(
"Creates a gradient material equal to the gradient of the coupled " 21 "variable times a scalar material property.");
24 "Name of gradient material property equal to the gradient of the coupled variable gradient " 26 params.
deprecateParam(
"grad_mat_prop",
"gradient_material_name",
"12/12/25");
27 params.
addParam<MaterialPropertyName>(
28 "scalar_property_factor",
30 "Scalar material property acting as a factor in the output gradient material property.");
40 _grad_mat_prop(declareGenericProperty<
RealVectorValue, is_ad>(
"grad_mat_prop")),
41 _scalar_property_factor(getGenericMaterialProperty<
Real, is_ad>(
"scalar_property_factor")),
42 _grad_u(coupledGenericGradient<is_ad>(
"u"))
50 _grad_mat_prop[_qp] = _grad_u[_qp] * _scalar_property_factor[_qp];
A material that creates a gradient material equal to the gradient of the coupled variable times a sca...
static InputParameters validParams()
virtual void computeQpProperties() override
Users must override this method.
static InputParameters validParams()
Materials compute MaterialProperties.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("MooseApp", CoupledGradientMaterial)
CoupledGradientMaterialTempl(const InputParameters ¶meters)