CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

blockMesh ERROR

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2020, 07:48
Thumbs down blockMesh ERROR
  #1
New Member
 
Alessio
Join Date: Aug 2020
Posts: 1
Rep Power: 0
Alex_619 is on a distinguished road
hello everyone,
I have just installed OpenFOAM on my laptor running UBUNTU 20.04, I have tried to run a tutorial as a test, to see if everything is working but once I selected the ShockTube folder that I have previously copied on my desktop, I tried to generate a mesh using the command 'blockMesh' but it returns the following error:

FOAM FATAL ERROR :
Could not find mandatory etc entry (mode=ugo)
'controlDict'

I have checked and the controlDict file is in the right folder "system".
Does someone have a solution?

Thank you.

Alessio
Alex_619 is offline   Reply With Quote

Old   August 5, 2020, 19:09
Default
  #2
Senior Member
 
Claudio Boezio
Join Date: May 2020
Location: Europe
Posts: 137
Rep Power: 7
Ship Designer is on a distinguished road
Hi Alessio,

make sure that the file header of controlDict is properly set up like this:

Code:
FoamFile {
   version  2.0;
    format  ascii;
     class  dictionary;
    object  controlDict;
  location  "system";
 }
A wrong class may make OpenFOAM give an error message that the file is not found, although it may very well exist and has the correct file name. The correct filename alone isn't sufficient. The file header needs to be correct too. Hope this helps.

Do other tutorial cases work properly?
Ship Designer is offline   Reply With Quote

Old   April 21, 2022, 13:43
Default
  #3
New Member
 
HY
Join Date: Apr 2022
Posts: 1
Rep Power: 0
yhhit is on a distinguished road
Hi, Probably something wrong with your .bashrc file.
source home/username/OpenFOAM/OpenFOAM-v2012/etc/bashrc.

Quote:
Originally Posted by Alex_619 View Post
hello everyone,
I have just installed OpenFOAM on my laptor running UBUNTU 20.04, I have tried to run a tutorial as a test, to see if everything is working but once I selected the ShockTube folder that I have previously copied on my desktop, I tried to generate a mesh using the command 'blockMesh' but it returns the following error:

FOAM FATAL ERROR :
Could not find mandatory etc entry (mode=ugo)
'controlDict'

I have checked and the controlDict file is in the right folder "system".
Does someone have a solution?

Thank you.

Alessio
yhhit is offline   Reply With Quote

Reply

Tags
blockmesh, controldict, running first simulation


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
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 10:30
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


All times are GMT -4. The time now is 13:14.