CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] Star4ToFoam error (https://www.cfd-online.com/Forums/openfoam-meshing/61743-star4tofoam-error.html)

ksk March 5, 2009 10:17

Star4ToFoam error
 
Hi

I'm having problems using star4ToFoam tool to import .cel and .vrt file to OpenFOAM format. Please see below terminal output. Anybody have any ideas on how to solve this?

Best regards Kasper Skriver

ksk@ksk-laptop:~/OpenFOAM/ksk-1.5/hex/hex_flow$ star4ToFoam hex
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.5 |
| \ / A nd | Web: http://www.OpenFOAM.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : star4ToFoam hex
Date : Mar 05 2009
Time : 11:15:01
Host : ksk-laptop
PID : 6761
Case : /home/ksk/OpenFOAM/ksk-1.5/hex/hex_flow
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
no constant/boundaryRegion information available
no constant/cellTable information available
Number of points = 1999543
Number of fluids = 478208
Number of baffles = 0
Ignored solids = 0
Ignored shells = 0
Number of patches = 5 (including extra for missing)
patch 0 (region 1: inle) type: 'patch' name: inle_1
patch 1 (region 2: inle) type: 'patch' name: inle_2
patch 2 (region 3: inle) type: 'patch' name: inle_3
patch 3 (region 4: outl) type: 'patch' name: outl_4
patch 4 (region 0: none) type: 'patch' name: Default_Boundary_Region
Creating a polyMesh
Maximum possible number of faces in mesh: 5350893
Number of internal faces: 2646535

There are 57823 faces to be patched and 6419 specified - collect missed boundaries to final patch
Missing faces added to patch after face 2652954:
cell 0 face 8 (original cell 1) face: 6(1483044 1323496 890368 890252 890250 1392776)
cell 1 face 7 (original cell 2) face: 5(948366 948363 948359 948358 948362)
cell 2 face 7 (original cell 3) face: 6(1230242 1078451 1078449 948392 948363 948366)
cell 3 face 7 (original cell 4) face: 6(1230241 1004383 1004386 1078441 1078451 1230242)
...

Added 51404 unmatched faces
Number of boundary faces: 6419
Total number of faces: 2704358
Number of interfaces: 0

Default patch type set to empty
cellZone 0 (size: 226350) name: #0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/home/ksk/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/ksk/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted: [0xb7fdf420]
#3 Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifSstream::write(Foam::word const&) in "/home/ksk/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#4 Foam::operator<<(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&, Foam::word const&) in "/home/ksk/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so"
#5 Foam::cellTable::addCellZones(Foam::polyMesh&, Foam::List<int> const&) const in "/home/ksk/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libconversion.so"
#6 Foam::meshReader::addCellZones(Foam::polyMesh&) const in "/home/ksk/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libconversion.so"
#7 Foam::meshReader::mesh(Foam::objectRegistry const&) in "/home/ksk/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libconversion.so"
#8 main in "/home/ksk/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/star4ToFoam"
#9 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#10 __gxx_personality_v0 in "/home/ksk/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/star4ToFoam"
Segmentation fault
ksk@ksk-laptop:~/OpenFOAM/ksk-1.5/hex/hex_flow$

olesen March 6, 2009 02:28

Anybody have any ideas on how
 
Quote:

Anybody have any ideas on how to solve this?
Strangely enough this appears have been patched about 1/2-year ago. There might indeed be a reason to use the OpenFOAM-1.5.x bugfix repository, or is that patched version not working for you either?

commit d6b201bbb5a495b5b2d8507727071c2215519e61
Author: andy <andy>
Date: Wed Sep 24 15:50:43 2008 +0100
meshTables: bugfix and cleanup

- fixed segfault due to missing ++ in namesList()
- use more of the new dictionary functionality

ksk March 6, 2009 06:08

Hi Mark, thanks for answer
 
Hi Mark,

thanks for answering and helping out. I am not familiar with the bugfix repository. How do I use this info you give me?

I am finding this page http://www.opencfd.co.uk/openfoam/download.html but can't get access to git://

I suppose that I should execute this: git clone git://repo.or.cz/OpenFOAM-1.5.x.git in a terminal and locate the commit specified. But what then?

BR Kasper Skriver

olesen March 6, 2009 06:25

1. clone from the repo.or.cz l
 
1. clone from the repo.or.cz location (I believe http transport works too). This gets you the latest version with all of the bugfixes. This is what you should be using.

2. I would recommend making your own local branch (eg, 'kasper') based on the remote repository (origin/master). This lets you make local modifications, but still benefit from the bugfixes.

3. Remake as usual (Allwmake) and go grab lunch.

Later on, you can do a periodic 'git fetch' to update your tracked version of the repo.or.cz repository and use 'git merge' and recompile via Allwmake at your own leisure.


BTW: the learning curve with git is a bit steep (more especially if you haven't used an scm before), but there are a few git video tutorials kicking about that help. The Randal Schwartz google tech talk is really good for a bit of information of what is going on behind the scenes. The time invested there will help.


All times are GMT -4. The time now is 17:13.