CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ParaView (http://www.cfd-online.com/Forums/paraview/)
-   -   Paraview Plot Temperature 3D (http://www.cfd-online.com/Forums/paraview/102242-paraview-plot-temperature-3d.html)

boristheblade May 25, 2012 20:37

Paraview Plot Temperature 3D
 
I have a bunch of points made up of x, y, z values and a corresponding temperature value for each of these points. I need to use paraview to plot this 3D temperature map which should look like a cube that gets hotter towards the center. I tried using vtk format, but I can't seem to fit the data properly. Any ideas?

I tried something like this (very small and random sample of actual data):

# vtk DataFile Version 2.0
hotCube.vtk
ASCII

DATASET POLYDATA
POINTS 1030301 float
1 1 1
2 1 1
3 1 1
4 1 1
5 1 1
6 1 1
7 1 1
8 1 1
9 1 1
POINT_DATA 1030301
SCALARS temperature float 1
LOOKUP_TABLE lut
- 0 . 1 2 2 1 4 1 7
0 . 0 6 4 5 1 6 2
0 . 0 5 0 8 0 6 1
- 0 . 0 5 1 9 7 1 9
0 . 0 3 0 9 6 7 9
- 0 . 1 0 2 6 5 2 4
0 . 0 0 7 2 9 0 6
- 0 . 0 6 6 7 4 9 4
0 . 1 8 5 0 4 8 9

*Edit*
So actually it seems the reason I was having an issue was because I accidentally parsed the temperature values incorrectly. As you can see those temp values have spaces in between each number and were being read in as zeros.

This current format for my cube looks like it's working for now:

# vtk DataFile Version 3.0
data.vtk
ASCII
DATASET STRUCTURED_GRID
DIMENSIONS 101 101 101
POINTS 1030301 float
1 1 1
2 1 1
3 1 1
4 1 1
5 1 1
6 1 1
7 1 1
8 1 1
9 1 1
POINT_DATA 1030301
SCALARS temperature float
LOOKUP_TABLE lut
0.0021902
0.1908302
0.2089508
0.1713711
0.0869687
0.2050714
0.3093452
0.3725040
0.2907574

Solved


All times are GMT -4. The time now is 03:39.