CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Field Data Structure (Grid Index)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mprinkey

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2017, 08:53
Default Field Data Structure (Grid Index)
  #1
New Member
 
javad haqqani
Join Date: Dec 2017
Posts: 16
Rep Power: 9
maksjood is on a distinguished road
Hi. How is the data, for example velocity, stored in OpenFOAM? I mean in what manner of indexing? If a 3D model is run.
maksjood is offline   Reply With Quote

Old   December 14, 2017, 15:44
Default
  #2
Senior Member
 
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25
mprinkey will become famous soon enough
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.
maksjood likes this.
mprinkey is offline   Reply With Quote

Reply

Tags
indexing, openfoam


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:26.