3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase > Class Template Reference

An adapter for multi-phase fluid systems to be used with (compositional) one-phase models. More...

#include <dumux/material/fluidsystems/1padapter.hh>

Inheritance diagram for Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >:
Inheritance graph

Description

template<class MPFluidSystem, int phase = 0>
class Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >

An adapter for multi-phase fluid systems to be used with (compositional) one-phase models.

Template Parameters
MPFluidSystemthe multi-phase fluid system to be adapted
phasethe index of the phase we choose from the multi-phase fluid system

Public Types

using Scalar = typename Base::Scalar
 
using ParameterCache = NullParameterCache
 
using MultiPhaseFluidSystem = MPFluidSystem
 export the wrapped MultiPhaseFluidSystem type More...
 

Static Public Member Functions

static constexpr int compIdx (int multiPhaseFluidSystemCompIdx)
 convert a component index of the multi-phase component index to the actual component index More...
 
template<class ... Args>
static void init (Args &&... args)
 Initialize the fluid system's static parameters generically. More...
 
static std::string phaseName (int phaseIdx=0)
 Return the human readable name of a fluid phase. More...
 
static std::string componentName (int compIdx)
 A human readable name for the component. More...
 
static std::string name ()
 A human readable name for the component. More...
 
static constexpr bool isMiscible ()
 There is only one phase, so not mass transfer between phases can occur. More...
 
static constexpr bool isGas (int phaseIdx=0)
 Returns whether the fluid is gaseous. More...
 
static constexpr bool isIdealMixture (int phaseIdx=0)
 Returns true if and only if a fluid phase is assumed to be an ideal mixture. More...
 
static constexpr bool isCompressible (int phaseIdx=0)
 Returns true if the fluid is assumed to be compressible. More...
 
static constexpr bool viscosityIsConstant (int phaseIdx=0)
 Returns true if the fluid viscosity is constant. More...
 
static constexpr bool isIdealGas (int phaseIdx=0)
 Returns true if the fluid is assumed to be an ideal gas. More...
 
static Scalar molarMass (int compIdx)
 The mass in \(\mathrm{[kg]}\) of one mole of the component. More...
 
template<class FluidState >
static Scalar density (const FluidState &fluidState, int phaseIdx=0)
 The density \(\mathrm{[kg/m^3]}\) of the component at a given pressure and temperature. More...
 
template<class FluidState >
static Scalar molarDensity (const FluidState &fluidState, int phaseIdx=0)
 The molar density \(\rho_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\). More...
 
template<class FluidState >
static Scalar enthalpy (const FluidState &fluidState, int phaseIdx=0)
 Specific enthalpy \(\mathrm{[J/kg]}\) the pure component as a liquid. More...
 
template<class FluidState >
static Scalar componentEnthalpy (const FluidState &fluidState, int phaseIdx, int compIdx)
 Returns the specific enthalpy \(\mathrm{[J/kg]}\) of a component in a specific phase. More...
 
template<class FluidState >
static Scalar viscosity (const FluidState &fluidState, int phaseIdx=0)
 The dynamic liquid viscosity \(\mathrm{[N/m^3*s]}\) of the pure component. 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 thermalConductivity (const FluidState &fluidState, int phaseIdx=0)
 Thermal conductivity of the fluid \(\mathrm{[W/(m K)]}\). More...
 
template<class FluidState >
static Scalar heatCapacity (const FluidState &fluidState, int phaseIdx=0)
 Specific isobaric heat capacity of the fluid \(\mathrm{[J/(kg K)]}\). 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 density (const FluidState &fluidState, const ParameterCache &paramCache, 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 molarDensity (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid 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 enthalpy (const FluidState &fluidState, const ParameterCache &paramCache, int phaseIdx)
 Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\). 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 viscosity (const FluidState &fluidState, const ParameterCache &paramCache, 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 fugacityCoefficient (const FluidState &fluidState, const ParameterCache &paramCache, 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 diffusionCoefficient (const FluidState &fluidState, const ParameterCache &paramCache, 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 binaryDiffusionCoefficient (const FluidState &fluidState, const ParameterCache &paramCache, 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 thermalConductivity (const FluidState &fluidState, int phaseIdx)
 Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\). More...
 
template<class FluidState >
static Scalar thermalConductivity (const FluidState &fluidState, const ParameterCache &paramCache, 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...
 
template<class FluidState >
static Scalar heatCapacity (const FluidState &fluidState, const ParameterCache &paramCache, 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 Public Attributes

static constexpr int multiphaseFluidsystemPhaseIdx = phase
 the index of the phase we choose from the multi-phase fluid system More...
 
static constexpr int numPhases = 1
 number of phases in the fluid system More...
 
static constexpr int numComponents = MultiPhaseFluidSystem::isMiscible() ? MultiPhaseFluidSystem::numComponents : numPhases
 
static constexpr int phase0Idx = 0
 number of components has to be the same as in the multi-phase fluid system as the composition needs to be defined More...
 

Member Typedef Documentation

◆ MultiPhaseFluidSystem

template<class MPFluidSystem , int phase = 0>
using Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::MultiPhaseFluidSystem = MPFluidSystem

export the wrapped MultiPhaseFluidSystem type

◆ ParameterCache

template<class MPFluidSystem , int phase = 0>
using Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::ParameterCache = NullParameterCache

◆ Scalar

template<class MPFluidSystem , int phase = 0>
using Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::Scalar = typename Base::Scalar

Member Function Documentation

◆ binaryDiffusionCoefficient() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::binaryDiffusionCoefficient ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx,
int  compIIdx,
int  compJIdx 
)
inlinestatic

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.

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase
compIIdxIndex of the component i
compJIdxIndex of the component j

◆ binaryDiffusionCoefficient() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::binaryDiffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIIdx,
int  compJIdx 
)
inlinestatic

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.

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase
compIIdxIndex of the component i
compJIdxIndex of the component j

◆ binaryDiffusionCoefficient() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::binaryDiffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIIdx,
int  compJIdx 
)
inlinestatic

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.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIIdxThe index of the component to consider
compJIdxThe index of the component to consider

◆ compIdx()

template<class MPFluidSystem , int phase = 0>
static constexpr int Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::compIdx ( int  multiPhaseFluidSystemCompIdx)
inlinestaticconstexpr

convert a component index of the multi-phase component index to the actual component index

◆ componentEnthalpy()

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::componentEnthalpy ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Returns the specific enthalpy \(\mathrm{[J/kg]}\) of a component in a specific phase.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIdxThe index of the component to consider

◆ componentName()

template<class MPFluidSystem , int phase = 0>
static std::string Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::componentName ( int  compIdx)
inlinestatic

A human readable name for the component.

Parameters
compIdxThe index of the component to consider

◆ density() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::density ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Calculate the density \(\mathrm{[kg/m^3]}\) of a fluid phase.

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ density() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::density ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Calculate the density \(\mathrm{[kg/m^3]}\) of a fluid phase.

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ density() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::density ( const FluidState &  fluidState,
int  phaseIdx = 0 
)
inlinestatic

The density \(\mathrm{[kg/m^3]}\) of the component at a given pressure and temperature.

◆ diffusionCoefficient() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::diffusionCoefficient ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[mol^2 * s / (kg*m^3)]}\).

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase
compIdxIndex of the component Molecular diffusion of a component \(\mathrm{\kappa}\) is caused by a gradient of the chemical potential and follows the law

\[ J = - D \mathbf{grad} \mu_\kappa \]

where \(\mathrm{\mu_\kappa}\) is the component's chemical potential, \(\mathrm{D}\) is the diffusion coefficient and \(\mathrm{J}\) is the diffusive flux. \(\mathrm{\mu_\kappa}\) is connected to the component's fugacity \(\mathrm{f_\kappa}\) by the relation

\[ \mu_\kappa = R T_\alpha \mathrm{ln} \frac{f_\kappa}{p_\alpha} \]

where \(\mathrm{p_\alpha}\) and \(\mathrm{T_\alpha}\) are the fluid phase' pressure and temperature.

◆ diffusionCoefficient() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::diffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[mol^2 * s / (kg*m^3)]}\).

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase
compIdxIndex of the component Molecular diffusion of a component \(\mathrm{\kappa}\) is caused by a gradient of the chemical potential and follows the law

\[ J = - D \mathbf{grad} \mu_\kappa \]

where \(\mathrm{\mu_\kappa}\) is the component's chemical potential, \(\mathrm{D}\) is the diffusion coefficient and \(\mathrm{J}\) is the diffusive flux. \(\mathrm{\mu_\kappa}\) is connected to the component's fugacity \(\mathrm{f_\kappa}\) by the relation

\[ \mu_\kappa = R T_\alpha \mathrm{ln} \frac{f_\kappa}{p_\alpha} \]

where \(\mathrm{p_\alpha}\) and \(\mathrm{T_\alpha}\) are the fluid phase' pressure and temperature.

◆ diffusionCoefficient() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::diffusionCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the binary molecular diffusion coefficient for a component in a fluid phase \(\mathrm{[mol^2 * s / (kg*m^3)]}\).

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIdxThe index of the component to consider

◆ enthalpy() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::enthalpy ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\).

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ enthalpy() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::enthalpy ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy \(\mathrm{[J/kg]}\).

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ enthalpy() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::enthalpy ( const FluidState &  fluidState,
int  phaseIdx = 0 
)
inlinestatic

Specific enthalpy \(\mathrm{[J/kg]}\) the pure component as a liquid.

◆ fugacityCoefficient() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::fugacityCoefficient ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase.

The fugacity coefficient \(\mathrm{\phi^\kappa_\alpha}\) is connected to the fugacity \(\mathrm{f^\kappa_\alpha}\) and the component's mole fraction \(\mathrm{x^\kappa_\alpha}\) by means of the relation

\[ f^\kappa_\alpha = \phi^\kappa_\alpha\;x^\kappa_\alpha\;p_\alpha \]

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase
compIdxIndex of the component

◆ fugacityCoefficient() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::fugacityCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase.

The fugacity coefficient \(\mathrm{\phi^\kappa_\alpha}\) is connected to the fugacity \(\mathrm{f^\kappa_\alpha}\) and the component's mole fraction \(\mathrm{x^\kappa_\alpha}\) by means of the relation

\[ f^\kappa_\alpha = \phi^\kappa_\alpha\;x^\kappa_\alpha\;p_\alpha \]

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase
compIdxIndex of the component

◆ fugacityCoefficient() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::fugacityCoefficient ( const FluidState &  fluidState,
int  phaseIdx,
int  compIdx 
)
inlinestatic

Calculate the fugacity coefficient \(\mathrm{[Pa]}\) of an individual component in a fluid phase.

Parameters
fluidStateAn arbitrary fluid state
phaseIdxThe index of the fluid phase to consider
compIdxThe index of the component to consider

◆ getMainComponent()

static constexpr int Dumux::FluidSystems::Base< MPFluidSystem::Scalar , OnePAdapter< MPFluidSystem, 0 > >::getMainComponent ( int  phaseIdx)
inlinestaticconstexprinherited

Get the main component of a given phase if possible.

Parameters
phaseIdxThe index of the fluid phase to consider
Note
This method has to can assert at compile time if the fluid system doesn't assume a main phase. Then using e.g. Fick's law will fail compiling.
Todo:
Unfortunately we currently still have the assumption in some volume variables (e.g. 1pnc, 2pnc) that the main component index of a phase is equal to the phase index of that phase. This means changing this only works if the volume variables are written accordingly.

◆ heatCapacity() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::heatCapacity ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Specific isobaric heat capacity \(c_{p,\alpha}\) of a fluid phase \(\mathrm{[J/(kg*K)]}\).

Parameters
fluidStaterepresents all relevant thermodynamic quantities of a fluid system
paramCachemutable parameters
phaseIdxIndex of the fluid phase

Given a fluid state, an up-to-date parameter cache and a phase index, this method computes the isobaric heat capacity \(c_{p,\alpha}\) of the fluid phase. The isobaric heat capacity is defined as the partial derivative of the specific enthalpy \(h_\alpha\) to the fluid pressure \(p_\alpha\):

\( c_{p,\alpha} = \frac{\partial h_\alpha}{\partial p_\alpha} \)

◆ heatCapacity() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::heatCapacity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Specific isobaric heat capacity \(c_{p,\alpha}\) of a fluid phase \(\mathrm{[J/(kg*K)]}\).

Parameters
fluidStaterepresents all relevant thermodynamic quantities of a fluid system
phaseIdxIndex of the fluid phase

Given a fluid state, an up-to-date parameter cache and a phase index, this method computes the isobaric heat capacity \(c_{p,\alpha}\) of the fluid phase. The isobaric heat capacity is defined as the partial derivative of the specific enthalpy \(h_\alpha\) to the fluid pressure \(p_\alpha\):

\( c_{p,\alpha} = \frac{\partial h_\alpha}{\partial p_\alpha} \)

◆ heatCapacity() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::heatCapacity ( const FluidState &  fluidState,
int  phaseIdx = 0 
)
inlinestatic

Specific isobaric heat capacity of the fluid \(\mathrm{[J/(kg K)]}\).

◆ init()

template<class MPFluidSystem , int phase = 0>
template<class ... Args>
static void Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::init ( Args &&...  args)
inlinestatic

Initialize the fluid system's static parameters generically.

◆ isCompressible()

template<class MPFluidSystem , int phase = 0>
static constexpr bool Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::isCompressible ( int  phaseIdx = 0)
inlinestaticconstexpr

Returns true if the fluid is assumed to be compressible.

◆ isGas()

template<class MPFluidSystem , int phase = 0>
static constexpr bool Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::isGas ( int  phaseIdx = 0)
inlinestaticconstexpr

Returns whether the fluid is gaseous.

◆ isIdealGas()

template<class MPFluidSystem , int phase = 0>
static constexpr bool Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::isIdealGas ( int  phaseIdx = 0)
inlinestaticconstexpr

Returns true if the fluid is assumed to be an ideal gas.

◆ isIdealMixture()

template<class MPFluidSystem , int phase = 0>
static constexpr bool Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::isIdealMixture ( int  phaseIdx = 0)
inlinestaticconstexpr

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 only a single component is involved. 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.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ isMiscible()

template<class MPFluidSystem , int phase = 0>
static constexpr bool Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::isMiscible ( )
inlinestaticconstexpr

There is only one phase, so not mass transfer between phases can occur.

◆ isTracerFluidSystem()

static constexpr bool Dumux::FluidSystems::Base< MPFluidSystem::Scalar , OnePAdapter< MPFluidSystem, 0 > >::isTracerFluidSystem ( )
inlinestaticconstexprinherited

Some properties of the fluid system.

If the fluid system only contains tracer components

◆ molarDensity() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::molarDensity ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid phase.

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ molarDensity() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::molarDensity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Calculate the molar density \(\mathrm{[mol/m^3]}\) of a fluid phase.

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ molarDensity() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::molarDensity ( const FluidState &  fluidState,
int  phaseIdx = 0 
)
inlinestatic

The molar density \(\rho_{mol,\alpha}\) of a fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\).

The molar density is defined by the mass density \(\rho_\alpha\) and the main component molar mass \(M_\alpha\):

\[\rho_{mol,\alpha} = \frac{\rho_\alpha}{M_\alpha} \;.\]

◆ molarMass()

template<class MPFluidSystem , int phase = 0>
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::molarMass ( int  compIdx)
inlinestatic

The mass in \(\mathrm{[kg]}\) of one mole of the component.

◆ name()

template<class MPFluidSystem , int phase = 0>
static std::string Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::name ( )
inlinestatic

A human readable name for the component.

◆ phaseName()

template<class MPFluidSystem , int phase = 0>
static std::string Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::phaseName ( int  phaseIdx = 0)
inlinestatic

Return the human readable name of a fluid phase.

Parameters
phaseIdxThe index of the fluid phase to consider

◆ thermalConductivity() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::thermalConductivity ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\).

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ thermalConductivity() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::thermalConductivity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Thermal conductivity \(\lambda_\alpha \) of a fluid phase \(\mathrm{[W/(m K)]}\).

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ thermalConductivity() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::thermalConductivity ( const FluidState &  fluidState,
int  phaseIdx = 0 
)
inlinestatic

Thermal conductivity of the fluid \(\mathrm{[W/(m K)]}\).

◆ viscosity() [1/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::viscosity ( const FluidState &  fluidState,
const ParameterCache paramCache,
int  phaseIdx 
)
inlinestatic

Calculate the dynamic viscosity of a fluid phase \(\mathrm{[Pa*s]}\).

Parameters
fluidStateThe fluid state
paramCachemutable parameters
phaseIdxIndex of the fluid phase

◆ viscosity() [2/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::Base< ScalarType, Implementation >::viscosity ( const FluidState &  fluidState,
int  phaseIdx 
)
inlinestatic

Calculate the dynamic viscosity of a fluid phase \(\mathrm{[Pa*s]}\).

Parameters
fluidStateThe fluid state
phaseIdxIndex of the fluid phase

◆ viscosity() [3/3]

template<class MPFluidSystem , int phase = 0>
template<class FluidState >
static Scalar Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::viscosity ( const FluidState &  fluidState,
int  phaseIdx = 0 
)
inlinestatic

The dynamic liquid viscosity \(\mathrm{[N/m^3*s]}\) of the pure component.

◆ viscosityIsConstant()

template<class MPFluidSystem , int phase = 0>
static constexpr bool Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::viscosityIsConstant ( int  phaseIdx = 0)
inlinestaticconstexpr

Returns true if the fluid viscosity is constant.

Member Data Documentation

◆ multiphaseFluidsystemPhaseIdx

template<class MPFluidSystem , int phase = 0>
constexpr int Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::multiphaseFluidsystemPhaseIdx = phase
staticconstexpr

the index of the phase we choose from the multi-phase fluid system

◆ numComponents

template<class MPFluidSystem , int phase = 0>
constexpr int Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::numComponents = MultiPhaseFluidSystem::isMiscible() ? MultiPhaseFluidSystem::numComponents : numPhases
staticconstexpr

for compositional models, the number of components has to be the same as in the multi-phase fluid system as the composition needs to be defined, while for non-compositional models, the number of components must equal the number of phases (1 in this case)

◆ numPhases

template<class MPFluidSystem , int phase = 0>
constexpr int Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::numPhases = 1
staticconstexpr

number of phases in the fluid system

◆ phase0Idx

template<class MPFluidSystem , int phase = 0>
constexpr int Dumux::FluidSystems::OnePAdapter< MPFluidSystem, phase >::phase0Idx = 0
staticconstexpr

number of components has to be the same as in the multi-phase fluid system as the composition needs to be defined

index of the only phase


The documentation for this class was generated from the following file: