Skip to content

Generation of vacuum regions#1

Merged
tboudreaux merged 7 commits into4D-STAR:mainfrom
tboudreaux:feature/kelvin
Mar 20, 2026
Merged

Generation of vacuum regions#1
tboudreaux merged 7 commits into4D-STAR:mainfrom
tboudreaux:feature/kelvin

Conversation

@tboudreaux
Copy link
Copy Markdown
Contributor

In order to solve for the gravitational potential of a non spherical body the correct boundary condition is that the potential is 0 at infinity. In order to solve this we need a mesh that extends past the stellar surface. Stroid can now generate such meshes. Note that stroid leaves it to solvers to implement a mapping that takes the finite distance surface of this "vacuum" zone and maps it to infinity (using something like a kelvin mapping).

This PR also brings an improved test suite and some new tooling for visualizing the winding order of the vertices used to generate the topology.

Stroid can now generate vacuume regions. These are confirming spheres marked with a seperate attribute that solver may then apply arbitrary mappings to. Further, the boundary of this region is also marked with a seperate boundary attrite allowing seperate boundary conditions to easily be applied.
Test suite has been updated to include a much more robust suite of tools for validating mesh quality and mesh usability (including but not limited to things such as validating that integrating over a sphere provides the correct volume, that the mesh is confirming, and that no elements are inverted)
This version brings proper support for external domains
A simple python helper script has been added to aid developers in visualizing the winding order of vertices
previously calling stroid -v would print the version but then continue on the default run case, now both -v and -d result in an immediate exit after their tasks are done
@tboudreaux tboudreaux self-assigned this Mar 20, 2026
@tboudreaux tboudreaux added the enhancement New feature or request label Mar 20, 2026
@tboudreaux tboudreaux merged commit 321abd6 into 4D-STAR:main Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant