|
[Sponsors] |
December 14, 2017, 08:53 |
Field Data Structure (Grid Index)
|
#1 |
New Member
javad haqqani
Join Date: Dec 2017
Posts: 16
Rep Power: 9 |
Hi. How is the data, for example velocity, stored in OpenFOAM? I mean in what manner of indexing? If a 3D model is run.
|
|
December 14, 2017, 15:44 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
The OpenFOAM forum can help you with the specifics, but it (along with all unstructured CFD codes) store velocity (and other field variables) in 1D arrays. For OpenFOAM (FVM), these represent the cell and/or face values. The cells (say) are not in any particular order. In fact, unless you explicitly reorder them, they will be in the same order that your meshing software stored them. Parallel partition and Reverse Cuthill-McKee can reorder/subdivide them for parallel computation and performance improvements.
But the key notion with unstructured CFD is that the index on your array *MEANS NOTHING* relative to cell's position. This is a hard concept for people used to 2D and 3D structured codes where (i+1,j) is the neighbor (i,j). You have to find your neighbors by a neighbor list. The high-level differential operators in OpenFOAM hide all of those neighbor access details from you. Note too that you will need to look up, say, cell centroid location using the same indexing scheme if you need that in your calculations. |
|
Tags |
indexing, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] dynamicTopoFVMesh and pointDisplacement | RandomUser | OpenFOAM Meshing & Mesh Conversion | 6 | April 26, 2018 08:30 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 15:06 |
Obtain Geometry Data from a Grid File in CFX 10.0 | ARJUN | CFX | 2 | August 17, 2006 08:20 |
Standard data structure for AMR | Takuya Tsuji | Main CFD Forum | 1 | January 8, 2002 03:14 |
Grid Independent Solution | Chuck Leakeas | Main CFD Forum | 2 | May 26, 2000 12:18 |