CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Simulating a tank filled with water and injecting vapor into it (https://www.cfd-online.com/Forums/openfoam/118268-simulating-tank-filled-water-injecting-vapor-into.html)

belkadi May 23, 2013 10:00

Simulating a tank filled with water and injecting vapor into it
 
1 Attachment(s)
Dear all,

After have installed the openfoam code, I'm learning about how to use. Tutorials examples are helpful. I have jusr run the cavity example.
Now I'm trying to create my own example.
In fact I'm trying to simulate the following example :
A tank filled with water (only a half). I would like to simulate the effect of the injection of steam on the mixing of the water.
Do you know how to fill the tank by water and how to add the condition of steam injection in the input files ?
For the meshing I've used the one proposed by cavity.

The attached imae explains the problem.

Many thanks

Kind regards

Abdelkrim

julien.decharentenay May 23, 2013 20:52

Hi Abdelkrim,

It looks like a great (and complex) case to do.

Steam-wise: are you trying to simulate the condensation of the steam?

In a first instance, I would suggest running the case with the assumption that steam does not condensate (and simplify to just an inlet injecting air). As you are adding mass to your tank, the pressure will rise unless there is a pressure relief valve somewhere (which would be modeled as an outlet).

First you need to select your solver. InterFoam may be a good candidate - but would not support the condensation of steam.

Fill the tank with water: this can be done using setFields.

Steam injection: you need to define patch(es) for the boundary conditions where the injection takes place. Then use the patch in the files with the variables (directory 0) to define the injection conditions.

belkadi May 24, 2013 03:59

hi Julien,

Thanks a lot for your precise answer.
I'll not simulate the condensation of the steam. In fact we have a pressure relief valve above the reactor.
I'll follow your instrcutios and will be back.

Many thanks

Kind regards

belkadi May 24, 2013 05:43

Hi Julien,

I've tried to use some examples of the interFoam solver
/tutorials/multiphase/interFoam/laminar/dambreak/
So I tried to run the example dambreak but it's seems not working
I tried the following command lines :
blockMesh ->OK
icoFoam (or even interFoam)
I got the following message : keyword nu is undefined in dictionnary ...../transportproperties

FOAM exiting

I don't konw if I have to redefine the nu parameter in the transportproperties.

Is it possible to help me to create a very simple example :

tank : geometry square
tank filled by water (half)
inject air or steam in the bottom of the tank

I don't found the tutorial easy to use.

Many thanks !

Abdelkrim


All times are GMT -4. The time now is 05:00.