ana5Utils.DFAPathGeneration.getDFAPathFromPart

getDFAPathFromPart(particlesList, addVelocityInfo=False)[source]

compute mass averaged path from particles

Also returns the averaged velocity and kinetic energy associated If addVelocityInfo is True, information about velocity and kinetic energy is computed

Parameters
  • particlesList (list) – list of particles dict

  • addVelocityInfo (boolean) – True to add (u2, ekin, totEKin) to result

Returns

avaProfileMass – mass averaged profile (x, y, z, ‘s’, ‘sCor’) if addVelocityInfo is True, kinetic energy and velocity information are added to the avaProfileMass dict (u2, ekin, totEKin)

Return type

dict