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

Improved hybrid mode #117

Open
miekkasarki opened this issue Sep 2, 2024 · 0 comments
Open

Improved hybrid mode #117

miekkasarki opened this issue Sep 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@miekkasarki
Copy link
Contributor

Currently the hybrid mode works by switching from GC to GO at the moment when ENDCOND_MAX_RHO. The wall collision check now calculates the distance to the nearest wall element, so we can improve this scheme.

I suggest that in hybrid mode we check for close wall elements if any of those are within distance 1.1 * R_larmor. If true, we switch to GO. The close elements are those which belong to any of the octree cells that are within distance 1.1 * R_larmor from the guiding center position. Now the problem is in determining which cells fulfill this condition. I think the easiest way is to just include all cells where any of the points P, P+R_x, P-R_x, P+R_y, ... belong.

@miekkasarki miekkasarki added the enhancement New feature or request label Sep 2, 2024
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

No branches or pull requests

1 participant