com1DFA.com1DFA.placeParticles¶
- placeParticles(massCell, indx, indy, csz, massPerPart, rng)[source]¶
Create particles in given cell
Compute number of particles to create in a given cell. Place particles in cell according to the chosen pattern (random semirandom or ordered)
- Parameters
massCell (float) – mass of snow in cell
indx (int) – column index of the cell
indy (int) – row index of the cell
csz (float) – cellsize
massPerPart (float) – maximum mass per particle
- Returns
xpart (1D numpy array) – x position of particles
ypart (1D numpy array) – y position of particles
mPart (1D numpy array) – mass of particles
nPart (int) – number of particles created