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 Navier-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
free_fem_navier_stokes ( '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 the Dirichlet boundary conditions.
-
neumann_condition.m,
evaluates the right hand sides of the Neumann boundary conditions.
-
rhs.m,
evaluates the right hand sides (source terms) of the equations.
The printed output from a run is:
The geometry is defined by sets of nodes and triangles.
The velocities use the full set of nodes,
and quadratic (6 node) triangles.
The pressures are associated with a subset of the nodes
called "pressure nodes", and linear (3 node) triangles.
Note that, in the order 3 triangulation, the nodes are renumbered,
and do NOT inherit the labels used in the order 6 triangulation.
The Stokes equations are solved first, providing the solution of
a linear system that can be used as a good estimate of the solution,
especially for high values of the viscosity.
-
stokes_pressure3.txt,
a text file containing the Stokes pressure P at each pressure node;
-
stokes_pressure3.png,
a PNG image of
a contour plot of the Stokes pressure, produced by
TRIANGULATION_ORDER3_CONTOUR.
-
stokes_velocity6.txt,
a text file containing the Stokes velocity (U,V) at each velocity node;
-
stokes_velocity6_dir.png,
a PNG image of
the Stokes velocity direction field, created by
VECTOR_PLOT.
-
stokes_velocity6_vec.png,
a PNG image of
the Stokes velocity field, created by
VECTOR_PLOT.
-
stokes_velocity6_arrows.png,
a PNG image of the Stokes velocity field, created by
VELOCITY_ARROWS.
The nonlinear Navier Stokes equations are solved, using
the Stokes solution as a starting point.
-
navier_stokes_pressure3.txt,
a text file containing the Navier Stokes pressure P at each
pressure node;
-
navier_stokes_pressure3.png,
a PNG image of
a contour plot of the Navier Stokes pressure, produced by
TRIANGULATION_ORDER3_CONTOUR.
-
navier_stokes_velocity6.txt,
a text file containing the Navier Stokes velocity (U,V)
at each velocity node;
-
navier_stokes_velocity6_dir.png,
a PNG image of
the Navier Stokes velocity direction field, created by
VECTOR_PLOT.
-
navier_stokes_velocity6_vec.png,
a PNG image of
the Navier Stokes velocity field, created by
VECTOR_PLOT.
-
navier_stokes_velocity6_arrows.png,
a PNG image of the Navier Stokes velocity field, created by
VELOCITY_ARROWS.
Last revised on 10 September 2006.