Skip to content

Commit

Permalink
showCalcs() WIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHD committed Sep 26, 2023
1 parent 698766e commit 6116a04
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions javasrc/org/hd/d/TRVmodel/hg/ShowComputations.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,32 @@ public static void showCalcs() throws IOException
}
}
}


// Pure weather-compensated comparison.
System.out.println("");
System.out.println(String.format("Original bungalow demand, with 'stiff' A-room temperature regulation:"));
final DemandWithoutAndWithSetback originalBungalowDemand = HGTRVHPMModelParameterised.computeBungalowDemandW(HGTRVHPMModelParameterised.ModelParameters.FIXES_APPLIED);
final double equilibriumTemperatureSoftBungalow[] = new double[1];
final DemandWithoutAndWithSetback softBungalowDemand = HGTRVHPMModelParameterised.computeSoftATempDemandW(HGTRVHPMModelParameterised.ModelParameters.FIXES_APPLIED, true, equilibriumTemperatureSoftBungalow);
final double heatNoSetbackBungalowStiff = originalBungalowDemand.noSetback().heatDemand();
final double heatWithSetbackBungalowStiff = originalBungalowDemand.withSetback().heatDemand();
System.out.println(String.format(" Heat mean demand: with no setback %.0fW, with setback %.0fW; %.0f%% change with setback",
heatNoSetbackBungalowStiff, heatWithSetbackBungalowStiff, 100*((heatWithSetbackBungalowStiff/heatNoSetbackBungalowStiff)-1)));
final double powerNoSetbackBungalowStiff = originalBungalowDemand.noSetback().heatPumpElectricity();
final double powerWithSetbackBungalowStiff = originalBungalowDemand.withSetback().heatPumpElectricity();
System.out.println(String.format(" Heat pump mean power: with no setback %.0fW, with setback %.0fW; %.0f%% change with setback",
powerNoSetbackBungalowStiff, powerWithSetbackBungalowStiff, 100*((powerWithSetbackBungalowStiff/powerNoSetbackBungalowStiff)-1)));

System.out.println(String.format("Original bungalow demand, with 'soft' A-room temperature regulation:"));
final double heatNoSetbackBungalowSoft = softBungalowDemand.noSetback().heatDemand();
final double heatWithSetbackBungalowSoft = softBungalowDemand.withSetback().heatDemand();
System.out.println(String.format(" Heat mean demand: with no setback %.0fW, with setback %.0fW; %.0f%% change with setback",
heatNoSetbackBungalowSoft, heatWithSetbackBungalowSoft, 100*((heatWithSetbackBungalowSoft/heatNoSetbackBungalowSoft)-1)));
final double powerNoSetbackBungalowSoft = softBungalowDemand.noSetback().heatPumpElectricity();
final double powerWithSetbackBungalowSoft = softBungalowDemand.withSetback().heatPumpElectricity();
System.out.println(String.format(" Heat pump mean power: with no setback %.0fW, with setback %.0fW; %.0f%% change with setback",
powerNoSetbackBungalowSoft, powerWithSetbackBungalowSoft, 100*((powerWithSetbackBungalowSoft/powerNoSetbackBungalowSoft)-1)));
}


Expand Down

0 comments on commit 6116a04

Please sign in to comment.