CGN 5930 SEC02: Environmental Fluid
Mechanics
Spring 2003,
Instructor: Dr. Wenrui Huang
Web page for document download:
1.
CE-QUAL-W2 user manual:
Link to down
load CEQUAL-W:http://www.ce.pdx.edu/w2
You must install Array Viewer to run the
program: http://h18009.www1.hp.com/fortran/aview/getviewer.html
2.
Appendix -A:
Hydrodynamic model theory:
( To compile this program: in Unix, use "f77 bflow.for -o bflow"
then it create a excutable file: bflow,
type 'bflow' to run the program, you will be asked to input data.
Input data: Rho=1000, AMU=1
Others: dx, NDX, dy, Ndy
Test Case: dx=5, dy=1, Ndx=10, Ndy=10, rho=1000, amu=1
4. sample Matlab program for vector plot
% vplot.m
% example to plot u and w
veclor, uq.txt is sample u data, wq.txt
is sample w data
% for more information, type
"help quiver"; or "help contourf" in matlab
load uq.txt; load wq.txt;
[x,z]=meshgrid(2:31,-2:-1:-35);
[c,h] = contourf(x,z,uq);
clabel(c,h), colorbar
quiver(x,z,uq,wq)