-
Notifications
You must be signed in to change notification settings - Fork 195
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
Fix #1675 - ForwardTranslate WaterHeater:Mixed when not on loop but has Peak Use Flow Rate (standalone operation) #4011
Conversation
…dule is actually required for standalone operation
src/energyplus/ForwardTranslator.cpp
Outdated
// If using a plantLoop, this will be translated by the PlantLoop. But WaterHeaters can also be used stand-alone, so always translate them | ||
// We'll check in their FT if the "Peak Use Flow Rate" is actually initialized as it's an indication that the WH was | ||
result.push_back(OS_WaterHeater_Mixed); | ||
result.push_back(OS_WaterHeater_Stratified); |
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.
Always translate them...
if (!modelObject.plantLoop() && !(modelObject.peakUseFlowRate() && modelObject.useFlowRateFractionSchedule()) ) { | ||
LOG(Warn, modelObject.briefDescription() << " will not be translated as it not on a PlantLoop, and it does not have both a Peak Use Flow Rate " | ||
"and a Use Flow Rate Fraction Schedule which is a required condition for stand-alone operation"); | ||
return boost::none; | ||
} |
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.
BUT do not actually translate them to IDF if either:
- On a PlantLoop
- has both the peakUseFlowRate set (optional double) and the useFlowRateFractionSchedule (optional schedule).
Technically I think we could do without the useFlowRateFractionSchedule but whatever, it is desired here I think, as it'll avoid people setting the flow rate by mistake (in OS App for eg...) and ending up with "hidden" standalone heaters if they get orphaned from a plantloop.
E+ source shows that no severe will be issued if schedule not specified while standalone operation, and it basically amounts to using an Unity schedule:
394bdf8
to
0b78791
Compare
@jmarrec I'm seeing this from the CI
Which I think normally indicates a missing |
Thanks @kbenne I think I just forgot to include |
…ater doesn't appear to be on a PlantLoop...
@kbenne I have a failing test and I cannot understand why. From the Gtest itself,
Yet when I reach the FT, it is false?!?
|
…o overide mchp::rmeove
Linux and Mac are happy, the ECLD_Orphan test now passes with the fix. Thanks @kbenne for helping me find the needle in the haystack. This is ready to drop |
Pull request overview
Please read OpenStudio Pull Requests to better understand the OpenStudio Pull Request protocol.
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)src/openstudio_lib/library/OpenStudioPolicy.xml
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.