comf (version 0.1.7)

calcHumidity: Calculating Various Humidity Related Values

Description

This set of functions calculates different humidity related values based on the given entities.

Usage

calcDewp(ta, rh)
calcEnth(ta, rh, pb)
calcHumx(ta, rh)
calcMixR(ta, rh, pb)
calcRH(ta, mr, pb)
calcSVP(ta)
calcVP(ta, mr, pb)

Arguments

ta

a numeric value or vector presenting air temperature in [degree C]

rh

a numeric value or vector presenting relative humidity in [%]

mr

a numeric value or vector presenting the mixIng ratio in [g/kg]

pb

a numeric value or vector presenting barometric pressure in [torr]

Value

calcDewp returns the dew point temperature in [degree C]

calcEnth returns a single value or a vector of values of enthalpy in [J]

calcHumx returns a single value or a vector of values of the humidex of air [ ]

calcMixR returns a single value or a vector of mixIng ratio in [g/kg]

calcRH returns a single value or a vector of relative humidities in [%]

calcSVP returns a single value or a vector of saturation vapor pressure in [kpa]

calcVP returns a single value or a vector of vapor pressure in [kpa]

Details

The length of the arguments must be either the same or they must have the length one and one common second length.

References

For references related to humidex, see: Rajib Ranaa, Brano Kusya, Raja Jurdaka, Josh Wallb and Wen Hua, Feasibility analysis of using humidex as an indoor thermal comfort predictor, Energy and Buildings 64 (2013) 17-25.

Masterton, J. M., and Richardson, F. A., Humidex a method of quantifying humandiscomfort due to excessive heat and humidity, clI 1-79. Downsview, Ont: Environment Canada. Atmosheric Environment Service, 1979.

Examples

Run this code
# NOT RUN {
## Calc single value of absolute humidity
ta <- 25
rh <- 50
calcMixR(ta, rh, 760)

## Calc set of values of absolute humidity
ta <- 25:30
rh <- 50
calcMixR(ta, rh, 760)

## Calculating dew point temperature with single values for ta and rh
calcDewp(25, 50)

## Calculating dew point temperature with a vector of values for ta and a single value for rh
calcDewp(25:29, 50)

## Calc single value of enthalpy
ta <- 25
rh <- 50
calcEnth(ta, rh, 760)

## Calc set of values of enthalpy
ta <- 25:30
rh <- 50
calcEnth(ta, rh, 760)
# }

Run the code above in your browser using DataCamp Workspace