CHANNEL
A Sample 2D Flow Problem
CHANNEL is a rectangular region that is 3 units wide and 1 unit
high. It is used as a sample problem for the Stokes solver.
To run the problem, you only need the user-supplied routines
and the user-supplied node data (nodes6.txt) and element data
(triangles6.txt).
You can run the program with the MATLAB command
ffs_sparse ( 'nodes6.txt', 'triangles6.txt' )
The user-supplied files needed to run the problem include:
-
boundary_type.m,
adjusts the program's default assignment of boundary condition types.
-
constants.m,
sets flow constants, in this case just the kinematic viscosity NU.
-
dirichlet_condition.m,
evaluates the right hand sides of any Dirichlet boundary conditions.
-
neumann_condition.m,
evaluates the right hand sides of any Neumann boundary conditions.
-
rhs.m,
evaluates the right hand sides (source terms) of the equations.
The printed output from a run is:
The pressures are associated with a subset of the full set of
nodes, and with an order 3 triangulation of those nodes.
Note that, in the order 3 triangulation, the nodes are renumbered,
and do NOT inherit the labels used in the order 6 triangulation.
The velocities are associated with the full set of
nodes, and with an order 6 triangulation of those nodes.
-
nodes6.txt,
a text file containing the velocity nodes;
-
nodes6.png,
a PNG image of
the velocity nodes;
-
triangles6.txt,
the quadratic triangulation;
-
triangles6.png,
a PNG image of
the order 6 triangulation;
-
velocity6.txt,
a text file containing the velocity (U,V) at each velocity node;
-
velocity6_dir.png,
a PNG image of
the velocity direction field, created by
VECTOR_PLOT.
-
velocity6_vec.png,
a PNG image of
the velocity field, created by
VECTOR_PLOT.
-
velocity6_arrows.png,
a PNG image of the velocity field, created by
VELOCITY_ARROWS.
Last revised on 08 October 2006.