CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] gmshToFoam troubleshooting

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2009, 03:44
Unhappy gmshToFoam troubleshooting
  #1
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 16
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, 10:52
Default Problem fixed
  #2
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 16
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, 13:21
Default
  #3
Senior Member
 
Eric Nutsch
Join Date: Sep 2009
Location: Eugene, Oregon USA
Posts: 113
Rep Power: 16
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 13:44.
ericnutsch is offline   Reply With Quote

Old   August 27, 2010, 11:11
Default
  #4
Senior Member
 
Join Date: Apr 2010
Posts: 151
Rep Power: 16
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


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
[Gmsh] New version of gmshToFoam? stootoon OpenFOAM Meshing & Mesh Conversion 7 February 14, 2022 09:01
[Gmsh] gmshToFoam problem. nilashansen OpenFOAM Meshing & Mesh Conversion 11 June 5, 2016 10:45
[Gmsh] Cell to node connectivity after 'gmshToFoam' Jibran OpenFOAM Meshing & Mesh Conversion 1 June 8, 2015 09:09
[Gmsh] gmshTofoam pbm with cyclicAMI acahuzac OpenFOAM Meshing & Mesh Conversion 2 October 20, 2014 03:53
[Gmsh] gmshToFoam command mvinassa OpenFOAM Meshing & Mesh Conversion 1 April 25, 2014 07:36


All times are GMT -4. The time now is 01:56.