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

Foam fatal io error: cannot find file

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2017, 17:19
Default
  #41
New Member
 
alix cattermole
Join Date: Nov 2017
Posts: 14
Rep Power: 9
alixcattermole is on a distinguished road
Sorry that post was directed to rogibear.
alixcattermole is offline   Reply With Quote

Old   December 17, 2017, 06:01
Red face --> FOAM FATAL IO ERROR: cannot find file file: /home/adam/OpenFOAM/adam-2.3.0/run/
  #42
New Member
 
James
Join Date: Dec 2017
Posts: 3
Rep Power: 9
OpenSourceWarrior is on a distinguished road
Quote:
Originally Posted by rogibear View Post
I had tried that but I get a similar error:

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/adam/OpenFOAM/adam-2.3.0/run/cube/1/p at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting


I get this too (attempting to install openfoam 4.1 on CAElinux2013)
At least I do sometimes...I've made it work too, but not sure how...

The instructions for installing Openfoam4.1 on ubuntu 12.04 from the Openfoamwiki.net are the best to go by...

the cMake wget line doesn't work, but you can use the script wyldcat put together doing the same thing from the openfoam 2.3.1 instructions "getCmake"

---
I've made it work once, on re-attempts get this error...

It's to do with the run path being wrong in bachrc?

if someone can explain a bit more about what is going wrong and why, would really help....


I'll keep trying and post back if I find a good solution.

Great stuff here, love what everyone is doing!

Thanks again
OpenSourceWarrior is offline   Reply With Quote

Old   December 17, 2017, 06:03
Wink
  #43
New Member
 
James
Join Date: Dec 2017
Posts: 3
Rep Power: 9
OpenSourceWarrior is on a distinguished road
Quote:
Originally Posted by rogibear View Post
I had tried that but I get a similar error:

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/adam/OpenFOAM/adam-2.3.0/run/cube/1/p at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

I get this too (attempting to install openfoam 4.1 on CAElinux2013)
At least I do sometimes...I've made it work too, but not sure how...

The instructions for installing Openfoam4.1 on ubuntu 12.04 from the Openfoamwiki.net are the best to go by...

the cMake wget line doesn't work, but you can use the script wyldcat put together doing the same thing from the openfoam 2.3.1 instructions "getCmake"

---
I've made it work once, on re-attempts get this error...

It's to do with the run path being wrong in bachrc?

if someone can explain a bit more about what is going wrong and why, would really help....


I'll keep trying and post back if I find a good solution.

Great stuff here, love what everyone is doing!

Thanks again
OpenSourceWarrior is offline   Reply With Quote

Old   December 17, 2017, 06:43
Wink Foam fatal io error:
  #44
New Member
 
James
Join Date: Dec 2017
Posts: 3
Rep Power: 9
OpenSourceWarrior is on a distinguished road
Quote:
Originally Posted by rogibear View Post
Hi, I'm new to using openFoam. I have completed all the tutorials without a problem, however now that I am leading towards my own simulation cases, I wanted to test out the snappyHexMesh. I found a tutorial on snappywiki for a simple cube. I downloaded the case file and created a new new directory for it. Both blockMesh and the snappyHexMesh ran without problem. All looked fine in paraView etc.

I then tried to run simpleFoam and got the following error:

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/adam/OpenFOAM/adam-2.3.0/run/cube/system/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

I'd appreciate any help.

Thanks, Adam


I get the same after compile from source of Openfoam 4.1 on Ubuntu 12.04...
-->
cannot find file

file: /home/caelinux4/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 72.

FOAM exiting


----
Will let you know when I have a solution
OpenSourceWarrior is offline   Reply With Quote

Old   October 7, 2018, 03:24
Default
  #45
New Member
 
katia
Join Date: Sep 2018
Posts: 3
Rep Power: 8
suheng is on a distinguished road
Quote:
Originally Posted by rogibear View Post
Hi, I'm new to using openFoam. I have completed all the tutorials without a problem, however now that I am leading towards my own simulation cases, I wanted to test out the snappyHexMesh. I found a tutorial on snappywiki for a simple cube. I downloaded the case file and created a new new directory for it. Both blockMesh and the snappyHexMesh ran without problem. All looked fine in paraView etc.

I then tried to run simpleFoam and got the following error:

--> FOAM FATAL IO ERROR:
cannot find file

file: /home/adam/OpenFOAM/adam-2.3.0/run/cube/system/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

I'd appreciate any help.

Thanks, Adam
have you solve this question?
suheng is offline   Reply With Quote

Old   October 7, 2018, 08:12
Default
  #46
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 129
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
Quick answer: The problem is that the solver was executed within the wrong folder... notice that there are 2 folders "system" within the path it complains about: "cube/system/system/controlDict"

The solution should be to go back to the case folder, instead of trying to run the command from within the "system" folder. You can go back to the previous folder by running this command:
Code:
cd ..
__________________
wyldckat is offline   Reply With Quote

Old   April 15, 2019, 08:31
Default
  #47
New Member
 
Akshay Ravi
Join Date: Apr 2019
Posts: 4
Rep Power: 8
aks017 is on a distinguished road
Quote:
Originally Posted by rogibear View Post
Hi Bruno,

edit: I have fixed it now.

Thanks for your help

Adam
Hey when I am facing same issue can you please help me
aks017 is offline   Reply With Quote

Old   February 11, 2021, 04:16
Smile kindly help why solver is not working. I am a new user of openfoam
  #48
New Member
 
Jayanta Dhar
Join Date: Feb 2021
Posts: 1
Rep Power: 0
Jayanta94 is on a distinguished road
jayanta@jayanta-OptiPlex-3020:~/foam/jayanta-8/run/plateHole$ solidDisplacementFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.0
Exec : solidDisplacementFoam
Date : Feb 11 2021
Time : 14:42:36
Host : "jayanta-OptiPlex-3020"
PID : 3296
Case : /home/jayanta/foam/jayanta-8/run/plateHole
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0

Reading mechanical properties



--> FOAM FATAL IO ERROR:
cannot open file

file: /home/jayanta/foam/jayanta-8/run/plateHole/constant/mechanicalProperties at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 86.

FOAM exiting
Jayanta94 is offline   Reply With Quote

Old   February 16, 2022, 11:11
Default
  #49
New Member
 
Afshin Davarpanah
Join Date: Oct 2021
Posts: 5
Rep Power: 5
afshindpe is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Imad,

I've answered your question in the other thread. As for the last statement on this post above:

It's explained in the User Guide: http://www.openfoam.org/docs/user/controlDict.php - and demonstrated in several tutorials.
You can find all tutorials that use this feature by running this command:
Code:
find $FOAM_TUTORIALS -name controlDict | xargs grep -sl "adjustTimeStep"
For more information on how to search for more information in files present in OpenFOAM: http://openfoamwiki.net/index.php/In...hing_for_files

Best regards,
Bruno
Dear Bruno

Unfortunately, again I can't find this file

cannot find file "C:/Afshin/InterfaceShapes/RectangularChannel/50/p"

What's the problem????????
afshindpe is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
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
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 04:05.