CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Commercial meshers] Error fluentMeshToFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2009, 05:32
Default Error fluentMeshToFoam
  #1
New Member
 
xinguang cui
Join Date: Mar 2009
Location: Heidelberg, Germany
Posts: 9
Rep Power: 17
loneboard is on a distinguished road
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
loneboard is offline   Reply With Quote

Old   January 14, 2009, 05:42
Default Hi, you should move to Open
  #2
caw
Member
 
Christian Winkler
Join Date: Mar 2009
Location: Mannheim, Germany
Posts: 63
Rep Power: 17
caw is on a distinguished road
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
caw is offline   Reply With Quote

Old   January 14, 2009, 06:01
Default Thank you!!! In fact, I hav
  #3
New Member
 
xinguang cui
Join Date: Mar 2009
Location: Heidelberg, Germany
Posts: 9
Rep Power: 17
loneboard is on a distinguished road
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?
loneboard is offline   Reply With Quote

Old   January 14, 2009, 06:05
Default i never succeeded converting f
  #4
caw
Member
 
Christian Winkler
Join Date: Mar 2009
Location: Mannheim, Germany
Posts: 63
Rep Power: 17
caw is on a distinguished road
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
caw is offline   Reply With Quote

Old   January 14, 2009, 06:09
Default Thanks!!! I have tried to l
  #5
New Member
 
xinguang cui
Join Date: Mar 2009
Location: Heidelberg, Germany
Posts: 9
Rep Power: 17
loneboard is on a distinguished road
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
loneboard is offline   Reply With Quote

Old   January 14, 2009, 11:50
Default Hi I think it is just a pro
  #6
Member
 
florian
Join Date: Mar 2009
Location: Mannheim - Vincennes - Valenciennes, Deutchland - France
Posts: 34
Rep Power: 17
floooo is on a distinguished road
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
floooo is offline   Reply With Quote

Old   January 14, 2009, 11:57
Default Thanks florian, i should ha
  #7
caw
Member
 
Christian Winkler
Join Date: Mar 2009
Location: Mannheim, Germany
Posts: 63
Rep Power: 17
caw is on a distinguished road
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
caw is offline   Reply With Quote

Old   January 15, 2009, 02:49
Default hi everyone i am new to
  #8
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
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..
naveen is offline   Reply With Quote

Old   January 15, 2009, 04:30
Default Hi Naveen, In v1.4.1 you ne
  #9
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
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
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   January 15, 2009, 04:34
Default Of course you might also use f
  #10
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Of course you might also use fluentMeshToFoam, depending on the solver type you chose in Gambit when building the mesh ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   January 15, 2009, 06:03
Default Hi Naveen, Hmm, that's a na
  #11
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
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
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   January 16, 2009, 05:45
Default hi Gijsbert sir i am
  #12
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
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...
naveen is offline   Reply With Quote

Old   January 16, 2009, 08:19
Default It seems to me that your mesh
  #13
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
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.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 2, 2009, 05:01
Default Hi freinds can any he
  #14
venkateshtl
Guest
 
Posts: n/a
Hi freinds

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

Old   February 2, 2009, 05:14
Default Hi freinds can any he
  #15
venkateshtl
Guest
 
Posts: n/a
Hi freinds

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

Old   February 2, 2009, 06:46
Default Hi Venkatesh, Can you speci
  #16
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Venkatesh,

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

Rgds, Gijsbert
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 2, 2009, 06:57
Default Gijsbert Wierink sir
  #17
venkateshtl
Guest
 
Posts: n/a
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..
  Reply With Quote

Old   February 2, 2009, 07:09
Default Hi Venkatesh, The command y
  #18
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
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
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 4, 2009, 02:59
Default hi Christian Winkler sir
  #19
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
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..
naveen is offline   Reply With Quote

Old   February 4, 2009, 03:49
Default Hello Naveen, W
  #20
Member
 
Maruthamuthu Venkatraman
Join Date: Mar 2009
Location: Norway
Posts: 80
Rep Power: 17
maruthamuthu_venkatraman is on a distinguished road
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
maruthamuthu_venkatraman is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On



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