Skip to content

Shading geometry filtering and runtime estimation#74

Merged
FlorianK13 merged 9 commits intoopen-pv:mainfrom
mestr01:shading-geometry-filtering-and-runtime-estimation
Dec 5, 2025
Merged

Shading geometry filtering and runtime estimation#74
FlorianK13 merged 9 commits intoopen-pv:mainfrom
mestr01:shading-geometry-filtering-and-runtime-estimation

Conversation

@mestr01
Copy link
Contributor

@mestr01 mestr01 commented Dec 3, 2025

@FlorianK13
This PR includes additional logic for the CLI.
The first change involves estimating the runtime of a run. To do this, the previous computing time per sky segment is determined and extrapolated for the remaining segments.
The other change involves filtering shading geometry before the data is loaded into the headless browser. The filtering works as follows:
the --shading-geometry gets filtered. The value of --min-sun-angle is used if it is set, otherwise the minimum
angle of the SolarIrradianceData is used. The shading geometry is filtered based on the simulation geometry bounding box and the minimum radiance angle. For this purpose, the distance from the bounding box and the height required with the minimum angle are calculated. If at least one vertex of a triangle is above this height, the triangle continues to be used for the shading geometry, otherwise it is removed. In simple terms, if at least one corner of a triangle can block radiation from the simulation geometry, it remains part of the shading geometry.

@FlorianK13
Copy link
Member

@mestr01 Can you also run yarn upgrade --latest once and commit the changes to the yarn lock file and the package.json? I think our dev dependencies are quite outdated.

@mestr01
Copy link
Contributor Author

mestr01 commented Dec 5, 2025

@mestr01 Can you also run yarn upgrade --latest once and commit the changes to the yarn lock file and the package.json? I think our dev dependencies are quite outdated.

Done. Checks run without errors.

@FlorianK13
Copy link
Member

Looks like it also works on the website:
image

Copy link
Member

@FlorianK13 FlorianK13 left a comment

Choose a reason for hiding this comment

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

Looks good to me - @mestr01 is this ready to be merged from your side?

@mestr01
Copy link
Contributor Author

mestr01 commented Dec 5, 2025

Looks good to me - @mestr01 is this ready to be merged from your side?

Yes

@FlorianK13 FlorianK13 merged commit 85bb8fe into open-pv:main Dec 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants