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/)
-   -   [Gmsh] gmshToFoam troubleshooting (https://www.cfd-online.com/Forums/openfoam-meshing/71083-gmshtofoam-troubleshooting.html)

ericnutsch December 15, 2009 03:44

gmshToFoam troubleshooting
 
Would you mind pointing me in the right direction...

I think the error i am getting may be independent of the mesh. However I have attached the reference anyway(just load the .geo into gmsh and click 1D then 2D for final mesh)


The output:
.................................................. ....................
...
36038
36039
36040
)

From function HashTable<T, Key, Hash>::operator[](const Key&) const
in file /home/eric/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude/HashTableI.H at line 128.

FOAM exiting
.................................................. ....................


P.S. im running Openfoam1.6 (git gcc compiled 12/14/09) on Ubuntu 9.10

Right now i think the error could be due to any of the following; gmshToFoam utility, compiler issues, Ubuntu 9.10 issues, my mesh, my control dic file. If you can knock one or more off the list it would be greatly appreciated.

Thanks guys!

ericnutsch December 19, 2009 10:52

Problem fixed
 
I have managed to fix my problem. Unfortunatly I am not certian how. I deleted my mesh and started from scratch and what do ya know; it imported perfectly with gmshToFoam and checked out with checkMesh.

I have attached my working .msh file if anyone would like to use it to test their gmshToFoam function.

From that point I edited my boundary, v, and U file. The errors are pretty self explanatory at that point.

ericnutsch December 29, 2009 13:21

1 Attachment(s)
Maybe the file actually uploaded this time... :)


(the mesh file wont upload because it is too big; just open the geo file in gmsh and click Mesh>3D and save the mesh.)

it took me quite a while to debug my gmsh-FOAM setup, hope this helps someone (otherwise im just talking to myself in here :) )

cheers!

flowris August 27, 2010 11:11

Eric,

I am trying your attached file, but something does not work. I can generate the mesh with gmesh, and I save it. When I do

gmshToFoam myAirfoil.msh

I get following error:

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.5-dev                              |
|  \\  /    A nd          | Revision: exported                              |
|    \\/    M anipulation  | Web:      http://www.OpenFOAM.org              |
\*---------------------------------------------------------------------------*/
Exec  : gmshToFoam myAirfoil.msh
Date  : Aug 27 2010
Time  : 17:12:43
Host  : rmawsynab105478
PID    : 8592
Case  : /home/jmatthei/OpenFOAM/jmatthei-1.5-dev/run/Airfoil/gmshFoils/airfoilForum
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Found $MeshFormat tag; assuming version 2 file format.
Starting to read physical names at line 5
Physical names:7


wrong token type - expected string found on line 0 the label 1

file: IStringStream.sourceFile at line 0.

    From function operator>>(Istream&, string&)
    in file primitives/strings/string/stringIO.C at line 57.

FOAM exiting



All times are GMT -4. The time now is 11:39.