How can I read the results?
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 |
open it with paraview use:
filter > intergateVariable |
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! |
you have several choices for example
1) copy all result data on the second PC 2) use foamToVTK then only transfer vtk files |
I give the command foamToVTK in the case folder, right?
Thanks a lot, Samuele |
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 |
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 |
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 |
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.
|
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 |
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. |
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? |
All times are GMT -4. The time now is 04:25. |