How to get the coordinates of velocity data at all cells and at all times
Hello,
I have done a simulation, from its output, I have velocity (U.gz) at different times. If I open the U.gz file at a certain time, it contains velocity data of all cells (nCells:5515515) in my domain. I would like to know the coordinates of these velocity data at these cells. In constant/polyMesh, I have points.gz which are the coordinates of points (nPoints:5673136) of my domain. The number of points are greater than the no. of cells according to owner.gz ( "nPoints:5673136 nCells:5515515 nFaces:16702984 nInternalFaces:16390106"; ) I dont know how paraview reads the data. Can anyone let me know how to get the coordinates of the velocity data at each cell as contained in U.gz and for each time. Thanks in advance!!! vidyadhar |
How to get coordinates of cell data
Quote:
Hello Bruno, I need your help in getting the following: I have a simulation data of various times. In each time, I have the velocity data as a file U.gz. If I open this U.gz file in any saved time, I can see the velocity values (x y z components) for all the cells of my domain. (I hope this data corresponds to cell data only) In my constant/polyMesh directory, I have points.gz containing the coordinates of all the points of my domain. But, I would like to know the coordinates of the cell data (velocity data) as mentioned in the U.gz file, if possible. (I have saved the data from paraview: File>saveData: it gave me .csv files for all times. This data contains both velocity values and points. Does it represent cell data or point data?) Else, I request you to let me know how to find the velocity data at all points of my domain for all times. Thanks & Regards, vidyadhar |
Quick answer:
|
Quote:
Hello Bruno, have you found out how to export all velocity field and its point coordinates without a need of using paraview? I searched the forum but I also couldn't find the thread you mentioned in step four. Thank you. Regards |
Hi Turin,
OpenFOAM has a function object to write the cell Centers. Just execute Code:
simpleFoam -postProcess -func writeCellCentres Best, Mikko |
Quote:
Thank you very much Mikko. I am using the old version (2.4.0), so here for anyone wants to know how to invoke this command in that case. Just simply type: Code:
Thank you again Best regards Turin |
Quote:
Thanks in advance. |
Hi,
I was using caelus (caelus-cml.com) which was similar to openFoam. The velocities are saved automatically in each time step. |
Thanks for the reply, if anyone of you know about OpenFoam then I was keen to ask one more thing that is as following:-
I want to create a plane in my OpenFoam simulation where I would like to get the velocities of each cell at each time interval. I used the cutting plane tool and made some addition to the control dict file and it gave me the values of velocity at each time interval but when I used the probe option over a line in ParaView it gave me value of 1000 cells along a horizontal line but when I checked the vtk file of cutting plane it only showed 24 results along a horizontal. How is that possible? |
Quote:
|
All times are GMT -4. The time now is 16:40. |