rahulgaur104 / VMEC2GK

VMEC to gyrokinetics interface for tokamaks
0 stars 1 forks source link

Merge with Miller Cookbook/Pyrokinetics #4

Open LiamPattinson opened 2 years ago

LiamPattinson commented 2 years ago

Would it be possible to combine this code with Miller cookbook? With a bit of design work, it could be possible to have a code that can convert either a user-supplied Miller geometry or a VMEC file to GS2/GX. Perhaps it could be named eq2gk or something?

There's some overlap here with pyrokinetics, and I was thinking that it would be great if we could leverage this code to help get VMEC equilibria into Pyrokinetics. However, Pyrokinetics has its own internal representation of a tokamak equilibrium, and it's currently not clear to me if it would be compatible with this code. It may be easier to work the other way around, and for this code to use a future Pyrokinetics version to convert VMEC input files to a nice 'Pythonic' equilibrium object, which could in turn be used to generate GS2 grid.out files or GX netCDF files. In any case, Pyrokinetics is still in an unstable development phase, so for now I think it would be best to keep the two separated.

rahulgaur104 commented 2 years ago

The only issue that I can think of right now is the normalization scheme. The normalization used in Miller cookbook is different from VMEC2GK in a fundamental way. Let me think about it.