Skip to main content

Expression functions

The module adds 17 expression functions, in a Psychrometrics category. Use them in expression tags and bindings, straight from sensor tags, in the gateway, Vision client and Designer scopes. Each one does the same calculation as the script function of the same name.

Expression functionArgumentsReturns
psychroDewPointdryBulb (°C), relHum (%)Dew point, °C
psychroFrostPointdryBulb (°C), relHum (%)Frost point below 0 °C, else dew point, °C
psychroWetBulbdryBulb (°C), relHum (%), pressure (Pa)Wet bulb, °C
psychroHumidityRatiodryBulb (°C), relHum (%), pressure (Pa)Humidity ratio, kg/kg
psychroAbsoluteHumiditydryBulb (°C), relHum (%)Absolute humidity, kg/m³
psychroEnthalpydryBulb (°C), relHum (%), pressure (Pa)Enthalpy, J/kg
psychroSpecificVolumedryBulb (°C), relHum (%), pressure (Pa)Specific volume, m³/kg
psychroDensitydryBulb (°C), relHum (%), pressure (Pa)Density, kg/m³
psychroVaporPressuredryBulb (°C), relHum (%)Vapour pressure, Pa
psychroSatPressuretemperature (°C)Saturation pressure, Pa
psychroVpddryBulb (°C), relHum (%)Vapour pressure deficit, Pa
psychroRhFromDewPointdryBulb (°C), dewPoint (°C)Relative humidity, %
psychroRhFromWetBulbdryBulb (°C), wetBulb (°C), pressure (Pa)Relative humidity, %
psychroRhFromHumidityRatiodryBulb (°C), humidityRatio (kg/kg), pressure (Pa)Relative humidity, %
psychroHumidityRatioFromDewPointdewPoint (°C), pressure (Pa)Humidity ratio, kg/kg
psychroDewPointAtPressuredewPoint (°C), fromPressure (Pa), toPressure (Pa)Dew point at toPressure, °C
psychroPressureFromAltitudealtitude (m)Pressure, Pa

Every pressure is absolute, in Pa. There is no expression function for state.

Quality and null inputs​

Expression functions follow tag quality:

  • The result carries the first input quality that is not good, so a bad sensor makes the result bad too.
  • A null input gives a null result.
  • An invalid input, such as a relative humidity above 100 % or a pressure in kPa, gives an expression error with the reason.

Example​

An expression tag or binding, straight from two sensor tags:

psychroDewPoint({[.]AirTemp}, {[.]AirRH})