CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] Error fluentMeshToFoam (https://www.cfd-online.com/Forums/openfoam-meshing/61674-error-fluentmeshtofoam.html)

loneboard January 14, 2009 04:32

Error fluentMeshToFoam
 
I am the newer of OpenFoam, and now I am stopped in the begin. I hope someone could help me:

system: opensuse 10.3
version: openfoam 1.5

The grid was generated with icem in the windows xp system in the form of .msh. Then it is imported to the fluent in the opensuse 10.3.

The mesh file was exported from Fluent with ASCII.

But there is error information as follows:

cui@mfc-falter:~/OpenFOAM/cui-1.5/run/project/Simple_geometry_circular/Flow_1/system> fluentMeshToFoam sucess
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.5 |
| \ / A nd | Web: http://www.OpenFOAM.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : fluentMeshToFoam sucess
Date : Jan 14 2009
Time : 10:19:40
Host : mfc-falter
PID : 31021
Case : /home/cui/OpenFOAM/cui-1.5/run/project/Simple_geometry_circular/Flow_1/system
nProcs : 1

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



cannot open file

file: /home/cui/OpenFOAM/cui-1.5/run/project/Simple_geometry_circular/Flow_1/system/sy stem/controlDict at line 0.

From function regIOobject::readStream(const word&)
in file db/regIOobject/regIOobjectRead.C at line 66.

FOAM exiting

And I also try to use fluent3DMeshToFoam, but there is the error information too.
Moreover, I have tried to import ASII file in the windows xp, and then converted to linux file format, but it doesn't work.
I have tried almost every way in the forum, but it doesn't work.

Who could help me? I feel crazy

caw January 14, 2009 04:42

Hi, you should move to Open
 
Hi,

you should move to OpenFOAM 1.5.x

There, the fluent converters have been improved to handle files written under windows.

Remember: Use ASCII

Best regards Christian

loneboard January 14, 2009 05:01

Thank you!!! In fact, I hav
 
Thank you!!!

In fact, I have converted windows file to linux format.

Do you think it is problem that I generated the file in the windows system?

caw January 14, 2009 05:05

i never succeeded converting f
 
i never succeeded converting fluent cases generated on windows to OF in version 1.5, even when using dos2unix first.

the problem went away with the bugfix in 1.5.x

workaround: load your fluent case into the linux version and rewrite it as ascii

Christian

loneboard January 14, 2009 05:09

Thanks!!! I have tried to l
 
Thanks!!!

I have tried to load my fluent case into linux version and rewritten it as ascii, but it doesn't work! Maybe I need to try to solve it openfoam 1.5.x

floooo January 14, 2009 10:50

Hi I think it is just a pro
 
Hi

I think it is just a problem of folder
At the bigining you ar in system instead of your case directory

cannot open file
file: /home/cui/OpenFOAM/cui-1.5/run/project/Simple_geometry_circular/Flow_1/system/sy stem/controlDict at line 0.

OpenFoam look for controlDict in system folder which doesn't exist.

Try to do the conversion by lunching the command from your case directory :

cd /home/cui/OpenFOAM/cui-1.5/run/project/Simple_geometry_circular/Flow_1

fluentMeshToFoam system/sucess

Florian

caw January 14, 2009 10:57

Thanks florian, i should ha
 
Thanks florian,

i should have read the error massage more closely.
You are right of course.

But still of 1.5.x has a bugfix for the fluent converter for files from windows.

best regards
christian

naveen January 15, 2009 01:49

hi everyone i am new to
 
hi everyone

i am new to openfoam and i used to import gambitmsh to foam but i am not able to convert it into openfoam 1.4.1....could u please send me how to import gambitmsh(ascii format) to foam..

gwierink January 15, 2009 03:30

Hi Naveen, In v1.4.1 you ne
 
Hi Naveen,

In v1.4.1 you need be outside your case directory, e.g. in your run directory where the case is located. The format is then

gambitToFoam <root> <casename> <meshfile> <scale>

In this format <root> is just a dot ("."), e.g. for a case called "cavity" with mesh file "cavity.msh" (located in your cavity case file), built in Gambit in millimeters, type:

gambitToFoam . cavity ./cavity/cavity.msh -scale 0.001

Rgds, Gijs

gwierink January 15, 2009 03:34

Of course you might also use f
 
Of course you might also use fluentMeshToFoam, depending on the solver type you chose in Gambit when building the mesh ...

gwierink January 15, 2009 05:03

Hi Naveen, Hmm, that's a na
 
Hi Naveen,

Hmm, that's a nasty one. I read that more people have problems with it (in OF-1.5) and that 1.5-dev has bug fixes for it, as written in this thread: http://www.cfd-online.com/cgi-bin/Op...126&post=29311. Do you have possibility to install OpenFOAM-1.5-dev?
And another thing, are you the mesh file is in the right format? Did you try using the Fluent 5/6 solver in gambit, save the mesh, and then export it with fluentMeshToFoam?

Rgds, Gijsbert

naveen January 16, 2009 04:45

hi Gijsbert sir i am
 
hi Gijsbert sir

i am new to openfoam 1.4.1...i did naca 0012 airfoil case in fluent and now i used fluentMeshToFoam in openfoam 1.4.1...even though i followed your procedure to convert it into openfoam but i am getting error message....could u please solve this problem...

gwierink January 16, 2009 07:19

It seems to me that your mesh
 
It seems to me that your mesh is not good (but this is just a guess). I would build a very simple mesh in Gambit (like a square box or something) and try to export that to OpenFOAM. This way you may find out if it's a mesh related or openFOAM related issue. Also, read this post on defect meshes: http://www.cfd-online.com/OpenFOAM_D...es/1/3443.html. With the content of the error message I can't help you, would need more specific one.

venkateshtl February 2, 2009 04:01

Hi freinds can any he
 
Hi freinds

can any help me to convert fluentMeshtoFoam i am finding some difficulty

venkateshtl February 2, 2009 04:14

Hi freinds can any he
 
Hi freinds

can any help me to convert fluentMeshtoFoam i am finding some difficulty

gwierink February 2, 2009 05:46

Hi Venkatesh, Can you speci
 
Hi Venkatesh,

Can you specify your problem? What is the error message, for example?

Rgds, Gijsbert

venkateshtl February 2, 2009 05:57

Gijsbert Wierink sir
 
Gijsbert Wierink sir

my problem is that i hav done the naca 0012 airfoil case in gambit and i solved in fluent 6.3 ...now i want to compare these results in openfoam 1.4.1..now i need to import to fluentMeshTofoam in openfoam 1.4.1...can u tell me the procedure how to import the (.msh) file to openfoam 1.4.1..for example i used this format for conversion(my case name is-naca0012.msh) fluentMeshToFoam . naca0012 ./naca0012/naca0012.msh -scale 0.001...please send me the procedure of conversion..

gwierink February 2, 2009 06:09

Hi Venkatesh, The command y
 
Hi Venkatesh,

The command you use seems the right one. Do you get an error message? And what does it say? Also, where do you run the command, i.e. are you in the right path? You need to run the command when you are in the path where the case file is located.

Rgds, Gijsbert

naveen February 4, 2009 01:59

hi Christian Winkler sir
 
hi Christian Winkler sir

I have tried to load my fluent case into linux version and rewritten it as ascii, but it doesn't work! Maybe I need to try to solve it in openfoam 1.4.1 ..could u please help me how to import to openfoam using fluentMeshTofoam..

maruthamuthu_venkatraman February 4, 2009 02:49

Hello Naveen, W
 
Hello Naveen,
While writing the case file in Fluent remember to uncheck the Binary Opitions ...
This works well in OpenFoam 1.5 version. It wroked well for me sofar in simple geomtery cases..

Try this option. May be it works in 1.4 version aswell...

Regards


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