43 std::vector<FluidStateProperties> & fsp)
const override;
50 std::vector<FluidStateProperties> & fsp)
const override;
80 std::vector<FluidStateProperties> & fsp)
const;
91 std::vector<FluidStateProperties> & fsp)
const;
107 std::vector<FluidStateProperties> & fsp)
const;
132 std::vector<FluidStateProperties> & fsp)
const;
146 std::vector<FluidStateProperties> & fsp)
const;
161 std::vector<FluidStateProperties> & fsp)
const;
void massFractions(const ADReal &pressure, const ADReal &temperature, const ADReal &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...
virtual std::string fluidStateName() const override
Name of FluidState.
void equilibriumMassFractions(const ADReal &pressure, const ADReal &temperature, ADReal &Xncg, ADReal &Yh2o) const
Mass fractions of NCG in liquid phase and H2O in gas phase at thermodynamic equilibrium.
const std::vector< Real > _ncg_henry
Henry's coefficients for the NCG.
void liquidProperties(const ADReal &pressure, const ADReal &temperature, std::vector< FluidStateProperties > &fsp) const
Liquid properties - density, viscosity and enthalpy Note: The pressure here is the liquid pressure...
ADReal moleFractionToMassFraction(const ADReal &xmol) const
Convert mole fraction to mass fraction.
Compositional flash routines for miscible multiphase flow classes with multiple fluid components...
static const std::string temperature
void twoPhaseProperties(const ADReal &pressure, const ADReal &temperature, const ADReal &Z, unsigned int qp, std::vector< FluidStateProperties > &fsp) const
Gas and liquid properties in the two-phase region.
ADReal saturation(const ADReal &pressure, const ADReal &temperature, const ADReal &Z, std::vector< FluidStateProperties > &fsp) const
Gas saturation in the two-phase region.
const SinglePhaseFluidProperties & _water_fp
Fluid properties UserObject for water.
PorousFlowWaterNCG(const InputParameters ¶meters)
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)
Common class for single phase fluid properties.
FluidStatePhaseEnum
Phase state enum.
ADReal enthalpyOfDissolution(const ADReal &temperature) const
Enthalpy of dissolution of NCG in water calculated using Henry's constant From Himmelblau, Partial molal heats and entropies of solution for gases dissolved in water from the freezing to the near critical point, J.
ADReal gasDensity(const ADReal &pressure, const ADReal &temperature, std::vector< FluidStateProperties > &fsp) const
Density of the gas phase.
const Real _Mh2o
Molar mass of water (kg/mol)
Specialized class for water and a non-condensable gas (NCG) Includes dissolution of gas in liquid wat...
const Real _water_triple_temperature
Triple point temperature of water (K)
const Real _water_critical_temperature
Critical temperature of water (K)
static const std::string Z
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
void checkVariables(Real temperature) const
Check that the temperature is between the triple and critical values.
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 ...
Water (H2O) fluid properties as a function of pressure (Pa) and temperature (K) from IAPWS-IF97: Revi...
static const std::string pressure
ADReal liquidDensity(const ADReal &pressure, const ADReal &temperature) const
Density of the liquid phase Note: The pressure here is the gas pressure.
const Real _Mncg
Molar mass of non-condensable gas (kg/mol)
const InputParameters & parameters() const
void gasProperties(const ADReal &pressure, const ADReal &temperature, std::vector< FluidStateProperties > &fsp) const
Gas properties - density, viscosity and enthalpy.
const SinglePhaseFluidProperties & _ncg_fp
Fluid properties UserObject for the NCG.