UCLA Mathematics : Math 270E
void getStaggeredVelocityVorticity(double hx, double hy, DoubleArray2D& U, DoubleArray2D& V, DoubleArray2D& Omega)
Computes the vorticity of the staggered grid velocity
Documentation
Computes the vorticity of the staggered grid velocity. The computation assumes that the staggered grid velocity is associated with an underlying uniform rectangular grid that has mPanel panels in the x direction and nPanel panels in the y direction.
The values of the vorticity are computed at the nodes of the underlying grid. Centered difference approximation are used for interior values, while vorticity values along edges are computed using second order one sided differences.
Note!!! The arrays for the U and the V velocity are different sizes; a consequence of the staggered grid velocity arrangement.
Header: StaggeredGridUtilities.h
Source: StaggeredGridUtilities.cpp