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

[Gmsh] GmshToFoam basic question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2007, 14:27
Default GmshToFoam basic question
  #1
New Member
 
Trinia Dzurny
Join Date: Mar 2009
Posts: 4
Rep Power: 17
tdzurny is on a distinguished road
I am attempting to use the gmshToFoam utility for the first time and am getting an error. I was wondering if someone could point me in the right direction. Here is what I did:

(1) Created a new case <gmsh> using FoamX.
(2) Found the file "CubeVer1.msh" that came with the OpenFOAM installation and verified that it could be read by Gmsh.
(3) Copied "CubeVer1.msh" to the root directory of my new <gmsh> case and also copied it to gmsh/constant/polymesh. I wasn't sure if the *.msh file needed to be in the /polymesh directory.
(4) Invoked the gmshToFoam utility from FoamX and from the command line.

Here is the error message I get:

Exec : gmshToFoam /home/tmolls/OpenFOAM/tmolls-1.3/run/test gmsh CubeVer1.msh
Date : Jan 12 2007
Time : 11:17:05
Host : cfd01
PID : 9442
Root : /home/tmolls/OpenFOAM/tmolls-1.3/run/test
Case : gmsh
Nprocs : 1
Create time



--> FOAM FATAL IO ERROR : Attempt to get back from bad stream

file: CubeVer1.msh at line 1.

From function void Istream::getBack(token& t)
in file db/IOstreams/IOstreams/Istream.C at line 44.

FOAM exiting

--------------------------------------

Can anybody help me out and let me know what I am doing wrong? Thanks in advance.
tdzurny is offline   Reply With Quote

Old   August 30, 2009, 17:52
Default
  #2
Senior Member
 
Steve Hansel
Join Date: Jun 2009
Location: Colorado, USA
Posts: 112
Rep Power: 16
hansel is on a distinguished road
I got that error when I typed the wrong mesh file name in the command.
hansel 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
Basic question on motorBike tutorial newToOpenFoam OpenFOAM Running, Solving & CFD 2 July 14, 2011 09:50
[Gmsh] A basic Gmsh question: 1D transfinite the_phew OpenFOAM Meshing & Mesh Conversion 0 May 10, 2011 10:58
Basic question to buoyantBoussinesqPisoFoam kriz OpenFOAM 2 June 12, 2010 03:35
Basic Question Abhi FLUENT 1 August 4, 2007 08:07
Basic question: UDF for wall heat flux Carl FLUENT 1 August 5, 2006 19:01


All times are GMT -4. The time now is 18:58.