26#ifndef DUMUX_SATURATION_OVERLAY_FLUID_STATE_HH
27#define DUMUX_SATURATION_OVERLAY_FLUID_STATE_HH
37template <
class Flu
idState>
41 static constexpr int numPhases = FluidState::numPhases;
45 using Scalar =
typename FluidState::Scalar;
58 for (
int phaseIdx = 0; phaseIdx <
numPhases; ++phaseIdx)
87 {
return fs_->moleFraction(phaseIdx, compIdx); }
93 {
return fs_->massFraction(phaseIdx, compIdx); }
99 {
return fs_->averageMolarMass(phaseIdx); }
105 {
return fs_->molarity(phaseIdx, compIdx); }
111 {
return fs_->fugacity(phaseIdx, compIdx); }
117 {
return fs_->fugacityCoefficient(phaseIdx, compIdx); }
123 {
return fs_->molarVolume(phaseIdx); }
129 {
return fs_->density(phaseIdx); }
135 {
return fs_->molarDensity(phaseIdx); }
141 {
return fs_->temperature(phaseIdx); }
147 {
return fs_->pressure(phaseIdx); }
153 {
return fs_->enthalpy(phaseIdx); }
159 {
return fs_->internalEnergy(phaseIdx); }
165 {
return fs_->viscosity(phaseIdx); }
This is a fluid state which allows to set the fluid saturations and takes all other quantities from a...
Definition: saturationoverlay.hh:39
SaturationOverlayFluidState(const SaturationOverlayFluidState &fs)=default
SaturationOverlayFluidState & operator=(const SaturationOverlayFluidState &fs)=default
Scalar averageMolarMass(int phaseIdx) const
The average molar mass of phase in .
Definition: saturationoverlay.hh:98
static constexpr int numComponents
Definition: saturationoverlay.hh:42
Scalar molarVolume(int phaseIdx) const
The molar volume of a fluid phase in .
Definition: saturationoverlay.hh:122
Scalar density(int phaseIdx) const
The mass density of the fluid phase in .
Definition: saturationoverlay.hh:128
void setSaturation(int phaseIdx, Scalar value)
Set the saturation of a fluid phase.
Definition: saturationoverlay.hh:176
Scalar enthalpy(int phaseIdx) const
The specific enthalpy of a fluid phase in .
Definition: saturationoverlay.hh:152
Scalar temperature(int phaseIdx) const
The absolute temperature of a fluid phase in .
Definition: saturationoverlay.hh:140
Scalar fugacityCoefficient(int phaseIdx, int compIdx) const
The fugacity coefficient of component in fluid phase in .
Definition: saturationoverlay.hh:116
Scalar molarity(int phaseIdx, int compIdx) const
The molar concentration of component in fluid phase in .
Definition: saturationoverlay.hh:104
Scalar massFraction(int phaseIdx, int compIdx) const
Returns the mass fraction of component in fluid phase in .
Definition: saturationoverlay.hh:92
const FluidState * fs_
Definition: saturationoverlay.hh:180
Scalar pressure(int phaseIdx) const
The pressure of a fluid phase in .
Definition: saturationoverlay.hh:146
Scalar saturation(int phaseIdx) const
Returns the saturation of a fluid phase in .
Definition: saturationoverlay.hh:80
static constexpr int numPhases
Definition: saturationoverlay.hh:41
typename FluidState::Scalar Scalar
export the scalar type
Definition: saturationoverlay.hh:45
Scalar saturation_[numPhases]
Definition: saturationoverlay.hh:181
Scalar fugacity(int phaseIdx, int compIdx) const
The fugacity of component in fluid phase in .
Definition: saturationoverlay.hh:110
SaturationOverlayFluidState & operator=(SaturationOverlayFluidState &&fs)=default
SaturationOverlayFluidState(const FluidState &fs)
Constructor.
Definition: saturationoverlay.hh:55
Scalar moleFraction(int phaseIdx, int compIdx) const
Returns the molar fraction of the component in fluid phase in .
Definition: saturationoverlay.hh:86
Scalar internalEnergy(int phaseIdx) const
The specific internal energy of a fluid phase in .
Definition: saturationoverlay.hh:158
Scalar viscosity(int phaseIdx) const
The dynamic viscosity of fluid phase in .
Definition: saturationoverlay.hh:164
Scalar molarDensity(int phaseIdx) const
The molar density of the fluid phase in .
Definition: saturationoverlay.hh:134
SaturationOverlayFluidState(SaturationOverlayFluidState &&fs)=default