CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Get the properties of the components in multicomponent simulation (https://www.cfd-online.com/Forums/cfx/212559-get-properties-components-multicomponent-simulation.html)

CFDGERMANY December 4, 2018 04:09

Get the properties of the components in multicomponent simulation
 
Hi, guys.

I am simulating a centrifuge which is full of air. How can I capture one of the components e.g. O2 in the simulation?


I have already done the CFX-Pre with multicomponent O2 and N2. Do I have to write a Expression to post the properties of O2?



Thanks.

ghorrocks December 4, 2018 04:38

I don't think CFX can model the separation of a multicomponent mixture by gravity/acceleration. So unless something else is happening, CFX will model the air as the same composition everywhere.

But to answer your question, are you looking to get the mass fraction of O2? Refer to the CFX reference manual, but it is simply a CEL variable like O2.mass fraction (assuming you called the O2 mass fraction "O2").

CFDGERMANY December 4, 2018 05:04

Thanks for your Reply.

Yes, I am trying to get the mass fraction of O2 at the wall of the centrifuge, cause O2 is heavier than N2.

I have already known the differences of definition between Multicomponent and Multiphase.
Could you tell me the differences of calculating process between Multicomponent and Multiphase in cfx?

CFDGERMANY December 4, 2018 05:33

Thanks for your Reply.

Yes, I am trying to get the mass fraction of O2 at the wall of the centrifuge, cause O2 is heavier than N2.

I have already known the differences of definition between Multicomponent and Multiphase.
Could you tell me the differences of calculating process between Multicomponent and Multiphase in cfx?
Quote:

Originally Posted by ghorrocks (Post 717863)
I don't think CFX can model the separation of a multicomponent mixture by gravity/acceleration. So unless something else is happening, CFX will model the air as the same composition everywhere.

But to answer your question, are you looking to get the mass fraction of O2? Refer to the CFX reference manual, but it is simply a CEL variable like O2.mass fraction (assuming you called the O2 mass fraction "O2").


Opaque December 4, 2018 12:13

Have you looked at the theory documentation for the modeling of multicomponent flow?

You can see the transport equation for the component is only due to main flow advection, and mass diffusion; therefore, there is no information about additional body forces that will drive a given mass fraction away/towards anything.

For components/species separation due to centrifugal forces, you will need those body forces in the definition of the mass diffusion velocity. In addition, the discretization details are tricky then to differentiate the proper gradients.

I am not clear what you meant by

Quote:

"Yes, I am trying to get the mass fraction of O2 at the wall of the centrifuge, cause O2 is heavier than N2."
Are you asking how to access the mass fraction value for O2 at the wall? (See Glenn's response),

Are you trying to solve for the mass fraction distribution/field for O2 & N2? and you expect to find O2 at the outer wall because it is heavier than N2. Then, my description above addresses that.

A quick search will lead you to
https://www.fsb.unizg.hr/hydro/web_p...a_(2nd_Ed).pdf

Reading Chapter 24 describes the different mechanisms for mass transport in multicomponent systems.

lordluan November 30, 2019 06:52

Multicomponent CEL
 
If I have a multicomponent fluid and I want to use the pressure of one component in a expression it would be in CEL: ethanol.p?

[EDIT] I used the expression ethanol.p in a source term expression, and CFX-pre replied with this: The variable 'p' referenced by parameter 'Source' in object '/FLOW:Flow Analysis 1/DOMAIN:Default Domain/SUBDOMAIN:Subdomain 1/SOURCES/EQUATION SOURCE:continuity' is not allowed to have a component name prefix.

I tried to use ptot, but I've got the same error message.

[EDIT2] I've found the answer in https://www.cfd-online.com/Forums/cf...me-prefix.html

Antanas December 1, 2019 22:04

Quote:

Originally Posted by lordluan (Post 751132)
If I have a multicomponent fluid and I want to use the pressure of one component in a expression it would be in CEL: ethanol.p?

[EDIT] I used the expression ethanol.p in a source term expression, and CFX-pre replied with this: The variable 'p' referenced by parameter 'Source' in object '/FLOW:Flow Analysis 1/DOMAIN:Default Domain/SUBDOMAIN:Subdomain 1/SOURCES/EQUATION SOURCE:continuity' is not allowed to have a component name prefix.

I tried to use ptot, but I've got the same error message.

[EDIT2] I've found the answer in https://www.cfd-online.com/Forums/cf...me-prefix.html

There are no partial pressure fields in CFX. The pressure field is common for all phases and components. You should evaluate partial pressures by yourself based on this common pressure and molar fractions of components.

Opaque December 2, 2019 10:57

Quote:

Originally Posted by Antanas (Post 751199)
There are no partial pressure fields in CFX. The pressure field is common for all phases and components. You should evaluate partial pressures by yourself based on this common pressure and molar fractions of components.

Following up on Antanas' clarification:

MyEthanolPressure = Pressure * ethanol.Molar Fraction

or

MyEthanolPressure = p * ethanol.molf

lordluan December 3, 2019 04:03

Quote:

Originally Posted by Opaque (Post 751260)
Following up on Antanas' clarification:

MyEthanolPressure = Pressure * ethanol.Molar Fraction

or

MyEthanolPressure = p * ethanol.molf

Many thanks, Opaque and Antanas!

Antanas December 5, 2019 00:15

Quote:

Originally Posted by lordluan (Post 751309)
Many thanks, Opaque and Antanas!

Don't forget that Pressure or p is relative pressure, not absolute.

boreal May 2, 2023 08:27

Hi ghorrocks

To dig up this thread again. Does your statement really also apply to a separation of species by gravity? In my case i have a variable gas mixture with strongly differing molar masses (1:10). I understand that i need an additional term in the Maxwell-Stefan equation if i want to consider centrifugal forces. But how's about if the gas separates just through gravity. Wouldn't this be taken into account by the body force in the momentum balance because gravity applies to all species by the same way? Unfortunately, this was not entirely clear to me from the solver theory guide.

Best regards,
boreal

Quote:

Originally Posted by ghorrocks (Post 717863)
I don't think CFX can model the separation of a multicomponent mixture by gravity/acceleration. So unless something else is happening, CFX will model the air as the same composition everywhere.

But to answer your question, are you looking to get the mass fraction of O2? Refer to the CFX reference manual, but it is simply a CEL variable like O2.mass fraction (assuming you called the O2 mass fraction "O2").


Opaque May 2, 2023 14:19

Have you read a chapter describing generalized diffusion transport? generalized driving force?

https://www.researchgate.net/file.Po...01497887539930

Ansys CFX solves the momentum transport equation for the mixture (all species have the same bulk velocity), not the species momentum transport equation (where each species has its own velocity).

The only way for such a model to work is that the species transport equation includes all the external forces of relevance; therefore, forcing a species to migrate from one location to another. Those forces can be
1 - Thermal gradient
2 - Pressure gradient
3 - Rotational effects
4 - Electro-magnetic effects (like charged species/ions)
5 - gravity
6 - Concentration gradient

Ansys CFX only includes (6), anything else must be modeled/customized.

boreal May 3, 2023 02:15

I read a bit and tried to understand everything...but i'm not right there ;-).

But you answer was very helpful. At least i know now the limits of my model.



Custumizing such a thing would be new territory for me. I would add this with CEL, right? I'm not sure yet if I do this approach or if i use COMSOL for this simulation.

ghorrocks May 3, 2023 02:39

CEL is just the expression language - to calculate some maths.

To get CFX to model separation of gas species you are going to have to develop models of Brownian motion, differential forces due to gravity on the different species and probably implement it as a source term. There may also be additional effects like the ones Opaque lists. This will all be in the CFX multicomponent model, which is a Eularian framework.

You could also look at it this way - if it was easy to implement, then it would already be in CFX, wouldn't it?

boreal May 3, 2023 02:50

Quote:

Originally Posted by ghorrocks (Post 849200)
You could also look at it this way - if it was easy to implement, then it would already be in CFX, wouldn't it?


Good argument! Well thanks for your answers. I have to think about how i/we will proceed.



By the way: I'm sure you already know it, but you guys are very helpful. For me, CFX is one of several tools I use. I'm far away from the insights you have into the software and math behind it. So thanks a lot.

ghorrocks May 3, 2023 07:19

I am happy to help! Good luck with your analysis.


All times are GMT -4. The time now is 21:27.