Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yujie Xu committed Aug 28, 2024
1 parent 323762e commit 07cb0db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tst/EnergyPlus/unit/HVACVariableRefrigerantFlow.unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2625,10 +2625,14 @@ TEST_F(EnergyPlusFixture, VRF_FluidTCtrl_VRFOU_Compressor)
Ncomp,
CyclingRatio);

EXPECT_NEAR(0.30, CyclingRatio, 0.01);
EXPECT_NEAR(2915, OUEvapHeatExtract, 1);
EXPECT_NEAR(0.20, CyclingRatio, 0.01);
Real64 x = T_discharge;
Real64 y = -5; // in low load modification
Real64 CurveValueEvap = 3.19E-01 -1.26E-03 * x -2.15E-05 * x * x + 1.20E-02 * y + 1.05E-04 * y * y -8.66E-05 * x * y;
Real64 CurveValuePower = 8.79E-02 -1.72E-04 * x + 6.93E-05 * x * x -3.38E-05 * y -8.10E-06 * y * y -1.04E-05 * x * y;
EXPECT_NEAR(CurveValueEvap * state->dataHVACVarRefFlow->VRF(1).RatedEvapCapacity, OUEvapHeatExtract, 1);
EXPECT_NEAR(1500, CompSpdActual, 1);
EXPECT_NEAR(630, Ncomp, 1);
EXPECT_NEAR(CurveValuePower * state->dataHVACVarRefFlow->VRF(1).RatedCompPower, Ncomp, 1);
EXPECT_EQ(state->dataLoopNodes->Node(state->dataHVACVarRefFlow->VRFTU(1).VRFTUInletNodeNum).MassFlowRate, 0.0);
}
}
Expand Down

4 comments on commit 07cb0db

@nrel-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vrfFluidCtrlFixHeatingCycling (Unknown) - Win64-Windows-10-VisualStudio-16: OK (2871 of 2871 tests passed, 0 test warnings)

Build Badge Test Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vrfFluidCtrlFixHeatingCycling (Unknown) - x86_64-Linux-Ubuntu-22.04-gcc-11.4: OK (3704 of 3706 tests passed, 1 test warnings)

Messages:\n

  • 2 tests had: ESO big diffs.
  • 2 tests had: MTR big diffs.
  • 2 tests had: Table big diffs.
  • 2 tests had: Table string diffs.
  • 1 test had: ERR diffs.

Failures:\n

regression Test Summary

  • Passed: 811
  • Failed: 2

Build Badge Test Badge

@nrel-bot-2c
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vrfFluidCtrlFixHeatingCycling (Unknown) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-UnitTestsCoverage-Debug: OK (2077 of 2077 tests passed, 0 test warnings)

Build Badge Test Badge Coverage Badge

@nrel-bot-2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vrfFluidCtrlFixHeatingCycling (Unknown) - x86_64-Linux-Ubuntu-22.04-gcc-11.4-IntegrationCoverage-Debug: OK (796 of 797 tests passed, 0 test warnings)

Failures:\n

integration Test Summary

  • Passed: 796
  • Failed: 1

Build Badge Test Badge Coverage Badge

Please sign in to comment.