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

How can I read the results?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2011, 05:57
Default How can I read the results?
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Dear All,

I did the simulation of a certain area.

Once I got the result, I got some files with a huge list of numbers. How can I link this numbers to the position?

I mean: I would like to know velocity in the x, y, z point of my domain. Which is the right line in the U file that I have as output?

Could you help?

Thanks,

Samuele
samiam1000 is offline   Reply With Quote

Old   October 26, 2011, 06:22
Default
  #2
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
open it with paraview use:
filter > intergateVariable
nimasam is offline   Reply With Quote

Old   October 26, 2011, 06:24
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
I will try.
Also, if I wanna view the results on a PC where OpenFOAM is not installed (but Paraview is), what should I do?
When I try to open the output text files (let's say U), I can see anything!
samiam1000 is offline   Reply With Quote

Old   October 26, 2011, 06:37
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
you have several choices for example
1) copy all result data on the second PC
2) use foamToVTK then only transfer vtk files
nimasam is offline   Reply With Quote

Old   October 26, 2011, 06:39
Default
  #5
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
I give the command foamToVTK in the case folder, right?

Thanks a lot,

Samuele
samiam1000 is offline   Reply With Quote

Old   November 7, 2011, 14:19
Default
  #6
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Actually,

I am trying to find the value of U in each point of my grid. If I am not wrong there is a relationship between the file with the points and the file with the results.
The question is: which is this relationship? I would like to write a short script which:
- read a certain point (i.e. x0, y0, z0) in the points file
- link this point with the closest cell
- enter in the U file with the label of the cell and read the velocity in that point

Do you think it's a reasonable idea?

Thanks a lot,

Samuele
samiam1000 is offline   Reply With Quote

Old   November 7, 2011, 15:32
Default
  #7
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25
nimasam is on a distinguished road
hi dear samual
i dont know you are looking for what?
if you want cell centroid position you can easily do
with mesh.C()
if you just want to see the value of u i suggest easier above!

whats ur means by "link this point with the closest cell"?
your post is totally vague for me
nimasam is offline   Reply With Quote

Old   November 14, 2011, 05:09
Default
  #8
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Dear Nimasam,

let me write a more detailed post: I have a domain with 5 flat faces and the bottom face is the terrain-profile of a certain region. Let's say that the boundaries of my domain are: x = 0, 100; y = 0, 100; z = 0, 30.

I perform my simulation. And I have a file U with the results.

Now I want to know the vector U in the point P (20, 20, 5).

What should I do? Which is the link between the file U and the file containing the points?

I hope this explains better my goals.

Thanks a lot,
Samuele
samiam1000 is offline   Reply With Quote

Old   November 14, 2011, 07:53
Default
  #9
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
This information is interwoven with the files in the constant/polyMesh directory. If you're interested in this specific point, I advise you to use the sample utility.
Bernhard is offline   Reply With Quote

Old   November 14, 2011, 07:56
Default
  #10
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Actually,

I need all the points.. That's why I am interested in the `link' between the U file and the points file.

Could you explicit it?

Thanks! Samuele
samiam1000 is offline   Reply With Quote

Old   November 14, 2011, 08:03
Default
  #11
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Normally you don't want that info. You can read the files with the openfoam-reader for Paraview, or you can use any of the convertors to other post-processing tools. What is it exactly what you want?

More about the polyMesh can be found here: http://www.openfoam.com/docs/user/mesh-description.php
However, I am quite sure this is not what you want to dig in to, since all the utilities are already available.
Bernhard is offline   Reply With Quote

Old   November 15, 2011, 07:07
Default
  #12
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Dear Bernhard,

thanks to you, too, for answering.

Let me try to explain what I wanna do: I wanna have a matrix which correlates the results that I get from my simulation with their x, y, z coordinates. Thus, I can insert this results in a software for a simulator which allows me to recreate the ``real'' conditions depending on the velocity of the asymptotic wind.

Do you think there is a smarter way to do that?
samiam1000 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 18:51
Reading CFX-CFD results without Ansys CFX JAY ANSYS 2 July 7, 2009 17:48
LES of highly heated pipe flow - incorrect results MichalH FLUENT 3 June 3, 2009 06:00
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
Airfoil y+ Results Query asd Main CFD Forum 1 June 22, 2007 09:02


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