An operation we very frequently need to do with Gk data is plot quantities on the R-Z plane. We propose to simplify this by introducing a gk-rz command that performs this transformation. It'll simply work as
pgkyl gk_ltx_iwl_2x2v_p1-elc_M2par_10.gkyl gk-rz --mapc2p gk_ltx_iwl_2x2v_p1-mapc2p.gkyl pl -a
to produce
(of course this is rather trivial in 2D and can already be done passing --c2p to the data loading, but it's more complex in 3D and multiblock, so gk-rz will black-box all the complexity away from users).
Note that the data loading was carried out prior to gk-rz. Thus all gk-rz will do is:
- Obtain the R-Z-phi coordinates from
-mapc2p.gkyl
- Interpolate along the z direction if needed.
It'll optionally take a higher resolution -mapc2p.gkyl file so plots look smoother.
This is being prototyped in the gk_rz_plot branch.
An operation we very frequently need to do with Gk data is plot quantities on the R-Z plane. We propose to simplify this by introducing a
gk-rzcommand that performs this transformation. It'll simply work asto produce
(of course this is rather trivial in 2D and can already be done passing --c2p to the data loading, but it's more complex in 3D and multiblock, so gk-rz will black-box all the complexity away from users).
Note that the data loading was carried out prior to gk-rz. Thus all gk-rz will do is:
-mapc2p.gkylIt'll optionally take a higher resolution
-mapc2p.gkylfile so plots look smoother.This is being prototyped in the
gk_rz_plotbranch.