-
Notifications
You must be signed in to change notification settings - Fork 460
Update AirTerminal:SingleDuct:Mixer to report primary air node condition when air flow = 0 (when ATMixer is off) #11022
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
Conversation
|
|
| state.dataLoopNodes->Node(VRFTUInletNodeNum).MassFlowRate); | ||
| SimATMixer(state, this->ATMixerName, FirstHVACIteration, this->ATMixerIndex); | ||
| } | ||
| } |
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.
A unit test failure showed that the changes to CalcATMixer could lead to incorrect CompOnMassFlow calculation since the outlet of the inlet side ATMixer is the inlet to the VRF TU and that node condition affects the operating air mass flow rate. This code calculates a new CompOnMassFlow when an inlet side ATMixer exists.
|
|
||
| // PURPOSE OF THIS SUBROUTINE | ||
| // Calculate the mixed air flow and conditions in the air terminal mixer | ||
|
|
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.
Update CalcATMixer according to changes in #11004. This change causes diffs and this branch was created to isolate those diffs associated with the refactor of this function.
| Real64 MixedAirMassFlowRateCATM = 0.0; | ||
| Real64 MixedAirEnthalpyCATM = 0.0; | ||
| Real64 MixedAirHumRatCATM = 0.0; | ||
| Real64 MixedAirTempCATM = 0.0; |
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.
Eliminate state variables used only in function CalcATMixer.
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.
This is very very very nice. Thanks.
| ASSERT_EQ(HVACInletMassFlowRate, state->dataSingleDuct->SysATMixer(1).MixedAirMassFlowRate); | ||
| // check the cooling output delivered is within 5.0 Watt of zone cooling load | ||
| ASSERT_NEAR(QZnReq, QUnitOutVRFTU, 5.0); | ||
| EXPECT_NEAR(0.965, state->dataDXCoils->DXCoil(1).PartLoadRatio, 0.001); |
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.
This unit test highlighted the fact that the inlet side ATMixer can affect the operating air mass flow rate of the VRF_FluidTCtrl model.
|
|
Diffs on this branch are a subset of DOATo* diffs on #11004 and do not match exactly. DOAToUnitVentilator Example absolute diffs for DOAToUnitVentilator: |
| Real64 MixedAirMassFlowRateCATM = 0.0; | ||
| Real64 MixedAirEnthalpyCATM = 0.0; | ||
| Real64 MixedAirHumRatCATM = 0.0; | ||
| Real64 MixedAirTempCATM = 0.0; |
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.
This is very very very nice. Thanks.
|
This is a great fix. I know you mentioned the diffs showing up here did not exactly match or complete the diffs showing in the other branch, so it will be interesting to see what the diffs look like once I merge this and develop gets pulled in there. Anyway, thanks @rraustad, always very exciting to see variables get removed from state! |


Pull request overview
Description of the purpose of this PR
This change reports the off condition of the ATMixer to be equal to the primary inlet node condition to replicate other node properties.
Pull Request Author
Reviewer