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

star4ToFoam Segfault on Mac OS X 10.6.5 / OF 1.7.x

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 25, 2010, 10:10
Default star4ToFoam Segfault on Mac OS X 10.6.5 / OF 1.7.x
  #1
Member
 
sushant's Avatar
 
Join Date: Mar 2009
Location: Switzerland
Posts: 42
Rep Power: 8
sushant is on a distinguished road
Hi Foamers,

I have compiled OF 1.7.x on Mac OS X Snow Leopard 10.6.5 thanks to gschaider's patches. I can run all solvers and utilities fine, even in parallel. However I always get a segmentation fault while trying to import a Star-CD (cel/vrt/bnd) mesh, no matter which model I try. All the models I have tested can be imported just fine on any other computer running OF 1.7.x on linux.

I can also import fluent meshes without any issues.

The output of star4ToFoam is:

PHP Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.7.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  1.7.x
Exec   
star4ToFoam /some/model/file/name
Date   
Dec 25 2010
Time   
19:32:45
Host   
MacBook.local
PID    
4278
Case   : /some/case
nProcs 1
SigFpe 
Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
no constant/boundaryRegion information available
Number of points  
234707
Number of fluids  
222075
Number of baffles 
0
Ignored   solids  
0
Ignored   shells  
0
Unused    points  
215108
#0  Foam::backtrace(void**, unsigned int) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libOpenFOAM.dylib"
#1  Foam::error::printStack(Foam::Ostream&) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libOpenFOAM.dylib"
#2  Foam::sigSegv::sigSegvHandler(int) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libOpenFOAM.dylib"
#3  _sigtramp in "/usr/lib/libSystem.B.dylib"
#4  _sigtramp in "/usr/lib/libSystem.B.dylib"
#5  Foam::meshReaders::STARCD::readGeometry(double) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libconversion.dylib"
#6  Foam::meshReader::mesh(Foam::objectRegistry const&) in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/lib/darwinIntel64DPOpt/libconversion.dylib"
#7  main in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/applications/bin/darwinIntel64DPOpt/star4ToFoam"
#8  start in "/Users/me/OpenFOAM/OpenFOAM-1.7.x/applications/bin/darwinIntel64DPOpt/star4ToFoam"
Segmentation fault 
What could be wrong?

Thanks in advance,
Sushant
__________________
If you only have a hammer, you tend to see every problem as a nail.
sushant is offline   Reply With Quote

Old   December 25, 2010, 20:38
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Sushant,

I don't own a Mac, so I'm limited to making suggestions - is there any chance you can try and build OpenFOAM 1.6-ext: Extend Project 1.6-ext Binary Release for Mac OS X
As far as I can see, they have a better support for Mac OS X for their -Extend variant of OpenFOAM, so if you can reproduce or not get the same problem with their variant, then it shouldn't be too difficult for them to develop or for someone to adapt the fix for both versions!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 21:10.