|
[Sponsors] |
January 14, 2024, 12:10 |
Foam fatal io error: cannot find file
|
#1 |
New Member
Join Date: Jan 2024
Posts: 3
Rep Power: 2 |
Hi, I am new to OpenFoam. I have installed openfoam2312 on ubuntu. I am trying to run lid-driven cavity flow. Following are the commands I used after opening ubuntu :
After executing above commands, I am getting an error - Code:
--> FOAM FATAL ERROR: (openfoam-2312) cannot find file "/usr/lib/openfoam/openfoam2312/tutorials/incompressible/icoFoam/cavity/cavity/system/system/controlDict" From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 626. |
|
January 15, 2024, 06:39 |
|
#2 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
1) The error message indicates that you are inside the system directory of your case, you need to be in the root level of the directory.
2) That's not how you're supposed to run openfoam tutorials. You should copy the tutorial to another writeable location and run it. Here is an example: Code:
mkdir -p $FOAM_RUN # Run this only once cd $FOAM_RUN # or simply use 'run' without quotes # copy the tutorial cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity/ . cd cavity # Now, you can run blockMesh blockMesh
__________________
Don't keep making the same mistakes. Try to make new mistakes. |
|
January 15, 2024, 12:20 |
|
#3 |
New Member
Join Date: Jan 2024
Posts: 3
Rep Power: 2 |
Thank you! Followed the steps and now can execute blockmesh command without any errors.
|
|
|
|
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 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02: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 |