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

error message in blocking mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2012, 06:31
Default error message in blocking mesh
  #1
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Hi,

when trying to run one of tutorial cases (angled duct explicit) i got this error

--> FOAM FATAL ERROR:
Cannot open mesh description file
"/home/khattab/ahmed-2.1.0/run/tutorials/incompressible/porousSimpleFoam/angledDuctExplicit1/constant/polyMesh/blockMeshDict"


From function blockMesh
in file blockMeshApp.C at line 148.

FOAM exiting

this file has .m4 extension

thanks
Ahmed Khattab is offline   Reply With Quote

Old   February 13, 2012, 02:26
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 20
romant is on a distinguished road
Quote:
Originally Posted by rebel ahmed View Post
Hi,

when trying to run one of tutorial cases (angled duct explicit) i got this error

--> FOAM FATAL ERROR:
Cannot open mesh description file
"/home/khattab/ahmed-2.1.0/run/tutorials/incompressible/porousSimpleFoam/angledDuctExplicit1/constant/polyMesh/blockMeshDict"


From function blockMesh
in file blockMeshApp.C at line 148.

FOAM exiting

this file has .m4 extension

thanks

What do u mean "the file has .m4 extension"?
__________________
~roman
romant is offline   Reply With Quote

Old   February 13, 2012, 02:50
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Check the Allrun file in that directory: You have to pre-process the file before you can use it:

Code:
m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
blockMesh
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   February 13, 2012, 03:41
Default
  #4
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
anon_a is on a distinguished road
m4 is a preprocessor and it can assist you in defining your geometry with variables and make many calculations automatically. And it's really easy too, if you use blockMesh a lot, I would suggest checking that out.

http://en.wikipedia.org/wiki/M4_%28computer_language%29
anon_a is offline   Reply With Quote

Old   February 15, 2012, 05:53
Smile it worked
  #5
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 182
Blog Entries: 1
Rep Power: 16
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by akidess View Post
Check the Allrun file in that directory: You have to pre-process the file before you can use it:

Code:
m4 constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
blockMesh
thank you very much. it worked properly now. very grateful for you.
Ahmed Khattab 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Negative volume error in hybrid mesh siw ANSYS Meshing & Geometry 4 September 3, 2014 05:25
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 06:42
[ICEM] Problem making structured mesh on a surface froztbear ANSYS Meshing & Geometry 4 November 10, 2011 08:52
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
basic of mesh refinement arya CFX 4 June 19, 2007 12:21


All times are GMT -4. The time now is 04:52.