G-EQDSK file format#
G-EQDSK (G-formatted EQuilibrium DiSK) is a file format used to store the data of an equilibrium from EFIT’s reconstruction. This format is widely used by experimentals to share the results of discharges made in tokamaks. The code implemented is based on information scattered all around the internet [1, 2, 3].
G-EQDSK files don’t contain information about the coordinate convention they are using, so people should know beforehand from the file’s source. The COCOS convention defines an index defining the coordinate systems chosen, choice of sign and normalization.
These files can be read with the following function
-
Equilibrium read_geqdsk(std::string filename)#
Read geqdsk (G formatted EQuilibrium DiSK) files
This replicates what’s implemented here: https://github.com/bendudson/freegs/blob/master/freegs/_geqdsk.py and here: https://github.com/bendudson/pyTokamak/blob/master/tokamak/formats/geqdsk.py Read equilibrium G-EQDSK file
- Parameters
filename – name of file
- Returns
Equilibrium with the read data