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

Interpolation functions for Gauss-Legendre and Radau discretizations #160

Open
johnomotani opened this issue Nov 22, 2023 · 2 comments
Open

Comments

@johnomotani
Copy link
Collaborator

Interpolation functions have not been implemented yet for the new discretizations introduced in #149. They will be needed eventually to support moment-kinetic simulations, or collisions between different species with different v-space grids.

@mrhardman
Copy link
Collaborator

I think that this should be straightforward. We just need to 1) use your handwritten code to write the Lagrange interpolating functions for arbitrary input collocation points or 2) use the relationship between the Lagrange polynomials and the Legendre polynomials and use a library for the latter.

@mrhardman
Copy link
Collaborator

Another immediate solution to the interpolation problem that does not require further numerical method developments could be to re-grid the kinetic neutrals on to vpa, vperp, gyrophase coordinates. This is straightforward so long as the neutral equations have no acceleration terms. This might have the advantage of being faster too.

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