CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   controlDict (https://www.cfd-online.com/Forums/openfoam/111579-controldict.html)

zaynah04 January 10, 2013 06:11

controlDict
 
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


niklas January 10, 2013 07:21

yes,
the code is telling you whats wrong

zaynah04 January 10, 2013 07:23

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;


niklas January 10, 2013 07:44

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

zaynah04 January 10, 2013 11:24

WELll i got that part,,,that its not finding the file..!!

according to your experience why its not seeing it??????
:(

wyldckat January 10, 2013 17:00

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 January 11, 2013 00:49

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..


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