myimagelib.corrLib.convection

myimagelib.corrLib.convection(pivData, image, winsize, step=None, shape=None)

Compute convection term u.grad(c) based on piv data (x, y, u, v) and image.

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

  • image – – the image corresponding to pivData

  • winsize – – coarse-graining scheme of image

  • step – – (optional) distance (pixel) between adjacent PIV vectors

  • shape – – (optional) shape of piv matrices

Returns

convection term u.grad(c). unit: [u][c]/pixel, [u] is the unit of u, usually px/s, [c] is the unit of concentration measured from image intensity, arbitrary.