CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Native Meshers: blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/)
-   -   blockMesh (http://www.cfd-online.com/Forums/openfoam-meshing-blockmesh/95132-blockmesh.html)

rosh December 7, 2011 06:25

blockMesh
 
Hi everyone!

I'm new to this forum... I have started to work with OpenFoam for a week. but as I want to generate my Mesh by running blockMesh in terminal, I get this error:

From function blockMesh
in file blockMeshApp.C at line 148

even I tried to run the Cavity example in tutorial and i did all right step by step, but I get the same error.

Is there someone who knows why it happens???

romant December 7, 2011 09:37

Please post the full output of the error message, this message does not tell anything. put the error message into the code block feature in the editor when posting it. it is the little "#" at the top of the editor.

rosh December 7, 2011 10:00

Thanks Roman for your reply... after I run it on the terminal, I get this error:

fluid@fluid-desktop:~/OpenFOAM/fluidvt-2.0.1/run/example1$ blockMesh/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-51f1de99a4bc
Exec : blockMesh
Date : Dec 07 2011
Time : 14:48:17
Host : fluid-desktop
PID : 6835
Case : /home/fluid/OpenFOAM/fluidvt-2.0.1/run/example1
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL ERROR:
Cannot open mesh description file
"/home/fluid/OpenFOAM/fluidvt-2.0.1/run/example1/constant/polyMesh/blockMeshDict"


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

FOAM exiting

romant December 7, 2011 10:03

Quote:

Originally Posted by rosh (Post 335018)
Thanks Roman for your reply... after I run it on the terminal, I get this error:

fluid@fluid-desktop:~/OpenFOAM/fluidvt-2.0.1/run/example1$ blockMesh/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.1-51f1de99a4bc
Exec : blockMesh
Date : Dec 07 2011
Time : 14:48:17
Host : fluid-desktop
PID : 6835
Case : /home/fluid/OpenFOAM/fluidvt-2.0.1/run/example1
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time



--> FOAM FATAL ERROR:
Cannot open mesh description file
"/home/fluid/OpenFOAM/fluidvt-2.0.1/run/example1/constant/polyMesh/blockMeshDict"


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

FOAM exiting

OpenFOAM is quite good at telling you what is wrong. So when you read the output right, then it tells you that it is missing the blockMeshDict in the folder "/home/fluid/OpenFOAM/fluidvt-2.0.1/run/example1/constant/polyMesh/blockMeshDict"

You have to check that the file is there when you want to run blockMesh

rosh December 7, 2011 10:16

I checked it so many times, it is there!!!
I run the command "blockMesh" under the folder "example1", so it should find the file "blockMeshDict", because it's in subfolder "/constant/polyMesh"....

romant December 7, 2011 10:22

You said you have the same error in a freshly installed OpenFOAM under the tutorials as well?

rosh December 7, 2011 10:36

when i run the cavity example under tutorial folder, it works perfectly. but when i try to create the cavity example in another folder, i get the error...i type everything exactly the same as written in cavity files, i checked again and again all my files which i created in all the folders 0, constant and system....i don't find any typing mistake... but i cannot run it because of the error....

rosh December 8, 2011 11:01

no one has any idea??? I still have the same problem!!!:(

wiedangel January 15, 2012 08:58

Quote:

Originally Posted by rosh (Post 335146)
no one has any idea??? I still have the same problem!!!:(

maybe youshould re install openFoam, I had a similar problem with one of the tutorials and it was fixed after re installing Openfoam, it was a dependency problem.

0.1 watts May 29, 2012 09:01

In case anyone has the same problem, do make sure that the folder is called polyMesh. I had accidentally called it blockMesh!

ajnewman February 1, 2014 17:33

I got this error message when I accidentally tried to run blockMesh from a directory other than the main case directory (I was in the polyMesh directory)


All times are GMT -4. The time now is 03:07.