Skip to content
Snippets Groups Projects

[fluidsystems][h2oair] Implement relative humidity

Merged Thomas Fetzer requested to merge feature/relativehumidity into master
1 file
+ 13
0
Compare changes
  • Side-by-side
  • Inline
@@ -572,6 +572,19 @@ public:
return 1.0;
}
/*!
* \brief Returns the relative humidity of the gas phase.
*
* The relative humidity is the ratio of the partial pressure of water vapor
* to the equilibrium vapor pressure of water at a given temperature.
*/
template <class FluidState>
static Scalar relativeHumidity(const FluidState &fluidState)
{
return fluidState.partialPressure(nPhaseIdx, wCompIdx)
/ H2O::vaporPressure(fluidState.temperature(nPhaseIdx));
}
using Base::diffusionCoefficient;
template <class FluidState>
static Scalar diffusionCoefficient(const FluidState &fluidState,
Loading