-
Notifications
You must be signed in to change notification settings - Fork 208
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
Cooling tower fixes and tests #4528
Conversation
Mostly yes. Unless you have a valid reason for something to be blank (such as "the field is only used if another choice field value is XX" or something, or "feature is turned off if field is blank", etc). Sometimes E+ doesn't have an IDD default but a hardcoded one in the C++ code (it's is the case here), which is more confusing to users IMHO. And here the I/O ref clearly mentions there is a default, so I agree with you opening an issue. |
CI Results for c1cdade:
|
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 have no issue with these changes
The existing implementation does do thing I wish it didn't though: it hardcodes stuff in the Ctor while it shoumdn't since there is both an IDD default AND a isXXXDefaulted method. That's not your doing though and has been like this for a while, so it's up to you whether you want to tackle it now or not.
|
||
setString(OS_CoolingTower_SingleSpeedFields::BasinHeaterOperatingScheduleName, ""); | ||
|
||
setBasinHeaterSetpointTemperature(2.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 has a default of 2.0 in the IDD already, and we do have an isBasinHeaterSetpointTemperatureDefaulted()
so I think the Ctor shouldn't set them (not your doing, I know)
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.
same for BasinHeaterCapacity for that matter
setEvaporationLossFactor(0.2); | ||
|
||
setDriftLossPercent(0.008); |
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.
Same here... IDD default
setBlowdownCalculationMode("ConcentrationRatio"); | ||
|
||
setBlowdownConcentrationRatio(3.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.
And here, etc.
Pull request overview
Checklist:
CoolingTowerSingleSpeed
: bothsetNominalCapacity
andsetBasinHeaterSetpointTemperature
were returning false, due to being passed values that were outside the min/max valuesCoolingTowerSingleSpeed
,CoolingTowerTwoSpeed
, andCoolingTowerVariableSpeed
Questions:
\default
or\required-field
? Seems to lead to a bug if it doesn't. Submitted: Missing idd defaults for CoolingTower:*Speed EnergyPlus#9262.Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.