Go to the documentation of this file.
20 InputParameters params = validParams<InitialCondition>();
21 params.addRequiredCoupledVar(
"gas_porepressure",
22 "Variable that is the porepressure of the gas phase");
23 params.addRequiredCoupledVar(
"temperature",
"Variable that is the fluid temperature");
24 MooseEnum unit_choice(
"Kelvin=0 Celsius=1",
"Kelvin");
25 params.addParam<MooseEnum>(
26 "temperature_unit", unit_choice,
"The unit of the temperature variable");
27 params.addCoupledVar(
"saturation", 0.0,
"Gas saturation");
28 params.addRequiredParam<UserObjectName>(
"fluid_state",
"Name of the FluidState UserObject");
29 params.addCoupledVar(
"xnacl", 0,
"The salt mass fraction in the brine (kg/kg)");
30 params.addRequiredParam<UserObjectName>(
31 "PorousFlowDictator",
"The UserObject that holds the list of PorousFlow variable names");
32 params.addClassDescription(
"An initial condition to calculate z from saturation");
37 : InitialCondition(parameters),
38 _gas_porepressure(coupledValue(
"gas_porepressure")),
39 _temperature(coupledValue(
"temperature")),
40 _Xnacl(coupledValue(
"xnacl")),
41 _saturation(coupledValue(
"saturation")),
42 _T_c2k(getParam<MooseEnum>(
"temperature_unit") == 0 ? 0.0 : 273.15),
Compositional flash routines for miscible multiphase flow classes with multiple fluid components.
const VariableValue & _temperature
Fluid temperature (C or K)
const VariableValue & _gas_porepressure
Gas porepressure (Pa)
InputParameters validParams< PorousFlowFluidStateIC >()
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
PorousFlowFluidStateIC(const InputParameters ¶meters)
const VariableValue & _saturation
Gas saturation (-)
registerMooseObject("PorousFlowApp", PorousFlowFluidStateIC)
const VariableValue & _Xnacl
NaCl mass fraction (kg/kg)
virtual Real value(const Point &p) override
PorousFlowFluidStateIC calculates an initial value for the total mass fraction of a component summed ...
const Real _T_c2k
Conversion from degrees Celsius to degrees Kelvin.
virtual Real totalMassFraction(Real pressure, Real temperature, Real Xnacl, Real saturation, unsigned int qp) const =0
Total mass fraction of fluid component summed over all phases in the two-phase state for a specified ...
const PorousFlowFluidStateMultiComponentBase & _fs
FluidState UserObject.