CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

TwoLiquidMixingFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2010, 18:56
Default TwoLiquidMixingFoam
  #1
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Hello,

I try to simulate the mixing of two fluids with different densities. I use the solver twoLiquidMixingFoam. After some (simulation) time the solver is not converging anymore (it seems the pressure equation is causing the problem).

Therefore some questions:
Is twoLiquidMixingFoam based on pimpleFoam? Then a maximal Courant number larger than 1 should be allowed?!?

In the pressure equation of twoLiquidMxingFoam there is no call to p_rgh.relax(). After I added this (following the example of pimpleFoam), the solver seems more stable but after some time the solver again does not converge. But it is not clear, what causes the problem. The Courant number is increasing constantly. Suddenly it gets much larger and after a few iterations it reaches infinity. There are some cells which show large values of p, U, k and omega at these time steps. But it is not clear if a certain equation is causing the problem.

(At the beginning) the mean Courant Number is about 0.06, the maximal value is about 15.

Reducing the Courant Number by a factor of 10 or more is not really an options because this would result in much to large computation times.

I also tried relaxing the equation for alpha1, but this does not help either. Also bounding the value of alpha1 between 0 and 1 does not help.

If alpha1 is set to zero at all inlets there are no convergence problems. So it seems somehow related to the alpha1 equation.

What other options are there to get an converging result?

(With CFX the problem can be simulated without these problems. The same mesh is used.)

Thank you for your help
Joachim
Attached Files
File Type: zip 0.zip (3.3 KB, 16 views)
File Type: zip constant.zip (2.1 KB, 11 views)
File Type: zip system.zip (2.3 KB, 19 views)
File Type: zip twoLiquidMixingRelaxFoam.zip (5.9 KB, 20 views)
jherb is offline   Reply With Quote

Old   November 28, 2010, 14:00
Default
  #2
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Joachim,

Could it be that your time step is a bit large? Yours is 0.04 and in the twoStream example in this thread it is 2e-4 ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   November 28, 2010, 16:51
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
Quote:
Originally Posted by gwierink View Post
Hi Joachim,

Could it be that your time step is a bit large? Yours is 0.04 and in the twoStream example in this thread it is 2e-4 ...
Thank you for your answer.

Shouldn't the absolute value of the time step depend on the geometry/mesh resolution? I also thought that the pimple solver should provide the possibility to use larger time step sizes. The stability should be assured by the relaxation of the (temporary) results?!?
jherb is offline   Reply With Quote

Old   November 29, 2010, 02:32
Default
  #4
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
True . Can you have a go with dynamic time stepping (and maxCo of 1 or so)? Maybe that will give you a sensible estimate for the time step ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   December 17, 2015, 20:55
Default
  #5
Member
 
luchen
Join Date: Jul 2011
Posts: 44
Rep Power: 14
luchen2408 is on a distinguished road
hello,Jherb, have you solve the problem? I have performed a simulation with twoliquidMixingFoam,but the simulation divergen, it seems the pressure equation problem. have you solve the problem? how? Thanks
luchen2408 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SimpleFoam with body force gravity alexice OpenFOAM Running, Solving & CFD 15 June 16, 2022 14:43
TwoLiquidMixingFoam shawn OpenFOAM Running, Solving & CFD 65 March 18, 2020 14:56
twoLiquidMixingFoam maolongliu OpenFOAM Programming & Development 12 November 12, 2012 17:25


All times are GMT -4. The time now is 02:06.