CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   error message in blocking mesh (https://www.cfd-online.com/Forums/openfoam-pre-processing/97199-error-message-blocking-mesh.html)

Ahmed Khattab February 11, 2012 06:31

error message in blocking mesh
 
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

romant February 13, 2012 02:26

Quote:

Originally Posted by rebel ahmed (Post 343911)
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"?

akidess February 13, 2012 02:50

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


anon_a February 13, 2012 03:41

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

Ahmed Khattab February 15, 2012 05:53

it worked
 
Quote:

Originally Posted by akidess (Post 344079)
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.:)


All times are GMT -4. The time now is 21:32.