swiftsimio.visualisation.smoothing_length.nearest_neighbours module

Tools to get nearest-neighbour smoothing lengths.

swiftsimio.visualisation.smoothing_length.nearest_neighbours.get_hsml(data: SWIFTDataset) cosmo_array[source]

Compute a “smoothing length”.

Estimated as the 3rd root of the volume of the particles. This scheme uses volume weighting when computing slices.

Parameters:

data (SWIFTDataset) – The dataset from which slice will be extracted.

Returns:

The extracted “smoothing lengths”.

Return type:

cosmo_array