CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   twoPhaseEluerFoam running problems (https://www.cfd-online.com/Forums/openfoam-solving/97542-twophaseeluerfoam-running-problems.html)

chenxizh February 20, 2012 04:42

twoPhaseEluerFoam running problems
 
Hi, Recently I try to use the eclipse to debug the program of OpenFOAM, I did the tutorials of http://openfoamwiki.net/index.php/Howto_Use_OpenFOAM_with_Eclipse, then something strange happened! I find that I cannot run the twoPhaseEulerFoam even the case of the tutorial "bed".
The error is following :
Reading g
Reading transportProperties



--> FOAM FATAL IO ERROR:
keyword g is undefined in dictionary "/home/cfd/OpenFOAM/OpenFOAM-2.1.0/tutorials/multiphase/twoPhaseEulerFoam/bed/constant/transportProperties::phasea"

file: /home/cfd/OpenFOAM/OpenFOAM-2.1.0/tutorials/multiphase/twoPhaseEulerFoam/bed/constant/transportProperties::phasea from line 20 to line 22.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 400.

FOAM exiting

It said that g is undeined in transportProperties, but in default creatField.H it is no need to read the "g".
I remove the directory of twoPhaseEluerFoam , replace by a new download one ,and then recompile it by Allwclean and Allwmake, finally run the turorial, but the error is still in ?:confused:

so does anyone know how to fix it ?


enoch February 29, 2012 23:38

Have you resolved that problem? I have the same problem in OF1.7.1 when running "twoPhaseEulerFoam". Below is the log screen. Please let me know if you fix it out.

--> FOAM FATAL IO ERROR:
keyword g is undefined in dictionary "/run/twoPhaseEulerFoam/bubbleColumn/constant/transportProperties::phasea"

file: /run/twoPhaseEulerFoam/bubbleColumn/constant/transportProperties::phasea from line 27 to line 29.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

FOAM exiting

chenxizh March 1, 2012 02:05

I recompile all the files, What cause the promble? have you done any change?

Quote:

Originally Posted by enoch (Post 346995)
Have you resolved that problem? I have the same problem in OF1.7.1 when running "twoPhaseEulerFoam". Below is the log screen. Please let me know if you fix it out.

--> FOAM FATAL IO ERROR:
keyword g is undefined in dictionary "/run/twoPhaseEulerFoam/bubbleColumn/constant/transportProperties::phasea"

file: /run/twoPhaseEulerFoam/bubbleColumn/constant/transportProperties::phasea from line 27 to line 29.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

FOAM exiting


enoch March 1, 2012 16:32

I could run "twoPhaseEulerFoam" without any errors, but when I modified the solver, the error appeared to me. I downloaded and compiled "OpenFOAM-1.7.x". The problem is still sitting there. That's so weird. I don't know what I have to do.

chenxizh March 1, 2012 21:14

Did you modified the creatField.H file? I think the error came from there. I compiled it with a debug status, step into this file ,but still cannot find out the reason. maybe you could try a 2.1.0 verion.
Quote:

Originally Posted by enoch (Post 347164)
I could run "twoPhaseEulerFoam" without any errors, but when I modified the solver, the error appeared to me. I downloaded and compiled "OpenFOAM-1.7.x". The problem is still sitting there. That's so weird. I don't know what I have to do.



All times are GMT -4. The time now is 10:23.