schemes.py

Difference schemes for the velocity derivatives

schemes.fourth_order_diff(vfield)

Fourth order accurate finite difference scheme.

Note

Scheme: 1:-8:0:8:-1

Params vfield:2D array of the velocity field, containing u and v
Returns:derivative
Return type:2D array of float
schemes.least_square_diff(vfield)

Least-square filter difference scheme [RAFFEL1998].

Note

Scheme -2:-1:0:1:2

Params vfield:2D array of the velocity field, containing u and v
Returns:derivative
Return type:2D array of float
[RAFFEL1998]Raffel M, Willert C and Kompenhans J 1998 Particle image velocimetry A Practical Guide (Berlin: Springer)
schemes.second_order_diff(vfield)

Second order accurate finite difference scheme.

Note

Scheme 1:0:-1

Params vfield:2D array of the velocity field, containing u and v
Returns:derivative
Return type:2D array of float