-
Notifications
You must be signed in to change notification settings - Fork 393
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
Fixes #8372 - Incorrect transition of RoomAir:Node:AirflowNetwork:HVACEquipment from v9.2 to v9.3 #8415
Conversation
NoDiff = .true. | ||
CALL GetNewObjectDefInIDD(ObjectName,NwNumArgs,NwAorN,NwReqFld,NwObjMinFlds,NwFldNames,NwFldDefaults,NwFldUnits) | ||
OutArgs(1) = InArgs(1) | ||
! Loop through fields looking for AirTerminal:SingleDuct:Uncontrolled node name | ||
DO nodeCount=2, CurArgs | ||
IF (SameString(TRIM(InArgs(nodeCount)), TRIM(ATSDUNodeNames(atCount)))) THEN | ||
OutArgs(nodeCount) = TRIM(InArgs(nodeCount)) // ' ATInlet' | ||
ELSE | ||
OutArgs(nodeCount) = InArgs(nodeCount) | ||
OutArgs(1:CurArgs) = InArgs(1:CurArgs) |
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.
Start up by copying everything, NoDiff is true.
! Loop through "ZoneHVAC or Air Terminal Equipment Object Type" fields looking for | ||
! "AirTerminal:SingleDuct:Uncontrolled" and replace with "AirTerminal:SingleDuct:ConstantVolume:NoReheat" | ||
! Four extensible fields | ||
DO CurField=2, CurArgs-1, 4 | ||
IF (SameString(TRIM(InArgs(CurField)),'AirTerminal:SingleDuct:Uncontrolled')) THEN | ||
OutArgs(CurField) = 'AirTerminal:SingleDuct:ConstantVolume:NoReheat' | ||
NoDiff = .false. | ||
END IF | ||
ENDDO | ||
NoDiff = .false. | ||
END DO |
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.
Then check every "ZoneHVAC or Air Terminal Equipment Object Type", if ATU:SngleDuct:Uncontrolled => replace and set NoDiff = false
@jmarrec The transition results look good, but the file fails:
My guess is that this object doesn't work with any of the airterminal units, because this code here is looking for the terminal unit type and name on the ZoneHVAC:EquipmentList. But air terminals don't live directly on the equipment list, they are a child of a ZoneHVAC:AirDistributionUnit. I'm going to merge this and open a new issue. |
Pull request overview
The problem is due to how the move from
AirTerminal:SingleDuct:Uncontrolled
toAirTerminal:SingleDuct:ConstantVolume:NoReheat
for this object.Testing
See testing with https://github.com/NREL/EnergyPlusDevSupport/blob/ec4052601eebe20b3f9bf1bb59bd85866a9f5d53/DefectFiles/8000s/8372/RoomAirflowNetwork_mod.idf
Before
After
The resulting IDF has the correct transition of the RoomAir:Node:AirflowNetwork:HVACEquipment:
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.