com1DFA.particleTools.addParticles¶
- addParticles(particles, nAdd, ind, mNew, xNew, yNew, zNew)[source]¶
add particles
- Parameters
particles (dict) – particles dictionary
nAdd (int) – number of particles added (one particles is modified, nAdd are added)
ind (int) – index of particle modified
mNew (float) – new mass of the particles
xNew (numpy array) – new x position of the particles
yNew (numpy array) – new y position of the particles
zNew (numpy array) – new z position of the particles
- Returns
particles – particles dictionary with modified particle and new ones
- Return type
dict