Particle group

GEMPIC.ParticleGroupType
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_massMethod
get_mass( p, i; i_wi=1)

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

source
GEMPIC.get_spinMethod
get_spin( p, i, j)

Get the jth weight of the ith particle weights of group p

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