UCLA Mathematics : Math 270E

void projectStaggeredVelocity(double hx, double hy, DoubleArray2D& U, DoubleArray2D& V)

Computes the projection of the staggered grid velocity onto its divergence free component


Documentation

Computes the projection of the staggered grid velocity onto its divergence free component. 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 calculation is based upon a stream function computation.

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/output) DoubleArray2D of size mPanel+1 by nPanel containing the U velocity.
V - (input/output) DoubleArray2D of size mPanel by nPanel+1 containing the V velocity.

Header: StaggeredGridUtilities.h
Source: StaggeredGridUtilities.cpp

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