-
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
Tank Source Side Flow Control Mode IndirectHeatAlternateSetpoint Code Not Hit #7286
Tank Source Side Flow Control Mode IndirectHeatAlternateSetpoint Code Not Hit #7286
Conversation
…ntMassFlowRatesChangeForTankSourceSide
…ntMassFlowRatesChangeForTankSourceSide
…ntMassFlowRatesChangeForTankSourceSide
…ntMassFlowRatesChangeForTankSourceSide
…ntMassFlowRatesChangeForTankSourceSide
…ntMassFlowRatesChangeForTankSourceSide
This bug fix issue seems not have been covered in tests without any CI test fail. So it's necessary to show my local test results for indirect water heater system models (no backup water heater, 55C alternate setpoint schedule, 52.667C WH Setpoint, 1C deadband). I expected the source side mass flow rate to be over 0 for time points when tank temperature is below 55C-1C. Run in DevelopIndirectHeatAlternateSetpointIndirectHeatPrimarySetpointRun in this branchIndirectHeatAlternateSetpointIndirectHeatPrimarySetpointIt shows more insights of this bug, the alternate option is not really working. |
…ntMassFlowRatesChangeForTankSourceSide
…ntMassFlowRatesChangeForTankSourceSide
…ntMassFlowRatesChangeForTankSourceSide
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.
The functional changes here look good, but I'd like to see some improvements made before this gets merged. Take a look at my comments and let me know what you think.
…ntMassFlowRatesChangeForTankSourceSide
…ntMassFlowRatesChangeForTankSourceSide
|
…ntMassFlowRatesChangeForTankSourceSide
Yeah I don't know what happened there. But your develop branch is 8 commits ahead of the NREL/EnergyPlus develop branch. So that's potentially problematic, but it seems not with the current issue. |
Yeah, these 8 commits are all pulling the latest changes from NREL/EnergyPlus/develop, might be fine? |
No, your develop branch should never be ahead of the NREL develop branch. Pulling in the latest changes from NREL develop should cause a git fast-forward, never a merge, so it should never be ahead. Something went wrong. But again, I don't think it caused an issue here, just something you need to get addressed before it accidentally does. |
@Myoldmopar Um, there hasn't been a commit to this branch for 6 or 7 days, yet CI keeps making the rounds on this one. Working on it again now. |
…ntMassFlowRatesChangeForTankSourceSide
Yeah, CI has been having a bit of trouble with some external PRs lately. Nothing serious, just wastes some cycles running extra commits. I'm currently unclear as to the reason, but will dig into it soon after the release, if not before. |
…ntMassFlowRatesChangeForTankSourceSide
@@ -1992,7 +1992,7 @@ TEST_F(EnergyPlusFixture, StratifiedTankCalc) | |||
for (int i = 0; i < Tank.Nodes; ++i) { | |||
NodeTemps[i] = Tank.Node[i].Temp; | |||
} | |||
|
|||
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'm not sure what editor you are using to write C++, but it shouldn't be leaving these trailing whitespaces in the files. In most editors there is an option to clean any trailing whitespace when you save a file, I'd look for that option. I'm not going to hold up this PR just for that though.
Code changes look much better now. I'm testing locally. |
Merged up with develop, unit test suite passes, and ran a sampling of regression files and got no diffs. I'm merging this in. |
Pull request overview
The source side flow set by calling function
PlantMassFlowRatesFunc
didn't actually work for source side flow control mode: IndirectHeatAlternateSetpoint for indirect water heater system and tankless coils. Relevant question on Unmet Hour: Click HereThe issue and CR9176 changes are made under condition of
MaybeRequestingFlow
which is not stepped at final iteration in every time step.So these codes are added to condition
ThrottlingFlow
to fix this problem.Work Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Review Checklist
This will not be exhaustively relevant to every PR.