VELOCITY_ARROWS_SEQUENCE is a MATLAB program which makes velocity field arrow plots using a single XY coordinate file, and a sequence of UV velocity datasets, stored as TABLE files (except that no "#" comment lines are allowed).
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 computes the maximum velocity magnitude over all datasets, so that there is a single velocity scale.
It then makes a few settings, calls quiver to plot the arrows, and also traces out the convex hull of the points, which is presumably the boundary of the region. The resulting image is displayed, and saved to a PNG file.
In addition, the program assumes that the user actually has a sequence of UV datasets, with "consecutive" names, each of which is to be plotted. The program automatically reads each such dataset and creates the sequence of PNG files. It is easy to take such a sequence and make an animation.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
DIRECTION_ARROWS_SEQUENCE, a MATLAB program which makes velocity direction plots.
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.
VECTOR_STREAM_GRID, a MATLAB program which reads node and vector data from a file, computes an interpolatory function, evaluates on a uniform grid of points specified by the user, and displays a streamline plot of the vector field.
VELOCITY_ARROWS, a MATLAB program which plots a velocity vector field.
VELOCITY_ARROWS_GRID, a MATLAB program which reads files of node and velocity data, and, using interpolation, creates a vector plot with arrows place on a uniform grid of the user's specification.
VELOCITY_ARROWS_SEQUENCE2, a MATLAB program which handles the case where each data file contains both XY and UV values.
The INOUT dataset models flow in a 2D box with an inlet on one side and an outlet on the other. The following files are available:
The command
velocity_arrows_sequence ( 'inout_xy.txt', 'inout_uv001.txt', 3.0 )created the following files:
You can go up one level to the MATLAB source codes.