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

error message in blocking mesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 11, 2012, 07:31
Default error message in blocking mesh
  #1
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
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, 03:26
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 359
Rep Power: 11
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, 03:50
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   February 13, 2012, 04:41
Default
  #4
Senior Member
 
Join Date: Mar 2011
Posts: 174
Rep Power: 6
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, 06:53
Smile it worked
  #5
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
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

Thread Tools
Display Modes

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 On
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 09:52
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
basic of mesh refinement arya CFX 4 June 19, 2007 12:21


All times are GMT -4. The time now is 19:47.