DIRECTION_ARROWS
Plot Direction Field Arrows


DIRECTION_ARROWS is a MATLAB routine 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.

Related Data and Programs:

BUMP is a FORTRAN90 program which computes the pressure and velocity for a Navier Stokes flow in a channel with a bump.

CHANNEL is a program which computes the pressure and velocity for a Navier Stokes flow in a channel. It is available in a FORTRAN77 version and a FORTRAN90 version.

DIRECTION_ARROWS_GRID is 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 is a MATLAB program which plots the velocity direction fields of many data files with names that are numbered in sequence.

DIRECTION_ARROWS2 is a MATLAB program which plots the velocity direction field, assuming that the XY and UV data are stored in a single table file.

FFNS_SPARSE is a MATLAB program for solving the steady incompressible Navier Stokes equations on an arbitrary triangulated region, using the finite element method and MATLAB's sparse facility.

FFS_SPARSE is a MATLAB program for solving the steady incompressible Stokes equations on an arbitrary triangulated region, using the finite element method and MATLAB's sparse facility.

FREE_FEM_NAVIER_STOKES is a MATLAB program for solving the steady incompressible Navier Stokes equations on an arbitrary triangulated region, using the finite element method.

FREE_FEM_STOKES is a program which computes the pressure and velocity for a Stokes flow. The velocity vectors can be plotted using DIRECTION_ARROWS.

HCELL is a FORTRAN77 program which computes the pressure and velocity for a Navier Stokes flow in an "H"-shaped region.

INOUT is a FORTRAN77 program which computes the pressure and velocity for a Navier Stokes flow in a square region with an inlet and an outlet.

MHD_CONTROL is an executable FORTRAN90 program which tries to control the evolution of an MHD system so that a particular state is achieved.

MHD_FLOW is an executable FORTRAN90 program for the evolution of an MHD system.

NAST2D is a C++ program which computes the pressure and velocity for a Navier Stokes flow.

NAST2D_F90 is a FORTRAN90 program which computes the pressure and velocity for a Navier Stokes flow.

TABLE is the format used for the input files to this program.

TCELL is a FORTRAN77 program which computes the pressure and velocity for a Navier Stokes flow in a "T"-shaped region.

VECTOR_MAGNITUDE_GRID is 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 is a FORTRAN90 program which can read an XY file and a UV file and plot the velocity and velocity direction fields.

VELOCITY_ARROWS is a MATLAB program which plots the velocity field.

VELOCITY_ARROWS_GRID is 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_GRID2 is a MATLAB program which reads a single file of node and velocity data, and using interpolation is able to display a velocity vector field along any uniform grid of points specified by the user.

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

VELOCITY_ARROWS_SEQUENCE2, is a MATLAB program which reads a single XYUV file of nodes and velocities, plots the data and writes it to a PNG file, and then repeats the process for the next file.

VELOCITY_ARROWS2 is a MATLAB program which plots a velocity field, and assumes that the node and velocity data are stored in a single table file.

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.