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

Foam::findEtcFile() : could not find mandatory file 'controlDict'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2011, 09:04
Default Foam::findEtcFile() : could not find mandatory file 'controlDict'
  #1
New Member
 
Anders Olofsson
Join Date: Aug 2011
Posts: 1
Rep Power: 0
AndersO is on a distinguished road
I get that error when I try to run blockMesh in my case directory. I got a sub directory "System" that contains the controlDict file.

I've seen this question before on the forum but no actual answer. I'm guessing I'm missing some enviroment variable, could that be it?

I'm running OpenFOAM 1.70 on a windows machine.
AndersO is offline   Reply With Quote

Old   August 16, 2011, 10:36
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Anders and welcome to the forum!

You seem to be looking for this thread: http://www.cfd-online.com/Forums/ope...7-0-win32.html

Anyway, the file that blockMesh is looking for is located at "OpenFOAM-1.7.0\etc\controlDict". Probably it isn't finding it because you might have placed OpenFOAM's folder inside a folder that has spaces in it. For example, "C:\Program Files\OpenFOAM-1.7.0" is a big no no, because OpenFOAM does not like paths that have spaces in them...

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 2, 2012, 07:14
Default controlDict Error
  #3
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 15
Kanarya is on a distinguished road
Hi

I am gettin this message

Can somebody help me?

Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) const in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#6
at twoPhaseEulerFoam.C:0
#7
in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam"
#8
in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam"
#9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10
in "/opt/openfoam210/platforms/linux64GccDPOpt/bin/twoPhaseEulerFoam"
Floating point exception

Thanks,

Recep
Kanarya is offline   Reply With Quote

Old   February 2, 2012, 15:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Kanarya View Post
I am gettin this message

Can somebody help me?

Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) const in "/opt/openfoam210/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
(...)
@Recep: seriously, why are you almost randomly asking the same question in several threads, and to top it off, you're giving a seriously vague error output. Anyway, if you had bothered to read the blog post in my signature above, you would find the following text:
Quote:
"Oh my, oh my, the solver crashed, what am I going to do?"
  1. Don't panic.
  2. Start reading here: Foam::error::PrintStack - post #2
  3. Still can't figure out the problem, then read here: Parallel running of 3D multiphase turbulence model (unknown problem!!) post#3
  4. Perhaps wrong dimensions? porousSimpleFoam - crash post #2
If you don't know or don't remember how forums should be used (I don't always remember myself either ), here is a very nice explanation: http://openfoamwiki.net/index.php/Ho..._Message_Board

Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 3, 2012, 04:39
Default
  #5
Senior Member
 
Join Date: May 2011
Posts: 231
Rep Power: 15
Kanarya is on a distinguished road
hi Bruno,

really sorry about it...u are right...but the system was blocked and I was not able to send any message, so i got angry...bcause of that I sent several places...really sorry..
Thanks a lot for answer...

Best!

recep
Kanarya is offline   Reply With Quote

Old   February 4, 2012, 10:16
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Recep,

I know how annoying machines and the internet can get
If you still have problems with this, please start a new thread here in the main OpenFOAM forum (http://www.cfd-online.com/Forums/openfoam/) or preferably in the OpenFOAM Running, Solving & CFD sub-forum

Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 31, 2020, 10:14
Question etc entry?
  #7
Member
 
Join Date: Mar 2019
Posts: 81
Rep Power: 7
mm66 is on a distinguished road
Hi Foamers,


I am trying to run my first simulation on a cluster. I am getting this error (while trying to run decomposePar or simpleFoam):



Code:
--> FOAM FATAL ERROR :
    Could not find mandatory etc entry (mode=ugo)
    'controlDict'
But controlDict is located in the system folder and I am running my simulations from the correct directory. What can cause this? Any ideas please?


PS: I did some research and it has been mentioned that it might be due to a space in the path. How can I check this on a server?


Regards,
MJ
mm66 is offline   Reply With Quote

Old   May 12, 2021, 08:38
Default
  #8
New Member
 
Alexandre H
Join Date: May 2021
Posts: 1
Rep Power: 0
AlexandreH is on a distinguished road
Hello, i am quite new to Openfoam so i try to firt run the tutorial /opt/openfoam8/tutorials/incompressible/icoFoam/cavity/cavity/system$
unfortunately, i have this error when trying to run blockMesh :


"


alexandre@alexandre-VirtualBox:/opt/openfoam8/tutorials/incompressible/icoFoam/cavity/cavity/system$ blockMesh
--> FOAM FATAL ERROR :
Could not find mandatory etc entry (mode=ugo)
'controlDict'

"


i don't have any space in the directory path.
I am using Openfoam on a virtual machine (ubuntu) installed on windows using "virtualbox"


Thank you for your help.
Alexandre
AlexandreH is offline   Reply With Quote

Old   May 12, 2021, 09:25
Post
  #9
Member
 
Join Date: Mar 2019
Posts: 81
Rep Power: 7
mm66 is on a distinguished road
Quote:
Originally Posted by AlexandreH View Post
Hello, i am quite new to Openfoam so i try to firt run the tutorial /opt/openfoam8/tutorials/incompressible/icoFoam/cavity/cavity/system$
unfortunately, i have this error when trying to run blockMesh :


"


alexandre@alexandre-VirtualBox:/opt/openfoam8/tutorials/incompressible/icoFoam/cavity/cavity/system$ blockMesh
--> FOAM FATAL ERROR :
Could not find mandatory etc entry (mode=ugo)
'controlDict'

"


i don't have any space in the directory path.
I am using Openfoam on a virtual machine (ubuntu) installed on windows using "virtualbox"


Thank you for your help.
Alexandre
Hi Alexandre and welcome to the forum

You need to go back one directory and run it from the cavity folder. I mean go to:

Code:
/opt/openfoam8/tutorials/incompressible/icoFoam/cavity/cavity/
and then run blockMesh.

Regards,
MJ
mm66 is offline   Reply With Quote

Old   July 27, 2022, 18:44
Default
  #10
New Member
 
Michael Jensen
Join Date: May 2022
Posts: 27
Rep Power: 3
mikethe1wheelnut is on a distinguished road
Quote:
Originally Posted by mm66 View Post
Hi Alexandre and welcome to the forum

You need to go back one directory and run it from the cavity folder. I mean go to:

Code:
/opt/openfoam8/tutorials/incompressible/icoFoam/cavity/cavity/
and then run blockMesh.

Regards,
MJ



This is really wierd.. I could run cases before.. so it isn't a problem with my directory path. I've also tried running it from cavity, cavity/cavity, and cavity/cavity/system, always the same result. ..could it be confused by my having .com and .org versions of openfoam on my system? ... ..not sure if I should start a new thread..
mikethe1wheelnut is offline   Reply With Quote

Old   October 18, 2022, 12:17
Default
  #11
ibe
New Member
 
Join Date: Oct 2022
Posts: 11
Rep Power: 3
ibe is on a distinguished road
After installing openfoam via
sudo apt-get install openfoam
I followed the user guide and copied the cavity case to a new user directory.
Then I ran

blockMesh
and got the same error message previous posters saw.



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


this is openfoam10, in 2022 and this problem keeps cropping up.
but I haven't found a clear, deterministic answer in any of the forums I've reviewed.
Any help is appreciated.

Thanks,

=============================


(base) ie@ie-OptiPlex-9020:/opt/openfoam10/tutorials/incompressible/icoFoam$ pwd
/opt/openfoam10/tutorials/incompressible/icoFoam
(base) ie@ie-OptiPlex-9020:/opt/openfoam10/tutorials/incompressible/icoFoam$ cp -R cavity/cavity ~/
(base) ie@ie-OptiPlex-9020:/opt/openfoam10/tutorials/incompressible/icoFoam$ pushd ~/cavity
~/cavity /opt/openfoam10/tutorials/incompressible/icoFoam ~/CODE/cavity
(base) ie@ie-OptiPlex-9020:~/cavity$ pwd
/home/ie/cavity
(base) ie@ie-OptiPlex-9020:~/cavity$ ls
0 constant system
(base) ie@ie-OptiPlex-9020:~/cavity$ blockMesh
--> FOAM FATAL ERROR :
Could not find mandatory etc entry (mode=ugo)
'controlDict'

(base) ie@ie-OptiPlex-9020:~/cavity$
ibe 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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 06:29
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise mbeaudoin OpenFOAM Installation 20 June 17, 2008 06:43
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51


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