-
Notifications
You must be signed in to change notification settings - Fork 394
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
Use Enums for SetupOutputVariable Arguments (Try 2) #8898
Merged
Merged
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c39294e
Modified SetupOutputVariable functions to use enums
Myoldmopar 0d8c733
Convert all SetupOutputVariable calls (and associated functions), fix…
Myoldmopar dc4eca0
Clang format
Myoldmopar f64c0be
Cleanup ValidateTimeStepType, minimal other clang-tidy things
Myoldmopar 52bdced
Remove unused SetupOutputVariable overload
Myoldmopar ca5c63f
Cleaning up minor header IDE warnings
Myoldmopar ddd25aa
Continued cleaning up minor warnings
Myoldmopar cdd4de1
Add GSL span and getEnumerationValue function
Myoldmopar fe68a70
Modify arg types and fix unit test build issue
Myoldmopar 3b36239
Clang-format enum branch
Myoldmopar 660f580
Fix compiler warnings and fix latex warnings
Myoldmopar 4cf80fe
Clang Format enum branch again
Myoldmopar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -444,13 +444,19 @@ namespace BoilerSteam { | |
|
||
void BoilerSpecs::setupOutputVars(EnergyPlusData &state) | ||
{ | ||
SetupOutputVariable(state, "Boiler Heating Rate", OutputProcessor::Unit::W, this->BoilerLoad, "System", "Average", this->Name); | ||
SetupOutputVariable(state, | ||
"Boiler Heating Rate", | ||
OutputProcessor::Unit::W, | ||
this->BoilerLoad, | ||
OutputProcessor::SOVTimeStepType::System, | ||
OutputProcessor::SOVStoreType::Average, | ||
this->Name); | ||
SetupOutputVariable(state, | ||
"Boiler Heating Energy", | ||
OutputProcessor::Unit::J, | ||
this->BoilerEnergy, | ||
"System", | ||
"Sum", | ||
OutputProcessor::SOVTimeStepType::System, | ||
OutputProcessor::SOVStoreType::Summed, | ||
this->Name, | ||
_, | ||
"ENERGYTRANSFER", | ||
|
@@ -461,28 +467,49 @@ namespace BoilerSteam { | |
"Boiler " + this->BoilerFuelTypeForOutputVariable + " Rate", | ||
OutputProcessor::Unit::W, | ||
this->FuelUsed, | ||
"System", | ||
"Average", | ||
OutputProcessor::SOVTimeStepType::System, | ||
OutputProcessor::SOVStoreType::Average, | ||
this->Name); | ||
SetupOutputVariable(state, | ||
"Boiler " + this->BoilerFuelTypeForOutputVariable + " Energy", | ||
OutputProcessor::Unit::J, | ||
this->FuelConsumed, | ||
"System", | ||
"Sum", | ||
OutputProcessor::SOVTimeStepType::System, | ||
OutputProcessor::SOVStoreType::Summed, | ||
this->Name, | ||
_, | ||
this->BoilerFuelTypeForOutputVariable, | ||
"Heating", | ||
this->EndUseSubcategory, | ||
"Plant"); | ||
SetupOutputVariable(state, "Boiler Steam Efficiency", OutputProcessor::Unit::None, this->BoilerEff, "System", "Average", this->Name); | ||
SetupOutputVariable( | ||
state, "Boiler Steam Inlet Temperature", OutputProcessor::Unit::C, this->BoilerInletTemp, "System", "Average", this->Name); | ||
SetupOutputVariable( | ||
state, "Boiler Steam Outlet Temperature", OutputProcessor::Unit::C, this->BoilerOutletTemp, "System", "Average", this->Name); | ||
SetupOutputVariable( | ||
state, "Boiler Steam Mass Flow Rate", OutputProcessor::Unit::kg_s, this->BoilerMassFlowRate, "System", "Average", this->Name); | ||
SetupOutputVariable(state, | ||
"Boiler Steam Efficiency", | ||
OutputProcessor::Unit::None, | ||
this->BoilerEff, | ||
OutputProcessor::SOVTimeStepType::System, | ||
OutputProcessor::SOVStoreType::Average, | ||
this->Name); | ||
SetupOutputVariable(state, | ||
"Boiler Steam Inlet Temperature", | ||
OutputProcessor::Unit::C, | ||
this->BoilerInletTemp, | ||
OutputProcessor::SOVTimeStepType::System, | ||
OutputProcessor::SOVStoreType::Average, | ||
this->Name); | ||
SetupOutputVariable(state, | ||
"Boiler Steam Outlet Temperature", | ||
OutputProcessor::Unit::C, | ||
this->BoilerOutletTemp, | ||
OutputProcessor::SOVTimeStepType::System, | ||
OutputProcessor::SOVStoreType::Average, | ||
this->Name); | ||
SetupOutputVariable(state, | ||
"Boiler Steam Mass Flow Rate", | ||
OutputProcessor::Unit::kg_s, | ||
this->BoilerMassFlowRate, | ||
OutputProcessor::SOVTimeStepType::System, | ||
OutputProcessor::SOVStoreType::Average, | ||
this->Name); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of the changes caused Clang Format to require line breaks. |
||
} | ||
|
||
void BoilerSpecs::autosize(EnergyPlusData &state) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 the kind of change in this PR -- lots of SetupOutputVariable calls changed from strings to the new enums.