|
[Sponsors] |
[blockMesh] About owner and neighbour files created from blockMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 29, 2016, 22:55 |
About owner and neighbour files created from blockMesh
|
#1 | ||
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 11 |
Hi there
Just for my own study purpose I created a simple mesh with 2 cell in the x direction and 3 layers in y direction. (shown in the scratch). The numbers written in the scratch show the face number in the face file, however when i checked the owner and neighbour file,I dont understand whats the number in the main body stayed for, anyone have some suggestion? The owner file shows Quote:
Quote:
|
|||
May 31, 2016, 21:50 |
|
#2 |
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 11 |
For those who still interested in the answer.
I kind figured it out myself. So basically, the owner file, it's the cell ID file for those faces belongs to which cell. For example the first face (face 0) in the face file (first value) belongs to cell 0 (first value in the owner file), the second face (face 1) belongs to cell 2 and so on. Similarly for the neighbours are for these cells with a shared faced. |
|
July 23, 2016, 16:14 |
How are does openfoam decide which cell is owner and which one is neighbor
|
#3 |
Member
Pavan
Join Date: Jan 2016
Posts: 53
Rep Power: 10 |
Hi
Do you know how OpenFOAM decides which cell is owner and which one is neighbor. Or the logic with which the indices are decided? |
|
July 24, 2016, 21:17 |
|
#4 | |
Member
Zhifang Hu
Join Date: Sep 2015
Location: Brisbane
Posts: 54
Rep Power: 11 |
Quote:
For example the case i have there, for face 0, is belong to cell 0 (top left cell)( negative x diretcion)and neighbour to cell 1 (top right cell) (positive x direction). You can build a simple 2X2X2 cube to check, which should be right |
||
August 5, 2022, 10:19 |
|
#5 | |
New Member
Join Date: Jun 2022
Posts: 1
Rep Power: 0 |
Hi,
OpenFOAM notation in polyMesh folder is obviously not meant to be human-readable I am dealing with the same subject. Although the thread is quite old, I add a few remarks: Thank you for the explanation in second post, @ce73stargazer! Quote:
This is probably a bit off-topic, but I was very glad to find the following utility which might also help to understanding polyMesh-information: https://www.openfoam.com/documentati...llCentres.html |
||
June 23, 2023, 17:23 |
|
#6 |
New Member
LyLy
Join Date: Jan 2019
Posts: 14
Rep Power: 7 |
Yes. You are right . A face is shared by two cells and if the face vector is pointing away from, let say Cell A, then Cell A is the owner and the other is neighbour.
In more technical words, the cell which gets positive flux is neighbour and the one giving is the owner. I found a great image depicting this: https://imgur.com/jb8sOs4 In few case, this might not hold true. Such as in boundary or "non-internal" faces, the owner cell is the cell which the face shares and the neighbour is just kept as "-1" (optional to include in the neighbour file). In boundary conditions such as periodic or symmetry, the neighbour cells are the appropriate ghosts cells. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Deleting files in /constant/polyMesh to reset and store OpenFOAM case | sdfij6354 | OpenFOAM Running, Solving & CFD | 0 | December 21, 2017 08:37 |
access the information of the neighbour cell across a processor boundary? | sophie_l | OpenFOAM Programming & Development | 4 | August 9, 2016 15:05 |
Access (parallel) face number, owner and neighbour of a face? | saloo | OpenFOAM Programming & Development | 0 | September 4, 2014 11:10 |
owner - neighbour relations for processor boundaries | RoE | OpenFOAM | 2 | October 4, 2011 09:49 |
Face orientation in blockMesh | WiWo | OpenFOAM | 0 | March 18, 2010 12:10 |