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
GEMPIC.get_chargeMethod
get_charge( p, i; i_wi=1)

Get charge of ith particle of p (q * particle_weight)

GEMPIC.get_massMethod
get_mass( p, i; i_wi=1)

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

GEMPIC.get_vMethod
get_v( p, i )

Get velocity of ith particle of p

GEMPIC.get_xMethod
get_x( p, i )

Get position of ith particle of p

GEMPIC.set_v!Method
set_v!( p, i, v)

Set velocity of ith particle of p to v

GEMPIC.set_v!Method
set_v!( p, i, v)

Set velocity of ith particle of p to v

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.

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

Set position of ith particle of p to x