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.
Header: StaggeredGridUtilities.h
Source: StaggeredGridUtilities.cpp