Skip to content

Commit

Permalink
Adjust coeffs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Ahrenkiel authored and Phil Ahrenkiel committed Jan 3, 2024
1 parent 9f0e7db commit 69dbe24
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/HPWHpresets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4517,26 +4517,26 @@ int HPWH::HPWHinit_presets(MODELS presetNum)

compressor.perfMap.push_back({
5, // Temperature (T_F)
{-1423, 38.70, 0.}, // Input Power Coefficients (inputPower_coeffs)
{-0.13839, 0.012319, 0.} // COP Coefficients (COP_coeffs)
{-1356, 39.80, 0.}, // Input Power Coefficients (inputPower_coeffs)
{2.003, -0.003637, 0.} // COP Coefficients (COP_coeffs)
});

compressor.perfMap.push_back({
34, // Temperature (T_F)
{-1558, 42.40, 0.}, // Input Power Coefficients (inputPower_coeffs)
{-0.19375, 0.017247, 0.} // COP Coefficients (COP_coeffs)
{-1485, 43.60, 0.}, // Input Power Coefficients (inputPower_coeffs)
{2.805, -0.005092, 0.} // COP Coefficients (COP_coeffs)
});

compressor.perfMap.push_back({
67, // Temperature (T_F)
{-1713, 46.60, 0.}, // Input Power Coefficients (inputPower_coeffs)
{-0.239326, 0.02882, 0.} // COP Coefficients (COP_coeffs)
{-1632, 47.93, 0.}, // Input Power Coefficients (inputPower_coeffs)
{4.076, -0.007400, 0.} // COP Coefficients (COP_coeffs)
});

compressor.perfMap.push_back({
95, // Temperature (T_F)
{-1844, 50.17, 0.}, // Input Power Coefficients (inputPower_coeffs)
{-0.47273, 0.042082, 0.} // COP Coefficients (COP_coeffs)
{-1757, 51.60, 0.}, // Input Power Coefficients (inputPower_coeffs)
{6.843,-0.012424, 0.} // COP Coefficients (COP_coeffs)
});

compressor.minT = F_TO_C(-25);
Expand Down
7 changes: 7 additions & 0 deletions test/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ int main(int argc, char* argv[])
// ------------------------------------- Simulate --------------------------------------- //
cout << "Now Simulating " << minutesToRun << " Minutes of the Test\n";

double powerInput_kJ = 0.;

std::vector<double> nodeExtraHeat_W;
std::vector<double>* vectptr = NULL;
// Loop over the minutes in the test
Expand Down Expand Up @@ -432,6 +434,10 @@ int main(int argc, char* argv[])
cout << "WARNING: On minute " << i << " HPWH has an energy balance error.\n";
}

for (int iHS = 0; iHS < hpwh.getNumHeatSources(); iHS++) {
powerInput_kJ += hpwh.getNthHeatSourceEnergyInput(iHS, HPWH::UNITS_KJ);
}

// Check timing
for (int iHS = 0; iHS < hpwh.getNumHeatSources(); iHS++)
{
Expand Down Expand Up @@ -523,6 +529,7 @@ int main(int argc, char* argv[])
}
controlFile.close();

std::cout << "Power Input (Wh): " << 1000. * KJ_TO_KWH(powerInput_kJ) << "\n";
return 0;
}

Expand Down

0 comments on commit 69dbe24

Please sign in to comment.