Fix SetpointManager:SingleZone:Reheat with Fan:SystemModel#11331
Fix SetpointManager:SingleZone:Reheat with Fan:SystemModel#11331
Conversation
| if (comp.CompType_Num == SimAirServingZones::CompType::Fan_ComponentModel || | ||
| comp.CompType_Num == SimAirServingZones::CompType::Fan_Simple_CV || | ||
| comp.CompType_Num == SimAirServingZones::CompType::Fan_Simple_VAV || | ||
| comp.CompType_Num == SimAirServingZones::CompType::Fan_System_Object) { |
There was a problem hiding this comment.
Using the enum instead of a string compare. Also, Fan:OnOff is not included, because it is not in this enum class, because it's not valid on an airloop.
There was a problem hiding this comment.
What was going on with comp.TypeOf? Was it different it string casing causing these to not be caught?
There was a problem hiding this comment.
Yeah, that's it. Good to go here.
|
Hmm, there's a unit test failure, need to look into that. |
|
|
|
|
|
Regressions show small diffs in UnitarySystem_DXCoilSystemAuto which does have Fan:SystemModel with SPM:SZRH. The change here is not at large as the defect file, because this one doesn't have economizer operation (which seems to exaggerate the impact of the bug). |
|
It's very hard to think through what NOT having fan delta T does for energy use for SPM:SZR (i.e., what the results show with and without fan delta T). What is easy to understand is that energy use should not change (significantly). The code change looks correct and there is no Fan:OnOff called in SimAirLoopComponent: |





Pull request overview
Description of the purpose of this PR
During init, SetpointManager:SingleZone:Reheat searches the airloop branch(es) for the supply fan to retrieve the fan inlet and outlet node nums. Fan:SystemModel wasn't included in the valid component types, so the fan nodes were never set.
Pull Request Author
Reviewer