Skip to content
Snippets Groups Projects
Commit 1294b8a5 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'cherry-pick-ea7fcba9' into 'next'

Merge branch 'feature/relativehumidity' into 'next'

See merge request !467
parents 0e3aba1f ee5de188
No related branches found
No related tags found
Loading
...@@ -569,6 +569,19 @@ public: ...@@ -569,6 +569,19 @@ public:
return 1.0; 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; using Base::diffusionCoefficient;
template <class FluidState> template <class FluidState>
static Scalar diffusionCoefficient(const FluidState &fluidState, static Scalar diffusionCoefficient(const FluidState &fluidState,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment