CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   twoPhaseEulerFoam running problem (

Gitesh P August 11, 2011 09:17

twoPhaseEulerFoam running problem
1 Attachment(s)

I am simulating gas-liquid flow with twoPhaseEulerFoam solver with OpenFOAM 1.7.

There following fields which I have initialized in case/0 directory,

- alpha (VF)
- k
- epsilon
- p(pressure)
- T(water-temperature)
- Ua(gas-velocity)
- Ub(water-velocity)

There is no any Theta field in case/0 but still I am getting following error.

PHP Code:

cannot open file

: /home/patel/OpenFOAM/patel-1.7.1/run/STB31/0/Theta at line 0.

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

FOAM exiting 

Here is my fvSchemes file.

Please help me. I am new at OpenFOAM environment.

With regards,

pit August 12, 2011 04:26

Are you sure that you have the right files?
In the tutorial case the Theta file exist in 0/ and in the fvSolution/fvSchemes.

Gitesh P August 12, 2011 07:05


Now the problem is solved.

The field for theta has to be defined since the code reads it at the beginning of the simulation, when the object for the kinetic theory model is created.

In other words, for gas-liquid systems, the values you use in the kineticTheory dictionary play no role. You only have to make sure that boundary conditions are defined.

With regards,

tong November 21, 2013 00:46

Hi Gitesh,

Would you be able to explain why kineticTheory dictionary plays no role for a gas-liquid simulation?

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