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

Maybe a bug in twoLiquidMixingFoam?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 6, 2016, 03:40
Default Maybe a bug in twoLiquidMixingFoam?
  #1
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 839
Rep Power: 17
sharonyue is on a distinguished road
Hi guys,

In twoLiquidMixingFoam, at first we solve alpha by MULES, then rhoPhi is calculated by the following:

Code:
rhoPhi = alphaPhi*(rho1 - rho2) + phi*rho2;
This makes sense. Then alpha is solved in alphaDissEqn.H, rhoPhi is updated as following:

Code:
rhoPhi += alpha1Eqn.flux()*(rho1 - rho2);

If we put them together, finally, rhoPhi will be:

rhoPhi = (alphaPhi + alpha1Eqn.flux())*(rho1 - rho2) + phi*rho2;

I think we need to delete the old alphaPhi in the code above, so in the alphaDissEqn.H, it should be:

Code:
rhoPhi = alpha1Eqn.flux()*(rho1 - rho2) + phi*rho2;
Am I right?
__________________
My OpenFOAM algorithm website: http://dyfluid.com
By far the largest Chinese CFD-based forum: http://www.cfd-china.com/category/6/openfoam
We provide lots of clusters to Chinese customers, and we are considering to do business overseas: http://dyfluid.com/DMCmodel.html
sharonyue is offline   Reply With Quote

 


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
Bug in Workbench CFX Pierre1 CFX 6 August 2, 2017 00:18
SU2_MSH: Periodic boundary conditions bug Zef SU2 1 February 18, 2015 13:28
Serious bug in LES interface fs82 OpenFOAM Bugs 21 November 16, 2009 08:15
Bug reports Mattijs Janssens (Mattijs) OpenFOAM 0 January 10, 2005 10:05
Forum y2k Bug Jonas Larsson Main CFD Forum 1 January 5, 2000 10:22


All times are GMT -4. The time now is 04:28.