CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [blockMesh] blockMesh (https://www.cfd-online.com/Forums/openfoam-meshing/95132-blockmesh.html)

rosh December 7, 2011 05: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 08: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 09: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 09: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 09: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 09:22

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

rosh December 7, 2011 09: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 10:01

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

wiedangel January 15, 2012 07: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 16: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)

gouravjee March 13, 2018 09:34

problem with blockMesh
 
Quote:

Originally Posted by romant (Post 335020)
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


I have been trying to make a simple cylinder geometry using blockMesh but i get the following error.
#

--> FOAM FATAL ERROR:
"/home/gourav/Desktop/mymesh/system/blockMeshDict"


From function int main(int, char**)
in file blockMesh.C at line 149.

FOAM exiting

/#
can you tell me what might be wrong?

Antimony March 14, 2018 00:15

Hi,

There is insufficient information here for anyone to help you with.

At the very least post your blockMeshDict.

Cheers,
Antimony

gouravjee March 20, 2018 10:06

Quote:

Originally Posted by Antimony (Post 685102)
Hi,

There is insufficient information here for anyone to help you with.

At the very least post your blockMeshDict.

Cheers,
Antimony

con anyone help me regarding the following error:
Code:

--> FOAM FATAL ERROR:
"C:/PROGRA~1/BLUECF~1/ofuser-of5/run/kaka/system/blockMeshDict"


    From function int main(int, char**)
    in file blockMesh.C at line 202.

FOAM exiting

here is my blockMesh
Code:

// blockMesh :  Block mesh description file
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
version  0.5;
format  ascii;
root    "";
case    "";
instance "constant";
local    "mesh";
class dictionary;
object blockMeshDict;
// ************************************






  meshGenApp blockMesh;
  convertToMeters 0.001;

    //5 mm column diameter
    //10 cm length
 
 
 
    //Width of middle square section
 
 
 
 
    //how many cells in the square section
    //how many cells from square section to perimeter
    // how many cells from top to bottom

  vertices
  (
    ( 1.25 0.0  1.25) // Vertex fiveoclocksqb = 0
    (-1.25 0.0  1.25) // Vertex sevenoclocksqb = 1
    (-1.25 0.0 -1.25) // Vertex elevenoclocksqb = 2
    ( 1.25 0.0 -1.25) // Vertex oneoclocksqb = 3
 
    ( 1.76776695455285 0.0  1.76776695137989) // Vertex fiveoclockcb = 4
    (-1.76776695455285 0.0  1.76776695137989) // Vertex sevenoclockcb = 5
    (-1.76776695455285 0.0 -1.76776695137989) // Vertex elevenoclockcb = 6
    ( 1.76776695455285 0.0 -1.76776695137989) // Vertex oneoclockcb = 7

    ( 1.25 100  1.25) // Vertex fiveoclocksqt = 8
    (-1.25 100  1.25) // Vertex sevenoclocksqt = 9
    (-1.25 100 -1.25) // Vertex elevenoclocksqt = 10
    ( 1.25 100 -1.25) // Vertex oneoclocksqt = 11
 
    ( 1.76776695455285 100  1.76776695137989) // Vertex fiveoclockct = 12
    (-1.76776695455285 100  1.76776695137989) // Vertex sevenoclockct = 13
    (-1.76776695455285 100 -1.76776695137989) // Vertex elevenoclockct = 14
    ( 1.76776695455285 100 -1.76776695137989) // Vertex oneoclockct = 15
  );                               

  blocks
  (
    //square block
    hex (
      1 0 3 2
      9 8 11 10
      )
    (3 3 10)
    simpleGrading (1 1 1)

    //slice1
    hex (
      5 4 0 1
      13 12 8 9
      )
    (3 3 10)
    simpleGrading (1 1 1)

    //slice2
    hex (
      1 2 6 5
      9 10 14 13
      )
  (3 3 10)
simpleGrading (1 1 1)

  //slice3
  hex (
        2 3 7 6
        10 11 15 14
      )
  (3 3 10)
simpleGrading (1 1 1)

  //slice4
  hex (
        3 0 4 7
        11 8 12 15
      )
  (3 3  10)
simpleGrading (1 1 1)

  );


  //create the quarter circles
  edges
  (
    arc 4 5 (0.0 0.0 2.5)
    arc 5 6 (-2.5 0.0 0.0)
    arc 6 7 (0.0 0.0 -2.5)
    arc 7 4 (2.5 0.0 0.0)

    arc 12 13 (0.0 100 2.5)
    arc 13 14 (-2.5 100 0.0)
    arc 14 15 (0.0 100 -2.5)
    arc 15 12 (2.5 100 0.0)

  );

  patches
  (
    patch outlet
    (
    (2 4(0 3 2 1))
    (2 4(0 4 7 3))
    (2 4(4 0 1 5))
    (2 4(1 2 6 5))
    (2 4(3 7 6 2))
    )

    patch inlet
    (
    (2 4(8 11 10 9))
    (2 4(8 12 15 11))
    (2 4(12 8 9 13))
    (2 4(9 10 14 13))
    (2 4(11 15 14 10))
    )

    wall walls
    (
    (2 4(5 4 12 13))
    (2 4(5 13 14 6))
    (2 4(6 14 15 7))
    (2 4(7 15 12 4))
    )

);


Antimony March 21, 2018 00:46

Hi,

I tried your case and it runs fine. So it isn't an issue related to blockMeshDict (by and large).

What version of OF are you running? How do you call blockMesh? Considering that you are getting FOAM FATAL ERROR, I should think that you have sourced your OF correctly...

Cheers,
Antimony

vava10 September 20, 2020 08:45

same issue
 
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _b45f8f6f58-20200629 OPENFOAM=2006
Arch : "LSB;label=32;scalar=64"
Exec : blockMesh
Date : Sep 20 2020
Time : 13:50:34
Host : LAPTOP-A0NOGRUJ
PID : 536
I/O : uncollated
Case : /home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

--> FOAM Warning :
From static Foam::IOstreamOption::compressionType Foam::IOstreamOption::compressionEnum(const Foam::word&, Foam::IOstreamOption::compressionType)
in file db/IOstreams/IOstreams/IOstreamOption.C at line 115
Unknown compression specifier 'compressed', using compression off
--> FOAM Warning :
From blockMesh
in file findBlockMeshDict.H at line 36
Using the old blockMeshDict location: "constant/polyMesh/blockMeshDict"
instead of the default location: "system/blockMeshDict"



--> FOAM FATAL ERROR:
"/home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull/constant/polyMesh/blockMeshDict"


From int main(int, char**)
in file findBlockMeshDict.H at line 61.

FOAM exiting

Did anyone find the solution for the error??

Antimony September 20, 2020 22:27

Hi,

Do you have a blockMeshDict? If so, where is it? Can you post your blockMeshDict here?

Cheers,
Antimony

vava10 September 20, 2020 23:27

blockMeshDict
 
1 Attachment(s)
hey,

its path is wigleyhull/constant/polymesh

Regards
vava10

Krapf September 21, 2020 04:18

I've tried it with OpenFOAM 8 (I don't have v2006.) at both locations (system/blockMeshDict and constant/polyMesh/blockMeshDict) and it works fine.
If you take a look at findBlockMeshDict.H, line 61 it seems to be a problem with the header (not 100 % sure about that), but I can't find one.
Have you ever used blockMesh before? If not, please run blockMesh in a tutorial (e. g. tutorials/incompressible/simpleFoam/pitzDaily) to rule out that it is due to a failed installation of OpenFOAM.

Antimony September 21, 2020 05:18

Hi,

OK. So a quick look at your blockMeshDict seems to indicate it is OK.

However, based on the error message you posted and what is described here (https://www.openfoam.com/documentati...8H_source.html), it seems like there is something wrong with the header.

However, I tested your file on my machine and it works (OpenFOAM-v2006). So you might just want to make sure that the file you sent is the same that you tried (and the header is consistent with the rest of the tutorials!)

Hope this helps

Cheers,
Antimony


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