|
[Sponsors] |
March 23, 2015, 13:12 |
segmentation fault - parallel running
|
#1 |
New Member
Cristina Moreira
Join Date: Jan 2015
Location: Portugal
Posts: 28
Rep Power: 11 |
I'm new in these things so i'm trying to do the tutorial "Green Water" as a introduction to VOF but when i try to do the parallel running i got a segmentation error as soon as i execute setFields in the Terminal
The message error is this: cristina@cristina-HP-Pavilion-g6-Notebook-PC:~/OpenFOAM/cristina-2.2.2/run/greenWater$ setFields /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.2 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.2.2-9240f8b967db Exec : setFields Date : Mar 23 2015 Time : 16:48:02 Host : "cristina-HP-Pavilion-g6-Notebook-PC" PID : 3973 Case : /home/cristina/OpenFOAM/cristina-2.2.2/run/greenWater nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Reading setFieldsDict Setting field default values Setting internal values of volScalarField alpha1 #0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam222/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam222/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::tmp<Foam::Field<double> > Foam::fvPatch::patchInternalField<double>(Foam::UL ist<double> const&) const in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" #4 Foam::zeroGradientFvPatchField<double>::zeroGradie ntFvPatchField(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam222/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #5 Foam::fvPatchField<double>::adddictionaryConstruct orToTable<Foam::zeroGradientFvPatchField<double> >::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam222/platforms/linux64GccDPOpt/lib/libfiniteVolume.so" #6 Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" #7 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::readField( Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" #8 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" #9 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields() in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" #10 at setFields.C:0 #11 in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" #12 in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" #13 in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" #14 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #15 in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/setFields" Falha de segmentação (imagem do núcleo gravada) |
|
March 24, 2015, 06:38 |
|
#2 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 12 |
Hi Cristina,
tell us more because it is impossible to help you without knowing a little more about your parameters. You should make an archive with some of your directories like constant, system, mesh and 0. Best regards, Laurent |
|
March 24, 2015, 08:19 |
|
#3 |
New Member
Cristina Moreira
Join Date: Jan 2015
Location: Portugal
Posts: 28
Rep Power: 11 |
Hi Laurent
Thank you for your reply, i think that now in the file "exercicio" is there all that is needed but if i'm missing something please let me know. https://www.dropbox.com/s/dk3jf4n0jo...cicio.tar?dl=0 Cristina |
|
March 25, 2015, 04:43 |
Maybe a solution
|
#4 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 12 |
Hi Cristina,
I have tried to run the application setFields using your directories and i have obtained a segmentation fault too. But when i run first the application blockMesh, and then setFields, it runs. So try this following command : blockMesh ; setFields and tell me if it works. Have a good day. Laurent |
|
March 25, 2015, 05:29 |
|
#5 |
Senior Member
|
Hi,
Just a small comment. Your mesh (the one in tar-file) definition is broken: Code:
... Checking topology... ****Problem with boundary patch 6 named wall5 of type wall. The patch should start on face no 615865 and the patch specifies 657225. Possibly consecutive patches have this same problem. Suppressing future warnings. ***Boundary definition is in error. Cell to face addressing OK. Point usage OK. Upper triangular ordering OK. Face vertices OK. Number of regions: 1 (OK). ... So regeneration of the mesh proposed by laurentD will fix the error. But it seems you performed additional steps like refineMesh and topoSet. |
|
March 25, 2015, 08:48 |
|
#6 |
New Member
Cristina Moreira
Join Date: Jan 2015
Location: Portugal
Posts: 28
Rep Power: 11 |
Hi,
Thank your for your answer. I did run the blockMesh and the checkMesh before and everything was ok. Then i executed refineMesh and everything was also ok so i proceed to overwrite the mesh and did all the changes that were given in the tutorial but when i try setFields a segmentation fault appeared so i did as Laurent said and it did solve the setField problem but when i did the decomposePar command to do the parallel running (it did created some processor folders) appeared this error message: Code:
-> FOAM FATAL IO ERROR: Cannot find patchField entry for wall1 file: /home/cristina/OpenFOAM/cristina-2.2.2/run/greenWater/0/alpha1.org.boundaryField from line 25 to line 47. From function GeometricField<Type, PatchField, GeoMesh>::GeometricBoundaryField::readField(const DimensionedField<Type, GeoMesh>&, const dictionary&) in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 206. |
|
March 25, 2015, 09:07 |
|
#7 |
Senior Member
|
Hi,
Can you post the sequence of commands you have used for the case (as a simple list)? If you utilize blockMesh after refineMesh, it cancels refineMesh mesh refinements. I guess alpha1.org in the tar file is from damBreak tutorial, while patches defined in blockMeshDict have names wall1, wall2 etc. So you should create alpha1.org with correct boundary names. |
|
March 25, 2015, 10:34 |
|
#8 |
New Member
Cristina Moreira
Join Date: Jan 2015
Location: Portugal
Posts: 28
Rep Power: 11 |
Hi,
Sure, i'm using:
|
|
March 25, 2015, 10:53 |
|
#9 | |
Senior Member
|
Hi,
There is no setRefin and setExtract files in the tar file. Not quite sure I got the meaning of Quote:
|
||
March 25, 2015, 11:18 |
|
#10 |
New Member
Cristina Moreira
Join Date: Jan 2015
Location: Portugal
Posts: 28
Rep Power: 11 |
Sorry i forgot to put it in the list (edited now).
the files i miss are here. (i'm sorry!) https://www.dropbox.com/s/1m2gs1kcva...etExtract?dl=0 https://www.dropbox.com/s/e3w6e4lknud0ahk/setRefin?dl=0 Ok, i was doing that wrong because i thought that alpha1.org hadn't to be changed and was puting the code right in the alpha1. But now i have correct it. I have redone everything checking the mesh every change i made and discoverd that the problem appear after changing the oldInternalFaces to a wall (wall5), the error message said that the startFace number wasn't correct that sould be another. Code:
Checking topology... ****Problem with boundary patch 6 named wall5 of type wall. The patch should start on face no 638252 and the patch specifies 657225. Possibly consecutive patches have this same problem. Suppressing future warnings. Code:
#0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam222/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam222/platforms/linux64GccDPOpt/lib/libOpenFOAM.so" #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 at checkTopology.C:0 #4 Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >::calcMeshData() const in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/checkMesh" #5 in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/checkMesh" #6 in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/checkMesh" #7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #8 in "/opt/openfoam222/platforms/linux64GccDPOpt/bin/checkMesh" Falha de segmentação (imagem do núcleo gravada) |
|
March 25, 2015, 12:01 |
|
#11 |
Senior Member
|
Hi,
I do not know what am I doing wrong but I was not able to reproduce the error. Maybe you mess-up boundary file during editing? As I am rather lazy, to skip entering commands every time, I have create Allprepare file: Code:
#!/bin/sh cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions runApplication blockMesh runApplication checkMesh runApplication setSet -batch setRefin mv log.setSet log.setSet.setRefin runApplication refineMesh -overwrite -dict system/refineMeshDict runApplication setSet -batch setExtract mv log.setSet log.setSet.setExtract runApplication subsetMesh extr -overwrite sed -i~ 's/oldInternalFaces/wall5/' constant/polyMesh/boundary for f in 0/*; do [ -f $f ] && sed -i~ 's/oldInternalFaces/wall5/' $f done runApplication changeDictionary cp 0/alpha1.org 0/alpha1 runApplication setFields runApplication decomposePar 1. I use sed to rename patch 2. It turns out that subsetMesh will create oldInternalFaces patch not only in boundary file but also in all files in 0 folder, so I rename the patch there also 3. I use changeDictionary for manipulation of the dictionaries (boundary file and boundaryField dictionaries in 0 folder) Attached archive is modified case. |
|
March 25, 2015, 13:18 |
|
#12 |
New Member
Cristina Moreira
Join Date: Jan 2015
Location: Portugal
Posts: 28
Rep Power: 11 |
Thank you, with that code the solver run without problems and i learn something very useful.
Yes i don't know what i did wrong with the boundary file but definelly the problem was there. I will try to do it again in order to find the error. |
|
November 1, 2015, 09:49 |
Same simulation but using foam-extend
|
#13 |
New Member
Daniel Tiago Muller
Join Date: Nov 2015
Location: Brazil
Posts: 3
Rep Power: 11 |
Hey guys,
I'm trying to simulate something very similar with this problem presented by Cristina. When I run the steps to refine and extract mesh everything works fine at openFoam-2.3 but when I try to run the same steps at foam-extend-3.1, it presents an error during extract. Instead of extracting, it recreates the old mesh without the extract part. Could any help me, please? I think the problem is with subsetMesh at foam-extend-3.1. |
|
November 1, 2015, 17:13 |
|
#14 |
New Member
Cristina Moreira
Join Date: Jan 2015
Location: Portugal
Posts: 28
Rep Power: 11 |
Hi Daniel,
I used OpenFoam 2.2.2 so i'm not familiar with the ones you specified. Are you using SHM to refine and extract according to an .stl file? If so the problem could be with the point you are using to select the part of the mesh you wanna keep. Or maybe something related with wanna keep the inside/outside cells of the contour defined by the .stl (check snappyHexMeshDict). I'm not a specialist but if i were you i would check this out. Best Regards Cristina |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error running simpleFoam in parallel | Yuby | OpenFOAM Running, Solving & CFD | 14 | October 7, 2021 05:38 |
Fluent 14.0 file not running in parallel mode in cluster | tejakalva | FLUENT | 0 | February 4, 2015 08:02 |
Running CFX parallel distributed Under linux system with loadleveler queuing system | ahmadbakri | CFX | 1 | December 21, 2014 05:19 |
Segmentation Fault | Shawn_A | OpenFOAM Running, Solving & CFD | 6 | October 31, 2011 15:38 |
Fluent parallel: segmentation fault? | hp | FLUENT | 2 | September 6, 2001 15:18 |