com1DFA.particleTools.getSplitPartPosition¶
- getSplitPartPosition(cfg, particles, aPart, Nx, Ny, Nz, csz, nSplit, ind)[source]¶
Compute the new particle position due to splitting
- Parameters
cfg (configParser) – GENERAL configuration for com1DFA
particles (dict) – particles dictionary
aPart (numpy array) – particle area array
Nx (numpy 2D array) – x component of the normal vector on the grid
Ny (numpy 2D array) – y component of the normal vector on the grid
Nz (numpy 2D array) – z component of the normal vector on the grid
csz (float) – grid cell size
nSplit (int) – in how many particles do we split?
ind (int) – index of the particle to split
- Returns
xNew (numpy array) – x components of the splitted particles
yNew (numpy array) – y components of the splitted particles
zNew (numpy array) – z components of the splitted particles