ammarhakim / postgkyl

Postprocessing tool for Gkeyll 1.0 and 2.0 data
https://gkeyll.readthedocs.io/en/latest/
MIT License
9 stars 4 forks source link

Hybrid basis specification in interp #141

Open ammarhakim opened 1 month ago

ammarhakim commented 1 month ago

I thought we replaced the pkpmhyb and gkhyb with just hybrid? However, I get the following:

gandalf@valinor ~/r/g/g/m/gkylzero> pgkyl interp -h                                                 (pgkyl) 
Usage: pgkyl interp [OPTIONS]

  Interpolate DG data onto a uniform mesh.

Options:
  -b, --basis_type [ms|ns|mo|mt|gkhyb|pkpmhyb]
                                  Specify DG basis.
  -p, --poly_order INTEGER        Specify polynomial order.
  -i, --interp INTEGER            Interpolation onto a general mesh of
                                  specified amount.
  -u, --use TEXT                  Specify a 'tag' to apply to (default all
                                  tags).
  -t, --tag TEXT                  Optional tag for the resulting array
  -l, --label TEXT                Custom label for the result
  -r, --read BOOLEAN              Read from general interpolation file.
  -h, --help                      Show this message and exit.
pcagas commented 1 month ago

@ammarhakim if we fully merge it, we would require an extra piece of information about which direction is different. It's the one before the last dimension (parallel velocity) for GK and the last dimension for PKPM. The rest of the code is otherwise agnostic to the configuration space x velocity space split.

manauref commented 1 month ago

What about Vlasov?