CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Paraview Plot Temperature 3D

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 25, 2012, 20:37
Default Paraview Plot Temperature 3D
  #1
New Member
 
Boris
Join Date: May 2012
Posts: 1
Rep Power: 0
boristheblade is on a distinguished road
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

Last edited by boristheblade; May 26, 2012 at 08:32.
boristheblade is offline   Reply With Quote

Reply

Tags
paraview promblem, plot, temperature

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to plot flow rate over time with Paraview sekunda OpenFOAM Paraview & paraFoam 12 July 20, 2014 15:24
bug in contour plot in paraview 3.12 nimasam OpenFOAM Bugs 0 March 3, 2012 13:47
plot temperature gradient isabel CFX 1 October 6, 2008 22:51
Plot temperature profile David FLUENT 3 October 31, 2003 07:30
Temperature plot Clueless Main CFD Forum 3 March 8, 2001 09:17


All times are GMT -4. The time now is 12:05.