|
[Sponsors] |
December 9, 2009, 12:50 |
gmshToFoam problem.
|
#1 |
New Member
Nilas
Join Date: Dec 2009
Posts: 1
Rep Power: 0 |
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$ |
|
December 10, 2009, 02:55 |
|
#2 |
New Member
Alan Harrland
Join Date: Mar 2009
Posts: 21
Rep Power: 17 |
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 |
|
December 10, 2009, 06:37 |
|
#3 | |
Member
Etienne Lorriaux
Join Date: Mar 2009
Location: Compiegne, France
Posts: 45
Rep Power: 17 |
Quote:
|
||
December 15, 2009, 04:23 |
|
#4 |
Senior Member
|
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! |
|
December 15, 2009, 06:19 |
|
#5 |
New Member
Alan Harrland
Join Date: Mar 2009
Posts: 21
Rep Power: 17 |
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.
|
|
December 28, 2009, 13:41 |
|
#6 |
Senior Member
|
Indeed, there was a problem with my mesh. Thanks for your help Alan.
|
|
June 1, 2016, 16:38 |
gmshToFoam
|
#7 |
New Member
Ajay Boora
Join Date: Jun 2016
Posts: 4
Rep Power: 10 |
friends my gmshToFoam command is not working
in terminal it show gmshToFoam command not found other all mesh conversion command are working properly |
|
June 4, 2016, 20:37 |
|
#8 |
New Member
Join Date: Jun 2016
Posts: 9
Rep Power: 10 |
Same problem here on Ubuntu 15.10 and OpenFoam 3.0.1. Any clues what the problem might be?
|
|
June 5, 2016, 06:52 |
|
#9 |
New Member
Ajay Boora
Join Date: Jun 2016
Posts: 4
Rep Power: 10 |
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 |
|
June 5, 2016, 08:00 |
|
#10 |
New Member
Join Date: Jun 2016
Posts: 9
Rep Power: 10 |
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?
|
|
June 5, 2016, 10:49 |
|
#11 |
New Member
Ajay Boora
Join Date: Jun 2016
Posts: 4
Rep Power: 10 |
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 |
|
June 5, 2016, 11:45 |
|
#12 |
New Member
Join Date: Jun 2016
Posts: 9
Rep Power: 10 |
Thanks, Ajay. gmshToFoam is still not working, but I'll try to figure out.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
area does not match neighbour by ... % -- possible face ordering problem | St.Pacholak | OpenFOAM | 11 | September 4, 2024 05:28 |
Convergence Problem in Multiphase problem (three phases) | m.uzair | FLUENT | 0 | August 2, 2018 09:23 |
Large problem partitioner | tzy | CFX | 3 | February 7, 2018 18:11 |
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 |