CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Will I break mass conservation law if i do so? (https://www.cfd-online.com/Forums/openfoam/89523-will-i-break-mass-conservation-law-if-i-do-so.html)

kaifu June 15, 2011 09:20

Will I break mass conservation law if i do so?
 
Hi Foamers,

In alphaEqn.H (like in the solver bubbleFoam or twoPhaseEulerFoam) I have to make sure alpha is strictly in [0, 0.523] after each
Code:

alphaEqn.solve();
So I simply make
Code:

alpha = max(0,alpha);
alpha = min(0.523,alpha);

in the code.
So far I have realized it may break the mass continuity if I do so. So I considered if I should create a "packingLimiter" as it is in solver twoPhaseEulerFoam. Thanks

// Kai


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