-
Notifications
You must be signed in to change notification settings - Fork 738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix AB water vapor pressure calc #4956
Conversation
Good find. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion for better clarity/consistency
@@ -94,7 +94,7 @@ double calculateAirDensity(double temperature, double pressure, double relativeH | |||
|
|||
if (relativeHumidity > 0) { | |||
double _pSat = 6.1078 * pow(10, ((7.5 * temperature) / (temperature + 237.3))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't 6.1078 (hPa) be converted to Pa directly here instead of converting it in vaporPressure
? I find it more clear than later multiplying by 100.0 and having _pSat
in hPa while vaporPressure
in Pa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to use 610.78
and added note
Fix #4951
This will effect both AtragMX and AB.
_pSat
was in hPa, needs to be converted to PaThis will require dll rebuild, so I'm thinking push to 3.10?
The effect on air density is fairly small.
Edit: We could just change all extension calls to use
100 * EGVAR(weather,currentHumidity)
to avoid having to recompile? Effect would be the same.