14#ifndef DUMUX_TEMPERATURE_OVERLAY_FLUID_STATE_HH 
   15#define DUMUX_TEMPERATURE_OVERLAY_FLUID_STATE_HH 
   25template <
class Flu
idState>
 
   29    static constexpr int numPhases = FluidState::numPhases;
 
   33    using Scalar = 
typename FluidState::Scalar;
 
   67    { 
return fs_->saturation(phaseIdx); }
 
 
   73    { 
return fs_->moleFraction(phaseIdx, compIdx); }
 
 
   79    { 
return fs_->massFraction(phaseIdx, compIdx); }
 
 
   85    { 
return fs_->averageMolarMass(phaseIdx); }
 
 
   91    { 
return fs_->molarity(phaseIdx, compIdx); }
 
 
   97    { 
return fs_->fugacity(phaseIdx, compIdx); }
 
 
  103    { 
return fs_->fugacityCoefficient(phaseIdx, compIdx); }
 
 
  109    { 
return fs_->molarVolume(phaseIdx); }
 
 
  115    { 
return fs_->density(phaseIdx); }
 
 
  121    { 
return fs_->molarDensity(phaseIdx); }
 
 
  133    { 
return fs_->pressure(phaseIdx); }
 
 
  139    { 
return fs_->enthalpy(phaseIdx); }
 
 
  145    { 
return fs_->internalEnergy(phaseIdx); }
 
 
  151    { 
return fs_->viscosity(phaseIdx); }
 
 
 
Scalar moleFraction(int phaseIdx, int compIdx) const
Returns the molar fraction  of the component  in fluid phase  in .
Definition temperatureoverlay.hh:72
Scalar density(int phaseIdx) const
The mass density  of the fluid phase  in .
Definition temperatureoverlay.hh:114
Scalar molarDensity(int phaseIdx) const
The molar density  of the fluid phase  in .
Definition temperatureoverlay.hh:120
TemperatureOverlayFluidState(const FluidState &fs)
Constructor.
Definition temperatureoverlay.hh:43
typename FluidState::Scalar Scalar
export the scalar type
Definition temperatureoverlay.hh:33
static constexpr int numPhases
Definition temperatureoverlay.hh:29
Scalar internalEnergy(int phaseIdx) const
The specific internal energy  of a fluid phase  in .
Definition temperatureoverlay.hh:144
TemperatureOverlayFluidState & operator=(TemperatureOverlayFluidState &&fs)=default
const FluidState * fs_
Definition temperatureoverlay.hh:166
Scalar molarVolume(int phaseIdx) const
The molar volume  of a fluid phase  in .
Definition temperatureoverlay.hh:108
Scalar massFraction(int phaseIdx, int compIdx) const
Returns the mass fraction  of component  in fluid phase  in .
Definition temperatureoverlay.hh:78
Scalar molarity(int phaseIdx, int compIdx) const
The molar concentration  of component  in fluid phase  in .
Definition temperatureoverlay.hh:90
TemperatureOverlayFluidState(Scalar T, const FluidState &fs)
Definition temperatureoverlay.hh:49
Scalar saturation(int phaseIdx) const
Returns the saturation  of a fluid phase  in .
Definition temperatureoverlay.hh:66
Scalar viscosity(int phaseIdx) const
The dynamic viscosity  of fluid phase  in .
Definition temperatureoverlay.hh:150
Scalar pressure(int phaseIdx) const
The pressure  of a fluid phase  in .
Definition temperatureoverlay.hh:132
TemperatureOverlayFluidState(TemperatureOverlayFluidState &&fs)=default
TemperatureOverlayFluidState(const TemperatureOverlayFluidState &fs)=default
TemperatureOverlayFluidState & operator=(const TemperatureOverlayFluidState &fs)=default
Scalar temperature(int phaseIdx) const
The temperature of a fluid phase .
Definition temperatureoverlay.hh:126
Scalar enthalpy(int phaseIdx) const
The specific enthalpy  of a fluid phase  in .
Definition temperatureoverlay.hh:138
Scalar fugacity(int phaseIdx, int compIdx) const
The fugacity  of component  in fluid phase  in .
Definition temperatureoverlay.hh:96
static constexpr int numComponents
Definition temperatureoverlay.hh:30
Scalar fugacityCoefficient(int phaseIdx, int compIdx) const
The fugacity coefficient  of component  in fluid phase  in .
Definition temperatureoverlay.hh:102
void setTemperature(Scalar value)
Set the temperature  of a fluid phase.
Definition temperatureoverlay.hh:162
Scalar averageMolarMass(int phaseIdx) const
The average molar mass  of phase  in .
Definition temperatureoverlay.hh:84
Scalar temperature_
Definition temperatureoverlay.hh:167