Skip to content

[DR] gk-rz command for plotting on the R-Z plane #201

Description

@manauref

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

Image

(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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions