Examples¶
Each example has its own page with a complete Python script, the equivalent
pgkyl commands, and their generated results.
Install Postgkyl using Installation, then download and unzip the
example bundle.
Run the scripts and commands from the extracted directory so their data paths
resolve correctly.
- Inspect a field and extract a lineout
- Compare profiles across calculations
- Recover pressure from conserved moments
- Inspect a gyrokinetic distribution
- Load derived gyrokinetic quantities
- Plot in physical R–Z coordinates
- Measure exponential growth
- Choose the arithmetic representation
- Load many files, collect, and animate
- Plotly: 2-D height surfaces and 3-D isosurfaces
- PyVista: contours and translucent volumes
- Access grids and values directly
- Plot a multiblock dataset
For help adapting the commands and comparing their results: