Miscellaneous¶
MITIM can also be used to perform other tasks, such as:
Interpret Tokamak equilibrium¶
MITIM has a quick g-eqdsk file reader and visualizer that is based on the megpy package.
To open and plot a g-eqdsk file:
from mitim_tools.gs_tools import GEQtools
g = GEQtools.MITIMgeqdsk(file)
g.plot()
It will plot results in a notebook-like plot with different tabs:
Note that the same can be achieved with the following alias:
mitim_plot_eq eq_file.geqdsk
Interpret input.gacode files¶
MITIM has a quick input.gacode file reader and visualizer.
To open and plot an input.gacode file:
from mitim_tools.gacode_tools import PROFILEStools
p = PROFILEStools.gacode_state(file)
p.plot()
It will plot results in a notebook-like plot with different tabs:
Note that the same can be achieved with the following alias:
mitim_plot_gacode input.gacode