Skip to content

Commit

Permalink
Comments added to unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcyuan2020 committed Mar 1, 2021
1 parent db1ad9a commit bad52a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tst/EnergyPlus/unit/ChillerExhaustAbsorption.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ TEST_F(EnergyPlusFixture, ExhAbsorption_getDesignCapacities_Test)
thisChillerHeater.MaxPartLoadRat = 0.9;
thisChillerHeater.OptPartLoadRat = 0.8;

// Chiller
thisChillerHeater.getDesignCapacities(*state, loc_1, maxload, minload, optload);

EXPECT_NEAR(minload, 10000.0, 0.001);
Expand All @@ -379,13 +380,19 @@ TEST_F(EnergyPlusFixture, ExhAbsorption_getDesignCapacities_Test)

thisChillerHeater.NomHeatCoolRatio = 0.9;
PlantLocation loc_2 = PlantLocation(2, 1, 1, 1);

// Heater
thisChillerHeater.getDesignCapacities(*state, loc_2, maxload, minload, optload);

EXPECT_NEAR(minload, 9000.0, 0.001);
EXPECT_NEAR(maxload, 81000.0, 0.001);
EXPECT_NEAR(optload, 72000.0, 0.001);

PlantLocation loc_3 = PlantLocation(3, 1, 1, 1);

// Condenser
thisChillerHeater.getDesignCapacities(*state, loc_3, maxload, minload, optload);

EXPECT_NEAR(minload, 0.0, 0.001);
EXPECT_NEAR(maxload, 0.0, 0.001);
EXPECT_NEAR(optload, 0.0, 0.001);
Expand Down
7 changes: 7 additions & 0 deletions tst/EnergyPlus/unit/ChillerGasAbsorption.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ TEST_F(EnergyPlusFixture, GasAbsorption_getDesignCapacities_Test)
thisChillerHeater.MaxPartLoadRat = 0.9;
thisChillerHeater.OptPartLoadRat = 0.8;

// Chiller
thisChillerHeater.getDesignCapacities(*state, loc_1, maxload, minload, optload);

EXPECT_NEAR(minload, 10000.0, 0.001);
Expand All @@ -224,13 +225,19 @@ TEST_F(EnergyPlusFixture, GasAbsorption_getDesignCapacities_Test)

thisChillerHeater.NomHeatCoolRatio = 0.9;
PlantLocation loc_2 = PlantLocation(2, 1, 1, 1);

// Heater
thisChillerHeater.getDesignCapacities(*state, loc_2, maxload, minload, optload);

EXPECT_NEAR(minload, 9000.0, 0.001);
EXPECT_NEAR(maxload, 81000.0, 0.001);
EXPECT_NEAR(optload, 72000.0, 0.001);

PlantLocation loc_3 = PlantLocation(3, 1, 1, 1);

// Condenser
thisChillerHeater.getDesignCapacities(*state, loc_3, maxload, minload, optload);

EXPECT_NEAR(minload, 0.0, 0.001);
EXPECT_NEAR(maxload, 0.0, 0.001);
EXPECT_NEAR(optload, 0.0, 0.001);
Expand Down

0 comments on commit bad52a7

Please sign in to comment.