|
[Sponsors] |
Foam fatal error: cannot find file "/home/.../system/controlDict" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 12, 2019, 08:57 |
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 |
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 |
|
December 20, 2019, 12:54 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
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.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 26, 2024, 13:57 |
|
#3 | |
New Member
David Walden
Join Date: May 2024
Location: Seminole, Texas USA
Posts: 6
Rep Power: 2 |
Quote:
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 14:20. Reason: grammar, readability, context |
||
May 27, 2024, 05:07 |
|
#4 | ||
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29 |
Hello,
Quote:
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:
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 |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |