Skip to content

Commit

Permalink
table WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHD committed Sep 13, 2023
1 parent 4b4b495 commit 959802b
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions javasrc/org/hd/d/TRVmodel/hg/ShowComputations.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,11 @@ public static String generateHTMLMainSummaryTable() throws IOException
final double heatDelta201X = 100*((heatWithSetback201X/heatNoSetback201X)-1);
if(!detached && abab)
{ result.append(String.format("<td rowspan=\"2\" style=\"text-align:right\">%.1f%%</td>", heatDelta201X)); }

// System.out.println(String.format(" Heat mean demand: with no setback %.0fW, with setback %.0fW; %.0f%% change with setback",
// heatNoSetback201X, heatWithSetback201X, 100*((heatWithSetback201X/heatNoSetback201X)-1)));
// final double powerNoSetback201X = result201X.demand().noSetback().heatPumpElectricity();
// final double powerWithSetback201X = result201X.demand().withSetback().heatPumpElectricity();
// System.out.println(String.format(" Heat pump mean power: with no setback %.0fW, with setback %.0fW; %.0f%% change with setback",
// powerNoSetback201X, powerWithSetback201X, 100*((powerWithSetback201X/powerNoSetback201X)-1)));
// System.out.println(String.format(" Percentage of hours that room setback raises heat pump demand: %.0f%%",
// 100f * result201X.hoursFractionSetbackRaisesDemand()));


// TODO



// Heat-pump power demand delta.
final double powerNoSetback201X = result201X.demand().noSetback().heatPumpElectricity();
final double powerWithSetback201X = result201X.demand().withSetback().heatPumpElectricity();
final double powerDelta201X = 100*((powerWithSetback201X/powerNoSetback201X)-1);
result.append(String.format("<td style=\"text-align:right\">%.1f%%</td>", powerDelta201X));
}
result.append("</tr>\n");
}
Expand Down

0 comments on commit 959802b

Please sign in to comment.