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

trouble with fluentmeshtofoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 25, 2012, 08:03
Unhappy trouble with fluentmeshtofoam
  #1
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
Hi ,friends.I use fluent to get a .cas file with ascii format.when i use the command of fluent3DMeshToFoam Lask.cas.I get the following error:--> FOAM FATAL ERROR:
Do not understand characters: /
on line 157058

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 747.

FOAM exiting
I do not understand why there are so many error about the characters.Please tell me how to get rid of it if you know.Thanks a lot.
hei@ge is offline   Reply With Quote

Old   March 25, 2012, 08:37
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,

fluent3DMeshToFoam takes the fluent ".msh" mesh file as an input, not the fluent case file.

Philip
bigphil is offline   Reply With Quote

Old   March 25, 2012, 08:50
Default
  #3
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
when i use .msh file ,i also get trouble:--> FOAM FATAL ERROR:
Do not understand characters:
on line 1066402

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 747.

FOAM exiting

can you tell me how to get rid of it.thanks a lot.
hei@ge is offline   Reply With Quote

Old   March 25, 2012, 09:00
Default
  #4
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
It should work with the mesh ".msh" file.
Essentially fluent3DMeshToFoam is complaining that it doesn't recognise the character on line 1066402 of the msh file, is it possible that the msh file is corrupt?

It seems like quite a large mesh, maybe try converting a simple small mesh and see if it works.

Or you can upload a msh you are having trouble with here and I can try it out.

Philip
bigphil is offline   Reply With Quote

Old   March 25, 2012, 09:06
Default
  #5
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
I am so sorry i do not know how to upload my case on it.Can you tell me ?Thanks a lot.
hei@ge is offline   Reply With Quote

Old   March 25, 2012, 09:15
Default
  #6
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
I saw some people use dos2unix,is my file's format wrong?
hei@ge is offline   Reply With Quote

Old   March 25, 2012, 09:17
Default
  #7
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
if you are free.i can give you my case through e-mail.
hei@ge is offline   Reply With Quote

Old   March 25, 2012, 09:45
Default
  #8
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
You do not need to convert the file with dos2unix.

You can create a dropbox account (www.dropbox.com), then upload the msh file and post the public link to the file here.

Did you try making a small simple msh file?

Philip
bigphil is offline   Reply With Quote

Old   March 25, 2012, 10:04
Default
  #9
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
No,becase i am in the ubuntu system.and i think the number of the mesh should not the matter ,but i will try it tommrow.i will also upload my mesh to the dropbox.
hei@ge is offline   Reply With Quote

Old   March 26, 2012, 03:29
Default
  #10
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Are you converting an ASCII file? Binary won't work (I know, I wrote it).

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   March 26, 2012, 07:23
Default
  #11
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
Yes,i get .cas file through fluent,and i delete the binary.I make my number of mesh become smaller,it works.Can you find the reason? thanks a lot.
hei@ge is offline   Reply With Quote

Old   March 26, 2012, 07:24
Default
  #12
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
I make a small simple mesh .it works. can you find the reason?thanks a lot.
hei@ge is offline   Reply With Quote

Old   March 26, 2012, 07:52
Default
  #13
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
hei@ge,

There may be a number of reasons why your large mesh is not being converted, possibly there are errors in your large mesh, or maybe your large mesh is not being written correctly, or maybe the mesh file is being corrupted if it is not copied properly.

I would check in fluent that your mesh does not have errors. Also you could try upload a dropbox link to your mesh here and I can have a look at it.

Philip
bigphil is offline   Reply With Quote

Old   March 26, 2012, 07:56
Default
  #14
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
Thank you very much for your sincere help.I do not have a dropbox. and i am in the ubuntu,can you give me your e-mail adreass if you are free.Thanks again.
hei@ge is offline   Reply With Quote

Old   March 26, 2012, 08:04
Default
  #15
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
i try to get a account of dropbox ,but i fail.
hei@ge is offline   Reply With Quote

Old   March 26, 2012, 08:13
Default
  #16
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
the following is the information for Grid Check in fluent
Grid Check
Domain Extents:
x-coordinate: min (m) = -1.500000e+003, max (m) = 6.894960e+002
y-coordinate: min (m) = -1.199900e+003, max (m) = 1.500000e+003
z-coordinate: min (m) = 0.000000e+000, max (m) = 1.500000e+003
Volume statistics:
minimum volume (m3): 2.909061e+003
maximum volume (m3): 4.902152e+004
total volume (m3): 8.715825e+009
Face area statistics:
minimum face area (m2): 1.248621e+002
maximum face area (m2): 2.106185e+003
Checking number of nodes per cell.
Checking number of faces per cell.
Checking thread pointers.
Checking number of cells per face.
Checking face cells.
Checking bridge faces.
Checking right-handed cells.
Checking face handedness.
Checking face node order.
Checking element type consistency.
Checking boundary types:
Checking face pairs.
Checking periodic boundaries.
Checking node count.
Checking nosolve cell count.
Checking nosolve face count.
Checking face children.
Checking cell children.
Checking storage.
hei@ge is offline   Reply With Quote

Old   March 26, 2012, 09:04
Default
  #17
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
hei@ge,

I am not familiar with fluent grid check.

If you go to www.dropbox.com, you can create an account for free using your email address. then upload your mesh and post a public link to it here.

Philip
bigphil is offline   Reply With Quote

Old   March 26, 2012, 21:16
Default
  #18
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
https://dl-web.dropbox.com/u/69253136/Lask.cas,this is my .cas file.please help me to check it when you are free.Thanks again.
hei@ge is offline   Reply With Quote

Old   March 27, 2012, 01:01
Default
  #19
Member
 
张德胜
Join Date: Oct 2011
Posts: 71
Rep Power: 14
hei@ge is on a distinguished road
Hi,bigphil,Thanks very much for your help.I get another .cas file which also has a large number of mesh. To my surprised ,it works.but i do not know the reason. do you have a look at my case? I hope you can get the reason.thanks again.
My English is so so.
hei@ge is offline   Reply With Quote

Old   March 27, 2012, 04:46
Default
  #20
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by hei@ge View Post
https://dl-web.dropbox.com/u/69253136/Lask.cas,this is my .cas file.please help me to check it when you are free.Thanks again.
This mesh converts correctly for me using fluent3DMeshToFoam in OpenFOAM-1.6-ext.

I am not sure why some of your meshes convert correctly and some do not. Just make sure the mesh files are copied properly when moving them.

Philip
bigphil is offline   Reply With Quote

Reply

Tags
fluentmeshtofoam


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] fluentMeshToFoam: "fluent patch type shadow not recognised" preibie OpenFOAM Meshing & Mesh Conversion 28 March 29, 2017 04:56
[Commercial meshers] Converting a mesh with splitted cells using fluentMeshToFoam jlpelerin OpenFOAM Meshing & Mesh Conversion 4 April 25, 2011 16:56
[ICEM] trouble with mesh quality from ICEM in CFX Solver escher25 ANSYS Meshing & Geometry 0 February 28, 2011 07:38
[GAMBIT] Trouble meshing complex VOF geometry RPJones ANSYS Meshing & Geometry 2 February 14, 2011 18:54
trouble with velocity BC at the inlet sambatra OpenFOAM Running, Solving & CFD 0 October 18, 2010 11:11


All times are GMT -4. The time now is 23:51.