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
Correct AFN node temperature compatible with zone air temperature #10371
Conversation
for (int iZone = 1; iZone <= AirflowNetworkNumOfZones; iZone++) { | ||
if (MultizoneZoneData(iZone).ZoneNum == zoneNum) { | ||
AirflowNetworkNodeData(iZone).EPlusNodeNum = i; | ||
} |
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.
The zone number should be AFN zone index, instead of zone number from Zone object.
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.
OK I see it. This accesses the right element of the AFN Node Data array. Good.
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.
@lgu1234 @Myoldmopar This fix looks correct to me. I wish the unit test was a bit shorter and didn't require so much in the way of static data, but I don't think there's a way around that.
This is a fine change, @lgu1234 . Thanks for confirming @jasondegraw. I pulled develop in and tested it locally with no problem. Merging this. |
Pull request overview
The defect file shows that the "crawlspace_unit1" AFN node temperature follows the "living_unit1" zone air temperature which is much different than its corresponding actual zone air temperature. A workaround created by @lgu1234 is to swap the order of the AFN:Zone object in the input file.
The fix provided a correct AFN zone index. After fix, AFN node temperatures are compatible with zone air temperature.
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.