19 "derivative material properties for user-defined variables");
20 params.
addParam<Real>(
"value", 0.,
"Constant value being assigned into the property");
21 params.
addRequiredParam<std::string>(
"property_name",
"The property name to declare");
24 "Names of variables for which to create (zero) material derivative properties");
31 _value(getParam<Real>(
"value")),
32 _property_name(getParam<
std::string>(
"property_name")),
33 _property(declareProperty<Real>(_property_name)),
34 _n_derivative_vars(coupledComponents(
"derivative_vars"))
38 if (!isCoupledConstant(
"derivative_vars"))
41 &declarePropertyDerivative<Real>(
_property_name, coupledName(
"derivative_vars", i));
registerMooseObject("ThermalHydraulicsApp", ConstantMaterial)
Constant material with zero-valued derivatives.
const unsigned int _n_derivative_vars
Number of variables for which to create zero-valued property derivatives.
const MaterialPropertyName _property_name
ConstantMaterial(const InputParameters ¶meters)
virtual void computeQpProperties()
std::vector< MaterialProperty< Real > * > _derivative_properties
Derivatives of material property with respect to each variable.
static InputParameters validParams()
MaterialProperty< Real > & _property
static InputParameters validParams()