26#ifndef DUMUX_PRESSURE_OVERLAY_FLUID_STATE_HH
27#define DUMUX_PRESSURE_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)
59 pressure_[phaseIdx] = fs.pressure(phaseIdx);
81 {
return fs_->saturation(phaseIdx); }
93 {
return fs_->moleFraction(phaseIdx, compIdx); }
111 {
return fs_->massFraction(phaseIdx, compIdx); }
122 {
return fs_->averageMolarMass(phaseIdx); }
134 {
return fs_->molarity(phaseIdx, compIdx); }
154 {
return fs_->fugacity(phaseIdx, compIdx); }
160 {
return fs_->fugacityCoefficient(phaseIdx, compIdx); }
168 {
return fs_->molarVolume(phaseIdx); }
175 {
return fs_->density(phaseIdx); }
186 {
return fs_->molarDensity(phaseIdx); }
192 {
return fs_->temperature(phaseIdx); }
204 {
return fs_->enthalpy(phaseIdx); }
214 {
return fs_->internalEnergy(phaseIdx); }
220 {
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 pressures and takes all other quantities from an ...
Definition: pressureoverlay.hh:39
Scalar viscosity(int phaseIdx) const
The dynamic viscosity of fluid phase in .
Definition: pressureoverlay.hh:219
Scalar molarity(int phaseIdx, int compIdx) const
The molar concentration of component in fluid phase in .
Definition: pressureoverlay.hh:133
Scalar saturation(int phaseIdx) const
Returns the saturation of a fluid phase in .
Definition: pressureoverlay.hh:80
Scalar moleFraction(int phaseIdx, int compIdx) const
Returns the molar fraction of the component in fluid phase in .
Definition: pressureoverlay.hh:92
Scalar fugacityCoefficient(int phaseIdx, int compIdx) const
The fugacity coefficient of component in fluid phase in .
Definition: pressureoverlay.hh:159
Scalar temperature(int phaseIdx) const
The absolute temperature of a fluid phase in .
Definition: pressureoverlay.hh:191
Scalar internalEnergy(int phaseIdx) const
The specific internal energy of a fluid phase in .
Definition: pressureoverlay.hh:213
Scalar averageMolarMass(int phaseIdx) const
The average molar mass of phase in .
Definition: pressureoverlay.hh:121
Scalar massFraction(int phaseIdx, int compIdx) const
Returns the mass fraction of component in fluid phase in .
Definition: pressureoverlay.hh:110
PressureOverlayFluidState & operator=(const PressureOverlayFluidState &fs)=default
void setPressure(int phaseIdx, Scalar value)
Set the pressure of a fluid phase.
Definition: pressureoverlay.hh:231
static constexpr int numPhases
Definition: pressureoverlay.hh:41
Scalar enthalpy(int phaseIdx) const
The specific enthalpy of a fluid phase in .
Definition: pressureoverlay.hh:203
typename FluidState::Scalar Scalar
export the scalar type
Definition: pressureoverlay.hh:45
PressureOverlayFluidState(const FluidState &fs)
Constructor.
Definition: pressureoverlay.hh:55
static constexpr int numComponents
Definition: pressureoverlay.hh:42
Scalar molarVolume(int phaseIdx) const
The molar volume of a fluid phase in .
Definition: pressureoverlay.hh:167
Scalar pressure(int phaseIdx) const
The pressure of a fluid phase in .
Definition: pressureoverlay.hh:197
PressureOverlayFluidState(PressureOverlayFluidState &&fs)=default
Scalar fugacity(int phaseIdx, int compIdx) const
The fugacity of component in fluid phase in .
Definition: pressureoverlay.hh:153
Scalar molarDensity(int phaseIdx) const
The molar density of a fluid phase in .
Definition: pressureoverlay.hh:185
Scalar pressure_[numPhases]
Definition: pressureoverlay.hh:236
PressureOverlayFluidState(const PressureOverlayFluidState &fs)=default
const FluidState * fs_
Definition: pressureoverlay.hh:235
PressureOverlayFluidState & operator=(PressureOverlayFluidState &&fs)=default
Scalar density(int phaseIdx) const
The mass density of the fluid phase in .
Definition: pressureoverlay.hh:174