Particle in the Cell -- Basic steps of algorithm
-
1) Assignment Phase: For each particle assign the charge and current density to grid point:
-
Can be represented in HPF.
-
Distribution of Grid and Particle have to be specified.
-
Grid is partitioned using regular decomposition
-
Particles using Coordinate Bisection
-
2) Solve Maxwell equations on the grid.
-
Regular problem can be specified in HPF
-
3) Find Force on each particle using interpolation.
-
(Here the geometry has to be built in the algorithm!)
-
Can be specified in HPF using Extensions to Forall for reduction
-
4) Move the particle
|