com1DFA.particleTools
Tools for handling particles, splitting, merging and tracking.
Functions
add particles |
|
create a raster indicating particle trajectories colorcoded with assets classes, highest overrides lower classes |
|
Find particles within a circle arround a given point |
|
find indices of all cells that are saved for each particle as the particle location was within that cell for the respective time step |
|
find closest neighbour |
|
Compute the new particle position due to splitting |
|
Compute the new particle potion due to splitting |
|
Compute the tangent vector to the surface |
|
Track particles along time given the parentID of the particles to track |
|
Get the desired properties for the tracked particles |
|
interpolate particle trajectories to have more closely spaced values important if affected grid cells should be identified without gaps |
|
merge small particles |
|
Merge two particles dictionary |
|
Create particles in given cell |
|
Read pickles within a directory and return List of dicionaries read from pickle |
|
remove given particles |
|
reshape particlesList from one dict per time step with all particle properties for each particle, to one dict with an array of property values for all time steps for each particle shape: nx x ny; nx time steps, ny number of particles |
|
save a single dict to a pickle |
|
Save each particle dictionary from a list to a csv file; works also for one dictionary instead of list |
|
Split big particles |
|
Split big particles |