-
Notifications
You must be signed in to change notification settings - Fork 30
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
DESC wout and MGRID file incompatibilty #1550
Comments
Thank you for pointing this out, Sam! |
Thanks Sam. We are aware that many variables are missing from the DESC-generated wout files, and they are documented in the code. The issue is that we are not sure what these variables are supposed to be, since the STELLOPT source code that generates them is poorly documented. Our general practice has been to exclude these outputs until they can be implemented properly, so that we avoid any issues with using incorrect values. If you know what any of these outputs are supposed to be we would appreciate the help in adding them! |
@ddudt The deffinitions in read_wout_mod.f90 are pretty clear. I believe you're missing <1/R> One subtle point is that when putting Fourier quantities on the half grid, even and odd modes are treated differently with the odd modes being interpolated in For MGRID, I'm not sure what went wrong but the file @rahulgaur104 provided didn't even have the correct variable names. Below you can find a dump of the header information from a work MGRID file. I've made comments where perhaps the meaning of a name is not obvious.
Notes:
|
Thanks Sam, those descriptions you updated are helpful! We had been looking at wrout.f where the wout file is written, and the long names are not included for most of the variables in the actual output. Can you clarify your point about the odd modes on the half grid? DESC is saving the "full grid" quantities on surfaces linearly spaced in Also, do you know if there are any noteworthy differences in the wout formats between different versions of VMEC? We are benchmarking against an example from version 9 that was generated several years ago. |
@ddudt First there are an infinte set of flux surfaces in every VMEC equilibria. VMEC has two radial grids, one on the full radial mesh, and one on the half radial mesh. Quantities on the half radial mesh are on that mesh because they arrise from derivatives in the radial direction. These derivatives are first order finite differences in order to create a block tridiagnoal system. Becasue the even and odd poloidal modes have different radial linear dependences VMEC treats them differently. The even modes in m are treated as linear in the radial grid as they go like the toroidal flux. The odd modes are treated in the square root of the radial grid as the are linear in the minor radius. There haven't been many changes in the main branches of VMEC in the last few years with regard to outputs. I would advise you to contact Mark Cianciosa for VMEC support. The STELLOPT repo periodically aligns with the ORNL repo, but ORNL is the official source of VMEC. |
There have been multiple issues raised over on the STELLOPT Github related to DESC produced
wout
files andmgrid
files. These files are not being written correctly, are missing information, and cannot be read by the STELLOPT family of codes. The source for reading MGRID files can be found here, and should be used as a template for generating the files. While not all values are necessarily needed it is advised that variable name convention be respected:LIBSTELL/Sources/Modules/mgrid_mod.f
The writing of VMEC
wout
files should follow the conventions set here:LIBSTELL/Sources/Modules/read_wout_mod.f90
The text was updated successfully, but these errors were encountered: