Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to mesher error in very specific cases #1325

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

momchil-flex
Copy link
Collaborator

@momchil-flex momchil-flex commented Dec 18, 2023

Warn when structures are too small compared to the generated mesh.

Also realized that e.g. placing a thin MeshOverrideStructure of size dl and mesh step dl will not place boundaries on both sides of that structure (i.e. a single mesh step) because of the way the isclose check is done. Changed tolerances a bit to fix this as it should be expected behavior.

I also added more docstrings explaining how that part of the mesher works. I must admit it's still a bit of a mess, but I don't have time for a complete overhaul (and it's not clear what that might look like).


To build this, we iterate in reverse order as latter structures override earlier ones.
We also handle containment in the following way (note - we work with bounding boxes only):
1. If a structure that is lower in the list than the current structure is found to be
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a duplicated space here.

Warn when structures are too small compared to the generated mesh
@momchil-flex momchil-flex merged commit 8be02f6 into develop Dec 20, 2023
10 of 14 checks passed
@momchil-flex momchil-flex deleted the momchil/meshing_thin_structures branch December 20, 2023 19:02
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.

None yet

3 participants