Skip to content

Commit

Permalink
Both corrections preserve the original claim.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHD committed Jun 28, 2023
1 parent cfe6b56 commit 9c27d82
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/javasrc/localtest/TestHGTRVHPModelParameterised.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static void testComputeFlowCoP()
}

/**Test with parameters at default except one full door per internal wall. */
public static void testOneDoorPerInternalWall()
public static void testOneDoorPerInternalWallCorrection()
{
final HGTRVHPMModelParameterised.ModelParameters oneDoor = new HGTRVHPMModelParameterised.ModelParameters(1.0);
final double powerNoSetback = HGTRVHPMModelParameterised.computeHPElectricityDemandW(oneDoor, false);
Expand All @@ -82,4 +82,17 @@ public static void testFlowTemperatureCorrection()
assertTrue("electrical power goes UP with B rooms set back", powerNoSetback < powerWithSetback);
}

/**Test with parameters at default except corrections for CoP and doors. */
public static void testCorrections()
{
final HGTRVHPMModelParameterised.ModelParameters corrections = new HGTRVHPMModelParameterised.ModelParameters(
1.0, true);
final double powerNoSetback = HGTRVHPMModelParameterised.computeHPElectricityDemandW(corrections, false);
final double powerWithSetback = HGTRVHPMModelParameterised.computeHPElectricityDemandW(corrections, true);
assertTrue("corrections should increase overall electricity demand",
HGTRVHPMModel.HEAT_PUMP_POWER_IN_NO_SETBACK_W < powerNoSetback);
assertTrue("corrections should increase overall electricity demand",
HGTRVHPMModel.HEAT_PUMP_POWER_IN_B_SETBACK_W < powerWithSetback);
assertTrue("electrical power goes UP with B rooms set back", powerNoSetback < powerWithSetback);
}
}

0 comments on commit 9c27d82

Please sign in to comment.