CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Mass fraction source term in CFX (https://www.cfd-online.com/Forums/cfx/199969-mass-fraction-source-term-cfx.html)

marble March 20, 2018 14:54

Mass fraction source term in CFX
 
Dear All,

I'm now trying to do some simulation of mass transfer from air to water using Algebraic Slip Model (ASM). There is a sink-source for air due to mass transfer, so I want to add this source term in Continuity equation of air. However, I can only find Air.mf (mass fraction of Air) Source in Subdomain-Source for ASM. My question is the source term for Mass Fraction is the same as the source for Continuity equation? Or the mass fraction equation is the same as continuity equation?

Thank you.

ghorrocks March 20, 2018 16:29

Make sure you have the basics under control before you proceed:

The mass fraction equation and continuity equations are different fundamental equations.

You mention the ASM model, which is a multphase model which uses a volume fraction equation, but then say you see mass fraction variables. Is this a mass fraction or a multiphase model? Make you sure have the right basic equations.

Or do you have both a mass fraction equation to track water vapour+air, and multiphase to track liquid water drops to gaseous air?

marble March 20, 2018 17:04

Thanks Glenn for your kind reply.

The background of my simulation is air bubbles would dissolve into the water due to high pressure and turbulence. I combine air and water as a Variable Composition Mixture. I set air as dispersed, water as continuous flow based on the help document. I think this should be mass fraction model rather than multi-phase model in CFX. Do you know how to find the mass fraction equation? Or it has some relevance to continuity eqaution?

ghorrocks March 20, 2018 17:12

Quote:

The background of my simulation is air bubbles would dissolve into the water due to high pressure and turbulence.
Why do the air bubbles dissolve in the water? That is usually because of gas entering into solution into the fluid. Turbulence normally breaks air bubbles up into smaller bubbles and high pressure sets the rate of the dissolution process.

Quote:

I combine air and water as a Variable Composition Mixture.
Do you mean air and water vapour, or air and liquid water? If air and liquid water - how can you declare this a mixture when they are or different phases?

Quote:

Do you know how to find the mass fraction equation? Or it has some relevance to continuity eqaution?
The mass fraction equation only exists when you have mass fractions to track. The continuity equation and mass fraction equations are completely different equations. If you don't understand the difference between mass fraction and continuity equations please get a basic CFD textbook and read up on the differences.

Opaque March 20, 2018 19:48

As I understand the Algebraic Slip Model (from the Theory documentation), it is a simplification of a true multiphase model where one of the phases is fairly diluted, and its flow field can be decomposed as the flow field from the continuous phase and a slip velocity; therefore, no need to solve the momentum equations for the dispersed phase.

After the algebra of decomposing the dispersed phase velocity, the continuity equation for the dispersed phase resembles the mass fraction equation; therefore, the ASM in ANSYS CFX uses the variable composition mixture to setup a multiphase model. The implementation does not account for mass transfer between the phases (which are represented by mass fraction in the simulation).

If there is mass transfer between the phases, it needs to be included manually by adding appropriate source terms in the corresponding equations. To include the mass into the continuity equation of the continuous phase, you must use a "Mass Source" option for continuity and the amount must be equal to the amount leaving the dispersed phase.

Hope the above helps,

marble March 20, 2018 21:03

1 Attachment(s)
Thanks for your help Opaque, it gives me a better understanding of ASM.

Quote:

Originally Posted by Opaque (Post 685934)
If there is mass transfer between the phases, it needs to be included manually by adding appropriate source terms in the corresponding equations. To include the mass into the continuity equation of the continuous phase, you must use a "Mass Source" option for continuity and the amount must be equal to the amount leaving the dispersed phase.

Hope the above helps,

Unlike the Eulerian-Eulerian model having both two phases' "Continuity-Mass Source" options in "Equation Source" tab, ASM only has one "Continuity" for the mixture in "fluid source". Additionally, the dispersed phase "Air at 25 C.mf" shows up instead (as shown in the attachment). I was wondering if I can add the mass source for "Air at 25 C.mf" as the mass leaving the dispersed phase? If not, do you have any idea how to add the mass source for both phases?

Thank you.

lordluan December 10, 2019 00:49

Quote:

Originally Posted by ghorrocks (Post 685929)
Why do the air bubbles dissolve in the water? That is usually because of gas entering into solution into the fluid. Turbulence normally breaks air bubbles up into smaller bubbles and high pressure sets the rate of the dissolution process.



Do you mean air and water vapour, or air and liquid water? If air and liquid water - how can you declare this a mixture when they are or different phases?



The mass fraction equation only exists when you have mass fractions to track. The continuity equation and mass fraction equations are completely different equations. If you don't understand the difference between mass fraction and continuity equations please get a basic CFD textbook and read up on the differences.

ghorrocks, I have the same doubt regarding the mass fraction source term. I've been looking but so far I haven't got a clear answer. Reading the CFX documentation, I think I found the answer: the mass fraction equation is similar to the ones that are defined for Transport Equations for Additional Variable or general scalar variable? Am I wrong?

ghorrocks December 10, 2019 00:54

They are both scalar transport equations, so in that sense they are similar. But temperature, turbulence, volume fraction, mass fraction and so on are scalar transport equations as well, so a lot of things which are very different are covered in that class of equation.


All times are GMT -4. The time now is 12:15.