This block computes the wet bulb temperature for a given dry bulb temperature, mass fraction and atmospheric pressure.
If the constant approximateWetBulb
is true
,
then the block uses the approximation of Stull (2011) to compute
the wet bulb temperature without requiring a nonlinear equation.
Otherwise, the model will introduce one nonlinear equation.
The approximation by Stull is valid for a relative humidity of 5% to 99%,
a temperature range from -20ˆC to 50ˆC
and standard sea level pressure.
For this range of data, the approximation error is -1 Kelvin to +0.65 Kelvin,
with a mean error of less than 0.3 Kelvin.
Otherwise a calculation based on an energy balance is used. See #474 for a discussion.
For a model that takes the relative humidity instead of the mass fraction as an input, see Annex60.Utilities.Psychrometrics.TWetBul_TDryBulPhi.
Stull, Roland. Wet-Bulb Temperature from Relative Humidity and Air Temperature Roland Stull. Journal of Applied Meteorology and Climatology. Volume 50, Issue 11, pp. 2267-2269. November 2011 DOI: 10.1175/JAMC-D-11-0143.1
Name | Description |
---|---|
Medium | Medium model |
p
.
This test is not needed as it is only active near or above the boiling temperature,
and the result is only used in the computation of rh_per
.
I do not see any negative impact from removing this test.
rh_per
to use
Annex60.Utilities.Math.Functions.smoothMin rather
than min
.
Annex60.Utilities.Psychrometrics.Functions.saturationPressure()
and
Annex60.Utilities.Psychrometrics.Functions.saturationPressureLiquid()
as these functions have been moved from the medium to the psychrometrics package.
XiSat
as this is an iteration
variable in OpenModelica.
X
.
However, Dymola 7.4 cannot differentiate the function if vector elements are accessed
using their index. In the new implementation, an inner product is used to access the vector element.
In addition, the medium substance name is searched using a case insensitive search.
WetBulbTemperature
to TWetBul_TDryBulXi
and changed obsolete real connectors to input and output connectors.