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: 9
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: 9
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: 113
Rep Power: 9
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: 9
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: 113
Rep Power: 9
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

Old   June 1, 2016, 15:38
Default gmshToFoam
  #7
New Member
 
Ajay Boora
Join Date: Jun 2016
Posts: 4
Rep Power: 2
ajayboora14 is on a distinguished road
friends my gmshToFoam command is not working

in terminal it show
gmshToFoam command not found
other all mesh conversion command are working properly
ajayboora14 is offline   Reply With Quote

Old   June 4, 2016, 19:37
Default
  #8
New Member
 
Join Date: Jun 2016
Posts: 9
Rep Power: 2
coloursfordirectors is on a distinguished road
Same problem here on Ubuntu 15.10 and OpenFoam 3.0.1. Any clues what the problem might be?
coloursfordirectors is offline   Reply With Quote

Old   June 5, 2016, 05:52
Default
  #9
New Member
 
Ajay Boora
Join Date: Jun 2016
Posts: 4
Rep Power: 2
ajayboora14 is on a distinguished road
Mine problem is solved it is not working because your OpenFOAM software is not installed properly so first you have to remove your existing software and reinstall it by the help of command mention in www.OpenFOAM.org

Installation tme in these command is very less and OpenFOAM will work correctly.
This is the site of OpenFOAM developers the installation command work for only ubuntu 15.10 and 14.04 if you intstalled latest version of ubuntu you have to compile manually and it will work
ajayboora14 is offline   Reply With Quote

Old   June 5, 2016, 07:00
Default
  #10
New Member
 
Join Date: Jun 2016
Posts: 9
Rep Power: 2
coloursfordirectors is on a distinguished road
Hi Ajay, thanks for your quick response. I followed steps 1 to 3 under new installation on http://openfoam.org/download/3-0-1-ubuntu/ and left out step 4 as I already have ParaView installed. Is there anything else that needs to be done?
coloursfordirectors is offline   Reply With Quote

Old   June 5, 2016, 09:49
Default
  #11
New Member
 
Ajay Boora
Join Date: Jun 2016
Posts: 4
Rep Power: 2
ajayboora14 is on a distinguished road
You don't need anything else to do perform a check if everything works okay than go ahead.Check all the commands are working properly or not may be this time they are working properly.
you can ask any query at https://cfdforbeginner.blogspot.in/
Its a blog for beginners in CFD
ajayboora14 is offline   Reply With Quote

Old   June 5, 2016, 10:45
Default
  #12
New Member
 
Join Date: Jun 2016
Posts: 9
Rep Power: 2
coloursfordirectors is on a distinguished road
Thanks, Ajay. gmshToFoam is still not working, but I'll try to figure out.
coloursfordirectors 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 04:43
Incoherent problem table in hollow-fiber spinning Gianni FLUENT 0 April 5, 2008 10:33
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


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