ComputationalRadiationPhysics / particle_reduction

5 stars 3 forks source link

Particle Reducer

About

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.

Installing

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

Particle reducing

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