-
Notifications
You must be signed in to change notification settings - Fork 4
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
Heat exchange models #183
Heat exchange models #183
Conversation
src/HPWHpresets.cc
Outdated
@@ -515,7 +515,7 @@ int HPWH::HPWHinit_presets(MODELS presetNum) { | |||
|
|||
else if (presetNum == MODELS_StorageTank) { | |||
setNumNodes(12); | |||
setpoint_C = F_TO_C(127.0); | |||
setpoint_C = 800.; |
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 shouldn't be changing on this branch, and will likely cause conflicts when master is merged in.
test/AquaThermAire.txt
Outdated
@@ -0,0 +1,71 @@ | |||
verbosity silent | |||
numNodes 1 #number of nodes |
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.
Change to 12?
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.
done
test/AquaThermAire.txt
Outdated
volume 54.4 gal | ||
UA 10.35 kJperHrC | ||
depressTemp false | ||
mixOnDraw true |
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 should be false, the draw doesn't go into the tank at all, and it shouldn't cause any mixing of the water.
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.
done
Added function bottomTwelfth_absolute. Fixed function topThird_absolute (seems to be unused.) |
This is a primitive solution using the existing method to read hpwh spec files. Can improve with generalized-logic-node method (forthcoming). |
src/HPWH.cc
Outdated
@@ -63,6 +63,10 @@ const double HPWH::MAXOUTLET_R410A = F_TO_C(140.); | |||
const double HPWH::MAXOUTLET_R744 = F_TO_C(190.); | |||
const double HPWH::MINSINGLEPASSLIFT = dF_TO_dC(15.); | |||
|
|||
double makeC(const double T_F_or_C,const HPWH::UNITS units,const bool absolute){ |
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 can probably be inline, no?
The name is also not very descriptive. Maybe convertTempToC
?
src/HPWH.cc
Outdated
std::shared_ptr<HPWH::TempBasedHeatingLogic> HPWH::bottomTwelfth_absolute(double decisionPoint) { | ||
std::vector<NodeWeight> nodeWeights = getNodeWeightRange(0., 1./12.); | ||
return std::make_shared<HPWH::TempBasedHeatingLogic>("bottom twelfth",nodeWeights,decisionPoint,this,true); | ||
} |
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 don't think this is needed anymore.
test/AquaThermAire.txt
Outdated
heatsource 0 minT -25 F | ||
heatsource 0 maxT 125 F | ||
heatsource 0 hysteresis 1 F | ||
heatsource 0 coilConfig wrapped |
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.
Should probably be "submerged" based on conversations with Ben. What impact will this have on the simulation?
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.
Wrapped and submerged use different heat distributions. Simulation results are slightly altered.
…PWHsim into heat-exchange-models
Description
Model
refers to a manufacturer product;model
refers to a physics representation.true
applies this model. The model assumes heat transfer from each tank node to the inlet water line using an effectiveness coefficient (heatExchangerEffectiveness). This process is repeated for each node upward, in sequence. However, the initial AquaThermAire Model preset and file use a single node, so this model has not been directly tested.Author Progress Checklist:
Reviewer Checklist: