calculate_gamma_values#, vy, factor=1, r=3)[source]#

Calculate gamma1 and gamma2 values of velocity field vx and vy.

  • vx (numpy.ndarray) – Velocity field in the x direction.

  • vy (numpy.ndarray) – Velocity field in the y direction.

  • factor (int, optional) – Magnify the original data to find sub-grid vortex center and boundary. Default value is 1.

  • r (int, optional) – Maximum distance of neighbor points from target point. Default value is 3.


tuple – A tuple in form of (gamma1, gamma2), where gamma1 is useful in finding vortex centers and gamma2 is useful in finding vortex edges.