26#ifndef DUMUX_TEMPERATURE_OVERLAY_FLUID_STATE_HH
27#define DUMUX_TEMPERATURE_OVERLAY_FLUID_STATE_HH
37template <
class Flu
idState>
41 static constexpr int numPhases = FluidState::numPhases;
45 using Scalar =
typename FluidState::Scalar;
79 {
return fs_->saturation(phaseIdx); }
85 {
return fs_->moleFraction(phaseIdx, compIdx); }
91 {
return fs_->massFraction(phaseIdx, compIdx); }
97 {
return fs_->averageMolarMass(phaseIdx); }
103 {
return fs_->molarity(phaseIdx, compIdx); }
109 {
return fs_->fugacity(phaseIdx, compIdx); }
115 {
return fs_->fugacityCoefficient(phaseIdx, compIdx); }
121 {
return fs_->molarVolume(phaseIdx); }
127 {
return fs_->density(phaseIdx); }
133 {
return fs_->molarDensity(phaseIdx); }
145 {
return fs_->pressure(phaseIdx); }
151 {
return fs_->enthalpy(phaseIdx); }
157 {
return fs_->internalEnergy(phaseIdx); }
163 {
return fs_->viscosity(phaseIdx); }
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
This is a fluid state which allows to set the fluid temperatures and takes all other quantities from ...
Definition: temperatureoverlay.hh:39
Scalar moleFraction(int phaseIdx, int compIdx) const
Returns the molar fraction of the component in fluid phase in .
Definition: temperatureoverlay.hh:84
Scalar density(int phaseIdx) const
The mass density of the fluid phase in .
Definition: temperatureoverlay.hh:126
Scalar molarDensity(int phaseIdx) const
The molar density of the fluid phase in .
Definition: temperatureoverlay.hh:132
TemperatureOverlayFluidState(const FluidState &fs)
Constructor.
Definition: temperatureoverlay.hh:55
typename FluidState::Scalar Scalar
export the scalar type
Definition: temperatureoverlay.hh:45
static constexpr int numPhases
Definition: temperatureoverlay.hh:41
Scalar internalEnergy(int phaseIdx) const
The specific internal energy of a fluid phase in .
Definition: temperatureoverlay.hh:156
TemperatureOverlayFluidState & operator=(TemperatureOverlayFluidState &&fs)=default
const FluidState * fs_
Definition: temperatureoverlay.hh:178
Scalar molarVolume(int phaseIdx) const
The molar volume of a fluid phase in .
Definition: temperatureoverlay.hh:120
Scalar massFraction(int phaseIdx, int compIdx) const
Returns the mass fraction of component in fluid phase in .
Definition: temperatureoverlay.hh:90
Scalar molarity(int phaseIdx, int compIdx) const
The molar concentration of component in fluid phase in .
Definition: temperatureoverlay.hh:102
TemperatureOverlayFluidState(Scalar T, const FluidState &fs)
Definition: temperatureoverlay.hh:61
Scalar saturation(int phaseIdx) const
Returns the saturation of a fluid phase in .
Definition: temperatureoverlay.hh:78
Scalar viscosity(int phaseIdx) const
The dynamic viscosity of fluid phase in .
Definition: temperatureoverlay.hh:162
Scalar pressure(int phaseIdx) const
The pressure of a fluid phase in .
Definition: temperatureoverlay.hh:144
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:138
Scalar enthalpy(int phaseIdx) const
The specific enthalpy of a fluid phase in .
Definition: temperatureoverlay.hh:150
Scalar fugacity(int phaseIdx, int compIdx) const
The fugacity of component in fluid phase in .
Definition: temperatureoverlay.hh:108
static constexpr int numComponents
Definition: temperatureoverlay.hh:42
Scalar fugacityCoefficient(int phaseIdx, int compIdx) const
The fugacity coefficient of component in fluid phase in .
Definition: temperatureoverlay.hh:114
void setTemperature(Scalar value)
Set the temperature of a fluid phase.
Definition: temperatureoverlay.hh:174
Scalar averageMolarMass(int phaseIdx) const
The average molar mass of phase in .
Definition: temperatureoverlay.hh:96
Scalar temperature_
Definition: temperatureoverlay.hh:179