Python package for processing FLEKS (FLexible Exascale Kinetic Simulator) data.
python -m pip install flekspy
flekspy
can load files generated from FLEKS.
import flekspy
ds = flekspy.load("sample_data/3*amrex")
Plotting is supported via Matplotlib and YT. For more detailed usage and contribution guide, please refer to the documentation.
flekspy
provides a ParaView plugin for visualizing FLEKS data. To use the plugin, follow these steps:
-
Make sure the ParaView version is 5.13 or higher.
-
Install flekspy for pvpython.
- Go into the ParaView directory and create a virtual environment for Python
./bin/pvpython -m venv .venv
- Check the Python version of
pvpython
./bin/pvpython -c "import sys; print(sys.version)"
- Install flekspy in the directory right in the venv. You may need to adjust the target path if
pvpython
does not detectflekspy
. Assuming the Python version is 3.10.11, run
python3 -m pip install --only-binary=:all: --python-version 3.10.11 --target ./.venv/lib/python3.10/site-packages/ flekspy
- Launch ParaView with the virtual environment
./bin/paraview --venv .venv
- In Tools > Manage Plugins, load the
BATSRUSReader
plugin.
flekspy
is licensed under the terms of the MIT license.