|
[Sponsors] |
Case running in parallel gives error whereby running in serial works |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 25, 2015, 14:42 |
Case running in parallel gives error whereby running in serial works
|
#1 |
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Hello,
I want to run a case in parallel with 2 processors. Therefore I decomposed my mesh with the scotch method and with 2 subdomains. My case is about a 3D flow simulation hitting a beam and flowing around it. I've already run it in serial and it just worked fine but when I tried in parallel following error occurs: Code:
Time = 0.00045, iteration: 3 Current fsi under-relaxation factor (Aitken): 1.0185847 Maximal accumulated displacement of interface points: 0.0073361798 [0] [0] [0] --> FOAM FATAL ERROR: [0] face 84 area does not match neighbour by 0.0122327% -- possible face ordering problem. patch: procBoundary0to1 my area: 4.54816e-08 neighbour area: 4.54761e-08 matching tolerance: 0.0001 Mesh face: 10126 vertices: 4((0.00506497 0.00556421 0.000275998) (0.005268 0.0055643 0.000275994) (0.00526801 0.0055643 0.000499999) (0.00506497 0.00556421 0.0005)) Rerun with processor debug flag set for more information.[1] [1] [1] --> FOAM FATAL ERROR: [1] face 84 area does not match neighbour by 0.0122327% -- possible face ordering problem. patch: procBoundary1to0 my area: 4.54761e-08 neighbour area: 4.54816e-08 matching tolerance: 0.0001 Mesh face: 9704 vertices: 4((0.00506497 0.00556421 0.000275998) (0.00506497 0.00556421 0.0005) (0.00526798 0.0055643 0.000499999) (0.00526798 0.00556431 0.000275994)) Rerun with processor debug flag set for more information. [1] [1] From function processorPolyPatch::calcGeometry() [1] in file meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C at line [0] [0] From function processorPolyPatch::calcGeometry() [0] in file meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C at line 217. [0] FOAM parallel run exiting [0] 217. [1] FOAM parallel run exiting [1] -------------------------------------------------------------------------- MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD with errorcode 1. NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes. You may or may not see output from other processes, depending on exactly when Open MPI kills them. -------------------------------------------------------------------------- Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0 | | \\ / A nd | Web: http://www.openfoam.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object decomposeParDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // numberOfSubdomains 2; method scotch; simpleCoeffs { n (4 1 1); delta 0.0001; } globalFaceZones ( InterfaceZone ); hierarchicalCoeffs { n (1 1 1); delta 0.001; order xyz; } metisCoeffs { processorWeights ( 1 1 1 ); } manualCoeffs { dataFile ""; } distributed no; // ************************************************************************* // Thank you all in advance |
|
July 25, 2015, 15:57 |
|
#2 | |
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Quote:
I'm using OpenFOAM 2.3.0 and foam-extend 3.1. In this particularly case I'm using foam-extend because my study is about a fluid-structure-problem. The solver is called icoFsiElasticNonLinULSolidFoam. But I think my problem is independent of whether I use OpenFOAM or foam-extend… I really appreciate your help! Last edited by Harak; July 25, 2015 at 20:25. |
||
September 20, 2015, 15:28 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Harak,
OK, time flew by so fast Anyway I've finally managed to take a look into this today and... I'm confused. I've tested just now the tutorial "solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi" in both foam-extend 3.0 and 3.1, by running the script: Code:
./AllrunPar Without at least an example case, I can't reproduce the same error message you're getting. And there aren't enough details for me to diagnose how this could be fixed. Best regards, Bruno
__________________
|
|
September 23, 2015, 17:41 |
|
#4 | |
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Quote:
you wouldn't believe how much I was waiting for your response You'll find my case here: https://www.dropbox.com/s/hl5e8bfy09...se.tar.gz?dl=0 Please read the README first, because it gives you a small overview about my case and explains how the different folders are connected to each other. I forgot to write there that you should only run the FSI-case (icoFsiElasticNonLinULSolidFoam) with foam-extend 3.1! All other "preparation-cases" should be run with OpenFOAM 2.3.0 because there might be problems with my symmetry patch as foam-extend wants it named 'symmetryPlane' whereas OpenFOAM handles it with just 'symmetry'. I'm urgely waiting for your answer! |
||
October 11, 2015, 18:26 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Harak,
I've finally managed to look into your case... I think I did the steps correctly for using your case. And I have to say that you're approaching this problem from a very wrong perspective. Let's see if I'm able to explain myself. Attached is the image "surface_meshes.png" which shows:
As for taking the wrong approach, this is very common in beginners: when people get started with CFD, they tend to go head first into the final problem that they are trying to solve. This is like jumping off a 150m cliff in a pool with unknown water depth, which will likely result in the jumper getting hurt or worse, if the water depth is not enough for absorbing the jumper's momentum. My advice: take several steps back. You need to use a much simpler geometry, using a much less refined mesh, namely something that you can first learn how things work. Then gradually add complexity and check how things are working after each change. Otherwise, you're trying to solve 100 or more problems by mere luck. I wrote about this very same issue 11h ago for someone else who is making the similar errors in how to approach the resolution of their problem, which you can find here: http://www.cfd-online.com/Forums/ope...tml#post567548 - post 14. The attached image was gotten by relying on the instructions given at the following locations:
I did try running your case in serial mode first, to see if the problem also happens when running in serial mode, but my machine doesn't have enough RAM for running such a heavy case. Therefore I was not able to reproduce the same problem, but my description above about the surface mesh is the most probable reason for the crash you're witnessing. Trying to solve the original error message with a mesh that has 1.6 million cells is what I would refer to "jumping head first into a pool without first knowing the water depth it has"... And as I mentioned to the other person, if you're up to reading on how to deal with OpenFOAM and foam-extend: http://openfoamwiki.net/index.php/Tu...etting_Started Best regards, Bruno
__________________
|
|
October 13, 2015, 11:16 |
|
#6 | ||||
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Hi Bruno,
I really appreciate your help and your effort! Quote:
Quote:
Quote:
Quote:
Thank your very much!!! Best regards, Harak Last edited by Harak; October 13, 2015 at 12:45. |
|||||
October 13, 2015, 13:02 |
|
#7 | |
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Quote:
|
||
October 15, 2015, 09:23 |
|
#8 |
Member
Join Date: Dec 2014
Posts: 50
Rep Power: 11 |
Hey Bruno,
In the last three days I did some research concerning the non matching meshes. Here's what I've found:
https://www.dropbox.com/s/zhltha7pdm...rocessors?dl=0 and one with 4 processors https://www.dropbox.com/s/ft0a60s1ll...rocessors?dl=0. And yes, the case with 2 processors crashes after a while due to high Courant numbers. I'm aware of that I've also attached this case if you want to have a look into that. You can just run it, there aren't any "preparation-cases" for this one. . I'm looking forward to hear from you! Best regards, Harak. |
|
October 17, 2015, 12:12 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: I don't have time right to test this, but I suspect that you are stepping into a limitation for this solver. You're using the "scotch" decomposition, which tries to achieve the best balance in mesh distribution between processors.
But this kind of simulation needs consistency in how each sub-domain can interact between fluid and solid. Try using either the "hierarchical" or "simple" decomposition and make sure that you decompose the mesh in a way that either the whole solid and surrounding fluid is part of a single sub-domain, or make sure that each section of the solid has its associated fluid region in the same sub-domain. |
|
Tags |
decomposepar, matching tolerance, parallel computation, parallel computing |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reconstruction of the parallel case with dynamic mesh | makaveli_lcf | OpenFOAM Post-Processing | 7 | October 18, 2023 12:28 |
Problem running movingCylinders case in parallel with foam-extend-3.1 | mhkenergy | OpenFOAM Running, Solving & CFD | 5 | March 3, 2017 06:20 |
Running AMI case in parallel | Kaskade | OpenFOAM Running, Solving & CFD | 3 | March 14, 2016 16:58 |
Parallel Running With Problems | guilha | OpenFOAM Running, Solving & CFD | 1 | July 26, 2014 11:55 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |