Particle group

GEMPIC.ParticleGroup — Type
ParticleGroup{D,V}( n_particles, charge, mass, q, weights)
  • n_particles : number of particles
  • charge : charge of the particle species
  • mass : mass of the particle species
  • n_weights : number of differents weights
source
GEMPIC.get_mass — Method
get_mass( p, i; i_wi=1)

Get mass of ith particle of p (m * particle_weight)

source
GEMPIC.set_x! — Method
set_x!( p, i, x)

Set position of ith particle of p to x

Note

if x is a scalar value, only the first x dimension will be set.

source