Skip to content

Commit

Permalink
Remove constant factor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Ahrenkiel authored and Phil Ahrenkiel committed Dec 29, 2023
1 parent 0bd44d3 commit 48159a5
Show file tree
Hide file tree
Showing 4 changed files with 680 additions and 680 deletions.
6 changes: 3 additions & 3 deletions src/HPWH.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3444,10 +3444,10 @@ void HPWH::updateTankTemps(double drawVolume_L,

if (i > 0)
{
double heatTransferred_kJ = nodeCp_kJperC * incrementalDrawVolume_N *
double heatTransferred_kJ = incrementalDrawVolume_N *
(1. - inletFraction) * tankTemps_C[i - 1];
tankTemps_C[i] += heatTransferred_kJ / nodeCp_kJperC;
tankTemps_C[i - 1] -= heatTransferred_kJ / nodeCp_kJperC;
tankTemps_C[i] += heatTransferred_kJ;
tankTemps_C[i - 1] -= heatTransferred_kJ;
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/ref/DHW_YRLY.csv
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ testCA_36Unit_CTZ12,Preset,ColmacCxV_5_MP,31681533,87668022,0,0,0,0,31681533,876
testCA_36Unit_CTZ12,Preset,ColmacCxA_15_MP,44752573,95899339,0,0,0,0,44752573,95899339,2.14,-nan,-nan,2.14
testCA_36Unit_CTZ12,Preset,ColmacCxA_20_MP,37878322,97052065,0,0,0,0,37878322,97052065,2.56,-nan,-nan,2.56
testCA_36Unit_CTZ12,Preset,NyleC60A_MP,40596679,89031774,0,0,0,0,40596679,89031774,2.19,-nan,-nan,2.19
testCA_36Unit_CTZ12,Preset,NyleC185A_MP,42456282,97452095,0,0,0,0,42456282,97452095,2.30,-nan,-nan,2.30
testCA_36Unit_CTZ12,Preset,NyleC185A_MP,42448450,97447089,0,0,0,0,42448450,97447089,2.30,-nan,-nan,2.30
testCA_36Unit_CTZ12,Preset,NyleC250A_MP,34266642,97496301,0,0,0,0,34266642,97496301,2.85,-nan,-nan,2.85
testCA_36Unit_CTZ12,Preset,RheemHPHD60,25796226,87357476,0,0,0,0,25796226,87357476,3.39,-nan,-nan,3.39
testCA_36Unit_CTZ12,Preset,RheemHPHD135,34754222,95520123,0,0,0,0,34754222,95520123,2.75,-nan,-nan,2.75
testCA_36Unit_CTZ12,Preset,TamScalable_SP,1000,1000,0,0,43439262,110163250,43440262,110164250,1.00,-nan,2.54,2.54
testCA_36Unit_CTZ12,Preset,Scalable_MP,1500,1500,783858,783858,51097190,104272566,51882547,105057923,1.00,1.00,2.04,2.02
testCA_36Unit_CTZ12,Preset,Scalable_MP,1500,1500,792505,792505,51084357,104255279,51878362,105049283,1.00,1.00,2.04,2.02
Loading

0 comments on commit 48159a5

Please sign in to comment.