Skip to content

Commit

Permalink
Merge hpwh-master; add dhwcalc change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Ahrenkiel authored and Phil Ahrenkiel committed Dec 11, 2023
1 parent bddde1e commit 0ecc585
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

0 comments on commit 0ecc585

Please sign in to comment.