template<class ScalarType, class FluidSystem>
class Dumux::PseudoOnePTwoCFluidState< ScalarType, FluidSystem >
This class holds variables for single-phase situations in a 2p2c context. It is used in case of a multiphysics approach. For the non-present phase, no information is stored but 0-values are returned to allow for general output methods. The "flash" calculation routines are in the sequential flash constrain solver, see CompositionalFlash . 
|  | 
|  | 
| Scalar | saturation (int phaseIdx) const | 
|  | Returns the saturation \(S_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[-]}\). 
 | 
|  | 
| int | presentPhaseIdx () const | 
|  | Returns the index of the phase that is present in that cell. 
 | 
|  | 
| Scalar | partialPressure (int compIdx) const | 
|  | Return the partial pressure of a component in the gas phase. 
 | 
|  | 
| Scalar | partialPressure (int phaseIdx, int compIdx) const | 
|  | The partial pressure of a component in a phase \(\mathrm{[Pa]}\). 
 | 
|  | 
| Scalar | pressure (int phaseIdx) const | 
|  | The pressure \(p_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[Pa]}\). 
 | 
|  | 
| Scalar | density (int phaseIdx) const | 
|  | Set the density of a phase \(\mathrm{[kg / m^3]}\). 
 | 
|  | 
| Scalar | molarDensity (int phaseIdx) const | 
|  | The molar density \(\rho_\alpha\) of the fluid phase \(\alpha\) in \(\mathrm{[mol/m^3]}\). 
 | 
|  | 
| Scalar | massFraction (int phaseIdx, int compIdx) const | 
|  | Returns the mass fraction \(X^\kappa_\alpha\) of component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). 
 | 
|  | 
| Scalar | moleFraction (int phaseIdx, int compIdx) const | 
|  | Returns the molar fraction \(x^\kappa_\alpha\) of the component \(\kappa\) in fluid phase \(\alpha\) in \(\mathrm{[-]}\). 
 | 
|  | 
| Scalar | viscosity (int phaseIdx) const | 
|  | The dynamic viscosity \(\mu_\alpha\) of fluid phase \(\alpha\) in \(\mathrm{[Pa s]}\). 
 | 
|  | 
| Scalar | averageMolarMass (int phaseIdx) const | 
|  | The average molar mass \(\overline M_\alpha\) of phase \(\alpha\) in \(\mathrm{[kg/mol]}\). 
 | 
|  | 
| Scalar | enthalpy (int phaseIdx) const | 
|  | The specific enthalpy \(h_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[J/kg]}\). 
 | 
|  | 
| Scalar | internalEnergy (int phaseIdx) const | 
|  | The specific internal energy \(u_\alpha\) of a fluid phase \(\alpha\) in \(\mathrm{[J/kg]}\). 
 | 
|  | 
| Scalar | temperature (int phaseIdx) const | 
|  | Returns the temperature of the fluids \(\mathrm{[K]}\). 
 | 
|  | 
|  | 
| Scalar | pressure_ [numPhases] = {} | 
|  | 
| Scalar | massConcentration_ [numComponents] = {} | 
|  | 
| Scalar | averageMolarMass_ = 0.0 | 
|  | 
| Scalar | massFractionWater_ = 0.0 | 
|  | 
| Scalar | moleFractionWater_ = 0.0 | 
|  | 
| Scalar | density_ = 0.0 | 
|  | 
| Scalar | molarDensity_ = 0.0 | 
|  | 
| Scalar | viscosity_ = 0.0 | 
|  | 
| Scalar | enthalpy_ = 0.0 | 
|  | 
| Scalar | temperature_ = 0.0 | 
|  | 
| int | presentPhaseIdx_ = 0 | 
|  | 
| void | setViscosity (int phaseIdx, Scalar value) | 
|  | Sets the viscosity of a phase \(\mathrm{[Pa*s]}\). 
 | 
|  | 
| void | setMassFraction (int phaseIdx, int compIdx, Scalar value) | 
|  | Sets the mass fraction of a component in a phase. 
 | 
|  | 
| void | setMoleFraction (int phaseIdx, int compIdx, Scalar value) | 
|  | Sets the molar fraction of a component in a fluid phase. 
 | 
|  | 
| void | setDensity (int phaseIdx, Scalar value) | 
|  | Sets the density of a phase \(\mathrm{[kg/m^3]}\). 
 | 
|  | 
| void | setMolarDensity (int phaseIdx, Scalar value) | 
|  | Set the molar density of a phase \(\mathrm{[mol / m^3]}\). 
 | 
|  | 
| void | setPresentPhaseIdx (int phaseIdx) | 
|  | Sets the phase Index that is present in this fluidState. 
 | 
|  | 
| void | setTemperature (Scalar value) | 
|  | Sets the temperature. 
 | 
|  | 
| void | setAverageMolarMass (int phaseIdx, Scalar value) | 
|  | Set the average molar mass of a fluid phase [kg/mol]. 
 | 
|  | 
| void | setPressure (int phaseIdx, Scalar value) | 
|  | Sets the phase pressure \(\mathrm{[Pa]}\). 
 | 
|  | 
| void | setEnthalpy (int phaseIdx, Scalar value) | 
|  | Sets phase enthalpy. 
 | 
|  | 
template<class ScalarType, class FluidSystem> 
 
The mass fraction \(X^\kappa_\alpha\) is defined as the weight of all molecules of a component divided by the total mass of the fluid phase. It is related with the component's mole fraction by means of the relation
\[X^\kappa_\alpha = x^\kappa_\alpha \frac{M^\kappa}{\overline M_\alpha}\;,\]
where \(M^\kappa\) is the molar mass of component \(\kappa\) and \(\overline M_\alpha\) is the mean molar mass of a molecule of phase \(\alpha\).
- Parameters
- 
  
    | phaseIdx | the index of the phase |  | compIdx | the index of the component |