-
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
Refrigeration Components Plant Component Refactor #7662
Conversation
… probably a few missed
@Myoldmopar I addressed the bug causing the single-file failure from the work yesterday. If CI comes back OK, I believe this one is ready. |
CI is very happy with this, I'll review now. |
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.
No problems here, this is good stuff.
|
||
namespace EnergyPlus { | ||
|
||
namespace RefrigeratedCase { | ||
|
||
// Using/Aliasing |
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.
So these were all in the header but none were needed. That is awesome. Good cleanup!
if (InitLoopEquip) { | ||
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Makes good sense 😉
@@ -1433,10 +1434,12 @@ namespace EnergyPlus { | |||
this_comp.TypeOf_Num = TypeOf_RefrigSystemWaterCondenser; | |||
this_comp.GeneralEquipType = GenEquipTypes_Refrigeration; | |||
this_comp.CurOpSchemeType = DemandOpSchemeType; | |||
this_comp.compPtr = RefrigeratedCase::RefrigCondenserData::factory(CompNames(CompNum)); |
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.
Standard, good.
@@ -444,6 +445,7 @@ void EnergyPlusFixture::clear_all_states() | |||
Pumps::clear_state(); | |||
PurchasedAirManager::clear_state(); | |||
PVWatts::clear_state(); | |||
RefrigeratedCase::clear_state(); |
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 another clear_state
; great!
Thanks @mitchute; merging this now. |
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
Reviewer
This will not be exhaustively relevant to every PR.