|
[Sponsors] |
December 15, 2009, 03:44 |
gmshToFoam troubleshooting
|
#1 |
Senior Member
|
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! |
|
December 19, 2009, 10:52 |
Problem fixed
|
#2 |
Senior Member
|
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. |
|
December 29, 2009, 13:21 |
|
#3 |
Senior Member
|
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! Last edited by ericnutsch; January 5, 2010 at 13:44. |
|
August 27, 2010, 11:11 |
|
#4 |
Senior Member
Join Date: Apr 2010
Posts: 151
Rep Power: 16 |
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 |
|
|
|
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 |