Visualisation
swiftsimio provides visualisation routines in the
swiftsimio.visualisation sub-module. They are accelerated with the
numba module. They can work without numba, but we strongly recommend
installing it for the best performance (1000x+ speedups).
The four built-in rendering types (described below) have the following common interface:
{render_func_name}_gas(
data=data, # SWIFTsimIO dataset
resolution=1024, # Resolution along one axis of the output image
project="masses", # Variable to project, e.g. masses, temperatures, etc.
parallel=False, # Construct the image in (thread) parallel?
region=None, # None, or a list telling which region to render_func_name
periodic=True, # Whether or not to apply periodic boundary conditions
)
The output of these functions comes with associated units and has the correct dimensions. There are lower-level APIs (also documented here) that provide additional functionality.