24#ifndef DUMUX_PSEUDO1P2C_FLUID_STATE_HH
25#define DUMUX_PSEUDO1P2C_FLUID_STATE_HH
42template <
class ScalarType,
class Flu
idSystem>
47 static constexpr int numPhases = FluidSystem::numPhases;
96 assert(FluidSystem::isGas(phaseIdx));
124 return phaseIdx == compIdx ? 1.0 : 0.0;
142 return phaseIdx == compIdx ? 1.0 : 0.0;
Container for compositional variables in a 1p2c situation.
Definition: pseudo1p2c.hh:44
Scalar temperature_
Definition: pseudo1p2c.hh:308
ScalarType Scalar
export the scalar type
Definition: pseudo1p2c.hh:51
Scalar averageMolarMass_
Definition: pseudo1p2c.hh:301
void setAverageMolarMass(int phaseIdx, Scalar value)
Set the average molar mass of a fluid phase [kg/mol].
Definition: pseudo1p2c.hh:276
Scalar enthalpy_
Definition: pseudo1p2c.hh:307
void setMassFraction(int phaseIdx, int compIdx, Scalar value)
Sets the mass fraction of a component in a phase.
Definition: pseudo1p2c.hh:216
Scalar partialPressure(int compIdx) const
Return the partial pressure of a component in the gas phase.
Definition: pseudo1p2c.hh:87
Scalar massFractionWater_
Definition: pseudo1p2c.hh:302
void setPresentPhaseIdx(int phaseIdx)
Sets the phase Index that is present in this fluidState.
Definition: pseudo1p2c.hh:257
Scalar internalEnergy(int phaseIdx) const
The specific internal energy of a fluid phase in .
Definition: pseudo1p2c.hh:180
Scalar density_
Definition: pseudo1p2c.hh:304
Scalar moleFractionWater_
Definition: pseudo1p2c.hh:303
void setPressure(int phaseIdx, Scalar value)
Sets the phase pressure .
Definition: pseudo1p2c.hh:282
Scalar massConcentration_[numComponents]
Definition: pseudo1p2c.hh:300
Scalar viscosity(int phaseIdx) const
The dynamic viscosity of fluid phase in .
Definition: pseudo1p2c.hh:150
Scalar density(int phaseIdx) const
Set the density of a phase .
Definition: pseudo1p2c.hh:109
int presentPhaseIdx() const
Returns the index of the phase that is present in that cell.
Definition: pseudo1p2c.hh:75
Scalar viscosity_
Definition: pseudo1p2c.hh:306
Scalar pressure_[numPhases]
Definition: pseudo1p2c.hh:299
int presentPhaseIdx_
Definition: pseudo1p2c.hh:309
static constexpr int numComponents
Definition: pseudo1p2c.hh:48
Scalar molarDensity(int phaseIdx) const
The molar density of the fluid phase in .
Definition: pseudo1p2c.hh:115
Scalar pressure(int phaseIdx) const
The pressure of a fluid phase in .
Definition: pseudo1p2c.hh:103
Scalar moleFraction(int phaseIdx, int compIdx) const
Returns the molar fraction of the component in fluid phase in .
Definition: pseudo1p2c.hh:139
Scalar partialPressure(int phaseIdx, int compIdx) const
The partial pressure of a component in a phase .
Definition: pseudo1p2c.hh:94
void setDensity(int phaseIdx, Scalar value)
Sets the density of a phase .
Definition: pseudo1p2c.hh:235
Scalar enthalpy(int phaseIdx) const
The specific enthalpy of a fluid phase in .
Definition: pseudo1p2c.hh:170
@ phase1Idx
Definition: pseudo1p2c.hh:55
@ phase0Idx
Definition: pseudo1p2c.hh:54
@ comp0Idx
Definition: pseudo1p2c.hh:57
@ comp1Idx
Definition: pseudo1p2c.hh:58
void setViscosity(int phaseIdx, Scalar value)
Sets the viscosity of a phase .
Definition: pseudo1p2c.hh:203
void setEnthalpy(int phaseIdx, Scalar value)
Sets phase enthalpy.
Definition: pseudo1p2c.hh:291
void setMolarDensity(int phaseIdx, Scalar value)
Set the molar density of a phase .
Definition: pseudo1p2c.hh:247
void setTemperature(Scalar value)
Sets the temperature.
Definition: pseudo1p2c.hh:265
Scalar temperature(int phaseIdx) const
Returns the temperature of the fluids .
Definition: pseudo1p2c.hh:189
Scalar massFraction(int phaseIdx, int compIdx) const
Returns the mass fraction of component in fluid phase in .
Definition: pseudo1p2c.hh:121
void setMoleFraction(int phaseIdx, int compIdx, Scalar value)
Sets the molar fraction of a component in a fluid phase.
Definition: pseudo1p2c.hh:226
Scalar averageMolarMass(int phaseIdx) const
The average molar mass of phase in .
Definition: pseudo1p2c.hh:164
Scalar saturation(int phaseIdx) const
Returns the saturation of a fluid phase in .
Definition: pseudo1p2c.hh:71
Scalar molarDensity_
Definition: pseudo1p2c.hh:305
static constexpr int numPhases
Definition: pseudo1p2c.hh:47