About the alphaEqn.H in interPhaseChangeFoam
Hello dear foamers,
I'm new to OpenFOAM. I read a tutorial (in Chinese) discussing the interPhaseChangeFoam recently, according to which the alpha equation is, (1) The third term is the "compression term" adopted by OpenFOAM, and the derivation seems reasonable there. However, when I looked into the "alphaEqn.H" in the interPhaseChangeFoam directory (OpenFOAM-v1812) , the equation is defined as, Code:
fvScalarMatrix alpha1Eqn ( Code:
Foam::phaseChangeTwoPhaseMixture::vDotAlphal() const So there seems to be an extra term "vDotcAlphal". So here's my questions: 1. Is the "compression term" involved in this solver? Actually I find the term "phir" in the following part of the file, but I'm not sure what is happening. 2. What's the meaning of the term "vDotcAlphal"? Or is there something wrong with the equation (1)? Any instruction is welcome, and thank you very much in advance. |
Please see the following link for a derivation of the mass transfer terms in the alphaEqn:
https://www.tfd.chalmers.se/~hani/ku...Yaquan_Sun.pdf This explains how the equation is derived. However, the equation could be written with a single mass source term. I believe the reason it is formulated in this way is to linearise the equation for improved solution stability. In this formulation, "fvm::Sp(vDotvmcAlphal, alpha1)" is a linear function of alpha1, allowing this term to be solved implicitly in the A-matrix. The "vDotcAlphal" term must still be solved explicitly, but is zero in evaporation, only taking a value when condensation occurs. Don't necessarily take my word for it but this is the understanding I've come to. C Dunne |
All times are GMT -4. The time now is 21:22. |