This software provides reducing the number of particles in the ndf file using the Voronoi algorithm[1]
The software is written in python 3, python 2 is not supported. For the rest of the document by python we assume some python3 binary.
Clone this repository by running
git clone https://github.com/KseniaBastrakova/particle_reduction
or download an archive from the github page and unpack it.
The only dependency is h5py, which can be installed e.g., by pip install h5py
run voronoi_reduction(hdf_file, hdf_file_reduction, tolerance_momentum, tolerance_position)
where
[1] Voronoi particle merging algorithm for PIC codes Phuc T.Luu T.Tückmantel A.Pukhov