20 "List of aux variables that the material property depends upon");
22 "slopes",
"Slopes of the material property with respect to each aux variable");
23 params.
addParam<
Real>(
"shift", 0,
"Shift constant: 'b' in 'y = m * x + b'");
24 params.
addRequiredParam<MaterialPropertyName>(
"name",
"Name of the new material property");
31 _n_vars(coupledComponents(
"vars")),
32 _slopes(getParam<
std::vector<
Real>>(
"slopes")),
33 _shift(getParam<
Real>(
"shift")),
34 _y_name(getParam<MaterialPropertyName>(
"name")),
35 _y(declareProperty<
Real>(_y_name))
40 "LinearTestMaterial:",
name(),
": Parameters 'vars' and 'slopes' must have same size.");
45 for (
unsigned int i = 0; i <
_n_vars; ++i)
57 for (
unsigned int i = 0; i <
_n_vars; ++i)
virtual bool isCoupledConstant(const std::string &var_name) const
const MaterialPropertyName _y_name
Name of the new material property.
VariableName coupledName(const std::string &var_name, unsigned int comp=0) const
std::vector< MaterialProperty< Real > * > _y_derivatives
Derivatives of material property with respect to each aux variable.
virtual void computeQpProperties()
registerMooseObject("ThermalHydraulicsTestApp", LinearTestMaterial)
std::vector< const VariableValue * > _vars
List of aux variables the material property depends upon.
virtual const std::string & name() const
const std::vector< Real > _slopes
Slopes with respect to the nonlinear variables.
virtual const VariableValue & coupledValue(const std::string &var_name, unsigned int comp=0) const
LinearTestMaterial(const InputParameters ¶meters)
static InputParameters validParams()
const Real _shift
Shift constant: 'b' in 'y = m * x + b'.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
static InputParameters validParams()
MaterialProperty< Real > & _y
Linear material property.
Computes a material property that is linear with respect to a list of aux variables.
const unsigned int _n_vars
Number of aux variables the material property depends upon.