HCELL_FLOW_DISPLAY
Plots of HCELL Flow Data
HCELL_FLOW_DISPLAY
is a MATLAB library which
reads and plots datafiles created by the HCELL fluid flow program.
Usage:
-
hcell_boundary_display
-
plots the outline of the region.
-
hcell_contour_display ( 'node_xy_file_name',
'p_file_name' )
-
displays a contour plot of the pressure, or other scalars.
-
hcell_element_display ( 'node_xy_file_name',
'node_element_file_name' )
-
plots the elements.
-
hcell_node_display ( 'node_xy_file_name' )
-
plots the region, and nodes, for either the
nodes3.txt or nodes6.txt files created by HCELL.
-
hcell_vector_display ( 'node_xy_file_name',
'uv_file_name' )
-
vector plot of the velocity or velocity direction field.
-
hcell_stream_display ( 'node_xy_file_name',
'uv_file_name' )
-
streamline plot of the velocity field.
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:
CAVITY_FLOW_DISPLAY,
a MATLAB program which
can plot the data
produced by the CAVITY fluid flow program.
DIRECTION_ARROWS,
a MATLAB program which
plots the velocity direction field.
DIRECTION_ARROWS_SEQUENCE,
a MATLAB program which
plots the velocity direction fields of many data files
with names that are numbered in sequence.
HCELL,
a FORTRAN77 program which
computes solutions
(velocity and pressure) of the time-dependent Navier Stokes
equations in a 2D region shaped like an H.
HCELL_STEADY,
a FORTRAN77 program which
solves the time-independent
or "steady" Navier Stokes equations in an H-cell region.
INOUT_FLOW_DISPLAY,
a MATLAB program which
can plot the data
produced by the INOUT fluid flow program.
TCELL_FLOW_DISPLAY,
a MATLAB program which
can plot the data
produced by the TCELL fluid flow program.
VELOCITY_ARROWS,
a MATLAB program which
plots a velocity vector 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:
-
file_column_count.m,
counts the number of columns in the first line of a file;
-
file_row_count.m,
counts the number of row records in a file;
-
hcell_boundary_add.m,
adds the boundary of the region to an existing plot;
-
hcell_boundary_display.m,
displays the boundary of the region;
-
hcell_box_add.m,
adds to the current plot a (usually invisible) box that reserves
space for titles;
-
hcell_contour_display.m,
displays a contour plot of a scalar quantity such as pressure;
-
hcell_element_display.m,
creates a plot of the region and elements;
-
hcell_node_display.m,
creates a plot of the region and nodes;
-
hcell_stream_display.m,
creates a streamline plot of a vector quantity such as
velocity;
-
hcell_vector_display.m,
creates a plot of a vector quantity such as velocity or
normalized velocity;
-
48mat_data_read.m,
reads the data from an R8MAT file;
-
r8mat_header_read.m,
reads the header from an R8MAT file;
-
r8vec_sorted_nearest.m,
returns the nearest element in asorted R8VEC;
-
r8vec_sorted_unique.m,
finds the unique elements in a sorted R8VEC;
-
r8vec_sorted_unique_count.m,
counts the unique elements in a sorted R8VEC;
-
s_len_trim.m,
returns the length of a character string to the last nonblank;
-
s_word_count.m,
counts the number of words in a string;
-
timestamp.m,
prints the YMDHMS date as a timestamp.
Examples and Tests:
-
triangles6.txt,
the six nodes that define each (quadratic) element.
-
pressure3.txt,
the value of the pressure at the linear triangle nodes
(this is dummy data right now).
-
velocity6.txt,
the value of the horizontal and vertical velocity at the quadratic
triangle nodes (this is dummy data right now).
-
nodes3.txt,
the coordinates of the 3 nodes that define the linear triangular
elements associated with pressure;
-
nodes6.txt,
the coordinates of the 6 nodes that define the quadratic triangular
elements associated with velocity;
-
hcell_boundary_display.png,
a PNG image of
the boundary of the region.
-
hcell_contour_display.png,
a PNG image of
the pressure contour region.
(This plot uses DUMMY data.)
You can go up one level to
the MATLAB source codes.
Last revised on 18 September 2005.