DIRECTION_ARROWS
Plot Direction Field Arrows


DIRECTION_ARROWS is a MATLAB program which makes an arrow plot of a velocity direction field, using XY and UV data stored as TABLE files.

The program is mainly a preprocessor for MATLAB's quiver routine. It reads the (X,Y) coordinates of a set of points from an "XY" file, and the corresponding horizontal and vertical velocities from a "UV" file. It then makes a few settings, computes the direction field from the velocity field, calls quiver to plot the arrows, and also traces out the convex hull of the points, which is presumably the boundary of the region.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

DIRECTION_ARROWS_GRID, a MATLAB program which reads node and velocity data from a file, and using interpolation is able to compute a velocity direction field along any uniform grid of points specified by the user.

DIRECTION_ARROWS_SEQUENCE, a MATLAB program which plots the velocity direction fields of many data files with names that are numbered in sequence.

VECTOR_MAGNITUDE_GRID, a MATLAB program which reads node and velocity data from a file, and using an interpolating function, is able to display a contour plot of the vector magnitude field.

VECTOR_PLOT, a FORTRAN90 program which can read an XY file and a UV file and plot the velocity and velocity direction fields.

VELOCITY_ARROWS, a MATLAB program which plots the velocity field.

VELOCITY_ARROWS_GRID, a MATLAB program which reads node and velocity data from a file, and using interpolation is able to display a velocity vector field along any uniform grid of points specified by the user.

VELOCITY_ARROWS_SEQUENCE, a MATLAB program which can process a set of many data files with names that are numbered in sequence.

Source Code:

Examples and Tests:

CHANNEL is a problem involving flow in a horizontal channel.

You can go up one level to the MATLAB source codes.


Last revised on 31 August 2005.