| 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 |
| 85 | const double pw = openstudio::psat(Tdewpoint); // Partial pressure of water vapor, eqn 38 (uses eqns 5 and 6) |
| 86 | const double W = 0.621945 * pw / (p - pw); // Humidity ratio, eqn 22 |
| 87 | return 1.006 * T + W * (2501 + 1.86 * T); // Moist air specific enthalpy, eqn 32 |
| 88 | } |
| 89 | |
| 90 | // Using equation 35/37 in ASHRAE Fundamentals 2009 Ch. 1: |
| 91 | // |