|
[Sponsors] |
March 6, 2016, 03:40 |
Maybe a bug in twoLiquidMixingFoam?
|
#1 |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 839
Rep Power: 17 |
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; 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;
__________________
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 |
|
|
|
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 |