CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Segmentation Fault w/ compiled OF 2.2.0 - motorBike example (http://www.cfd-online.com/Forums/openfoam-solving/114696-segmentation-fault-w-compiled-2-2-0-motorbike-example.html)

sudo March 15, 2013 12:39

Solved: Segmentation Fault w/ compiled OF 2.2.0 - motorBike example
 
So, as suggested by another member here I was trying to run the motorBike example found in
Quote:

$FOAM_TUTORIALS/incompressible/simpleFoam/motorBike
I executed from a Linux (Ubuntu 12.10 64bit) terminal
Quote:

$ ./Allrun -v
and I have got the following

Code:

Running surfaceFeatureExtract on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike
Running blockMesh on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike
Running decomposePar on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike
Running snappyHexMesh in parallel on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike using 6 processes
Segmentation fault (core dumped)
`0.org' -> `./processor0/0'
`0.org/nut' -> `./processor0/0/nut'
`0.org/include' -> `./processor0/0/include'
`0.org/include/initialConditions' -> `./processor0/0/include/initialConditions'
`0.org/include/frontBackUpperPatches' -> `./processor0/0/include/frontBackUpperPatches'
`0.org/include/fixedInlet' -> `./processor0/0/include/fixedInlet'
`0.org/omega' -> `./processor0/0/omega'
`0.org/k' -> `./processor0/0/k'
`0.org/p' -> `./processor0/0/p'
`0.org/U' -> `./processor0/0/U'
`0.org' -> `./processor1/0'
`0.org/nut' -> `./processor1/0/nut'
`0.org/include' -> `./processor1/0/include'
`0.org/include/initialConditions' -> `./processor1/0/include/initialConditions'
`0.org/include/frontBackUpperPatches' -> `./processor1/0/include/frontBackUpperPatches'
`0.org/include/fixedInlet' -> `./processor1/0/include/fixedInlet'
`0.org/omega' -> `./processor1/0/omega'
`0.org/k' -> `./processor1/0/k'
`0.org/p' -> `./processor1/0/p'
`0.org/U' -> `./processor1/0/U'
`0.org' -> `./processor2/0'
`0.org/nut' -> `./processor2/0/nut'
`0.org/include' -> `./processor2/0/include'
`0.org/include/initialConditions' -> `./processor2/0/include/initialConditions'
`0.org/include/frontBackUpperPatches' -> `./processor2/0/include/frontBackUpperPatches'
`0.org/include/fixedInlet' -> `./processor2/0/include/fixedInlet'
`0.org/omega' -> `./processor2/0/omega'
`0.org/k' -> `./processor2/0/k'
`0.org/p' -> `./processor2/0/p'
`0.org/U' -> `./processor2/0/U'
`0.org' -> `./processor3/0'
`0.org/nut' -> `./processor3/0/nut'
`0.org/include' -> `./processor3/0/include'
`0.org/include/initialConditions' -> `./processor3/0/include/initialConditions'
`0.org/include/frontBackUpperPatches' -> `./processor3/0/include/frontBackUpperPatches'
`0.org/include/fixedInlet' -> `./processor3/0/include/fixedInlet'
`0.org/omega' -> `./processor3/0/omega'
`0.org/k' -> `./processor3/0/k'
`0.org/p' -> `./processor3/0/p'
`0.org/U' -> `./processor3/0/U'
`0.org' -> `./processor4/0'
`0.org/nut' -> `./processor4/0/nut'
`0.org/include' -> `./processor4/0/include'
`0.org/include/initialConditions' -> `./processor4/0/include/initialConditions'
`0.org/include/frontBackUpperPatches' -> `./processor4/0/include/frontBackUpperPatches'
`0.org/include/fixedInlet' -> `./processor4/0/include/fixedInlet'
`0.org/omega' -> `./processor4/0/omega'
`0.org/k' -> `./processor4/0/k'
`0.org/p' -> `./processor4/0/p'
`0.org/U' -> `./processor4/0/U'
`0.org' -> `./processor5/0'
`0.org/nut' -> `./processor5/0/nut'
`0.org/include' -> `./processor5/0/include'
`0.org/include/initialConditions' -> `./processor5/0/include/initialConditions'
`0.org/include/frontBackUpperPatches' -> `./processor5/0/include/frontBackUpperPatches'
`0.org/include/fixedInlet' -> `./processor5/0/include/fixedInlet'
`0.org/omega' -> `./processor5/0/omega'
`0.org/k' -> `./processor5/0/k'
`0.org/p' -> `./processor5/0/p'
`0.org/U' -> `./processor5/0/U'
Running patchSummary in parallel on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike using 6 processes
Segmentation fault (core dumped)
Running potentialFoam in parallel on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike using 6 processes
Segmentation fault (core dumped)
Running simpleFoam in parallel on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike using 6 processes
Segmentation fault (core dumped)
Running reconstructParMesh on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike
Running reconstructPar on /home/OF_user/OpenFOAM/OF_user-2.2.0/run/tutorials/incompressible/simpleFoam/motorBike

On my Ubuntu 12.10 64 bit virtualbox on my windows machine, where OpenFoam 2.2.0 was installed from the repository (as a binary, not compiled), the tutorial worked without a hitch.

Any idea what's the cause of this? Thanks.

EDIT: Just wanted to say that the introductory "Cavity" tutorial worked just fine with the compiled OF, so my "newbie" guess is that it has to do with SnappyHexMesh.

sudo March 25, 2013 12:41

I saw there is a similar earlier thread, here:
http://www.cfd-online.com/Forums/ope...tml#post416285

So I posted my problem there.

sihaqqi March 26, 2013 23:48

I have the same problem. When I type in simpleFoam, it does 50 calculations and say Segmentation fault (core dumped). If you can perhaps advise, I shall be grateful

Regards

sudo April 2, 2013 17:27

SOLVED!!!! Thanks to Bruno, look here:
http://www.cfd-online.com/Forums/ope...r-upgrade.html


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