NREL / EnergyPlus

EnergyPlus™ is a whole building energy simulation program that engineers, architects, and researchers use to model both energy consumption and water use in buildings.
https://energyplus.net
Other
1.11k stars 388 forks source link

AirloopHVAC:DedicatedOutdoorAirSystem does not allow a return fan #10280

Open rraustad opened 10 months ago

rraustad commented 10 months ago

Issue overview

Modification of the example file SmallOffice_CentralDOAS to add a return fan causes fatal error.

Severe getAirLoopMixer: Node Connection Error in AirLoopHVAC:DedicatedOutdoorAirSystem = AIRLOOPHVAC DOAS. Inlet node of OA RETURN FAN as current component is not same as the outlet node of OA COOLING COIL 1 as previous component ~~~ The inlet node name = AIRLOOPDOASMIXEROUTLET, and the outlet node name = AIRLOOPDOASSPLITTERINLET. Severe The outlet node is not the inlet node of AirLoopHVAC:Splitter in AirLoopHVAC:OutdoorAirSystem:EquipmentList = AIRLOOPHVAC DOAS ~~~ The outlet node name is OA RETURN FAN OUTLET NODE, and the inlet node name of AirLoopHVAC:Splitter is AIRLOOPDOASSPLITTERINLET Fatal getAirLoopHVACDOAS: Previous errors cause termination.

The getAirLoopDOASInput function assumes there is only 1 fan object and sets various information from the fan to model variables (e.g., FanName, m_FanIndex, m_FanTyhpeNum). If a second fan is added to the DOAS equipment list, the 2nd fan will overwrite the data from the first. The DOAS should allow a return fan to be used.

Another issue is that the fan volume flow rate is set internally to the DOAS model and results show as a user specified flow rate even when the fan flow is autosized.

 state.dataHVACFan->fanObjs[this->m_FanIndex]->designAirVolFlowRate = sizingMassFlow / state.dataEnvrn->StdRhoAir;

Parent models should not set an objects data and instead set other information to allow the component to size naturally. This result shows the fan data in the eio. The autosized flow shows user specified while the power is design.

Component Sizing Information, Fan:SystemModel, OA SUPPLY FAN, User-Specified Design Maximum Air Flow Rate [m3/s], 1.63180
Component Sizing Information, Fan:SystemModel, OA SUPPLY FAN, Design Electric Power Consumption [W], 1398.68864

Adding a second fan and tentatively correcting some logic shows the the second fan shows design for both flow and power. This is more consistent with how objects size in E+.

Component Sizing Information, Fan:SystemModel, OA RETURN FAN, Design Size Design Maximum Air Flow Rate [m3/s], 1.63180
Component Sizing Information, Fan:SystemModel, OA RETURN FAN, Design Electric Power Consumption [W], 1398.68864

Isssue courtesy of Trane North America.

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.

eringold commented 10 months ago

related: https://github.com/NREL/EnergyPlus/issues/9066