myimagelib.corrLib.divergence

myimagelib.corrLib.divergence(pivData, step=None, shape=None)

Compute divergence field based on piv data (x, y, u, v)

Parameters
  • pivData – DataFrame of (x, y, u, v)

  • step – distance (pixel) between adjacent PIV vectors

Returns

vorticity field of the velocity field. unit: [u]/pixel, [u] is the unit of u, usually px/s