CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Owner list and its relation with the total number of cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2018, 14:23
Default Owner list and its relation with the total number of cells
  #1
Senior Member
 
Join Date: Dec 2017
Posts: 153
Rep Power: 8
AliE is on a distinguished road
Hello Foamers,

I am actually stack on a wired problem and I appreciate your help . I have generated a tetra mesh inside a cube in the classical openFOAM format. I was looking into the file "owner" and surprising I have noted this: the maximum owner index is not equal to the total number of cells... For example the number of cells is 2750 while the maximum value in the owner list is 2746.

How can this be possible? Am I missing something?

Thank you very much!
AliE is offline   Reply With Quote

Old   September 27, 2018, 02:21
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,
interesting point. I never checked it out. Can you provide your case? I would like to know what is going on there. For that purpose, I need the OpenFOAM case.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 27, 2018, 03:55
Default
  #3
Senior Member
 
Join Date: Dec 2017
Posts: 153
Rep Power: 8
AliE is on a distinguished road
Hi Tobi, thank you very much for your interest!

Working a bit on this I have find out that "usually" for hexa meshes the maxium index in owner list is also the total number of cells. However, in general, this might be not the case (e.g. doing a mesh in a cube using only tetra)! Why? Well, because if you think a bit about this, you can build one element using faces belonging only to neighbour cells and this depends on how your mesher export the mesh in OF format.

Thus the answer is (and I am 99% sure) that the total number of cells is: max(a,b), where a=max(owner) and b=max(neighbour).
AliE is offline   Reply With Quote

Old   September 27, 2018, 05:36
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
I already made a sketch too, and it should be clear that
  • for pure hex meshes, the owner size should be similar to the number of cells
  • for other meshes, the owner size should be identical to the number of cells too
However, I might be wrong, but it is a conclusion of my drawings. Thus, I was thinking of free-standing cells. Therefore, I would like to get your mesh, to analyze the mesh and the corresponding files, to visualize the cells that do not have a neighbor; it is wired because each cell should have a neighbor.

Because, based on fundamental analysis, each numerical cell should have a neighbor, either way, it is hex, tet, poly, or any other volume type. Therefore, - for me - the only possibility is to have separated cells or a configuration I am not aware right now. In your example, there are two cells which do not have any neighbor (or maybe I am misinterpreting the files), and I would like to visualize and analyze the mesh in order to know what is going on and why there are two entries missing. Moreover, I know that, e.g., snappy makes some crazy cells sometimes.

Even though you have your analysis and statement, there is 1 % of uncertainty
Maybe the mismatch is related to the declaration of owner/neighbor (should be related to the normal surface vector)
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 17:41.