|
[Sponsors] |
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 19, 2017, 10:33 |
How to get the coordinates of velocity data at all cells and at all times
|
#1 |
Senior Member
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 10 |
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 Last edited by vidyadhar; June 19, 2017 at 10:37. Reason: need to edit the title |
|
June 20, 2017, 06:40 |
How to get coordinates of cell data
|
#2 | |
Senior Member
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 10 |
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 |
||
June 25, 2017, 12:03 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer:
__________________
|
|
April 27, 2020, 08:41 |
|
#4 | |
New Member
Emre
Join Date: Oct 2016
Posts: 5
Rep Power: 10 |
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 |
||
April 28, 2020, 17:05 |
|
#5 |
Senior Member
Mikko
Join Date: Jul 2014
Location: The Hague, The Netherlands
Posts: 243
Rep Power: 13 |
Hi Turin,
OpenFOAM has a function object to write the cell Centers. Just execute Code:
simpleFoam -postProcess -func writeCellCentres Best, Mikko |
|
April 29, 2020, 08:17 |
|
#6 | |
New Member
Emre
Join Date: Oct 2016
Posts: 5
Rep Power: 10 |
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:
writeCellCentres Thank you again Best regards Turin |
||
May 10, 2020, 09:19 |
|
#7 | |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Quote:
Thanks in advance. |
||
May 10, 2020, 22:45 |
|
#8 |
Senior Member
vidyadhar
Join Date: Jul 2016
Posts: 138
Rep Power: 10 |
Hi,
I was using caelus (caelus-cml.com) which was similar to openFoam. The velocities are saved automatically in each time step. |
|
May 11, 2020, 09:35 |
|
#9 |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
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? Last edited by ari003; May 22, 2020 at 10:53. |
|
May 20, 2020, 21:06 |
|
#10 | |
Senior Member
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7 |
Quote:
|
||
|
|