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

Foam fatal error: cannot find file "/home/.../system/controlDict"

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2019, 07:57
Default Foam fatal error: cannot find file "/home/.../system/controlDict"
  #1
New Member
 
Marcos Luan Rosa Fonseca
Join Date: Sep 2019
Posts: 1
Rep Power: 0
marcosluan130 is on a distinguished road
Hi Guys,

I've just installed OpenFoam on windows 10, and I was about to try my first example from tutorial. However, before I do it, when I typed "blockMesh" for the very first time I got this error. Can anyone help me out?





To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

marcos@PcdaXuXa:~$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : v1906 OPENFOAM=1906
Arch : "LSB;label=32;scalar=64"
Exec : blockMesh
Date : Dec 12 2019
Time : 09:34:35
Host : PcdaXuXa
PID : 538
I/O : uncollated
Case : /home/marcos
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

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



--> FOAM FATAL ERROR:
cannot find file "/home/marcos/system/controlDict"

From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 548.

FOAM exiting
marcosluan130 is offline   Reply With Quote

Old   December 20, 2019, 11:54
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
If you execute `blockMesh` in the middle of nowhere, you would get this message.
`blockMesh` requires to be executed inside a computation directory wherein `system` and `constant` directories, and the main dictionaries must be present.
HPE is offline   Reply With Quote

Old   May 26, 2024, 12:57
Default
  #3
New Member
 
David Walden
Join Date: May 2024
Location: Seminole, Texas USA
Posts: 6
Rep Power: 2
DavidWa is on a distinguished road
Quote:
Originally Posted by HPE View Post
If you execute `blockMesh` in the middle of nowhere, you would get this message.
`blockMesh` requires to be executed inside a computation directory wherein `system` and `constant` directories, and the main dictionaries must be present.
As a relatively inexperienced Linux user, I don't know the difference between "middle of nowhere" and "inside a computation directory".

I have reinstalled OpenFOAM from scratch for the umpteeth time using wsl on Windows 10. In the process I have moved some files contained in C:\Users\sauce\Downloads and C:\Users\sauce\Documents from C: to D: due to running out of space on C:.
I do not know if that's the reason I now get an error when trying to run simpleFoam from the PowerShell after installation.

I've been importing geometry, creating meshes and viewing in ParaView the model on the Windows installation of Salome.

simpleFoam was working fine a few days ago:

FOAM FATAL ERROR: (openfoam-2312 patch=240220)
cannot find file "/home/system/controlDict"

Any suggestions are very much appreciated.

Last edited by DavidWa; May 26, 2024 at 13:20. Reason: grammar, readability, context
DavidWa is offline   Reply With Quote

Old   May 27, 2024, 04:07
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,177
Rep Power: 27
Yann will become famous soon enough
Hello,

Quote:
Originally Posted by DavidWa View Post
As a relatively inexperienced Linux user, I don't know the difference between "middle of nowhere" and "inside a computation directory".
When starting a new terminal session in linux you usually log in your home directory. You can then navigate into directories using the cd command.

Most of OpenFOAM commands needs to be run from a case directory containing a system directory with a controlDict file + other files depending on the command you want to use.


Quote:
Originally Posted by DavidWa View Post
FOAM FATAL ERROR: (openfoam-2312 patch=240220)
cannot find file "/home/system/controlDict"
OpenFOAM is telling you it cannot find a controlDict file in /home/system.
You are most likely trying to execute simpleFoam from /home/ instead of from a case directory.

You need to use the cd command to move to your case directory before running simpleFoam.

Cheers,
Yann
DavidWa likes this.
Yann 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11


All times are GMT -4. The time now is 23:56.