DISPLAY4
2D Flow Graphics
DISPLAY4
is a FORTRAN90 program which
creates graphics
files from the output of one of the various FLOW programs.
Specifically, the FLOW programs are the family of
FLOW5 and
FLOW6.
Each of these programs solves a 2D steady state incompressible
flow problem, and writes out an element and a node file,
describing the flow velocity and pressure in the region.
DISPLAY4 can read in the element and node file, and then
create images of the flow region, nodes or elements, or
contour lines of the pressure, or vector plots of the velocity.
Other plots are also available.
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
is a MATLAB program which
can be used to plot the vector direction field.
DIRECTION_ARROWS_GRID
is a MATLAB program which
reads files of
node and velocity data, and, using interpolation, creates a
velocity direction plot with arrows
place on a uniform grid of the user's specification.
DISPLAY3,
a FORTRAN90 program which
displays graphics from the
flow data computed by FLOW3. This program
used to work, but it is very out of date;
DISPLAY5,
a FORTRAN90 program which
displays graphics from the
flow data computed by FLOW3,
FLOW5 or
FLOW7. This program
used to work, but it is very out of date;
ELEMENT_DATA,
is a FORTRAN90 program which
preprocesses simple element-based data on a grid into a form that the
DISPLAY4 program can handle.
FEM
is a data directory which
contains a description of the data files
that can be used to describe a finite element model.
FEM_BASIS_T3_DISPLAY
is a MATLAB program which
displays a
basis function associated with a linear triangle ("T3") mesh.
FLOW3
is a FORTRAN90 program which
solves certain problems in 2D
steady state incompressible Navier Stokes fluid flow.
FLOW5
is a FORTRAN90 program which
is a later version of the FLOW3 program.
FLOW7
is a FORTRAN90 program which
is a later version of the FLOW3 program.
SLAB,
a FORTRAN90 program which
analyzes the optimization of a scalar function of multidimensional data
by examining contour lines in a selected plane.
SLICE,
a FORTRAN90 program which
analyzes the optimization of a scalar function of multidimensional data
by examining contour lines in a selected plane.
TRIANGULATION_ORDER3_CONTOUR
is a MATLAB program which
can display a contour plot
of scalar data defined on a triangulation of order 3.
TRIANGULATION_ORDER6_CONTOUR
is a MATLAB program which
can display a contour plot
of scalar data defined on a triangulation of order 6.
TRIANGULATION_PLOT
is a FORTRAN90 program which
can be used to plot the elements that triangulate the region.
VECTOR_MAGNITUDE_GRID
is 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 contour plot of the vector magnitude.
VECTOR_PLOT
is a FORTRAN90 program which
can be used to create vector plots
of the velocity and velocity direction fields.
VECTOR_STREAM_GRID
is 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
is a MATLAB program which
plots a velocity vector field.
VELOCITY_ARROWS_GRID
is 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.
Source Code:
Examples and Tests:
List of Routines:
-
DISPLAY4 displays graphics for finite element data.
-
ADJEFF reads and checks the node data.
-
ARROW_LINE makes a line drawing of an arrow at any point on a graph.
-
ARROW_POLY makes a polygonal drawing of an arrow at any point on a graph.
-
BOUND_PRINT prints the edges which are boundaries of the region.
-
BOUND_SET finds edges which are boundaries of the region.
-
BOUND_SHOW displays the boundary.
-
BOX draws a rectangle whose corners are specified by the user.
-
BUZZ is just "busy work" to force XWS to draw the whole picture.
-
CH_CAP capitalizes a single character.
-
COLOR_BAR draws a color bar in a given rectangle.
-
COLOR_BOX draws a 16 by 16 box of colors in the current color table.
-
CHRCTI2 finds and reads an integer from a string.
-
CHRREL represents a real using 14 right justified characters.
-
COLOR_TABLE_CHOOSE gets the color table choice from the user.
-
COLOR_TABLE_SET sets up the color table.
-
CONTOUR_COLOR_L3 does color contours in a 3 node linear element.
-
CONTOUR_COLOR_L4 does color contours for linear quadrilateral elements.
-
CONTOUR_COLOR_Q6 uses color to indicate points with a value greater than a given value.
-
CONTOUR_LEVELS allows the user to set the contour levels.
-
CONTOUR_LINE supervises the drawing of a contour line plot.
-
CONTOUR_LINE_L3 draws a single contour line in a single 3 node element.
-
CONTOUR_LINE_L4 draws a contour line in a 4 node rectangular element.
-
CONTOUR_LINE_Q6 draws a contour line in a 6 node quadratic triangular element.
-
CROSS finds the two places where the value S = SCON occurs on a triangle.
-
CROSS_L2 seeks contour crossings along a line.
-
CROSS_L3 seeks contour crossings in a 3 node linear element.
-
CROSS_Q4 seeks contour crossings in a 4 node linear element.
-
DEGREES_TO_RADIANS converts an angle from degrees to radians.
-
DIGTEN returns the integer value of a base 10 digit.
-
DOAXES places the title, the axes, and the axis labels.
-
DASH_LINE draws a dashed line connecting a series of points.
-
ELEMENT_CHECK checks elements for correct orientation.
-
EXAMPLE sets up the data that defines a simple example problem.
-
FE_GRADIENT approximates dUdX and dUdY at mesh nodes.
-
FILE_COLUMN_COUNT counts the number of columns in the first line of a file.
-
FILE_LINE_COUNT counts the number of lines in a file.
-
FILLIN sets array entries to rise linearly from X1 to X2.
-
FILLIN2 "expands" a vector of data by linear interpolation.
-
FLUSHL flushes a string left.
-
FSIZE computes the maximum and minimum entries of a node array.
-
GET_UNIT returns a free FORTRAN unit number.
-
GETWIN reports the current window and gets new values from the user.
-
GQUAD returns the weights and abscissas for a 3 point Gauss rule.
-
GRAPH draws the graph.
-
HELLO prints out the program name, date, and purpose.
-
HELP prints out a list of commands.
-
I_RANDOM returns a random integer in a given range.
-
I_SWAP swaps two integer values.
-
INIT initializes the values of data.
-
INTNEXRD finds and reads the next integer in a string.
-
ISO_POLY_Q6 draws a filled contour polygon in a quadratic triangle.
-
ISO_LINE_L3 draws a line between two points in a linear isoparametric element.
-
ISO_LINE_Q6 draws a line between two points in a quadratic isoparametric element.
-
LINE_SEG_CONTAINS_POINT_1D reports if a line segment contains a point in 1D.
-
LIST prints out the values of the variables of interest to the user.
-
NODET3 returns the basis nodes for the 3 node triangle.
-
NODET6 returns the basis nodes for a 6 node triangle.
-
NODET10 returns the basis nodes for a 10 node triangle.
-
NODEQ4 returns the basis nodes for a 4 node quadrilateral.
-
NODEQ8 returns the basis nodes for an 8 node quadrilateral.
-
NODEQ9 returns the basis nodes for a 9 node quadrilateral.
-
NODEQ16 returns the basis nodes for a 16 node quadrilateral.
-
PI returns the value of pi.
-
PLTBOX computes a square box containing the data.
-
PREPLT should be called before doing each plot.
-
READ_ELEMENT reads an element file.
-
READ_NODE reads a file containing information about data at nodes.
-
READ_TECPLOT reads a TECPLOT data file.
-
REFBF_L3 evaluates a reference element linear basis function.
-
REFBF_L4 evaluates a linear basis function in the reference quadrilateral.
-
REFBF_Q6 evaluates shape functions for a 6 node triangle.
-
REFMAP_L3 sets reference-to-physical map for a linear triangle.
-
REFMAP_L4 sets the reference-to-physical map for a linear quadrilateral.
-
REFMAP_Q6 returns the interpolation map for data on a 6 node triangle.
-
REFNODE returns the basis nodes for any available element.
-
RSIZE computes the size of the region.
-
S_BLANK_DELETE removes blanks from a string, left justifying the remainder.
-
S_EQI is a case insensitive comparison of two strings for equality.
-
S_PLOT plots a character string onto a graphics image.
-
SETVIZ determines what nodes and elements should be visible.
-
SHOELC colors in the elements.
-
SHOELM draws the elements of the grid.
-
STREAM assigns the value of the stream function to each node.
-
STREAM_INC computes SINC, the stream function increment.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
TIMESTRING writes the current YMDHMS date into a string.
-
TRANSFORM maps reference elements to image elements.
-
TRIC_L3 colors contour regions in a linear triangle.
-
TRIC_Q6 colors contour regions in an isoparametric quadratic triangle.
-
UEVAL evaluates velocity and density in any element.
-
VEC_PLOT draws a vector field.
-
VIZELM allows the user to specify which elements are visible.
-
VIZND sets the visibility of nodes by minimum distance.
-
VIZNOD sets the visibility of nodes by index.
-
VELOCITY_MAX computes the maximum magnitude of visible velocities.
-
WRITE_ELEMENT writes an element file.
-
WRITE_NODE writes a file containing information about data at nodes.
-
WRITE_TECPLOT writes solution data out to a TECPLOT data file.
-
WORD_COUNT counts the number of "words" in a string.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 16 January 2007.