Off the top of my head, I'd say:
Construct a 2 point line in 'Construct' by feeding a list of 2 vectors (2-d or 3-d, but 3-d might be required for the next steps)
'Sample' the line to increase the number of points (this is an easy way to make 100 or 200 or whatever points along the line)
Map the volume of data onto the line ('Map' module)

That should give you 100 or 200 or whatever data values mapped onto the line. From there you should be able to use Plot or Rubbersheet or something to make the classic line graph. Plot may require some restructuring, I don't use it often. I think it needs X positions and Y data while you will have X,Y,Z positions and D data.

This is a sketchy solution so we may hear from you again. (:-)


On Tuesday, Dec 9, 2003, at 10:59 America/New_York, Chris Sideroff wrote:

I'm a new user to data explorer so bear with me.

I'm using dx to visualize my CFD data. The data comes from the program FLUENT
which has the ability to export the data files to native dx format. I know that
FLUENT uses a unstructured format (positions with connections) whether or not
the grid is rectangular (rectangles/hexahedrals) or triangular
(triangles/tetrahedrals).

What I want to do is to able to extract the data for a particular field (eg.
temperature) along a 1D line. Eventually what I'm trying to do is make 2D plot
of the variable along this 1D line vs it's position along this line.

When I use the slice it complains because the data is not regular (I already
know this). How would I accomplish this?

Thanks in advance for any replies, Chris


Ps - The following is my data file that FLUENT creates for dx. The ellipses
represent all the data in between.

# Title: "Fluent export"

# Positions
object 1 class array type float rank 1 shape 2 items 47965 data follows
0.00000e+00 1.04000e+00
0.00000e+00 1.03950e+00

...

1.03967e+00 -8.67361e-18
1.04000e+00 0.00000e+00

# Connectivity
object 2 class array type int rank 1 shape 4 items 47520 data follows
1 0 2 3
3 4 2 5

...

47963 47962 47782 47781
47783 47964 47782 47963
attribute "ref" string "positions"
attribute "element type" string "quads"

# Velocities
object 3 class array type float rank 1 shape 2 items 47965 data follows
2.72150e-01 0.00000e+00
5.44300e-01 0.00000e+00

...

0.00000e+00 0.00000e+00
8.57188e-02 2.48084e-03
attribute "dep" string "positions"

object "velocity-field" class field
component "positions" value 1
component "connections" value 2
component "data" value 3

# total-temperature
object 4 class array type float rank 0 items 47965 data follows

2.88000e+02 2.88000e+02 2.88000e+02 2.88000e+02 2.88000e+02
2.88000e+02 2.88000e+02 2.88000e+02 2.88000e+02 2.88000e+02

...

3.05805e+02 3.05795e+02 3.05788e+02 3.05784e+02 3.05784e+02
3.05788e+02 3.05799e+02 3.05817e+02 3.05848e+02 3.05867e+02
attribute "dep" string "positions"

object "total-temperature-field" class field
component "positions" value 1
component "connections" value 2
component "data" value 4

# Group of data arrays
object "fluidgroup" class group
member "velocity" value "velocity-field"
member "total-temperature" value "total-temperature-field"
end




_______________________________
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853

Reply via email to