Warwick-Plasma / epoch

Particle-in-cell code for plasma physics simulations
https://epochpic.github.io
GNU General Public License v3.0
184 stars 58 forks source link

Particle weighting #739

Open bzdjordje opened 2 weeks ago

bzdjordje commented 2 weeks ago

How do I specify particle weight? I have a solid target with an exponential preplasma but with collisions I see significant numerical heating, I want to verify if it is due to nonuniform particle weights.

Status-Mirror commented 1 week ago

In the default mode, EPOCH will load equal numbers of particles per cell with different weights to describe the density. You can change this to force EPOCH to use the same weight for each macro-particle, and acheive density gradients by loading different numbers of particles per cell.

You can do this by uncommenting the line #DEFINES += $(D)PER_SPECIES_WEIGHT in the Makefile, running make clean and then recompiling the code. This is described in our compiler flag documentation.

Hope this helps, Stuart