
Flux Graphing with DX
Overview:
This program was designed to replace a program that was being used in
the
Chemical Engineering Department to graph fluxes. The previous program was
relatively slow and ran in an interpreted language.
DX allows the data and views to be manipulated much more easily,
and does not have the overhead that the previous program had.
Program:

Control Panels:
These control panels allow the user to control all aspects of the network,
from
the labels on the axes, the isosurface parameters, and the glyph
parameters.
Algorithm:
There are two main parts to the program, one which constructs the isosurface and one which constructs the
glyphs from two input files.
- Isosurface Construction:
The isosurface is relatively simple to construct and is the top left hand
portion of the data explorer network. The data file which consists of two
dimensional surface values is read in using the
import module. the output from the import module is then fed into the
isosurface module where a contour is
created because of the 2D data. The correct number of lines is defined by
the
integer input. The output of the isosurface is then placed through the
color module
to give it the desired color and then outputted to the collect which
combines the
outputs together into one picture for output.
- Glyphs:
The glyph section is the majority of the upper left hand section. Some
data
manipulation must be done first to combine both data files into
two dimensional vectors, this is done using the compute module to convert the two files
into one set of vectors. After this is done, the data is transposed to
allow for the format of the data file. It is then filtered, and reduced
to remove some data points to reduce cluttering. The min and max values
are then set as the cut off points using the include. Next the colors are
added to each point based on a logarithmic colormap, and finally the data
is used in the glyph module to construct
the glyphs that represent the fluxes. This is combined with the contour
to create the main output.
- Axes:
The axes are added in the lower left hand side of the network just before
the image is
displayed. The output of the collect is passed into the AutoCamera module
which
creates a good viewport of our object. At the same time the output is
being put into
the AutoAxes module with the output from the AutoCamera, and a list of the
axes labels.
This constructs the final visualization which is then outputted to using
image.
Source Code:
Sample Output:
[UP]