com1DFA.com1DFA.trackParticles

trackParticles(cfgTrackPart, dem, particlesList)[source]

track particles from initial area

Find all particles in an initial area. Find the same particles in the other time steps (+ the children if they were splitted). Extract time series of given properties of the tracked particles

Parameters
  • cfgTrackPart (configParser) –

    centerTrackPartPointstr

    centerTrackPartPoint of the location of the particles to track (x|y coordinates)

    radiusstr

    radius of the circle around point

    particleProperties: str

    list of particles properties to extract (‘x’, ‘y’, ‘ux’, ‘m’…)

  • dem (dict) – dem dictionary

  • particlesList (list) – list of particles dictionary

Returns

  • particlesList (list) – Particles list of dict updated with the ‘trackedParticles’ array (in the array, ones for particles that are tracked, zeros otherwise)

  • trackedPartProp (dict) – dictionary with time series of the wanted properties for tracked particles

  • track (boolean) – False if no particles are tracked