CFD Online URL
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

gmshToFoam troubleshooting

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 15, 2009, 04:44
Unhappy gmshToFoam troubleshooting
  #1
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 112
Rep Power: 7
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
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>:perator[](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 is offline   Reply With Quote

Old   December 19, 2009, 11:52
Default Problem fixed
  #2
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 112
Rep Power: 7
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
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 is offline   Reply With Quote

Old   December 29, 2009, 14:21
Default
  #3
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 112
Rep Power: 7
ericnutsch is on a distinguished road
Send a message via Skype™ to ericnutsch
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!
Attached Files
File Type: gz myAirfoil.geo.gz (362 Bytes, 26 views)

Last edited by ericnutsch; January 5, 2010 at 14:44.
ericnutsch is offline   Reply With Quote

Old   August 27, 2010, 12:11
Default
  #4
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 6
flowris is on a distinguished road
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
flowris 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
GmshToFoam FOAM FATAL ERROR faces deallocated Tobias Prousa (Prousa) Open Source Meshers: Gmsh, Netgen, CGNS, ... 14 January 31, 2012 11:45
gmshToFoam problem. nilashansen Open Source Meshers: Gmsh, Netgen, CGNS, ... 5 December 28, 2009 13:41
gmshToFoam : problem with patch jmf Open Source Meshers: Gmsh, Netgen, CGNS, ... 3 October 4, 2009 17:27
GmshToFoam basic question tdzurny Open Source Meshers: Gmsh, Netgen, CGNS, ... 1 August 30, 2009 18:52
GmshToFoam basic question tdzurny Open Source Meshers: Gmsh, Netgen, CGNS, ... 3 December 3, 2007 11:22


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