Improve test coverage for ConvexWeilerAtherton polygon clipping algorithm#11554
Improve test coverage for ConvexWeilerAtherton polygon clipping algorithm#11554joseph-robertson wants to merge 7 commits intodevelopfrom
Conversation
| ShadowCalculation, | ||
| PolygonClipping, !- Shading Calculation Method | ||
| Periodic, !- Shading Calculation Update Frequency Method | ||
| 1, !- Shading Calculation Update Frequency | ||
| , !- Maximum Figures in Shadow Overlap Calculations | ||
| ConvexWeilerAtherton; !- Polygon Clipping Algorithm |
There was a problem hiding this comment.
This is the new stuff.
There was a problem hiding this comment.
Pull request overview
Adds a new EnergyPlus regression/simulation test IDF that exercises the ConvexWeilerAtherton polygon clipping path in ShadowCalculation, addressing the existing coverage gap noted in #5558.
Changes:
- Added a new shading-focused IDF test case configured to use
PolygonClipping+ConvexWeilerAtherton. - Registered the new IDF in the
testfilesCMake simulation test list. - Fixed/cleaned up a documentation line for the “Surface Outside Face Sunlit Fraction” output variable units.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| testfiles/SolarShadingTest_ConvexWeilerAtherton.idf | New test IDF to run shading with ConvexWeilerAtherton polygon clipping algorithm. |
| testfiles/CMakeLists.txt | Adds the new IDF to the simulation test suite. |
| doc/input-output-reference/src/overview/group-thermal-zone-description-geometry.tex | Adjusts the units text for the “Sunlit Fraction” output variable entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ! Design Days: PHOENIX_AZ_USA Annual Heating 99.6%, MaxDB=2.9°C (Winter design day has solar) | ||
| ! PHOENIX_AZ_USA Annual Cooling (DB=>MWB) .4%, MaxDB=43.4°C MWB=21.1°C | ||
| ! | ||
| ! Run Period (Weather File): 1/1 through 12/31, PHOENIX_AZ_USA TMY2 |
There was a problem hiding this comment.
The header comment says the run period uses a TMY2 weather file, but this test is wired up in CMake to use a TMY3 EPW. Please update the comment to match the actual EPW being used (or change the EPW if TMY2 is required).
| ! Run Period (Weather File): 1/1 through 12/31, PHOENIX_AZ_USA TMY2 | |
| ! Run Period (Weather File): 1/1 through 12/31, PHOENIX_AZ_USA TMY3 |
| RunPeriod, | ||
| Run Period 1, !- Name | ||
| 1, !- Begin Month | ||
| 1, !- Begin Day of Month | ||
| , !- Begin Year | ||
| 12, !- End Month | ||
| 31, !- End Day of Month | ||
| , !- End Year | ||
| Tuesday, !- Day of Week for Start Day | ||
| Yes, !- Use Weather File Holidays and Special Days | ||
| Yes, !- Use Weather File Daylight Saving Period | ||
| No, !- Apply Weekend Holiday Rule | ||
| Yes, !- Use Weather File Rain Indicators | ||
| Yes; !- Use Weather File Snow Indicators |
There was a problem hiding this comment.
This test runs the full weather-file run period (1/1–12/31) in addition to the design days. Since this is primarily intended to exercise the ConvexWeilerAtherton clipping path, consider shortening the RunPeriod (or switching to DESIGN_DAY_ONLY) to reduce CI runtime while still covering the algorithm.
|
|
|
@joseph-robertson I have restarted regressions here. |
|
|
|
|
@joseph-robertson regression results look to be back on track. |
|
|
|
|
Pull request overview
InitSolarCalculations.Output:Variable,*,Zone Mean Radiant Temperature,hourly;lines in a handful of test filesSurface Outside Face Sunlit Fractionoutput variable unitsDescription of the purpose of this PR
Pull Request Author
Reviewer