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
Initialize tank temperature #186
Conversation
test/testUtilityFcts.cc
Outdated
else if (modelName == "BasicIntegrated") { | ||
hpwhModel = HPWH::MODELS_basicIntegrated; | ||
} |
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.
Is this change relevant?
src/HPWH.cc
Outdated
@@ -3290,6 +3290,8 @@ int HPWH::HPWHinit_file(string configFile) { | |||
//some variables that will be handy | |||
int heatsource,sourceNum,nTemps,tempInt; | |||
std::size_t num_nodes = 0, numHeatSources = 0; | |||
bool hasInitialTankTemp = false; | |||
double initalTankT_C = 20.; |
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.
20 C seems low...this should maybe be closer to 120 F.
src/HPWHpresets.cc
Outdated
@@ -411,6 +411,9 @@ int HPWH::HPWHinit_presets(MODELS presetNum) { | |||
|
|||
heatSources.clear(); | |||
|
|||
bool hasInitialTankTemp = false; | |||
double initialTankT_C = 20.; |
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: 120 F.
src/HPWHpresets.cc
Outdated
@@ -515,7 +518,7 @@ int HPWH::HPWHinit_presets(MODELS presetNum) { | |||
|
|||
else if (presetNum == MODELS_StorageTank) { | |||
setNumNodes(12); | |||
setpoint_C = 800.; | |||
setpoint_C = F_TO_C(127.); |
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 think I was confused before. I don't think the setpoint should change (assuming 800 was chosen to do something to disable the heat source controls). Instead, the initial temperature for this preset should be set to 127F.
Description
Note that method 3 generally overrides methods 1 and 2.
Author Progress Checklist:
Reviewer Checklist: