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

controlDict

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2013, 07:11
Default controlDict
  #1
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
Hi world,

I have successfully iterated around 6 case and achieved convergence...

Suddenly for all the 6 cases i get this same error!!
can anyone tell me what is wrong ?

Quote:
--> FOAM FATAL IO ERROR:
cannot find file

file: /home/zaynah/Desktop/system/controlDict at line 0.

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

FOAM exiting
zaynah04 is offline   Reply With Quote

Old   January 10, 2013, 08:21
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
yes,
the code is telling you whats wrong
niklas is offline   Reply With Quote

Old   January 10, 2013, 08:23
Default
  #3
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
i can not interpret where its wrong..!!

it say my control dict is error but it is fine.>!!!..
and it say cannot find the file..


Quote:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application icoFoam;

startFrom latestTime;

startTime 0;

stopAt endTime;

endTime 10;

deltaT 0.05;

writeControl timeStep;

writeInterval 20;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

adjustTimeStep true;
zaynah04 is offline   Reply With Quote

Old   January 10, 2013, 08:44
Default
  #4
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
when it comes to error messages its hard to be much clearer than this.

its telling you that it cannot find the file /home/zaynah/Desktop/system/controlDict
niklas is offline   Reply With Quote

Old   January 10, 2013, 12:24
Default
  #5
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
WELll i got that part,,,that its not finding the file..!!

according to your experience why its not seeing it??????
zaynah04 is offline   Reply With Quote

Old   January 10, 2013, 18:00
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
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
Greetings to all!

@zaynah04: the following instructions should help you diagnose what is happening:
  1. In the terminal where you are getting that error, run:
    Code:
    ls -l /home/zaynah/Desktop/system/controlDict
    It should say that the file doesn't exist.
    • But in case it does say it exists, then the first block of text should reveal what's wrong. For example, the following should appear if everything was OK:
      Code:
      -rwxrwxr-x 1 zaynah zaynah 1941 Jan 10  2013 /home/zaynah/Desktop/system/controlDict
      The following is what indicates the access permissions:
      Code:
      -rwxrwxr-x
      That is an OK example. This would be an example that might lead to the error you are getting:
      Code:
      ----------
      Which would mean that no one has permissions to access this file....
  2. Now, assuming the file doesn't exist, then verify where you are trying to execute the OpenFOAM solver or utility - the following two commands should tell you the same thing, namely the folder you are currently on:
    Code:
    pwd
    echo $PWD
    If it tells you that the current folder is "/home/zaynah/Desktop/"... well, then the solver/utility wasn't lying to you
  3. There is yet another possibility: if you are running an "Allrun" script, the script might be assuming that a certain variable is properly defined, which might no longer be true, since you might not be running on the same terminal you were using the other day when it worked.
Best regards,
Bruno
zaynah04 and nb977 like this.
__________________
wyldckat is offline   Reply With Quote

Old   January 11, 2013, 01:49
Default
  #7
Senior Member
 
zaynah K.
Join Date: Jun 2012
Location: Mauritius
Posts: 138
Rep Power: 14
zaynah04 is on a distinguished road
Dear Bruno,

I have typed first command that u wrote. It said invalid option..
but then after i again run the case miraculously all was fine again!!!

thanks a lot..
zaynah04 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
controlDict in interFOAM amin66 OpenFOAM Pre-Processing 1 July 10, 2012 12:08
Forces (in controlDict) Giving Results 1/10 of Experimental Comparison dancfd OpenFOAM Post-Processing 3 November 14, 2011 20:11
Forces not calculated when including a library in controlDict fusij OpenFOAM 2 May 13, 2011 08:25
controlDict 'forces' function: multiple output files? lordvon OpenFOAM 0 January 10, 2011 17:22
writing controlDict as otherfields ubaid OpenFOAM 5 September 29, 2010 08:28


All times are GMT -4. The time now is 14:50.