21 MooseEnum unit_choice(
"Kelvin=0 Celsius=1",
"Kelvin");
23 "temperature_unit", unit_choice,
"The unit of the temperature variable");
24 params.
addRequiredParam<UserObjectName>(
"fp",
"The name of the user object for the fluid");
25 MooseEnum property_enum(
"enthalpy internal_energy density");
27 "property", property_enum,
"The fluid property that this initial condition is to calculate");
29 "enthalpy) from pressure and temperature");
35 _porepressure(coupledValue(
"porepressure")),
36 _temperature(coupledValue(
"temperature")),
39 _T_c2k(getParam<
MooseEnum>(
"temperature_unit") == 0 ? 0.0 : 273.15)
PorousFlowFluidPropertyIC calculates an initial value for a fluid property (such as enthalpy) using p...
const Real _T_c2k
Conversion from degrees Celsius to degrees Kelvin.
virtual Real value(const Point &p) override
static InputParameters validParams()
const VariableValue & _porepressure
Porepressure (Pa)
registerMooseObject("PorousFlowApp", PorousFlowFluidPropertyIC)
const SinglePhaseFluidProperties & _fp
FluidProperties user object.
Common class for single phase fluid properties.
PorousFlowFluidPropertyIC(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
enum PorousFlowFluidPropertyIC::PropertyEnum _property_enum
const VariableValue & _temperature
Fluid temperature (C or K)
PropertyEnum
Enum of fluid properties that can be set using this IC.