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

PAM would like flux surfaces on R,theta grid (IMAS.fluxsurfaces?) #66

Open
TimSlendebroek opened this issue Mar 10, 2023 · 3 comments
Open
Assignees

Comments

@TimSlendebroek
Copy link
Contributor

TimSlendebroek commented Mar 10, 2023

Talking with Joey and adding PAM to FUSE, PAM would like the flux surfaces on the r,theta grid.

From PAM['LIB']['plasmainfo'] : gEQDSK['fluxSurfaces'].resample(npts=tgrid, technique='uniform')
Also note that we can generate the grid from contours but they need to be uniformily sampled (technique='uniform')

Let's make IMAS.fluxsurfaces(dd) create a second profiles_2d[2] with grid1=r, grid2=theta ? @orso82

@orso82
Copy link
Member

orso82 commented Mar 10, 2023

Yes, that would be easy to do. We need to take the flux surfaces and re-interpolate them to have the same theta.

@jcandy
Copy link

jcandy commented Mar 10, 2023

If it makes sense, I would suggest mapping once to MHX coefficients and then using that for any reinterpolation. Reinterpolating contours seems ugly/lossy.

@orso82
Copy link
Member

orso82 commented Mar 10, 2023

Indeed @jcandy . We already fit MXH to each of the flux surfaces, so that's the way we should do it!

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

4 participants