MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / enthalpyFromDewPoint

Function enthalpyFromDewPoint

src/utilities/filetypes/EpwFile.cpp:83–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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//

Callers

nothing calls this directly

Calls 1

psatFunction · 0.85

Tested by

no test coverage detected