Skip to content

Commit bbfe61b

Browse files
committed
Use relatistic SUNCOSTS
Gotten from running 1ZoneUncontrolled.idf with chicago weather on Jan 1 at 12
1 parent aa433a7 commit bbfe61b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

tst/EnergyPlus/unit/SolarShading.unit.cc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,10 @@ TEST_F(EnergyPlusFixture, SolarShadingTest_PolygonClippingDirect)
18801880
SolarShading::SkyDifSolarShading(*state);
18811881
state->dataSolarShading->CalcSkyDifShading = false;
18821882

1883+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(1) = 0.20531446332266728;
1884+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(2) = -0.84761109808931534;
1885+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(3) = 0.48928662105799514;
1886+
18831887
FigureSolarBeamAtTimestep(*state, state->dataGlobal->HourOfDay, state->dataGlobal->TimeStep);
18841888
int surfNum = Util::FindItemInList("ZN001:WALL-SOUTH:WIN001", state->dataSurface->Surface);
18851889
EXPECT_NEAR(0.6504, state->dataSolarShading->SurfDifShdgRatioIsoSkyHRTS(4, 9, surfNum), 0.0001);
@@ -4698,9 +4702,11 @@ TEST_F(EnergyPlusFixture, SolarShadingTest_PolygonOverlap2)
46984702
shade2SchedEMSOn = true;
46994703
shade1SchedEMSValue = 1.0;
47004704
shade2SchedEMSValue = 1.0;
4701-
state->dataBSDFWindow->SUNCOSTS(4, 12)(1) = 0.2;
4702-
state->dataBSDFWindow->SUNCOSTS(4, 12)(2) = 0.2;
4703-
state->dataBSDFWindow->SUNCOSTS(4, 12)(3) = 0.2;
4705+
4706+
// Gotten from running 1ZoneUncontrolled.idf with chicago weather on Jan 1 at 12
4707+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(1) = 0.20531446332266728;
4708+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(2) = -0.84761109808931534;
4709+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(3) = 0.48928662105799514;
47044710
FigureSolarBeamAtTimestep(*state, state->dataGlobal->HourOfDay, state->dataGlobal->TimeStep);
47054711
ReportSurfaceShading(*state);
47064712

@@ -5048,9 +5054,9 @@ TEST_F(EnergyPlusFixture, SolarShadingTest_PolygonOverlap3)
50485054

50495055
// Use the base transmittance schedules (no EMS override)
50505056
// shade1 transmittance = 0.5, shade2 transmittance = 0.8
5051-
state->dataBSDFWindow->SUNCOSTS(4, 12)(1) = 0.2;
5052-
state->dataBSDFWindow->SUNCOSTS(4, 12)(2) = 0.2;
5053-
state->dataBSDFWindow->SUNCOSTS(4, 12)(3) = 0.2;
5057+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(1) = 0.20531446332266728;
5058+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(2) = -0.84761109808931534;
5059+
state->dataBSDFWindow->SUNCOSTS(state->dataGlobal->TimeStep, state->dataGlobal->HourOfDay)(3) = 0.48928662105799514;
50545060
FigureSolarBeamAtTimestep(*state, state->dataGlobal->HourOfDay, state->dataGlobal->TimeStep);
50555061
ReportSurfaceShading(*state);
50565062

0 commit comments

Comments
 (0)