CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   GambitToFoam segmentation fault (https://www.cfd-online.com/Forums/openfoam-installation/57592-gambittofoam-segmentation-fault.html)

hoerl November 18, 2006 03:22

hi some problems with gambi
 
hi

some problems with gambitToFoam here. i created a very simple 2D net in gambit and exported it to mesh01.neu. when i want to convert it there is a SegV which shows like this

hoerl@ubuntu:~/OpenFOAM/hoerl-1.3/run$ gambitToFoam facingstep facing01 facingstep/facing01/constant/polyMesh/mesh1.neu
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.3 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : gambitToFoam facingstep facing01 facingstep/facing01/constant/polyMesh/mesh1.neu
Date : Nov 18 2006
Time : 10:17:06
Host : ubuntu
PID : 10337
Root : facingstep
Case : facing01
Nprocs : 1
Create time


Title: mesh1
Written by Gambit version 2.2.30

File written on 18 Nov 2006 09:36:30
number of points: 12721
number of cells: 12000
number of patches: 2
Reading nodal coordinates
Reading cells

Reading cell streams
Reading cell stream labels
Finished reading cell stream labels
Reading patches
patch 0: name: inlet
Reading patches
patch 1: name: outlet
Finished lexing
Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&)
Foam::sigSegv::sigSegvHandler(int)
[0xffffe420]
gambitToFoam [0x80514d5]
__libc_start_main
__gxx_personality_v0
Segmentation fault (core dumped)
hoerl@ubuntu:~/OpenFOAM/hoerl-1.3/run$




i also did an strace from gambitToFoam and there it shows me a lot of ENOENT errors like:

access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/home/hoerl/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/lam-7.1.1/tls/i686/ss e2/cmov/libOpenFOAM.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/hoerl/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt/lam-7.1.1/tls/i686/ss e2/libOpenFOAM.so", O_RDONLY) = -1 ENOENT (No such file or directory)
...
stat64("/home/hoerl/OpenFOAM/hoerl-1.3/run/facingstep/facing01/0/time", 0xbfcc0500) = -1 ENOENT (No such file or directory)



the installation i have is an ubuntu 6.10 in a vmware machine - i did the install the way which is shown here: https://help.ubuntu.com/community/OpenFOAM

is there anything i should have added and is not in this tut!?

kind regards matthias

hjasak November 18, 2006 07:58

I've never seen a failure like
 
I've never seen a failure like this: it did the lex all right and then failed in putting the mesh together. As the mesh has points, faces and cells, nothing really comes to mind. Can you show me this mesh? Alternatively, you could compile and run the debug version and post the full trace-back.

BTW, are other applications running OK?

Hrv

hoerl November 19, 2006 08:20

fluentMeshToFoam - means expor
 
fluentMeshToFoam - means exporting fluent5/6 from gambit and convert it with fluentMeshToFoam - works fine

also working with blockMesh i wanna test

mfg matthias

PS: is there an ability to append files to the messageboard ?!

hjasak November 20, 2006 05:47

For the record: this was a 2-D
 
For the record: this was a 2-D Gambit mesh and cannot be converted: please make it 3-D in Gambit before exporting.

I've fixed some bugs and made a nicer error message instead of segmentation fault.

Hrv


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