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

Adjust geometry to (xmin, ymin) or (xmean, ymean) before running mesh generation #20

Open
Huite opened this issue Mar 6, 2024 · 0 comments

Comments

@Huite
Copy link
Contributor

Huite commented Mar 6, 2024

Currently, the location of vertices are extracted and then directly provided to Triangle and Gmsh.

Depending on the coordinate system with small cell sizes, this means that very large values are computed to attain tiny differences. This doesn't obviously doesn't work well with finite precision.
We can get "free" precision by defining a new coordinate system, computing the mesh, and then restoring to the old coordinate system.

This should probably be done by default, with a property to control it; there may be cases where it results it gives trouble, if we lose precision due to addition and subtraction of the coordinates.

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

No branches or pull requests

1 participant