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

gmshToFoam problem.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2009, 12:50
Default gmshToFoam problem.
  #1
New Member
 
Nilas
Join Date: Dec 2009
Posts: 1
Rep Power: 0
nilashansen is on a distinguished road
Hi.

I'm quite new at using OpenFOAM, but I'm getting there. I'm trying to convert a gmsh mesh to FOAM format, using gmshToFoam. Every time I do so I get an error message (Shown at the end of this post).

First I thought that it was a problem with the physical entities format (see the thread gmshToFoam : problem with patch). So I tried to do the sample provide with the OpenFoam installation in applications/utilities/mesh/conversion/gmshToFoam/gmsh/.CubeVer1.msh. This did not work either.

Does any of you have suggestions of what might be the problem. I'am running ubuntu 9.10 if that can be of any help.

Thanks.

Best regards,
Nilas Hansen


nilas@nilas-desktop:~/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/mesh/conversion/gmshToFoam$ gmshToFoam gmesh/CubeVer1.msh/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6.x-f7a690f5c3ca
Exec : gmshToFoam gmesh/CubeVer1.msh
Date : Dec 09 2009
Time : 17:46:54
Host : nilas-desktop
PID : 2705
Case : /home/nilas/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/mesh/conversion/gmshToFoam
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/nilas/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/mesh/conversion/gmshToFoam/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 62.

FOAM exiting

nilas@nilas-desktop:~/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/mesh/conversion/gmshToFoam$
nilashansen is offline   Reply With Quote

Old   December 10, 2009, 02:55
Default
  #2
New Member
 
Alan Harrland
Join Date: Mar 2009
Posts: 21
Rep Power: 7
Alan is on a distinguished road
try:

gmshToFoam$ gmshToFoam gmesh/CubeVer1

without the .msh extension, I have found that gmsh sometimes doesnt export with the .msh extension, hence gmshtofoam can't find the file
Alan is offline   Reply With Quote

Old   December 10, 2009, 06:37
Default
  #3
Member
 
Etienne Lorriaux
Join Date: Mar 2009
Location: Compiegne, France
Posts: 43
Rep Power: 7
elorriaux is on a distinguished road
Quote:
Originally Posted by nilashansen View Post
Hi.
nilas@nilas-desktop:~/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/mesh/conversion/gmshToFoam$ gmshToFoam gmesh/CubeVer1.msh/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.6.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.6.x-f7a690f5c3ca
Exec : gmshToFoam gmesh/CubeVer1.msh
Date : Dec 09 2009
Time : 17:46:54
Host : nilas-desktop
PID : 2705
Case : /home/nilas/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/mesh/conversion/gmshToFoam
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/nilas/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/mesh/conversion/gmshToFoam/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 62.

FOAM exiting
You are trying to convert a mesh without setting up a directory path for the OF case. This error is totally normal and has nothing to do with the conversion tool.
elorriaux is offline   Reply With Quote

Old   December 15, 2009, 04:23
Default
  #4
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
elorriaux,

I set up my directory path and a controlDict file and made it passed the error. Unfortunately I keep hitting other errors.

Just out of curiosity: do i need to put any special instructions for the gmshToFoam function in the controlDict file? (seems logical since it has to reference it, but im not sure)


Thanks for your help!
ericnutsch is offline   Reply With Quote

Old   December 15, 2009, 06:19
Default
  #5
New Member
 
Alan Harrland
Join Date: Mar 2009
Posts: 21
Rep Power: 7
Alan is on a distinguished road
no, the controlDict file (and all other files not in the constant/polymesh directory) are independent of the mesh file. I'd say theres a problem with your mesh if you are still getting errors.
Alan is offline   Reply With Quote

Old   December 28, 2009, 13:41
Default
  #6
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
Indeed, there was a problem with my mesh. Thanks for your help Alan.
ericnutsch 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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 11:33
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


All times are GMT -4. The time now is 14:49.