TestParticle.jl is a test particle tracer in a static electromagnetic field.

This package supports charged particle tracing in analytic/numerical relativistic/non-relativistic

  • electric and magnetic field;
  • body force field.

All tracing are performed in 3D, as is the nature for the fields. For a numerical field, the mesh is constructed with Meshes.jl, and the field is interpolated with the aid of Interpolations.jl. For an analytical field, the user is responsible for providing the function for calculating the field at a given spatial location. The actual tracing is done through DifferentialEquations.jl, thanks to the ODE system of the equations of motion.

The single particle motions are the basics in understanding the test particle method. Check the complete Tutorial taken from Chapter Two of Introduction to Plasma Physics by F.F.Chen.


julia> ]
pkg> add TestParticle


It would be better to understand the basic workflow of DifferentialEquations.jl before digging into TestParticle.jl. All we are doing here can be concluded as contructing the ODE system from Newton's 2nd law and preparing the field/particle data. Check more in Examples.


Nothing can be done such easily without the support of the Julia community. We appreciate all the contributions from developers around the world.