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/)
-   -   Solving two fluids (https://www.cfd-online.com/Forums/openfoam-solving/129000-solving-two-fluids.html)

Dadou January 26, 2014 07:06

Solving two fluids
 
Dear OF community,

I will soon start a project on OpenFOAM for my company. What they want me to model is a kind of dam fill with water and passing through a small channel ( I know it's not clear) and they want to put oil on top of this water to see if this oil pushes the water through this small channel.

My questions are :

- Does any one of you has any idea if there's a similar tutorial on the OpenFOAM folder or anywhere else ?
- How much do you think these kind of models take time (roughly speaking) ?

Hope I'll get a quick answer

Thank you

Regards

adambarfi January 26, 2014 07:29

Hi Mehdi,

I think you can use the interFoam solver. interFoam is a solver for 2 incompressible, isothermal immiscible fluids using a VOF (volume of fluid) phase-fraction based interface capturing approach.
it's not an intricate project and depend on your parameters that would be changed, it take time.

Dadou January 26, 2014 08:12

Hi Adam,

Thank you a lot!!

Do you have any tutorial ? I know there's the dambreak but as far as I knoz it doesn't use two fluids

Thanks

regards

adambarfi January 26, 2014 09:20

hi again,

the below link contains a comprehensive tutorial file of using interFoam in openFoam which is prepared by Mr. Hemida of Chalmer's Uni. I think it has what you need for your project.

about damBreak case, if you look at transportPeroperies file you see it uses two fluids which the secondary phase will be patched to geometry using setFieldsDict.

read the below tutorial, it has very tips you need:

http://www.tfd.chalmers.se/~hani/kur...Hemida_VOF.pdf

Dadou January 27, 2014 00:30

Hi again,

Thank you so much for your help.

Dadou


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