CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Adding a scalar transport equation to twoPhaseEulerFoam (https://www.cfd-online.com/Forums/openfoam-solving/210186-adding-scalar-transport-equation-twophaseeulerfoam.html)

shanvach October 26, 2018 12:32

Adding a scalar transport equation to twoPhaseEulerFoam
 
Hi all,

I am trying to use twoPhaseEulerFoam for simulating a flow with Three Phases. Two phases are solved by the Navier Stokes Equation and one phase with the scalar transport equation. What would be the procedure to add the transport equation. Also, I am assuming incompressible flow without solving the energy equation

assuming
Volume fraction of Phase 1 = volfr1
Volume fraction of Phase 2 = volfr2

Both of these phases are solved by Navier Stokes Equation.

So for the transport of the third phase

Volume fraction of Phase 3 (volfr3) = 1 - volfr1 - volfr2

So my question is by using volfr3 in the the scalar transport equation, would that ensure mass conservation?
Do I have to edit the continuity.H file as well?

Thanks and regards,
Shantanu Vachhani

RobertHB October 29, 2018 04:17

There are tutorials on how to add a scalart transport equation to icoFoam and pisoFoam. Maybe you can employ the same way for twoPhaseEulerFoam?!


All times are GMT -4. The time now is 11:52.