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.

Parameters:
hx - mesh width in x-direction
hx - mesh width in y-direction
U - (input) DoubleArray2D of size mPanel+1 by nPanel containing the U velocity.
V - (input) DoubleArray2D of size mPanel by nPanel+1 containing the V velocity.
Omega - (output) DoubleArray2D of size mPanel+1 by nPanel+1 containing the vorticity.

Header: StaggeredGridUtilities.h
Source: StaggeredGridUtilities.cpp

Author:
Chris Anderson (C) UCLA
Version:
Nov. 11, 2008