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

[snappyHexMesh] SnappyHexMesh multioprocessor run causes segmentation fault

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2015, 13:59
Default 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
MarcusNHofer is on a distinguished road
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 ??:?
the complete log is attached. Can anyone point me to the source of the problem?
I use OpenFoam 2.3.0 on Ubuntu Linux.

All the best,
Marcus
Attached Files
File Type: txt snappy.log.txt (24.6 KB, 6 views)
MarcusNHofer is offline   Reply With Quote

Old   March 25, 2015, 14:33
Default
  #2
Member
 
DanielP
Join Date: Jan 2015
Posts: 33
Rep Power: 11
danielpiaget is on a distinguished road
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
danielpiaget is offline   Reply With Quote

Old   March 26, 2015, 02:47
Default
  #3
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
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?
jhoepken is offline   Reply With Quote

Old   March 27, 2015, 01:55
Default
  #4
New Member
 
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 11
MarcusNHofer is on a distinguished road
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
MarcusNHofer is offline   Reply With Quote

Old   March 29, 2015, 13:55
Default
  #5
New Member
 
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 11
MarcusNHofer is on a distinguished road
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.
MarcusNHofer is offline   Reply With Quote

Old   June 11, 2015, 08:06
Default
  #6
New Member
 
Marcus N Hofer
Join Date: Jan 2015
Location: Austria, close to Vienna
Posts: 8
Rep Power: 11
MarcusNHofer is on a distinguished road
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
MarcusNHofer 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
snappyHexMesh in parallel leads to segmentation fault ChrisHa OpenFOAM Pre-Processing 1 January 14, 2019 10:04
[snappyHexMesh] snappyHexMesh Segmentation Fault avd28 OpenFOAM Meshing & Mesh Conversion 11 May 11, 2015 20:32
Segmentation fault when running in parallel Pj. OpenFOAM Running, Solving & CFD 3 April 8, 2015 08:12
[snappyHexMesh] SnappyHexMesh segmentation Fault nithishgupta OpenFOAM Meshing & Mesh Conversion 1 December 18, 2014 04:03
segmentation fault when installing OF-2.1.1 on a cluster Rebecca513 OpenFOAM Installation 9 July 31, 2012 15:06


All times are GMT -4. The time now is 12:27.