-
Notifications
You must be signed in to change notification settings - Fork 418
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
Crash if AFN zone doesn't have inlet or return node connection #7328
Comments
If you have a Zone referenced in an AirflowNetwork:MultiZone:Zone and that is controlled, I am not 100% sure it should require the zone to be hooked to an AirLoopHVAC actually. |
I agree @jmarrec . It shouldn't require the zone to be hooked up to an air loop, I don't think that was the intention of the AFN. As @aaron-boranian mentioned, the intended goal was to model include a zone, with a baseboard heater but no associated air loop, into the air flow network. So that adjacent zones that do have an distribution system can force air into the controlled zone that doesn't have an air loop. It should be do-able. But I don't think code allows that to happen right now - although the documentation doesn't disallow it. The relevant code may be: In AirflowNetworkBalanceManager.cc https://github.com/NREL/EnergyPlus/blob/develop/src/EnergyPlus/AirflowNetworkBalanceManager.cc#L9840, for every AirflowNetwork:MultiZone:Zone object, it takes the air loop number of the zone's inlet air node (
This works fine when every AirflowNetwork:MultiZone:Zone has an air loop. But if there isn't an air loop for that zone, a zone air inlet node is not defined in the ZoneHVAC:EquipmentConnections object, and the ZoneEquipConfig().InletNodeAirLoopNum() is not allocated https://github.com/NREL/EnergyPlus/blob/develop/src/EnergyPlus/DataZoneEquipment.cc#L793. So effectively, when the AFN:SimulationControl object is set to "MultiZoneWithDistribution", all zones in the AFN must have an air loop. Is this correct? |
@jmarrec I tested the defect file and realized this zone is not served by an AirLoop. Although it has a base board, the zone equipment does not any inlet and outlet nodes (very rare). Therefore, no check is needed. Here is my fix:
The program ran to completion with the release version. The debug version has a known issue with underflow: AirflowNetwork floating point underflow #7233. We will fix it late. |
@lgu1234 Ok so this is what I had came up with as my second try. Thanks a lot for looking into it and confirming! |
Hi @jmarrec , so with the the commit, Eplus will not permit a zone with only a baseboard to be simulated as part of the AFN with distribution? It must contain an inlet (and the associated air loops etc etc)? |
@edwardv720 no it'll work. The defect file runs to completion |
…Inlet Fix #7328 - Crash if AFN zone doesn't have inlet or return node connection
Issue overview
If an airflow network zone (AirflowNetwork:MultiZone:Zone) is defined, and the AFN:SimulationControl object is using "MultiZoneWithDistribution", but the corresponding Zone has no inlet or return node connections defined in ZoneHVAC:EquipmentConnections, EnergyPlus will crash. After assigning an inlet or return node connection, there is a severe error message telling the user to hook up the necessary AFN objects (AFN:Distribution:Node, AFN:Distribution:Linkage, AFN:Distribution:Component:Duct, etc.). There should be a similar severe error letting the user know that for "MultiZoneWithDistribution", zones must have inlet or return node connections.
Attached defect file is a slightly modified version of the AirflowNetwork_MultiAirLoops.idf example file. The user added a baseboard heater to the unconditioned attic zone (new objects at top of file). Their goal was to simulate a zone that only has a baseboard heater (no conditioned supply air), then mixes air into an adjacent zone before returned back to air system.
AirflowNetwork_MultiAirLoops MOD.txt
Details
Some additional details for this issue (if relevant):
Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
The text was updated successfully, but these errors were encountered: