Skip to content

New file "chease_hdf5.py"

Thomas Hayward-Schneider requested to merge py_hdf5_plot into master

By default it will read ogyropsi.h5 from the current directory

  • (add -filename=/path/to/some_file.h5 if file has a different name/directory)

It will make 4 plots:

  • |B|(R,Z) with flux surfaces
  • |B|(R,Z) with flux surfaces and theta* = [0,pi/2,pi,/3pi/2] lines
  • q(s)
  • q(rho_p) and q(rho_t)

Plots can be interactive (-interactivePlots=1, default if $DISPLAY is set)

  • interactive plots will be shown; can [all] be saved at the end

or non-interactive

  • Just saved.

Non-interactive plots can be generated and saved on batch systems with no $DISPLAY

The class has the ability to read/plot other quantites, so far I also load Jacobian(R,Z).

  • This can be extended or generalized.
Edited by Thomas Hayward-Schneider

Merge request reports