Opm::FluidSystems::H2ON2< Scalar, useComplexRelations > Class Template Reference A two-phase fluid system with water and nitrogen as components. More...
Inheritance diagram for Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >:
Detailed Descriptiontemplate<class Scalar, bool useComplexRelations = true>
|
typedef TabulatedH2O Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::H2O |
The component for pure water.
typedef SimpleN2 Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::N2 |
The component for pure nitrogen.
typedef NullParameterCache Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::ParameterCache |
The type of the fluid system's parameter cache.
The parameter cache can be used to avoid re-calculating expensive parameters for multiple quantities. Be aware that what the parameter cache actually does is specific for each fluid system and that it is opaque outside the fluid system.
|
inlinestatic |
The acentric factor of a component [].
References Opm::H2O< Scalar >::acentricFactor(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::N2Idx.
|
inlinestatic |
Return the human readable name of a component.
References Opm::N2< Scalar >::name(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::name().
|
inlinestatic |
Critical pressure of a component [Pa].
References Opm::N2< Scalar >::criticalPressure(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::criticalPressure(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::N2Idx.
|
inlinestatic |
Critical temperature of a component [K].
References Opm::N2< Scalar >::criticalTemperature(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::criticalTemperature(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::N2Idx.
|
inlinestatic |
Calculate the density [kg/m^3] of a fluid phase.
If useComplexRelations == true, we apply Formula (2.6) from S.O.Ochs: "Development of a multiphase multicomponent model for PEMFC - Technical report: IRTG-NUPUS", University of Stuttgart, 2008
References Opm::N2< Scalar >::gasDensity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasDensity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidDensity(), Opm::LocalAd::max(), Opm::IdealGas< Scalar >::molarDensity(), Opm::N2< Scalar >::molarMass(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::molarMass(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::numComponents.
|
inlinestatic |
Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)].
Molecular diffusion of a compoent is caused by a gradient of the mole fraction and follows the law
where is the component's mole fraction in phase , is the diffusion coefficient and is the diffusive flux.
References Opm::BinaryCoeff::H2O_N2::gasDiffCoeff(), and Opm::BinaryCoeff::H2O_N2::liquidDiffCoeff().
|
inlinestatic |
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg].
References Valgrind::CheckDefined(), Opm::N2< Scalar >::gasEnthalpy(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasEnthalpy(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidEnthalpy().
|
inlinestatic |
Calculate the fugacity coefficient [Pa] of an individual component in a fluid phase.
The fugacity coefficient is connected to the fugacity and the component's molarity by means of the relation
References Opm::BinaryCoeff::H2O_N2::henry(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::vaporPressure().
|
inlinestatic |
Specific isobaric heat capacity of a fluid phase [J/kg].
References Opm::N2< Scalar >::gasHeatCapacity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasHeatCapacity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidHeatCapacity(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::molarMass().
|
inlinestatic |
Initialize the fluid system's static parameters.
If a tabulated H2O component is used, we do our best to create tables that always work.
|
inlinestatic |
Initialize the fluid system's static parameters using problem specific temperature and pressure ranges.
tempMin | The minimum temperature used for tabulation of water [K] |
tempMax | The maximum temperature used for tabulation of water [K] |
nTemp | The number of ticks on the temperature axis of the table of water |
pressMin | The minimum pressure used for tabulation of water [Pa] |
pressMax | The maximum pressure used for tabulation of water [Pa] |
nPress | The number of ticks on the pressure axis of the table of water |
References Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::init(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::isTabulated.
|
inlinestatic |
Returns true if and only if a fluid phase is assumed to be compressible.
Compressible means that the partial derivative of the density to the fluid pressure is always larger than zero.
References Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidIsCompressible().
|
inlinestatic |
Returns true if and only if a fluid phase is assumed to be an ideal gas.
References Opm::N2< Scalar >::gasIsIdeal(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasIsIdeal().
|
inlinestatic |
Returns true if and only if a fluid phase is assumed to be an ideal mixture.
We define an ideal mixture as a fluid phase where the fugacity coefficients of all components times the pressure of the phase are independent on the fluid composition. This assumption is true if Henry's law and Rault's law apply. If you are unsure what this function should return, it is safe to return false. The only damage done will be (slightly) increased computation times in some cases.
|
inlinestatic |
Return whether a phase is liquid.
References Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::gasPhaseIdx.
|
inlinestatic |
Return the molar mass of a component in [kg/mol].
References Opm::N2< Scalar >::molarMass(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::molarMass(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::N2Idx.
Referenced by Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::heatCapacity(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::viscosity().
|
inlinestatic |
Return the human readable name of a fluid phase.
|
inlinestatic |
Thermal conductivity of a fluid phase [W/(m K)].
References Opm::N2< Scalar >::gasThermalConductivity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasThermalConductivity(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidThermalConductivity().
|
inlinestatic |
Calculate the dynamic viscosity of a fluid phase [Pa*s].
References Opm::N2< Scalar >::gasViscosity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::gasViscosity(), Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::liquidViscosity(), Opm::LocalAd::max(), Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::molarMass(), Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::numComponents, Opm::LocalAd::pow(), Opm::LocalAd::sqrt(), and Opm::TabulatedComponent< ScalarT, RawComponent, useVaporPressure >::vaporPressure().
|
static |
Index of the gas phase.
Referenced by Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::isLiquid().
|
static |
The component index of water.
|
static |
Index of the liquid phase.
|
static |
The component index of molecular nitrogen.
Referenced by Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::acentricFactor(), Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::criticalPressure(), Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::criticalTemperature(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::molarMass().
|
static |
Number of chemical species in the fluid system.
Referenced by Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::density(), and Opm::FluidSystems::H2ON2< Scalar, useComplexRelations >::viscosity().
|
static |
Number of fluid phases in the fluid system.