14#ifndef DUMUX_PRESSURE_OVERLAY_FLUID_STATE_HH 
   15#define DUMUX_PRESSURE_OVERLAY_FLUID_STATE_HH 
   25template <
class Flu
idState>
 
   29    static constexpr int numPhases = FluidState::numPhases;
 
   33    using Scalar = 
typename FluidState::Scalar;
 
   46        for (
int phaseIdx = 0; phaseIdx < 
numPhases; ++phaseIdx)
 
   47            pressure_[phaseIdx] = fs.pressure(phaseIdx);
 
 
   69    { 
return fs_->saturation(phaseIdx); }
 
 
   81    { 
return fs_->moleFraction(phaseIdx, compIdx); }
 
 
   99    { 
return fs_->massFraction(phaseIdx, compIdx); }
 
 
  110    { 
return fs_->averageMolarMass(phaseIdx); }
 
 
  122    { 
return fs_->molarity(phaseIdx, compIdx); }
 
 
  142    { 
return fs_->fugacity(phaseIdx, compIdx); }
 
 
  148    { 
return fs_->fugacityCoefficient(phaseIdx, compIdx); }
 
 
  156    { 
return fs_->molarVolume(phaseIdx); }
 
 
  163    { 
return fs_->density(phaseIdx); }
 
 
  174    { 
return fs_->molarDensity(phaseIdx); }
 
 
  180    { 
return fs_->temperature(phaseIdx); }
 
 
  192    { 
return fs_->enthalpy(phaseIdx); }
 
 
  202    { 
return fs_->internalEnergy(phaseIdx); }
 
 
  208    { 
return fs_->viscosity(phaseIdx); }
 
 
 
Scalar viscosity(int phaseIdx) const
The dynamic viscosity  of fluid phase  in .
Definition pressureoverlay.hh:207
Scalar molarity(int phaseIdx, int compIdx) const
The molar concentration  of component  in fluid phase  in .
Definition pressureoverlay.hh:121
Scalar saturation(int phaseIdx) const
Returns the saturation  of a fluid phase  in .
Definition pressureoverlay.hh:68
Scalar moleFraction(int phaseIdx, int compIdx) const
Returns the molar fraction  of the component  in fluid phase  in .
Definition pressureoverlay.hh:80
Scalar fugacityCoefficient(int phaseIdx, int compIdx) const
The fugacity coefficient  of component  in fluid phase  in .
Definition pressureoverlay.hh:147
Scalar temperature(int phaseIdx) const
The absolute temperature  of a fluid phase  in .
Definition pressureoverlay.hh:179
Scalar internalEnergy(int phaseIdx) const
The specific internal energy  of a fluid phase  in .
Definition pressureoverlay.hh:201
Scalar averageMolarMass(int phaseIdx) const
The average molar mass  of phase  in .
Definition pressureoverlay.hh:109
Scalar massFraction(int phaseIdx, int compIdx) const
Returns the mass fraction  of component  in fluid phase  in .
Definition pressureoverlay.hh:98
PressureOverlayFluidState & operator=(const PressureOverlayFluidState &fs)=default
void setPressure(int phaseIdx, Scalar value)
Set the pressure  of a fluid phase.
Definition pressureoverlay.hh:219
static constexpr int numPhases
Definition pressureoverlay.hh:29
Scalar enthalpy(int phaseIdx) const
The specific enthalpy  of a fluid phase  in .
Definition pressureoverlay.hh:191
typename FluidState::Scalar Scalar
export the scalar type
Definition pressureoverlay.hh:33
PressureOverlayFluidState(const FluidState &fs)
Constructor.
Definition pressureoverlay.hh:43
static constexpr int numComponents
Definition pressureoverlay.hh:30
Scalar molarVolume(int phaseIdx) const
The molar volume  of a fluid phase  in .
Definition pressureoverlay.hh:155
Scalar pressure(int phaseIdx) const
The pressure  of a fluid phase  in .
Definition pressureoverlay.hh:185
PressureOverlayFluidState(PressureOverlayFluidState &&fs)=default
Scalar fugacity(int phaseIdx, int compIdx) const
The fugacity  of component  in fluid phase  in .
Definition pressureoverlay.hh:141
Scalar molarDensity(int phaseIdx) const
The molar density  of a fluid phase  in .
Definition pressureoverlay.hh:173
Scalar pressure_[numPhases]
Definition pressureoverlay.hh:224
PressureOverlayFluidState(const PressureOverlayFluidState &fs)=default
const FluidState * fs_
Definition pressureoverlay.hh:223
PressureOverlayFluidState & operator=(PressureOverlayFluidState &&fs)=default
Scalar density(int phaseIdx) const
The mass density  of the fluid phase  in .
Definition pressureoverlay.hh:162