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

Segmentation fault initiated from a region-to-region BC

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ViktorKL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2018, 00:34
Default Segmentation fault initiated from a region-to-region BC
  #1
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Hi Foamers,


I am working on a simple two solid regions heat conduction case. I got the correct result for single processor (serial).


When I try to run the same case in parallel, I got a segmentation fault error. The error is indicating the library (.so) file for the BC which I have created to coupled the two region.


I did the following steps:
- Started from the single processor case
- Added the decomposeParDict for the main system folder and for the system folder of each region
- I selected the simple method for the main decomposeParDict file
- I ran my solver in parallel


Some threads recommend to use the preserveFaceZones, it did not work since the problem not inside the solid1 or solid2 region, but between them, and this patch/bounday between the two regions cannot be included under one processor (as far I know) since the decomposition works for each region independently.


I am sure many Foamers have faced such problem, I use OF5.0
Do I need to consider any additional functionally in my BC for parallel running?


Thanks to share your valuable suggestions
Saleh Abuhanieh is offline   Reply With Quote

Old   September 15, 2018, 08:24
Default
  #2
Senior Member
 
Peter Baskovich
Join Date: Jul 2014
Posts: 127
Rep Power: 11
pete20r2 is on a distinguished road
Hi Saleh,
Try the scotch method only at the top level and no region specific decomposition.
Also try preservePatches instead of faceZones and be sure to add both sides of the boundary.
pete20r2 is offline   Reply With Quote

Old   September 15, 2018, 09:30
Default
  #3
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
Hi Peter,


Thanks for your reply!


I've a concern here, in both cases (using preservePatches or faceZones) the decomposition on the main case will result no mesh per processor per region (ex processor0/constant/solid1/polymesh). That means the parallel run can't be executed:
mpirun -np xx solverName -parallel


I tried that, the solver asks for the polymesh files.



Regards,
Saleh
Saleh Abuhanieh is offline   Reply With Quote

Old   September 16, 2018, 08:18
Default
  #4
Member
 
Saleh Abuhanieh
Join Date: Nov 2017
Posts: 82
Rep Power: 8
Saleh Abuhanieh is on a distinguished road
any other ideas?
Saleh Abuhanieh is offline   Reply With Quote

Old   October 30, 2018, 08:59
Default
  #5
New Member
 
Viktor Klüber
Join Date: Jan 2018
Posts: 10
Rep Power: 8
ViktorKL is on a distinguished road
Have a look on this post to apply manual decomposition.
The method presented here is already more advanced and works with a python script.
Regards,
Viktor
Saleh Abuhanieh likes this.
ViktorKL is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 13:12
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 04:38
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 04:09.