CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

GmshToFoam basic question

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 12, 2007, 15:29
Default I am attempting to use the gms
  #1
New Member
 
Trinia Dzurny
Join Date: Mar 2009
Posts: 4
Rep Power: 8
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   January 12, 2007, 16:09
Default I think it reads the file from
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
I think it reads the file from the current directory. Is the file in there?
mattijs is offline   Reply With Quote

Old   January 12, 2007, 19:34
Default Thanks, your messae got me thi
  #3
New Member
 
Trinia Dzurny
Join Date: Mar 2009
Posts: 4
Rep Power: 8
tdzurny is on a distinguished road
Thanks, your messae got me thinking. I found my problem. I needed to include the entire path to the *.msh file in the FoamX dialogue (i.e. the <meshfile> item value needs to include the entire path to the *.msh file). I assumed I just need the file name as long as the *.msh file was in the case directory. At least gmshToFoam reads the *.msh file but I get lots of warnings now and paraFoam crashes when I try to read the converted mesh. So now I have something else to work on.

Thanks
tdzurny is offline   Reply With Quote

Old   December 3, 2007, 11:22
Default Have you found your error why
  #4
New Member
 
Ulrich Naeger
Join Date: Mar 2009
Posts: 1
Rep Power: 0
unaeger is on a distinguished road
Have you found your error why paraFoam crashed? I converted my mesh in the same way and it crashes also. So maybe you can give me some hints why.

Thanks
unaeger 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 basic question tdzurny Open Source Meshers: Gmsh, Netgen, CGNS, ... 1 August 30, 2009 17:52
Basic Question Abhi FLUENT 1 August 4, 2007 08:07
New to CFD with some basic question Newbie Main CFD Forum 3 October 23, 2006 12:22
LES..Basic Question NIK Main CFD Forum 13 May 19, 2004 19:03
[basic question] beginner Main CFD Forum 4 March 14, 2002 05:15


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