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/)
-   -   twoPhaseEulerFoam running problem (https://www.cfd-online.com/Forums/openfoam-solving/91452-twophaseeulerfoam-running-problem.html)

Gitesh P August 11, 2011 09:17

twoPhaseEulerFoam running problem
 
1 Attachment(s)
Hello,

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:

--> FOAM FATAL IO ERROR
cannot open file

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

    From 
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,
Gitesh

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

Hello,

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,
Gitesh

tong November 20, 2013 23: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 15:51.