12#ifndef DUMUX_PSEUDO1P2C_FLUID_STATE_HH
13#define DUMUX_PSEUDO1P2C_FLUID_STATE_HH
30template <
class ScalarType,
class Flu
idSystem>
35 static constexpr int numPhases = FluidSystem::numPhases;
84 assert(FluidSystem::isGas(phaseIdx));
112 return phaseIdx == compIdx ? 1.0 : 0.0;
130 return phaseIdx == compIdx ? 1.0 : 0.0;
Container for compositional variables in a 1p2c situation.
Definition: pseudo1p2c.hh:32
Scalar temperature_
Definition: pseudo1p2c.hh:296
ScalarType Scalar
export the scalar type
Definition: pseudo1p2c.hh:39
Scalar averageMolarMass_
Definition: pseudo1p2c.hh:289
void setAverageMolarMass(int phaseIdx, Scalar value)
Set the average molar mass of a fluid phase [kg/mol].
Definition: pseudo1p2c.hh:264
Scalar enthalpy_
Definition: pseudo1p2c.hh:295
void setMassFraction(int phaseIdx, int compIdx, Scalar value)
Sets the mass fraction of a component in a phase.
Definition: pseudo1p2c.hh:204
Scalar partialPressure(int compIdx) const
Return the partial pressure of a component in the gas phase.
Definition: pseudo1p2c.hh:75
Scalar massFractionWater_
Definition: pseudo1p2c.hh:290
void setPresentPhaseIdx(int phaseIdx)
Sets the phase Index that is present in this fluidState.
Definition: pseudo1p2c.hh:245
Scalar internalEnergy(int phaseIdx) const
The specific internal energy of a fluid phase in .
Definition: pseudo1p2c.hh:168
Scalar density_
Definition: pseudo1p2c.hh:292
Scalar moleFractionWater_
Definition: pseudo1p2c.hh:291
void setPressure(int phaseIdx, Scalar value)
Sets the phase pressure .
Definition: pseudo1p2c.hh:270
Scalar massConcentration_[numComponents]
Definition: pseudo1p2c.hh:288
Scalar viscosity(int phaseIdx) const
The dynamic viscosity of fluid phase in .
Definition: pseudo1p2c.hh:138
Scalar density(int phaseIdx) const
Set the density of a phase .
Definition: pseudo1p2c.hh:97
int presentPhaseIdx() const
Returns the index of the phase that is present in that cell.
Definition: pseudo1p2c.hh:63
Scalar viscosity_
Definition: pseudo1p2c.hh:294
@ phase1Idx
Definition: pseudo1p2c.hh:43
@ phase0Idx
Definition: pseudo1p2c.hh:42
@ comp0Idx
Definition: pseudo1p2c.hh:45
@ comp1Idx
Definition: pseudo1p2c.hh:46
Scalar pressure_[numPhases]
Definition: pseudo1p2c.hh:287
int presentPhaseIdx_
Definition: pseudo1p2c.hh:297
static constexpr int numComponents
Definition: pseudo1p2c.hh:36
Scalar molarDensity(int phaseIdx) const
The molar density of the fluid phase in .
Definition: pseudo1p2c.hh:103
Scalar pressure(int phaseIdx) const
The pressure of a fluid phase in .
Definition: pseudo1p2c.hh:91
Scalar moleFraction(int phaseIdx, int compIdx) const
Returns the molar fraction of the component in fluid phase in .
Definition: pseudo1p2c.hh:127
Scalar partialPressure(int phaseIdx, int compIdx) const
The partial pressure of a component in a phase .
Definition: pseudo1p2c.hh:82
void setDensity(int phaseIdx, Scalar value)
Sets the density of a phase .
Definition: pseudo1p2c.hh:223
Scalar enthalpy(int phaseIdx) const
The specific enthalpy of a fluid phase in .
Definition: pseudo1p2c.hh:158
void setViscosity(int phaseIdx, Scalar value)
Sets the viscosity of a phase .
Definition: pseudo1p2c.hh:191
void setEnthalpy(int phaseIdx, Scalar value)
Sets phase enthalpy.
Definition: pseudo1p2c.hh:279
void setMolarDensity(int phaseIdx, Scalar value)
Set the molar density of a phase .
Definition: pseudo1p2c.hh:235
void setTemperature(Scalar value)
Sets the temperature.
Definition: pseudo1p2c.hh:253
Scalar temperature(int phaseIdx) const
Returns the temperature of the fluids .
Definition: pseudo1p2c.hh:177
Scalar massFraction(int phaseIdx, int compIdx) const
Returns the mass fraction of component in fluid phase in .
Definition: pseudo1p2c.hh:109
void setMoleFraction(int phaseIdx, int compIdx, Scalar value)
Sets the molar fraction of a component in a fluid phase.
Definition: pseudo1p2c.hh:214
Scalar averageMolarMass(int phaseIdx) const
The average molar mass of phase in .
Definition: pseudo1p2c.hh:152
Scalar saturation(int phaseIdx) const
Returns the saturation of a fluid phase in .
Definition: pseudo1p2c.hh:59
Scalar molarDensity_
Definition: pseudo1p2c.hh:293
static constexpr int numPhases
Definition: pseudo1p2c.hh:35