A fluid system for two-phase models assuming immiscibility and thermodynamic equilibrium.
More...
template<class
Scalar, class Fluid0, class Fluid1>
class Dumux::FluidSystems::TwoPImmiscible< Scalar, Fluid0, Fluid1 >
The fluid phases are completely specified by means of their constituting components. The fluids can be defined individually via FluidSystem::OnePLiquid<Scalar, Component> and FluidSystem::OnePGas<Scalar, Component>. These fluids consist of one component.
- Template Parameters
-
Scalar | the scalar type |
Fluid0 | a one-phase fluid system (use FluidSystem::OnePLiquid<Scalar, Component> / FluidSystem::OnePGas<Scalar, Component>) |
Fluid1 | a one-phase fluid system (use FluidSystem::OnePLiquid<Scalar, Component> / FluidSystem::OnePGas<Scalar, Component>) |
|
static std::string | phaseName (int phaseIdx) |
| Return the human readable name of a fluid phase. More...
|
|
static constexpr bool | isMiscible () |
| Returns whether the fluids are miscible. More...
|
|
static constexpr bool | isGas (int phaseIdx) |
| Return whether a phase is gaseous. More...
|
|
static bool | isIdealMixture (int phaseIdx) |
| Returns true if and only if a fluid phase is assumed to be an ideal mixture. More...
|
|
static constexpr bool | isIdealGas (int phaseIdx) |
| Returns true if and only if a fluid phase is assumed to be an ideal gas. More...
|
|
static constexpr bool | isCompressible (int phaseIdx) |
| Returns true if and only if a fluid phase is assumed to be compressible. More...
|
|
static constexpr bool | viscosityIsConstant (int phaseIdx) |
| Returns true if the liquid phase viscostiy is constant. More...
|
|
static bool | isIdealFluid1 (int phaseIdx) |
| Returns true if and only if a fluid phase is assumed to be an ideal gas. More...
|
|
static std::string | componentName (int compIdx) |
| Return the human readable name of a component. More...
|
|
static Scalar | molarMass (int compIdx) |
| Return the molar mass of a component in \(\mathrm{[kg/mol]}\). More...
|
|
static Scalar | criticalTemperature (int compIdx) |
| Critical temperature of a component \(\mathrm{[K]}\). More...
|
|
static Scalar | criticalPressure (int compIdx) |
| Critical pressure of a component \(\mathrm{[Pa]}\). More...
|
|
static Scalar | acentricFactor (int compIdx) |
| The acentric factor of a component \(\mathrm{[-]}\). More...
|
|
static void | init () |
| Initialize the fluid system's static parameters. More...
|
|
static void | init (Scalar tempMin, Scalar tempMax, std::size_t nTemp, Scalar pressMin, Scalar pressMax, std::size_t nPress) |
| Initialize the fluid system's static parameters using problem specific temperature and pressure ranges. More...
|
|
template<class FluidState > |
static Scalar | density (const FluidState &fluidState, int phaseIdx) |
| Calculate the density \(\mathrm{[kg/m^3]}\) of a fluid phase. More...
|
|
template<class FluidState > |
static Scalar | molarDensity (const FluidState &fluidState, int phaseIdx) |
| Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid phase. More...
|
|
template<class FluidState > |
static Scalar | viscosity (const FluidState &fluidState, int phaseIdx) |
| Calculate the dynamic viscosity of a fluid phase \(\mathrm{[Pa*s]}\). More...
|
|
template<class FluidState > |
static Scalar | fugacityCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx) |
| Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase. More...
|
|
template<class FluidState > |
static Scalar | diffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIdx) |
| Calculate the binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[mol^2 * s / (kg*m^3)]}\). More...
|
|
template<class FluidState > |
static Scalar | binaryDiffusionCoefficient (const FluidState &fluidState, int phaseIdx, int compIIdx, int compJIdx) |
| Given a phase's composition, temperature and pressure, return the binary diffusion coefficient \(\mathrm{[m^2/s]}\) for components \(\mathrm{i}\) and \(\mathrm{j}\) in this phase. More...
|
|
template<class FluidState > |
static Scalar | enthalpy (const FluidState &fluidState, int phaseIdx) |
| Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\). More...
|
|
template<class FluidState > |
static Scalar | thermalConductivity (const FluidState &fluidState, int phaseIdx) |
| Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\). More...
|
|
template<class FluidState > |
static Scalar | heatCapacity (const FluidState &fluidState, int phaseIdx) |
| Specific isobaric heat capacity \(c_{p,\alpha}\) of a fluid phase \(\mathrm{[J/(kg*K)]}\). More...
|
|
static constexpr bool | isTracerFluidSystem () |
| Some properties of the fluid system. More...
|
|
static constexpr int | getMainComponent (int phaseIdx) |
| Get the main component of a given phase if possible. More...
|
|
static Scalar | density (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx) |
| Calculate the density \(\mathrm{[kg/m^3]}\) of a fluid phase. More...
|
|
static Scalar | molarDensity (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx) |
| Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid phase. More...
|
|
static Scalar | fugacityCoefficient (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx, int compIdx) |
| Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase. More...
|
|
static Scalar | viscosity (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx) |
| Calculate the dynamic viscosity of a fluid phase \(\mathrm{[Pa*s]}\). More...
|
|
static Scalar | diffusionCoefficient (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx, int compIdx) |
| Calculate the binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[mol^2 * s / (kg*m^3)]}\). More...
|
|
static Scalar | binaryDiffusionCoefficient (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx, int compIIdx, int compJIdx) |
| Given a phase's composition, temperature and pressure, return the binary diffusion coefficient \(\mathrm{[m^2/s]}\) for components \(\mathrm{i}\) and \(\mathrm{j}\) in this phase. More...
|
|
static Scalar | enthalpy (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx) |
| Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\). More...
|
|
static Scalar | thermalConductivity (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx) |
| Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\). More...
|
|
static Scalar | heatCapacity (const FluidState &fluidState, const ParameterCache ¶mCache, int phaseIdx) |
| Specific isobaric heat capacity \(c_{p,\alpha}\) of a fluid phase \(\mathrm{[J/(kg*K)]}\). More...
|
|