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

Foam fatal io error: cannot find file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2024, 11:10
Post Foam fatal io error: cannot find file
  #1
New Member
 
Join Date: Jan 2024
Posts: 3
Rep Power: 2
smd2312 is on a distinguished road
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 :
  1. openfoam2312
  2. cd /usr/lib/openfoam/openfoam2312/tutorials/incompressible/icoFoam/cavity/cavity/
  3. blockMesh

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.
Please help me in resolving the above error.
smd2312 is offline   Reply With Quote

Old   January 15, 2024, 05:39
Default
  #2
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
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.
NotOverUnderated is offline   Reply With Quote

Old   January 15, 2024, 11:20
Default
  #3
New Member
 
Join Date: Jan 2024
Posts: 3
Rep Power: 2
smd2312 is on a distinguished road
Thank you! Followed the steps and now can execute blockmesh command without any errors.
smd2312 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
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01: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


All times are GMT -4. The time now is 01:54.