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

Adaptive mesh refinement #11

Open
simbilod opened this issue Jul 19, 2023 · 4 comments
Open

Adaptive mesh refinement #11

simbilod opened this issue Jul 19, 2023 · 4 comments

Comments

@simbilod
Copy link
Owner

simbilod commented Jul 19, 2023

It is required for some applications, after the initial meshing, to remesh according to the result of simulations

Earlier versions of this code used callbacks for this, but it is too slow and approximate, because it makes a new mesh every time. Would be great to remesh the existing mesh.

See for example:

The desired API could be similar to above:

  • user gives a grid of (x, y, z, lc) coordinates, with lc the desired "mesh size" at the x, y, z positions;

or

  • user gives a grid of (x, y, z) coordinates where the existing mesh should be split

@SkandanC

@simbilod
Copy link
Owner Author

I just learned about MMG and it seems the most promising, it is even on pypi https://pypi.org/project/pymmg/

@simbilod
Copy link
Owner Author

See some attempts to do this with the callback here gdsfactory/gdsfactory#1074

@SkandanC
Copy link

SkandanC commented Jul 19, 2023 via email

@simbilod
Copy link
Owner Author

I'm not sure there is a difference between these two cases. It's possible that you remesh during "one" simulation, but it would always be based on some intermediate output that would look a lot like the final output

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

2 participants