-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fixes AirTerminal Mixer used with FanCoilUnit does not respond to fan availability schedule #8115
Conversation
This looks correct now and is the same result back when this was fixed in Trane work last year. |
src/EnergyPlus/FanCoilUnits.cc
Outdated
@@ -1308,7 +1315,7 @@ namespace FanCoilUnits { | |||
} | |||
} | |||
// Set the inlet node mass flow rate | |||
if ((GetCurrentScheduleValue(FanCoil(FanCoilNum).SchedPtr) > 0.0 || DataHVACGlobals::ZoneCompTurnFansOn) && | |||
if (((GetCurrentScheduleValue(FanCoil(FanCoilNum).SchedPtr) > 0.0 && GetCurrentScheduleValue(FanCoil(FanCoilNum).fanAvailSchIndex) > 0.0) || DataHVACGlobals::ZoneCompTurnFansOn) && |
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 line seems long, was this formatted by Clang?
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.
I did not try to change the format, it must be auto-formated by Clang.
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.
If you select/highlight this line and then on the Edit tab choose Advanced and select "Format Selection" clang should format the line. Do the same for line 3548.
src/EnergyPlus/FanCoilUnits.cc
Outdated
@@ -3538,7 +3545,7 @@ namespace FanCoilUnits { | |||
|
|||
// Assume the unit is able to vary the flow. A cycling unit is treated as | |||
// if it were variable flow, with the flow being the averaqe flow over the time step | |||
if ((GetCurrentScheduleValue(FanCoil(FanCoilNum).SchedPtr) > 0.0 || DataHVACGlobals::ZoneCompTurnFansOn) && | |||
if (((GetCurrentScheduleValue(FanCoil(FanCoilNum).SchedPtr) > 0.0 && GetCurrentScheduleValue(FanCoil(FanCoilNum).fanAvailSchIndex) > 0.0) || DataHVACGlobals::ZoneCompTurnFansOn) && |
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.
Clang formatted?
QLatOut = 0.0; | ||
InitFanCoilUnits(state, FanCoilNum, ZoneNum, ZoneNum); | ||
Sim4PipeFanCoil(state, FanCoilNum, ZoneNum, ZoneNum, FirstHVACIteration, QUnitOut, QLatOut); | ||
// check results when the fna coil unit is not available |
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.
fna -> fan
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.
Let the CI machine run complete and I will do formatting and cleanup.
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.
These changes are correct.
Ok. I applied Clang formatting to the two locations and corrected the typo. |
I see unrelated diffs and this diffs popped when I removed unused variable. May be it is lagging develop, so I will merge in develop and push. |
Results look perfect and CI is happy. I believe this is ready to go. @rraustad merge away if you don't have anything further. |
Agreed. I didn't expect any diff's and the plots provided show expected behavior. |
Pull request overview
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.