VEL

The VEL procedure draws a velocity ( flow) field with arrows following the field proportional in length to the field strength. Arrows are composed of a number of small segments that follow the streamlines.

This routine is written in the IDL language. Its source code can be found in the file vel.pro in the lib subdirectory of the IDL distribution.

Calling Sequence

VEL, U, V

Arguments

U

The X component at each point of the vector field. U must be a 2D array.

V

The Y component at each point of the vector field. V must have the same dimensions as U .

Keywords

NVECS

The number of vectors (arrows) to draw. If this keyword is omitted, 200 vectors are drawn.

XMAX

X axis size as a fraction of Y axis size. The default is 1.0. This argument is ignored when !P.MULTI is set.

LENGTH

The length of each arrow line segment expressed as a fraction of the longest vector divided by the number of steps. The default is 0.1.

NSTEPS

The number of shoots or line segments for each arrow. The default is 10.

TITLE

A string containing the title for the plot.

Example

X = DIST(20) ; Create a vector of X values.

Y = SIN(X)*100 ; Create a vector of Y values.

VEL, X, Y ; Plot the vector field.

See Also

FLOW3 , PLOT_FIELD , VELOVECT