
[Sponsors] 
September 7, 2010, 09:32 
two mixing compresible fluids solver

#1 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
Hi,
I am interested in solver which is able to model mixing of two compressible fluids (lets say Helium and Air). As far as I know there is no such solver among standard OF solvers. I looked at twoMixingLiquidFoam which is for incompressible fluids. So I decided to change this solver for compressible fluids as well, but I am not sure if method used there can be applied for compressible fluids as well. I am not sure if the concentration equation method from incompressible solver can be used for compressible flows. My idea is as follows: 1. solve compressible NS eq with PISO method (U,p) 2. solve energy eq (e) 3. solve concentration eq (c) 4. calculate density rho=c*rho1 + (1c)*rho2 5. similar for viscosity, R (individual gas constant), Cp,... Could anyone tell me please if such approach is correct ? Many thanks, ZM 

September 7, 2010, 14:52 
Possible Solver for Mixing of 2 Compressible Fluids

#2 
New Member
Michael Ahlmann
Join Date: Feb 2010
Posts: 27
Rep Power: 7 
Have you looked at compressibleInterFoam? From the description in the source code, this solver is design for the following:
Description: Solver for 2 compressible, isothermal immiscible fluids using a VOF (volume of fluid) phasefraction based interface capturing approach. The momentum and other fluid properties are of the "mixture" and a single momentum equation is solved. Turbulence modelling is generic, i.e. laminar, RAS or LES may be selected. 

September 7, 2010, 15:17 

#3 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
I know this solver, I used to work with it.
But it is for immiscible flulids, and I need for mixing . and It is isotermal 

January 22, 2011, 07:11 

#4 
New Member

Hi Michael
i am a fresher in OF..i want to simulate high speed jet with OF. the two phases are incompressible and immiscible. i intend to do this simulation using A VOF + LES modle . I want to know which solver i should use..\ Many thanks 

January 22, 2011, 15:21 

#5 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
HI Zhenyan,
The Solver u need is: interFoam "Solver for 2 incompressible, isothermal immiscible fluids using a VOF (volume of fluid) phasefraction based interface capturing approach" for the other standart solvers chceck OF userguide: http://www.openfoam.com/docs/user/st...p#x13890003.5 Ziemowit 

January 23, 2011, 00:30 

#6 
New Member

Ziemowit,thanks a lot for your help! I read the part of interFoam on the web site you mentioned above. actually, my need to do LES+VOF+Non_newtonian to solve my question. do you have any advice about it. Any help would be much appreciated.
zhenyan 

January 25, 2011, 11:54 

#7 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
Hi Zhenyan,
I have never worked with LES models or Nonnewtonian fluids. But OF is written in very flexible way. You can use any written turbulent model (including LES) and Nonnewtonian fluid. You have to just define proper dictionaries (files) and values. To see how it work just look trough different solvers and cases where LES or Nonn model was used. And then just based on this example. I am sure that you can find a lot of informations searching the OF forum, and some hints in UserGuide. Hope it helps, ZM 

May 15, 2012, 06:17 

#8 
Member
R. P.
Join Date: Jul 2010
Posts: 68
Rep Power: 7 
Hi all,
I want to simulate a simple case: a flat plate with transverse jet, where air is my main flow and the jet is Hydrogen. So, how can I deal with two different fluids in openFoam ? Which solver is better for this kind of problem ? I look forward your help. Cheers, Rophys 

May 15, 2012, 10:32 

#9 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
Rophys,
It depends if u want to simulate immiscible or miscible, compressible or incompressible fluids ... Just check "Standard solvers" chapter in the OF User Guide (look for Multiphase flow ). Best 

May 15, 2012, 10:46 

#10 
Member
R. P.
Join Date: Jul 2010
Posts: 68
Rep Power: 7 
Thanks, ziemowitzima.
Sorry, I didnīt fully explain my problem. I would like to simulate a compressible flow and mixing, but is a good idea to start with more simple cases and conditions (incompressible and immiscible). Could you suggest me which solver is better (or reasonable) for this conditions ? Many thanks. 

May 15, 2012, 10:52 

#11 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
I would try:
interFoam or compressibleInterFoam 

October 10, 2014, 16:02 

#12 
New Member
Manohar K
Join Date: Jun 2014
Location: Aachen, Germany
Posts: 1
Rep Power: 0 
Hi Ziemowitzima,
I would like to simulate Helium jet injection into air, this is exactly matching with the problem you mentioned in the starting of this thread. I have gone through many other threads similar to this but I got confused " which solver I have to take and modify further to match the need ?" Buoyancy effects have to be considered along with the compressible nature of both the fluids (miscible). I was searching for suitable solver directly, but I couldn't find any direct solver in openfoam as of now. Please tell me how you have solved this problem? finally which solver you have taken to implement the modifications required ? Thanks in Advance... Manohar 

February 20, 2015, 12:40 

#13 
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate  Co  Italy
Posts: 490
Rep Power: 10 
Any news about this solver? Someone did it?


February 20, 2015, 12:45 

#14 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
Hi,
Currently I am using reactingFOAM, with chemical reactions off and combustion off. Them it works as compressible solver with mixture of several gases. It is possible there to use different thermodynamical models. Unfortunately results are not as good as I would like. FLUENT (theoretically uses the same approach), but gives better results... 

February 20, 2015, 12:49 

#15 
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate  Co  Italy
Posts: 490
Rep Power: 10 
Do you consider miscible or immiscible fluids?


February 20, 2015, 12:52 

#16 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
miscible
helium/argon ejected into air, 

February 20, 2015, 12:54 

#17 
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate  Co  Italy
Posts: 490
Rep Power: 10 
That would be exaclty what I want.
Two more questions before going deeper into the model: 1. is it easy to switch off the combustion and the chemical reactions? 2. do you have a parameter to measure the mixing beetween the 2 fluids? 3. would you mind sharing a simple running case you set? You can also send it to samuele.zampini@gmail.com Thanks in advance, Samuele 

February 20, 2015, 13:07 

#18 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
yes it is easy, you have to put:
no no instead of yes yes what do you mean by the parameter to measure the mixing ? See one of my publication, where such parameter is defined: http://www.degruyter.com/view/j/cpe....xml?format=INT keep in mind that in this paper I do NOT use reactingFOAM. but the Helium/air mixing process is govern by viscosity/diffusivity of the mixture (in OF). I will share some simple example. But it will take me few days. Best Z 

February 23, 2015, 02:40 

#19 
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate  Co  Italy
Posts: 490
Rep Power: 10 
That would be great, thanks a lot.
Share your cases, when you can. Have a good day, Samuele 

March 3, 2015, 12:51 

#20 
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 135
Rep Power: 8 
Hi,
Give me your email, I will send you the working case with few words of explanations. I would attached it here, but size of the file seems to be too large (1.4MB), and I could not attached it to my reply. best 

Tags 
compressible flow, mixing gases 
Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
smoothSolver diverges  solution in using PBiCG solver?  makaveli_lcf  OpenFOAM Running, Solving & CFD  3  September 11, 2013 12:44 
Getting too many iterations by velocity solving (aborting). Changing U  Solver?  suitup  OpenFOAM Running, Solving & CFD  0  January 20, 2010 08:45 
mixing 4 kind of fluids  ranap  CFX  2  September 19, 2008 11:55 
why the solver reject it? Anyone with experience?  bearcat  CFX  6  April 28, 2008 14:08 
Error during Solver  cfd guy  CFX  4  May 8, 2001 06:04 