Skip to content

Commit

Permalink
Merge pull request #451 from cse-sim/change-extra-heat-method-hpwh
Browse files Browse the repository at this point in the history
Change method for specifying extra heat to HPWHsim
  • Loading branch information
nealkruis authored Dec 12, 2023
2 parents 79b989f + 4ceb5fd commit 99c64c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/dhwcalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3730,9 +3730,10 @@ RC HPWHLINK::hw_DoSubhrTick( // calcs for 1 tick
{
double qTXkWh = tk.wtk_qTX / BtuperkWh;
hw_qTX += qTXkWh; // subhour total (kWh)
double qTXPwr // tick power per node, W
= qTXkWh * 1000. / (hw_nQTXNodes * Top.tp_tickDurHr);
hw_pNodePowerExtra_W.assign(hw_nQTXNodes, qTXPwr);
double qTXPwr // tick power (W)
= qTXkWh * 1000. / (Top.tp_tickDurHr);
hw_pNodePowerExtra_W = {qTXPwr, 0., 0., 0.}; // bottom 1/4 of tank

pNPX = &hw_pNodePowerExtra_W;
}

Expand Down
2 changes: 1 addition & 1 deletion vendor/HPWHsim
Submodule HPWHsim updated 310 files

0 comments on commit 99c64c5

Please sign in to comment.