CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Segmentation Fault in fluent3DMeshToFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2008, 10:56
Default Hi, I have received the follow
  #1
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
Hi, I have received the following error message when converting fluent 3d mesh using fluent3DMeshToFoam:

Dimension of grid: 3
Number of points: 702
PointGroup: 1 start: 0 end: 701. Reading points...done.
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
Number of cells: 470
CellGroup: 2 start: 0 end: 469 type: 1
Zone: 2 name: fluid type: fluid. Reading zone data...done.
Zone: 3 name: inlet type: velocity-inlet. Reading zone data...done.
Zone: 4 name: outlet type: pressure-outlet. Reading zone data...done.
Zone: 5 name: floorceiling type: symmetry. Reading zone data...done.
Zone: 6 name: sidewall type: symmetry. Reading zone data...done.
Zone: 7 name: wall type: wall. Reading zone data...done.
Zone: 9 name: default-interior type: interior. Reading zone data...done.

FINISHED LEXING

--> FOAM Warning :
From function boundBox::boundBox(const pointField& points)
in file meshes/boundBox/boundBox.C at line 52
Cannot find bounding box for zero sized pointField, returning zero
Creating cellZone 0 name: fluid type: fluid
#0 Foam::error::printStack(Foam:stream&) in "/home/john/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/john/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted: [0xffffe420]
#3 Foam::polyTopoChange::getFaceOrder(int, Foam::List<int> const&, Foam::List<int> const&, Foam::List<int>&, Foam::List<int>&, Foam::List<int>&) const in "/home/john/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so"
#4 Foam::polyTopoChange::compact(bool, bool, int&, Foam::List<int>&, Foam::List<int>&) in "/home/john/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so"
#5 Foam::polyTopoChange::compactAndReorder(Foam::poly Mesh const&, bool, bool, bool, int&, Foam::Field<foam::vector<double> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::map<int> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<foam::map<int> >&) in "/home/john/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so"
#6 Foam::polyTopoChange::changeMesh(Foam::polyMesh&, bool, bool, bool, bool) in "/home/john/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libdynamicMesh.so"
#7 main in "/home/john/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/fluent3DMeshToF oam"
#8 __libc_start_main in "/lib/libc.so.6"
#9 __gxx_personality_v0 in "/home/john/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/fluent3DMeshToF oam"
Segmentation fault



I tried converting the same .msh file using fluemtMeshToFoam and it worked fine. I'm wondering what might have caused it?
cwang5 is offline   Reply With Quote

Old   September 8, 2008, 12:09
Default Can you post or send the case?
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Can you post or send the case?

Mattijs
mattijs is offline   Reply With Quote

Old   September 9, 2008, 05:48
Default Umm...how do I post the file?
  #3
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
Umm...how do I post the file?
cwang5 is offline   Reply With Quote

Old   September 9, 2008, 06:25
Default Hello, I'm getting the same
  #4
Member
 
Etienne Lorriaux
Join Date: Mar 2009
Location: Compiegne, France
Posts: 45
Rep Power: 17
elorriaux is on a distinguished road
Hello,

I'm getting the same kind of error with fluent3DMeshToFoam and OF-1.5. I did not try the fluentMeshToFoam yet.

My mesh is generated with gambit-2.2.

Mattjis, i can send you an http link with my .msh, but it's quite big (more than one million cells).

Regards,

Etienne.
elorriaux is offline   Reply With Quote

Old   September 9, 2008, 06:26
Default oh, checked the forum document
  #5
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
oh, checked the forum documentation, here's the file.


cwang5 is offline   Reply With Quote

Old   September 9, 2008, 06:43
Default file's too big, can't upload i
  #6
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
file's too big, can't upload it, I'm uploading it to rapidshare, here's the link.

http://rapidshare.de/files/40430130/...id.msh.gz.html

let me know when you have received the file. Thanks
cwang5 is offline   Reply With Quote

Old   September 9, 2008, 10:27
Default says the file does not exist w
  #7
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
says the file does not exist when I try to download it. Can you try again and send link to me? (m dot janssens at opencfd.co.uk)
mattijs is offline   Reply With Quote

Old   September 10, 2008, 09:55
Default Pushed a changed fluent3DMeshT
  #8
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Pushed a changed fluent3DMeshToFoam.L to the 1.5.x git which reads your file. Let me know if it breaks anything else ;-)
mattijs is offline   Reply With Quote

Old   September 11, 2008, 06:26
Default I couldn't seems to access the
  #9
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
I couldn't seems to access the git repository. The git update process is stuck at "Indexing 9605 objects... 0% (1/9605) done. Any idea how to fix that? Thanks
cwang5 is offline   Reply With Quote

Old   September 11, 2008, 07:10
Default I have just pulled and pushed
  #10
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
I have just pulled and pushed and it was fine. It looks like you have an unreliable connection, could you try again later?

H
henry is offline   Reply With Quote

Old   September 11, 2008, 07:52
Default humm...well, it never worked f
  #11
Member
 
John Wang
Join Date: Mar 2009
Location: Singapore
Posts: 73
Rep Power: 17
cwang5 is on a distinguished road
humm...well, it never worked for me, I've tried updating it for a while, and was always stuck at the git clone step.
cwang5 is offline   Reply With Quote

Old   September 16, 2008, 09:50
Default Have you examined the mesh in
  #12
New Member
 
Ameya Durve
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
ameya is on a distinguished road
Have you examined the mesh in gambit or fluent before exporing it to OpenFOAM? May be you hav some highly skewed elements.

I recoomend you not only peform grid check but also use hexahedral mesh as far as pssible
ameya is offline   Reply With Quote

Old   November 19, 2008, 05:27
Default Hi, I got the same sequence of
  #13
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17
r2d2 is on a distinguished road
Hi, I got the same sequence of errors when using fluent3DMeshToFoam when using OF1.5 but it all went smooth with the OF1.4.1. Did anything change in-between, some lib somewhere?
Just for the record, if it helps:

In 1.5 it says:
Create time

Dimension of grid: 3
Number of points: 119966
PointGroup: 1 start: 0 end: 119965. Reading points...done.
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
--> FOAM Warning : Found unknown block of type: "13"
Number of cells: 93916
CellGroup: 2 start: 0 end: 54143 type: 1
CellGroup: 3 start: 54144 end: 93915 type: 1
Zone: 2 name: fluid type: fluid. Reading zone data...done.
Zone: 3 name: gdlH2 type: solid. Reading zone data...done.
Zone: 4 name: wall type: wall. Reading zone data...done.
Zone: 5 name: outletGDLH2 type: pressure-outlet. Reading zone data...done.
Zone: 6 name: outletH2 type: pressure-outlet. Reading zone data...done.
Zone: 7 name: inletH2 type: mass-flow-inlet. Reading zone data...done.
Zone: 9 name: default-interior type: interior. Reading zone data...done.

FINISHED LEXING

--> FOAM Warning :
From function boundBox::boundBox(const pointField& points)
in file meshes/boundBox/boundBox.C at line 52
Cannot find bounding box for zero sized pointField, returning zero
Creating cellZone 0 name: fluid type: fluid
Creating cellZone 1 name: gdlH2 type: solid
#0 Foam::error::printStack(Foam:stream&) in "/home/radu/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/radu/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 ?? in "/lib/libc.so.6"
#3 Foam::polyTopoChange::getFaceOrder(int, Foam::List<int> const&, Foam::List<int> const&, Foam::List<int>&, Foam::List<int>&, Foam::List<int>&) const in "/home/radu/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#4 Foam::polyTopoChange::compact(bool, bool, int&, Foam::List<int>&, Foam::List<int>&) in "/home/radu/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#5 Foam::polyTopoChange::compactAndReorder(Foam::poly Mesh const&, bool, bool, bool, int&, Foam::Field<foam::vector<double> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::map<int> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<foam::map<int> >&) in "/home/radu/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#6 Foam::polyTopoChange::changeMesh(Foam::polyMesh&, bool, bool, bool, bool) in "/home/radu/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#7 main in "/home/radu/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/fluent3DMeshT oFoam"
#8 __libc_start_main in "/lib/libc.so.6"
#9 __gxx_personality_v0 in "/home/radu/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/fluent3DMeshT oFoam"
Segmentation fault



...and in 1.4.1

Dimension of grid: 3
Number of points: 119966
PointGroup: 1 start: 0 end: 119965. Reading points...done.
Number of faces: 309635
FaceGroup: 4 start: 0 end: 52438. Reading mixed faces...done.
FaceGroup: 5 start: 52439 end: 62381. Reading mixed faces...done.
FaceGroup: 6 start: 62382 end: 62413. Reading mixed faces...done.
FaceGroup: 7 start: 62414 end: 62445. Reading mixed faces...done.
FaceGroup: 9 start: 62446 end: 309634. Reading mixed faces...done.
Number of cells: 93916
CellGroup: 2 start: 0 end: 54143 type: 1
CellGroup: 3 start: 54144 end: 93915 type: 1
Zone: 2 name: fluid type: fluid. Reading zone data...done.
Zone: 3 name: gdlH2 type: solid. Reading zone data...done.
Zone: 4 name: wall type: wall. Reading zone data...done.
Zone: 5 name: outletGDLH2 type: pressure-outlet. Reading zone data...done.
Zone: 6 name: outletH2 type: pressure-outlet. Reading zone data...done.
Zone: 7 name: inletH2 type: mass-flow-inlet. Reading zone data...done.
Zone: 9 name: default-interior type: interior. Reading zone data...done.

FINISHED LEXING

--> FOAM Warning :
From function boundBox::boundBox(const pointField& points)
in file meshes/boundBox/boundBox.C at line 52
cannot find bounding box for zero sized pointFieldreturning zero
Creating patch 0 for zone: 4 name: wall type: wall
Creating patch 1 for zone: 5 name: outletGDLH2 type: pressure-outlet
Creating patch 2 for zone: 6 name: outletH2 type: pressure-outlet
Creating patch 3 for zone: 7 name: inletH2 type: mass-flow-inlet
Creating cellZone 0 name: fluid type: fluid
Creating cellZone 1 name: gdlH2 type: solid
patch 0 from Fluent indices: 0 to: 52438 type: wall
patch 1 from Fluent indices: 52439 to: 62381 type: pressure-outlet
patch 2 from Fluent indices: 62382 to: 62413 type: pressure-outlet
patch 3 from Fluent indices: 62414 to: 62445 type: mass-flow-inlet

Writing mesh to "/home/radu/OpenFOAM/radu-1.4.1/run/pila3D/pila10x10/cascada/simpleFoam/constant /region0"

End
r2d2 is offline   Reply With Quote

Old   November 19, 2008, 05:36
Default We have pushed a new version t
  #14
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
We have pushed a new version to the 1.5.x git repository, could you try that?

H
henry is offline   Reply With Quote

Old   November 19, 2008, 06:08
Default Will do that, as soon as I hav
  #15
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 99
Rep Power: 17
r2d2 is on a distinguished road
Will do that, as soon as I have some spare time.
Thanks anyway,
Radu
r2d2 is offline   Reply With Quote

Old   November 19, 2008, 12:01
Default Good morning, with the new
  #16
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Good morning,

with the new changes, fluent3DMeshToFoam does not compile for me :

fluent3DMeshToFoam.L: In function 'int main(int, char**)':
fluent3DMeshToFoam.L:932: error: expected `]' before ')' token
fluent3DMeshToFoam.L:932: error: expected `]' before ')' token
fluent3DMeshToFoam.L:933: error: expected `)' before '{' token
fluent3DMeshToFoam.L:936: error: expected primary-expression before '}' token
fluent3DMeshToFoam.L:936: error: expected `;' before '}' token
fluent3DMeshToFoam.L: At global scope:
fluent3DMeshToFoam.L:1340: error: expected unqualified-id before ']' token


Regards,

PO
podallaire is offline   Reply With Quote

Old   November 19, 2008, 13:43
Default Which version of flex are you
  #17
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Which version of flex are you using?

H
henry is offline   Reply With Quote

Old   November 19, 2008, 14:26
Default I have just pushed a small cha
  #18
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
I have just pushed a small change which should keep old versions of flex happy.

H
henry is offline   Reply With Quote

Old   November 19, 2008, 19:20
Default Thanks ! I will give it a t
  #19
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Thanks !

I will give it a try later tonight

-> flex 2.5.33

Regards,

PO
podallaire is offline   Reply With Quote

Old   November 20, 2008, 04:28
Default We are now using flex 2.5.35 w
  #20
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
We are now using flex 2.5.35 which comes with SuSE 11 and other recent Linux releases or can be downloaded and compiled from sources. There is a bug in the .skel file in version 2.3.33 (fixed in 2.5.35) which means that "]]" in the "C" code throws and error but "] ]" is OK. The fix I uploaded should solve the problem for you.

H
henry is offline   Reply With Quote

Reply


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
Segmentation fault. Nari Siemens 3 November 8, 2007 06:04
segmentation fault Suman Siemens 2 June 26, 2007 04:14
Segmentation fault billy OpenFOAM Installation 20 April 23, 2007 23:57
Segmentation fault??? LiQiang Main CFD Forum 3 March 18, 2005 14:25
Segmentation fault Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 3 January 10, 2005 06:02


All times are GMT -4. The time now is 16:14.