-
Notifications
You must be signed in to change notification settings - Fork 396
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
User Defined Plant Component Refactor #7649
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
dbd3611
cleanup comments
mitchute 53a88bb
cleanup warnings
mitchute 449c5fa
partial cleanup usings
mitchute dc47405
cleanup usings
mitchute 8542892
Merge branch 'develop' into plantCompUsrDefRefactor
mitchute 6fe32b0
cleanup locals
mitchute 6da152f
cleanup locals
mitchute 8b11996
cleanup statics
mitchute 5f8dc26
functions to members
mitchute dccef84
rename member methods
mitchute c06d2b0
move user defined plant comp to plantCompPtr calling calling methods
mitchute cee9750
Merge branch 'develop' into plantCompUsrDefRefactor
mitchute c7e3ff1
add clear_state
mitchute 7a66fee
apply style
mitchute a2eddc3
Merge branch 'develop' into plantCompUsrDefRefactor
mitchute e4af92b
Merge branch 'develop' into plantCompUsrDefRefactor
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
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 |
---|---|---|
|
@@ -192,7 +192,6 @@ namespace PlantLoopEquip { | |
using HWBaseboardRadiator::UpdateHWBaseboardPlantConnection; | ||
using RefrigeratedCase::SimRefrigCondenser; | ||
using SteamBaseboardRadiator::UpdateSteamBaseboardPlantConnection; | ||
using UserDefinedComponents::SimUserDefinedPlantComponent; | ||
using WaterCoils::UpdateWaterToAirCoilPlantConnection; | ||
|
||
// SUBROUTINE LOCAL VARIABLE DECLARATIONS: | ||
|
@@ -934,15 +933,7 @@ namespace PlantLoopEquip { | |
} else if (GeneralEquipType == GenEquipTypes_PlantComponent) { | ||
|
||
if (EquipTypeNum == TypeOf_PlantComponentUserDefined) { | ||
|
||
SimUserDefinedPlantComponent( | ||
LoopNum, LoopSideNum, sim_component.TypeOf, sim_component.Name, EquipNum, InitLoopEquip, CurLoad, MaxLoad, MinLoad, OptLoad); | ||
if (InitLoopEquip) { | ||
sim_component.MaxLoad = MaxLoad; | ||
sim_component.MinLoad = MinLoad; | ||
sim_component.OptLoad = OptLoad; | ||
sim_component.CompNum = EquipNum; | ||
} | ||
sim_component.compPtr->simulate(sim_component_location, FirstHVACIteration, CurLoad, RunFlag); | ||
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. All good here. |
||
|
||
} else if (EquipTypeNum == TypeOf_WaterSource) { | ||
sim_component.compPtr->simulate(sim_component_location, FirstHVACIteration, CurLoad, RunFlag); | ||
|
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
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.
Simple enough.