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

maximum number of faces?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2017, 07:49
Default maximum number of faces?
  #1
New Member
 
Moritz
Join Date: Aug 2016
Posts: 14
Rep Power: 10
Mojo is on a distinguished road
Hi there,

I already asked this questions in a different thread (https://www.cfd-online.com/Forums/op...faces-shm.html), but I think it's not limited to snappyHexMesh so I post my question here as well.

What is the maximum number of faces in openfoam?

During meshing I get a negative number of faces:
Code:
After refinement gap refinement iteration 1 : cells: 888 490 165  faces: -1 563 835 164  points:952606417
shortly afterwards snappyHexMesh crashes.
My idea is, that the number of faces is stored as a 32 Bit Integer. So the negative face number has something to do with the 32 Bit Integer Limit, because die number of faces of would be higher in this example.

I tried to find something in the source code, but I'm not familiar with it yet, so it's hard for me to find anything. In the snappyHexMesh.C Source code I found where faces are gatherd (line 462)
Code:
 
// Gather all faces
List<faceList> gatheredFaces(Pstream::nProcs()); 

gatheredFaces[Pstream::myProcNo()] = allBoundary.localFaces();         

forAll(gatheredFaces[Pstream::myProcNo()], i)
{
inplaceRenumber(pointToGlobal, gatheredFaces[Pstream::myProcNo()][i]);                                    
} 
Pstream::gatherList(gatheredFaces);
But I didn't find the "number of faces" for the output or a maximum number of faces.

Maybe someone who's more familiar with the source code could give me a hint?

Thanks for your help!

Regards
Moritz
Mojo is offline   Reply With Quote

Old   January 5, 2017, 09:53
Default
  #2
New Member
 
Moritz
Join Date: Aug 2016
Posts: 14
Rep Power: 10
Mojo is on a distinguished road
okay, I figured it out myself. Just in case anybody is interested:

Starting from line 2692 in the meshRefinement.C Source Code (http://cpp.openfoam.org/v4/a07399_source.html) the output for the number of faces is defined. The number of faces is stored in the label "nMasterFaces".

With echo $WM_LABEL_SIZE (http://cpp.openfoam.org/v4/a09200_source.html) you can check the size of your labels, 32 or 64 Bit.
In my case its 32 Bit, so I assume this is the reason why I get a negative face number and sHM crashed.

Depending on your system (if 64Bit is possible or not) you can change the LABEL_SIZE in your bashrc file.

Just for completness, the link to my other post where I asked this question: https://www.cfd-online.com/Forums/op...faces-shm.html
Mojo 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 15:49
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 02:47
[blockMesh] --> foam fatal error: lillo763 OpenFOAM Meshing & Mesh Conversion 0 March 5, 2014 11:27
decomposePar pointfield flying OpenFOAM Running, Solving & CFD 28 December 30, 2013 16:05


All times are GMT -4. The time now is 14:05.