Particle group
SpinGEMPIC.ParticleGroup
— TypeParticleGroup( n_particles, charge, mass, n_weights)
n_particles
: number of particlescharge
: charge of the particle speciesmass
: mass of the particle speciesn_weights
: number of differents weights
SpinGEMPIC.get_charge
— Methodget_charge( p, i; i_wi=1)
Get charge of ith particle of p (q * particle_weight)
SpinGEMPIC.get_mass
— Methodget_mass( p, i; i_wi=1)
Get mass of ith particle of p (m * particle_weight)
SpinGEMPIC.get_s1
— Methodget_s1( p, i )
Get s1 of ith particle of p
SpinGEMPIC.get_s2
— Methodget_s2( p, i )
Get s2 of ith particle of p
SpinGEMPIC.get_s3
— Methodget_s3( p, i )
Get velocity of ith particle of p
SpinGEMPIC.get_v
— Methodget_v( p, i )
Get velocity of ith particle of p
SpinGEMPIC.get_weights
— Methodget_weights( p, i)
Get ith particle weights of group p
SpinGEMPIC.get_x
— Methodget_x( p, i )
Get position of ith particle of p
SpinGEMPIC.set_common_weight
— Methodset_common_weight( p, x )
Set the common weight
SpinGEMPIC.set_s1
— Methodset_s1( p, i, v)
Set velocity of ith particle of p to v
SpinGEMPIC.set_s2
— Methodset_s2( p, i, v)
Set velocity of ith particle of p to v
SpinGEMPIC.set_s3
— Methodset_s3( p, i, v)
Set velocity of ith particle of p to v
SpinGEMPIC.set_v
— Methodset_v( p, i, v)
Set velocity of ith particle of p to v
SpinGEMPIC.set_weights
— Methodset_weights( p, i, w)
Set weights of particle @ i
SpinGEMPIC.set_x
— Methodset_x( p, i, x )
Set position of ith particle of p to x