-
Notifications
You must be signed in to change notification settings - Fork 396
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 ITE Standard Density Air Volume Flow Rate and Outdoor Air Details OA by Airloop calculation error, should divide by air density #10584
Conversation
@yujiex Have you searched the code for |
But that will have lots of hits for converting volume to mass flow. |
Let me check |
It seems most places convert volume to mass flow rate, not the other way, so "*" is correct in those places. |
Yes, that one is wrong. It is being fixed in #10518 |
But I could close that and let the fix go in here. One less PR to review. |
that works =) |
Lots of diffs here, but an obvious fix. I'm inclined to drop this fix right in. @mjwitte any hesitation at this point? |
None here. Full speed ahead, cap'n! |
Thanks @Myoldmopar and @mjwitte =) |
Pull request overview
In the code, the "ITE Standard Density Air Volume Flow Rate" is calculated as follows.
However, the volume flow rate should be the air mass flow rate divided by the air density, rather than multiplied by. This PR fixes this calculation error.
In the example file
before fixing, the calculated standard air pressure is around 0.8 kg/m3
after fixing, the calculated standard air pressure is around 1.2 kg/m3 (the correct value).
Regression diffs
ESO diff
1ZoneDataCenterCRAC_wApproachTemp
1ZoneDataCenterCRAC_wApproachTemp_ClassH1
1ZoneDataCenterCRAC_wPumpedDXCoolingCoil
2ZoneDataCenterHVAC_wEconomizer
2ZoneDataCenterHVAC_wEconomizer_ClassA1A2
The diffs are like this (the following is from 1ZoneDataCenterCRAC_wApproachTemp_ClassH1). These diffs are expected as we've changed the calculation of the
ITE Standard Density Air Volume Flow Rate
.MTD, AUD diffs
1ZoneDataCenterCRAC_wApproachTemp
These are due to the following two added output:variables in the example file:
Output:Variable,,Zone ITE Standard Density Air Volume Flow Rate,Hourly;
Output:Variable,,Zone ITE Air Mass Flow Rate,Hourly;
Table big diffs
These appear in 329 files. See this csv file attached.
reg_diff_summary.csv
reg_diff_summary_label_table_diff_var.csv
The
avgFlowRate
definition is as follow.The
MechVentToAtLimitOcc
calculation involves mechVentFlow, which is impacted by this bug fix.The following shows the relevant code computing the table entry "Time At Voz-sum-dyn [hr]". The
totMechNatVentVolFlowStdRho
variable is computed using mechVentFlow, thus this regression diff is expected as well.The following are relevant code computing this table entry. As is explained above, the
avgFlowRate
calculation involves mechVentFlow, which is impacted by this bug fix. This regression diff is expected.The following are relevant code computing this table entry. As is explained above, the
avgFlowRate
calculation involves mechVentFlow, which is impacted by this bug fix. This regression diff is expected.Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.