|
[Sponsors] |
[snappyHexMesh] SnappyHexMesh multioprocessor run causes segmentation fault |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 25, 2015, 14:59 |
SnappyHexMesh multioprocessor run causes segmentation fault
|
#1 |
New Member
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 11 |
Hello experts,
I am new to the subject and I am quite confident that i messed up a lot in the snappyhexmeshDict and preprocessing, however I fail to learn anything from the error message that the mesher throws. When I run mpirun -np 4 snappyHexMesh -overwrite -parallel it finally ends up here (snippet of output) Code:
Splitting mesh at surface intersections --------------------------------------- Introducing baffles for 0 faces that are intersected by the surface. Edge intersection testing: Number of edges : 4156674 Number of edges to retest : 0 Number of intersected edges : 0 Created baffles in = 1.02 s After introducing baffles : cells:1315931 faces:4156674 points:1544788 Cells per refinement level: 0 990057 1 60188 2 139014 3 126672 Introducing baffles to block off problem cells ---------------------------------------------- [0] #0 Foam::error::printStack(Foam::Ostream&)[1] #0 Foam::error::printStack(Foam::Ostream&)[3] #0 Foam::error::printStack(Foam::Ostream&)[2] #0 Foam::error::printStack(Foam::Ostream&) at ??:? [3] #1 Foam::sigSegv::sigHandler(int) at ??:? [1] #1 Foam::sigSegv::sigHandler(int) at ??:? I use OpenFoam 2.3.0 on Ubuntu Linux. All the best, Marcus |
|
March 25, 2015, 15:33 |
|
#2 |
Member
DanielP
Join Date: Jan 2015
Posts: 33
Rep Power: 11 |
Hello Marcus,
It appears that no faces from the initial mesh intersect the STL surface according to your log file.It may appear that your surface is outside your initial mesh. It's may be dividing by 0, thus the segmentation error. On line 309 in your log file: " Introducing baffles for 0 faces that are intersected by the surface." Try doing an inspection on Paraview of your STL surface and initial mesh. Thanks, Daniel |
|
March 26, 2015, 03:47 |
|
#3 |
Senior Member
|
And try to run in serial, before you switch to parallel.
__________________
Blog: sourceflux.de/blog "The OpenFOAM Technology Primer": sourceflux.de/book Twitter: @sourceflux_de Interested in courses on OpenFOAM? |
|
March 27, 2015, 02:55 |
|
#4 |
New Member
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 11 |
Thank you very much for your answers.
The volume I have to create the mesh for is all inside my basic block mesh, but it has some common surface with it which may cause a problem and is easily changed. I will also skip the parallel option for my first try, so I have something to fiddle with for the weekend. Thank you! Marcus |
|
March 29, 2015, 14:55 |
|
#5 |
New Member
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 11 |
Changed settings to have the geometry well embedded in the background mesh, also changed to serial processing, but had the same error again.
However I reorganised the case and changed things in the snappyHexMeshDict and now it happily meshes to the end. The annoying thing is that I cannot change it back to reproduce the error now, what surprises me a bit. So it I don't know what is exactly happening. Someone here raised the same error, but it had not been sorted out then as well http://www.cfd-online.com/Forums/ope...erminal-2.html So next time I will take more care for more traceability, sorry. Again, thanks very much for your help. |
|
June 11, 2015, 09:06 |
|
#6 |
New Member
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 11 |
Just giving this a bump as I can reproduce the issue now.
It has nothing to do with multiprocessor mode. I can raise it when I refer to a non existing geometry in the refinementSurfaces section of the snappy hex mesh dict file, by a spelling error or typo for instance. SHM will raise a warning very early but continue with the work, then it will mention the 0 faces that are intersected by the surface, shortly afterwards it will run into the segmentation fault. Simply correcting names fixes this for me. Regards, Marcus |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
snappyHexMesh in parallel leads to segmentation fault | ChrisHa | OpenFOAM Pre-Processing | 1 | January 14, 2019 11:04 |
[snappyHexMesh] snappyHexMesh Segmentation Fault | avd28 | OpenFOAM Meshing & Mesh Conversion | 11 | May 11, 2015 21:32 |
Segmentation fault when running in parallel | Pj. | OpenFOAM Running, Solving & CFD | 3 | April 8, 2015 09:12 |
[snappyHexMesh] SnappyHexMesh segmentation Fault | nithishgupta | OpenFOAM Meshing & Mesh Conversion | 1 | December 18, 2014 05:03 |
segmentation fault when installing OF-2.1.1 on a cluster | Rebecca513 | OpenFOAM Installation | 9 | July 31, 2012 16:06 |