|
[Sponsors] |
October 26, 2011, 05:57 |
How can I read the results?
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
October 26, 2011, 06:24 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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! |
|
October 26, 2011, 06:39 |
|
#5 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
I give the command foamToVTK in the case folder, right?
Thanks a lot, Samuele |
|
November 7, 2011, 14:19 |
|
#6 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
November 7, 2011, 15:32 |
|
#7 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
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 |
|
November 14, 2011, 05:09 |
|
#8 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
November 14, 2011, 07:53 |
|
#9 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
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.
|
|
November 14, 2011, 07:56 |
|
#10 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
November 14, 2011, 08:03 |
|
#11 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
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. |
|
November 15, 2011, 07:07 |
|
#12 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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? |
|
|
|
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 |