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

temperature in paraView

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 17, 2011, 03:09
Default temperature in paraView
  #1
Senior Member
 
Join Date: Mar 2011
Posts: 155
Rep Power: 6
tH3f0rC3 is on a distinguished road
Hi,

it is possible to show the temperature field on a surface with paraFoam.
But is it possible to put out a value of the temperature on a selected point?

I want to know the temperature on several points. Up to now I can only compare the color with the color legend. But this is not that precise!

Best Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Old   May 17, 2011, 05:11
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
Hi,

you can select several points on the surface with the "Select points on" button, see red arrow in attached screenshot.

Use "Filters->Alphabetical->Extract Selection" to get an entry in the Pipeline Browser. Click "Apply" in the Object Inspector.

In the "Information" tab you have information about the selected point(s).

With a spread sheet view you can see detailed information about your selected points like position in space or field values.

To visualize the selected points mark the "ExtractSelection" entry in the Pipeline Browser and select "Filters->Alphabetical->Glyph" filter. Select type "Sphere" from the Glyph Type drop down menu, set an appropriate value for "Radius" and activate "Set Scale Factor" with value 1 (see second screenshot, red markers).

Be aware, that all values at points are interpolated. For exact evaluation you might need to use cell values instead of point values.

Martin
Attached Images
File Type: jpg pv_temp.jpg (67.0 KB, 55 views)
File Type: jpg pv_temp2.jpg (70.5 KB, 47 views)
MartinB is offline   Reply With Quote

Old   May 17, 2011, 05:20
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 12
Bernhard is on a distinguished road
Alternatively you can use the sample utility to probe at predefined locations. You can do that after the simulation or during runtime.
Bernhard is offline   Reply With Quote

Old   May 17, 2011, 06:21
Default
  #4
Senior Member
 
Join Date: Mar 2011
Posts: 155
Rep Power: 6
tH3f0rC3 is on a distinguished road
I'm afraid it doesn't work.
Can you guess what I'm doing wrong?

As soon as I have marked the points paraView crashes down and puts out an error message:
/OpenFoam/bin/paraFoam: line 119: 20766 Segmentation fault praview --data=$caseFile"

Best Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Old   May 17, 2011, 06:43
Default
  #5
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
Hmmmhhhh,

can you make a try via foamToVTK and paraview instead of paraFoam? Just import the wall surface from the VTK folder... is ParaView crashing again?

Or can you try to import only the patches, but not the internal mesh in paraFoam?

Martin
MartinB is offline   Reply With Quote

Old   May 17, 2011, 07:09
Default
  #6
Senior Member
 
Join Date: Mar 2011
Posts: 155
Rep Power: 6
tH3f0rC3 is on a distinguished road
Quote:
Originally Posted by MartinB View Post
Hmmmhhhh,

can you make a try via foamToVTK and paraview instead of paraFoam? Just import the wall surface from the VTK folder... is ParaView crashing again?

Or can you try to import only the patches, but not the internal mesh in paraFoam?

Martin
I have now tried by importing only the patch. This doesn't work.

What do you mean with foamToVTK instead of paraFoam?

Best Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Old   May 17, 2011, 07:16
Default
  #7
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
With the OpenFOAM utility foamToVTK you convert the results into native Paraview file format. Type in your shell:

foamToVTK

and you will get a new folder named "VTK", and there are all patches separated. Then you start paraview by typing:

paraview

in your shell. Not paraFoam, but paraview. Import one of the vtk files with "File->Open" and give this one a try.

If this fails, you might even want to try it with a windows version of ParaView, since you can easily handle the VTK files in a windows environment, sometimes with even better perfomance than in a Linux environment.

Good luck

Martin
MartinB is offline   Reply With Quote

Old   May 17, 2011, 07:25
Default
  #8
Senior Member
 
Join Date: Mar 2011
Posts: 155
Rep Power: 6
tH3f0rC3 is on a distinguished road
It is probably due to the chtMultiRegionSimpleFoam-solver I use, that the foamToVTK doesn't work.
chtMultiRegionSimpleFoam has an other file structure than for example simpleFoam.

error message:
Cannot find file "points" in directory "polyMesh" in times 0 down to constant

I even don't understand the error message. Why does foamToVTK search down to constant for a file 0? I think tThis doesn't make sence.

Best Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Old   May 17, 2011, 07:34
Default
  #9
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
In this thread you can find the usage of foamToVTK with chtMultiRegionFoam:
Conjugate heat transfer and multiregion

To check if the selection mode does work in other situations you can make a quick try this way:
- click "Sources->Cylinder", then click "Apply"
- click "Filters->Alphabetical->Tetrahedralize"
- test the "Select points on" function.
Does Paraview crash again?

Martin
MartinB is offline   Reply With Quote

Old   May 17, 2011, 07:47
Default
  #10
Senior Member
 
Join Date: Mar 2011
Posts: 155
Rep Power: 6
tH3f0rC3 is on a distinguished road
Code:
1.- For main mesh (region0)
~/.../caseDirectory $ foamToVTK -case caseName

2.- For other meshes
~/.../caseDirectory $ foamToVTK -case caseName -region otherMeshName

3.- Visualization with ParaView
Open: caseDirectory/CaseName/VTK/caseName*.vtk
Open: caseDirectory/CaseName/VTK/otherMeshName/caseName*.vtk
Use Paraview filter: GroupDataSet to join both meshes results.
This is what I've found.
But what is meant with caseDirectory? the file where 0 constant and system lies?
And what is meant with -case? I have three regions in my case.

Best Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Old   May 17, 2011, 07:56
Default
  #11
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 252
Rep Power: 11
MartinB is on a distinguished road
Quote:
But what is meant with caseDirectory? the file where 0 constant and system lies?
Yes. You don't type it, it's just the location in your file system. The command itself starts behind "$".

Quote:
And what is meant with -case? I have three regions in my case.
May be, it's an ancient parameter, don't know... try

foamToVTK -region Your_Region_Name

If it does not work, try

foamToVTK -case The_Folder_Name_in_Which_Your_Simulation_Is_Locate d -region Your_Region_Name

Does the other quick test run, i.e. can you select points in another Paraview dataset?

Martin
MartinB is offline   Reply With Quote

Old   May 19, 2011, 03:54
Default
  #12
Senior Member
 
Join Date: Mar 2011
Posts: 155
Rep Power: 6
tH3f0rC3 is on a distinguished road
Hi,

I'm afraid it hasn't worked up to now.

But I recieved a mail, where another idea was described. I tried this idea and succeded:

Use FILTER -> ProbeLocation
set point and rescale to data range

That's it.
Be careful to use the patch not the volume.

Best Regards,
tH3f0rC3
tH3f0rC3 is offline   Reply With Quote

Reply

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
Problem with zeroGradient wall BC for temperature - Total temperature loss cboss OpenFOAM 10 March 5, 2015 07:57
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
plot temperature vs time in paraview - chtMultiRegionFoam phsieh2005 OpenFOAM Paraview & paraFoam 2 March 16, 2014 07:50
Bulk temperature Tf is obtained from total or static temperature? NPU_conanxie FLUENT 0 March 30, 2011 05:56
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 00:24.