Note JM 2019-01-03: suppress -Wunused-function warning for this API function
| 74 | |
| 75 | // Note JM 2019-01-03: suppress -Wunused-function warning for this API function |
| 76 | [[maybe_unused]] static double enthalpy(double T, double p, double phi) { |
| 77 | // Compute moist air enthalpy, eqns 5, 6, 22, 24, and 32 from ASHRAE Fundamentals 2009 Ch. 1 |
| 78 | const double pw = phi * psat(T); // Partial pressure of water vapor, eqn 24 (uses eqns 5 and 6) |
| 79 | const double W = 0.621945 * pw / (p - pw); // Humidity ratio, eqn 22 |
| 80 | return 1.006 * T + W * (2501 + 1.86 * T); // Moist air specific enthalpy, eqn 32 |
| 81 | } |
| 82 | |
| 83 | [[maybe_unused]] static double enthalpyFromDewPoint(double T, double p, double Tdewpoint) { |
| 84 | // Compute moist air enthalpy, eqns 5, 6, 22, 32, and 38 from ASHRAE Fundamentals 2009 Ch. 1 |