Go to the documentation of this file.
45 std::vector<FluidStateProperties> & fsp)
const override;
59 DualReal & Yh2o)
const;
75 std::vector<FluidStateProperties> & fsp)
const;
86 std::vector<FluidStateProperties> & fsp)
const;
102 std::vector<FluidStateProperties> & fsp)
const;
127 std::vector<FluidStateProperties> & fsp)
const;
141 std::vector<FluidStateProperties> & fsp)
const;
156 std::vector<FluidStateProperties> & fsp)
const;
DualReal liquidDensity(const DualReal &pressure, const DualReal &temperature) const
Density of the liquid phase Note: The pressure here is the gas pressure.
DualReal moleFractionToMassFraction(const DualReal &xmol) const
Convert mole fraction to mass fraction.
Common class for single phase fluid properties.
const SinglePhaseFluidProperties & _ncg_fp
Fluid properties UserObject for the NCG.
Compositional flash routines for miscible multiphase flow classes with multiple fluid components.
DualReal saturation(const DualReal &pressure, const DualReal &temperature, const DualReal &Z, std::vector< FluidStateProperties > &fsp) const
Gas saturation in the two-phase region.
DualReal gasDensity(const DualReal &pressure, const DualReal &temperature, std::vector< FluidStateProperties > &fsp) const
Density of the gas phase.
void twoPhaseProperties(const DualReal &pressure, const DualReal &temperature, const DualReal &Z, unsigned int qp, std::vector< FluidStateProperties > &fsp) const
Gas and liquid properties in the two-phase region.
DualReal enthalpyOfDissolution(const DualReal &temperature) const
Enthalpy of dissolution of NCG in water calculated using Henry's constant From Himmelblau,...
FluidStatePhaseEnum
Phase state enum.
virtual std::string fluidStateName() const override
Name of FluidState.
const SinglePhaseFluidProperties & _water_fp
Fluid properties UserObject for water.
void liquidProperties(const DualReal &pressure, const DualReal &temperature, std::vector< FluidStateProperties > &fsp) const
Liquid properties - density, viscosity and enthalpy Note: The pressure here is the liquid pressure.
const Real _Mh2o
Molar mass of water (kg/mol)
const Real _water_critical_temperature
Critical temperature of water (K)
void gasProperties(const DualReal &pressure, const DualReal &temperature, std::vector< FluidStateProperties > &fsp) const
Gas properties - density, viscosity and enthalpy.
void checkVariables(Real temperature) const
Check that the temperature is between the triple and critical values.
InputParameters validParams< PorousFlowWaterNCG >()
Water (H2O) fluid properties as a function of pressure (Pa) and temperature (K) from IAPWS-IF97: Revi...
void equilibriumMassFractions(const DualReal &pressure, const DualReal &temperature, DualReal &Xncg, DualReal &Yh2o) const
Mass fractions of NCG in liquid phase and H2O in gas phase at thermodynamic equilibrium.
virtual Real totalMassFraction(Real pressure, Real temperature, Real Xnacl, Real saturation, unsigned int qp) const override
Total mass fraction of fluid component summed over all phases in the two-phase state for a specified ...
PorousFlowWaterNCG(const InputParameters ¶meters)
Specialized class for water and a non-condensable gas (NCG) Includes dissolution of gas in liquid wat...
const Real _Mncg
Molar mass of non-condensable gas (kg/mol)
void thermophysicalProperties(Real pressure, Real temperature, Real Xnacl, Real Z, unsigned int qp, std::vector< FluidStateProperties > &fsp) const override
Determines the complete thermophysical state of the system for a given set of primary variables.
const Water97FluidProperties & _water97_fp
Fluid properties UserObject for water (used to access Henry's law)
const std::string temperature
const Real _water_triple_temperature
Triple point temperature of water (K)
void massFractions(const DualReal &pressure, const DualReal &temperature, const DualReal &Z, FluidStatePhaseEnum &phase_state, std::vector< FluidStateProperties > &fsp) const
Mass fractions of NCG and H2O in both phases, as well as derivatives wrt PorousFlow variables.
const std::vector< Real > _ncg_henry
Henry's coefficients for the NCG.
const std::string pressure