17 MooseEnum unit_choice(
"Kelvin=0 Celsius=1",
"Kelvin");
18 params.addParam<MooseEnum>(
19 "temperature_unit", unit_choice,
"The unit of the temperature variable");
20 params.addPrivateParam<std::string>(
"pf_material_type",
"fluid_properties");
21 params.addClassDescription(
"Base class for PorousFlow fluid materials");
27 _porepressure(_nodal_material
28 ? getMaterialProperty<std::vector<Real>>(
"PorousFlow_porepressure_nodal")
29 : getMaterialProperty<std::vector<Real>>(
"PorousFlow_porepressure_qp")),
30 _temperature(_nodal_material ? getMaterialProperty<Real>(
"PorousFlow_temperature_nodal")
31 : getMaterialProperty<Real>(
"PorousFlow_temperature_qp")),
32 _t_c2k(getParam<MooseEnum>(
"temperature_unit") == 0 ? 0.0 : 273.15),
40 mooseError(
"computeQpProperties() must be overriden in materials derived from "
41 "PorousFlowFluidPropertiesBase");