CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] blockMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2011, 05:25
Default blockMesh
  #1
New Member
 
Join Date: Dec 2011
Posts: 7
Rep Power: 14
rosh is on a distinguished road
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???
rosh is offline   Reply With Quote

Old   December 7, 2011, 08:37
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
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.
__________________
~roman
romant is offline   Reply With Quote

Old   December 7, 2011, 09:00
Default
  #3
New Member
 
Join Date: Dec 2011
Posts: 7
Rep Power: 14
rosh is on a distinguished road
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
rosh is offline   Reply With Quote

Old   December 7, 2011, 09:03
Default
  #4
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 rosh View Post
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
__________________
~roman
romant is offline   Reply With Quote

Old   December 7, 2011, 09:16
Default
  #5
New Member
 
Join Date: Dec 2011
Posts: 7
Rep Power: 14
rosh is on a distinguished road
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"....
rosh is offline   Reply With Quote

Old   December 7, 2011, 09:22
Default
  #6
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
You said you have the same error in a freshly installed OpenFOAM under the tutorials as well?
__________________
~roman
romant is offline   Reply With Quote

Old   December 7, 2011, 09:36
Default
  #7
New Member
 
Join Date: Dec 2011
Posts: 7
Rep Power: 14
rosh is on a distinguished road
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 is offline   Reply With Quote

Old   December 8, 2011, 10:01
Default
  #8
New Member
 
Join Date: Dec 2011
Posts: 7
Rep Power: 14
rosh is on a distinguished road
no one has any idea??? I still have the same problem!!!
rosh is offline   Reply With Quote

Old   January 15, 2012, 07:58
Default
  #9
Member
 
wided
Join Date: Jul 2010
Posts: 54
Rep Power: 15
wiedangel is on a distinguished road
Quote:
Originally Posted by rosh View Post
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.
wiedangel is offline   Reply With Quote

Old   May 29, 2012, 09:01
Default
  #10
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 14
0.1 watts is on a distinguished road
In case anyone has the same problem, do make sure that the folder is called polyMesh. I had accidentally called it blockMesh!
0.1 watts is offline   Reply With Quote

Old   February 1, 2014, 16:33
Default
  #11
New Member
 
Join Date: Feb 2014
Posts: 12
Rep Power: 12
ajnewman is on a distinguished road
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)
ajnewman is offline   Reply With Quote

Old   March 13, 2018, 09:34
Default problem with blockMesh
  #12
Member
 
Join Date: Oct 2017
Posts: 52
Rep Power: 8
gouravjee is on a distinguished road
Quote:
Originally Posted by romant View Post
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?
gouravjee is offline   Reply With Quote

Old   March 14, 2018, 00:15
Default
  #13
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

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

At the very least post your blockMeshDict.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   March 20, 2018, 10:06
Default
  #14
Member
 
Join Date: Oct 2017
Posts: 52
Rep Power: 8
gouravjee is on a distinguished road
Quote:
Originally Posted by Antimony View Post
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))
    )

);
gouravjee is offline   Reply With Quote

Old   March 21, 2018, 00:46
Default
  #15
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
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
Antimony is offline   Reply With Quote

Old   September 20, 2020, 08:45
Default same issue
  #16
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 5
vava10 is on a distinguished road
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / 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??
vava10 is offline   Reply With Quote

Old   September 20, 2020, 22:27
Default
  #17
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

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

Cheers,
Antimony
vava10 likes this.
Antimony is offline   Reply With Quote

Old   September 20, 2020, 23:27
Default blockMeshDict
  #18
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 5
vava10 is on a distinguished road
hey,

its path is wigleyhull/constant/polymesh

Regards
vava10
Attached Files
File Type: txt blockMeshDict.txt (1.6 KB, 16 views)
vava10 is offline   Reply With Quote

Old   September 21, 2020, 04:18
Default
  #19
Senior Member
 
Join Date: Oct 2017
Posts: 121
Rep Power: 8
Krapf is on a distinguished road
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.
vava10 likes this.
Krapf is offline   Reply With Quote

Old   September 21, 2020, 05:18
Default
  #20
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
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
vava10 likes this.
Antimony 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
[OpenFOAM.org] blockMesh issue on openfoam6 startup - ubuntu 16.04 bjdarrer OpenFOAM Installation 7 August 25, 2020 19:15
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
[blockMesh] External flow around cube with blockMesh Woody8 OpenFOAM Meshing & Mesh Conversion 0 March 31, 2015 14:54
[blockMesh] set of xyz data in blockMesh psk OpenFOAM Meshing & Mesh Conversion 12 August 27, 2013 08:37
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 11:59


All times are GMT -4. The time now is 17:27.