25#ifndef DUMUX_THREE_GAS_COMPONENT_FLUID_SYSTEM_HH
26#define DUMUX_THREE_GAS_COMPONENT_FLUID_SYSTEM_HH
31namespace FluidSystems {
57 case H2Idx:
return "H2";
58 case N2Idx:
return "N2";
61 DUNE_THROW(Dune::InvalidStateException,
"Invalid compIdx index " << compIdx);
84 template <
class Flu
idState>
90 if (compIIdx > compJIdx)
93 swap(compIIdx, compJIdx);
102 DUNE_THROW(Dune::InvalidStateException,
103 "Binary diffusion coefficient of components "
104 << compIIdx <<
" and " << compJIdx <<
" is undefined!\n");
115 template <
class Flu
idState>
129 template <
class Flu
idState>
146 template <
class Flu
idState>
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Fluid system base class.
Definition: fluidsystems/base.hh:45
Scalar Scalar
export the scalar type
Definition: fluidsystems/base.hh:48
static Scalar density(const FluidState &fluidState, int phaseIdx)
Calculate the density of a fluid phase.
Definition: fluidsystems/base.hh:134
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 for c...
Definition: fluidsystems/base.hh:326
static Scalar molarDensity(const FluidState &fluidState, int phaseIdx)
Calculate the molar density of a fluid phase.
Definition: fluidsystems/base.hh:160
static Scalar viscosity(const FluidState &fluidState, int phaseIdx)
Calculate the dynamic viscosity of a fluid phase .
Definition: fluidsystems/base.hh:236
A simple fluid system with one Maxwell-Stefan component.
Definition: h2n2co2fluidsystem.hh:39
static std::string componentName(int compIdx)
Human readable component name (index compIdx) (for vtk output)
Definition: h2n2co2fluidsystem.hh:53
static constexpr int numPhases
The number of phases.
Definition: h2n2co2fluidsystem.hh:45
static constexpr int CO2Idx
Definition: h2n2co2fluidsystem.hh:50
static Scalar binaryDiffusionCoefficient(const FluidState &fluidState, int phaseIdx, int compIIdx, int compJIdx)
Given a phase's composition, temperature and pressure, returns the binary diffusion coefficient for ...
Definition: h2n2co2fluidsystem.hh:85
static constexpr int numComponents
Definition: h2n2co2fluidsystem.hh:46
static std::string phaseName(int phaseIdx=0)
Human readable phase name (index phaseIdx) (for velocity vtk output)
Definition: h2n2co2fluidsystem.hh:65
static constexpr int N2Idx
Definition: h2n2co2fluidsystem.hh:49
static Scalar density(const FluidState &fluidState, const int phaseIdx)
Given a phase's composition, temperature, pressure, and the partial pressures of all components,...
Definition: h2n2co2fluidsystem.hh:116
static constexpr int H2Idx
Definition: h2n2co2fluidsystem.hh:48
static Scalar viscosity(const FluidState &fluidState, int phaseIdx)
Calculates the dynamic viscosity of a fluid phase .
Definition: h2n2co2fluidsystem.hh:130
static Scalar molarDensity(const FluidState &fluidState, int phaseIdx)
The molar density of a fluid phase in .
Definition: h2n2co2fluidsystem.hh:147
static Scalar molarMass(unsigned int compIdx)
Molar mass in kg/mol of the component with index compIdx.
Definition: h2n2co2fluidsystem.hh:69