Procedure | Location | Procedure Type | Description |
---|---|---|---|
CalcMinimalDXCooling | MinimalDXCooling | Subroutine | Simplified EnergyPlus subroutine for calculating the performance of a DX cooling coil.
Adapted from EnergyPlus |
CalcMinimalDXHeating | MinimalDXHeating | Subroutine | Simplified EnergyPlus subroutine for calculating the performance of a DX heating coil.
Adapted from EnergyPlus |
CalcPsychrometricsFromRelHum | psychrolib | Subroutine | Utility function to calculate humidity ratio, wet-bulb temperature, dew-point temperature, vapour pressure, moist air enthalpy, moist air volume, and degree of saturation of air given dry-bulb temperature, relative humidity and pressure. |
CalcPsychrometricsFromTDewPoint | psychrolib | Subroutine | Utility function to calculate humidity ratio, wet-bulb temperature, relative humidity, vapour pressure, moist air enthalpy, moist air volume, and degree of saturation of air given dry-bulb temperature, dew-point temperature, and pressure. |
CalcPsychrometricsFromTWetBulb | psychrolib | Subroutine | Utility function to calculate humidity ratio, dew-point temperature, relative humidity, vapour pressure, moist air enthalpy, moist air volume, and degree of saturation of air given dry-bulb temperature, wet-bulb temperature, and pressure. |
dLnPws_ | psychrolib | Function | Helper function returning the derivative of the natural log of the saturation vapor pressure as a function of dry-bulb temperature. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 5 |
GetDegreeOfSaturation | psychrolib | Function | Return the degree of saturation (i.e humidity ratio of the air / humidity ratio of the air at saturation at the same temperature and pressure) given dry-bulb temperature, humidity ratio, and atmospheric pressure. Reference: ASHRAE Handbook - Fundamentals (2009) ch. 1 eqn 12 Notes: This definition is absent from the 2017 Handbook. Using 2009 version instead. |
GetDryAirDensity | psychrolib | Function | Return dry-air density given dry-bulb temperature and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 Notes: Eqn 14 for the perfect gas relationship for dry air. Eqn 1 for the universal gas constant. The factor 144 in IP is for the conversion of Psi = lb in⁻² to lb ft⁻². |
GetDryAirEnthalpy | psychrolib | Function | Return dry-air enthalpy given dry-bulb temperature. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 28 |
GetDryAirVolume | psychrolib | Function | Return dry-air volume given dry-bulb temperature and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 Notes: Eqn 14 for the perfect gas relationship for dry air. Eqn 1 for the universal gas constant. The factor 144 in IP is for the conversion of Psi = lb in⁻² to lb ft⁻². |
GetHumRatioFromEnthalpyAndTDryBulb | psychrolib | Function | Return humidity ratio from enthalpy and dry-bulb temperature.
Reference:
ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 30
Notes:
Based on the |
GetHumRatioFromRelHum | psychrolib | Function | Return humidity ratio given dry-bulb temperature, relative humidity, and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetHumRatioFromSpecificHum | psychrolib | Function | Return the humidity ratio (aka mixing ratio) from specific humidity. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 9b (solved for humidity ratio) |
GetHumRatioFromTDewPoint | psychrolib | Function | Return humidity ratio given dew-point temperature and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetHumRatioFromTWetBulb | psychrolib | Function | Return humidity ratio given dry-bulb temperature, wet-bulb temperature, and pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 33 and 35 |
GetHumRatioFromVapPres | psychrolib | Function | Return humidity ratio given water vapor pressure and atmospheric pressure. Reference: ASHRAE Fundamentals (2005) ch. 6 eqn. 22; ASHRAE Fundamentals (2009) ch. 1 eqn. 22. |
GetMoistAirDensity | psychrolib | Function | Return moist air density given humidity ratio, dry bulb temperature, and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 11 |
GetMoistAirEnthalpy | psychrolib | Function | Return moist air enthalpy given dry-bulb temperature and humidity ratio. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 30 |
GetMoistAirVolume | psychrolib | Function | Return moist air specific volume given dry-bulb temperature, humidity ratio, and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 26 Notes: In IP units, R_DA_IP / 144 equals 0.370486 which is the coefficient appearing in eqn 26 The factor 144 is for the conversion of Psi = lb in⁻² to lb ft⁻². |
GetOnOffFan | MinimalDXFan | Function | Simplified version of SimOnOffFan subroutine in EnergyPlus Given the mode of operation (on or off), fan motor efficiency, power of the fan, fraction of motor heat entering air stream moist air enthaply of the air entering the fan, and mass flow rate, it returns the moist air enthaply of the air after it has passed through the fan. It assumes sensible heating process only - i.e. it does not change the moisture in the air - and the mass flow rate across the component remains the same. Original Credits: NREL Energy Plus, Shirey, R. Raustad - FSEC, Brent Griffith, Chandan Sharma, Rongpeng Zhang Reference: ASHRAE HVAC 2 Toolkit, page 2-3 (FANSIM) https://github.com/NREL/EnergyPlus/blob/d37252156cb0eef0cb9b1af5ce7dcd7423011649/src/EnergyPlus/Fans.cc#L1967-L1989 This fan does not change the moisture or Mass Flow across the component |
GetRelHumFromHumRatio | psychrolib | Function | Return relative humidity given dry-bulb temperature, humidity ratio, and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetRelHumFromTDewPoint | psychrolib | Function | Return relative humidity given dry-bulb temperature and dew-point temperature. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 22 |
GetRelHumFromTWetBulb | psychrolib | Function | Return relative humidity given dry-bulb temperature, wet bulb temperature and pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetRelHumFromVapPres | psychrolib | Function | Return relative humidity given dry-bulb temperature and vapor pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 12, 22 |
GetSatAirEnthalpy | psychrolib | Function | Return saturated air enthalpy given dry-bulb temperature and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetSatHumRatio | psychrolib | Function | Return humidity ratio of saturated air given dry-bulb temperature and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 36, solved for W |
GetSatVapPres | psychrolib | Function | Return saturation vapor pressure given dry-bulb temperature. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 5 |
GetSeaLevelPressure | psychrolib | Function | Return sea level pressure given dry-bulb temperature, altitude above sea level and pressure. Reference: Hess SL, Introduction to theoretical meteorology, Holt Rinehart and Winston, NY 1959, ch. 6.5; Stull RB, Meteorology for scientists and engineers, 2nd edition, Brooks/Cole 2000, ch. 1. Notes: The standard procedure for the US is to use for TDryBulb the average of the current station temperature and the station temperature from 12 hours ago. |
GetSpecificHumFromHumRatio | psychrolib | Function | Return the specific humidity from humidity ratio (aka mixing ratio). Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 9b |
GetStandardAtmPressure | psychrolib | Function | Return standard atmosphere barometric pressure, given the elevation (altitude). Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 3 |
GetStandardAtmTemperature | psychrolib | Function | Return standard atmosphere temperature, given the elevation (altitude). Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 4 |
GetStationPressure | psychrolib | Function | Return station pressure from sea level pressure. Reference: See 'GetSeaLevelPressure' Notes: This function is just the inverse of 'GetSeaLevelPressure'. |
GetTDewPointFromHumRatio | psychrolib | Function | Return dew-point temperature given dry-bulb temperature, humidity ratio, and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetTDewPointFromRelHum | psychrolib | Function | Return dew-point temperature given dry-bulb temperature and relative humidity. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetTDewPointFromTWetBulb | psychrolib | Function | Return dew-point temperature given dry-bulb temperature, wet-bulb temperature, and pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetTDewPointFromVapPres | psychrolib | Function | Return dew-point temperature given dry-bulb temperature and vapor pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn. 5 and 6 Notes: The dew point temperature is solved by inverting the equation giving water vapor pressure at saturation from temperature rather than using the regressions provided by ASHRAE (eqn. 37 and 38) which are much less accurate and have a narrower range of validity. The Newton-Raphson (NR) method is used on the logarithm of water vapour pressure as a function of temperature, which is a very smooth function Convergence is usually achieved in 3 to 5 iterations. TDryBulb is not really needed here, just used for convenience. |
GetTDryBulbFromEnthalpyAndHumRatio | psychrolib | Function | Return dry bulb temperature from enthalpy and humidity ratio.
Reference:
ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 30
Notes:
Based on the |
GetTKelvinFromTCelsius | psychrolib | Function | |
GetTRankineFromTFahrenheit | psychrolib | Function | |
GetTWetBulbFromHumRatio | psychrolib | Function | Return wet-bulb temperature given dry-bulb temperature, humidity ratio, and pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 33 and 35 solved for Tstar |
GetTWetBulbFromRelHum | psychrolib | Function | Return wet-bulb temperature given dry-bulb temperature, relative humidity, and pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetTWetBulbFromTDewPoint | psychrolib | Function | Return wet-bulb temperature given dry-bulb temperature, dew-point temperature, and pressure. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 |
GetUnitSystem | psychrolib | Function | Return the system of units in use. |
GetVaporPressureDeficit | psychrolib | Function | Return Vapor pressure deficit given dry-bulb temperature, humidity ratio, and pressure. Reference: Oke (1987) eqn 2.13a |
GetVapPresFromHumRatio | psychrolib | Function | Return vapor pressure given humidity ratio and pressure. Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 20 solved for pw |
GetVapPresFromRelHum | psychrolib | Function | Return partial pressure of water vapor as a function of relative humidity and temperature. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 12, 22 |
GetVapPresFromTDewPoint | psychrolib | Function | Return vapor pressure given dew point temperature. References: ASHRAE Handbook - Fundamentals (2017) ch. 1 eqn 36 |
InitPsychrometrics | PsychroWrapper | Subroutine | |
isIP | psychrolib | Function | Check whether the system in use is IP or SI |
PsyTsatFnHPb | EPlusPsychro | Function | |
SetUnitSystem | psychrolib | Subroutine | Set the system of units to use (SI or IP). Notes: this function HAS TO BE CALLED before the library can be used |
SimMinimalDXCooling | MinimalDXCoolingDriver | Subroutine | Simplified EnergyPlus subroutine for calculating the performance of a DX heating coil. This is the subroutine to call from your program. |
SimMinimalDXHeating | MinimalDXHeatingDriver | Subroutine | Simplified EnergyPlus subroutine for calculating the performance of a DX heating coil. This is the subroutine to call from your program. |