CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Get the properties of the components in multicomponent simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes
  • 1 Post By CFDGERMANY
  • 1 Post By ghorrocks
  • 1 Post By CFDGERMANY
  • 1 Post By Antanas
  • 1 Post By Opaque
  • 1 Post By Opaque
  • 1 Post By ghorrocks
  • 1 Post By boreal
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2018, 05:09
Exclamation Get the properties of the components in multicomponent simulation
  #1
New Member
 
DE
Join Date: Dec 2018
Location: Leipzig
Posts: 3
Rep Power: 8
CFDGERMANY is on a distinguished road
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.
CFXILMENAU likes this.
CFDGERMANY is offline   Reply With Quote

Old   December 4, 2018, 05:38
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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").
CFXILMENAU likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   December 4, 2018, 06:04
Default
  #3
New Member
 
DE
Join Date: Dec 2018
Location: Leipzig
Posts: 3
Rep Power: 8
CFDGERMANY is on a distinguished road
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?
CFXILMENAU likes this.
CFDGERMANY is offline   Reply With Quote

Old   December 4, 2018, 06:33
Default
  #4
New Member
 
DE
Join Date: Dec 2018
Location: Leipzig
Posts: 3
Rep Power: 8
CFDGERMANY is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Old   December 4, 2018, 13:13
Default
  #5
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
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.
Opaque is offline   Reply With Quote

Old   November 30, 2019, 07:52
Default Multicomponent CEL
  #6
Member
 
Lucas
Join Date: May 2019
Posts: 41
Rep Power: 7
lordluan is on a distinguished road
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/DOMAINefault 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 CFX error: Variable is not allowed to have a component name prefix

Last edited by lordluan; November 30, 2019 at 10:54. Reason: News
lordluan is offline   Reply With Quote

Old   December 1, 2019, 23:04
Default
  #7
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Quote:
Originally Posted by lordluan View Post
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/DOMAINefault 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 CFX error: Variable is not allowed to have a component name prefix
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.
lordluan likes this.
Antanas is offline   Reply With Quote

Old   December 2, 2019, 11:57
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by Antanas View Post
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 likes this.
Opaque is offline   Reply With Quote

Old   December 3, 2019, 05:03
Default
  #9
Member
 
Lucas
Join Date: May 2019
Posts: 41
Rep Power: 7
lordluan is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Following up on Antanas' clarification:

MyEthanolPressure = Pressure * ethanol.Molar Fraction

or

MyEthanolPressure = p * ethanol.molf
Many thanks, Opaque and Antanas!
lordluan is offline   Reply With Quote

Old   December 5, 2019, 01:15
Default
  #10
Senior Member
 
Join Date: Feb 2011
Posts: 496
Rep Power: 18
Antanas is on a distinguished road
Quote:
Originally Posted by lordluan View Post
Many thanks, Opaque and Antanas!
Don't forget that Pressure or p is relative pressure, not absolute.
Antanas is offline   Reply With Quote

Old   May 2, 2023, 09:27
Default
  #11
New Member
 
Dani
Join Date: Sep 2022
Posts: 8
Rep Power: 4
boreal is on a distinguished road
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 View Post
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").
boreal is offline   Reply With Quote

Old   May 2, 2023, 15:19
Default
  #12
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
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 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   May 3, 2023, 03:15
Default
  #13
New Member
 
Dani
Join Date: Sep 2022
Posts: 8
Rep Power: 4
boreal is on a distinguished road
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.
boreal is offline   Reply With Quote

Old   May 3, 2023, 03:39
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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 likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 3, 2023, 03:50
Default
  #15
New Member
 
Dani
Join Date: Sep 2022
Posts: 8
Rep Power: 4
boreal is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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.
Opaque likes this.
boreal is offline   Reply With Quote

Old   May 3, 2023, 08:19
Default
  #16
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I am happy to help! Good luck with your analysis.
Opaque likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
expressions, multicomponent mixture


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 06:37
setting up a simulation with multiple interactions phandy OpenFOAM Running, Solving & CFD 1 October 6, 2014 04:16
Milk Properties for simulation apurva CFX 1 September 23, 2014 19:39
confused with units in solidThermophysical properties and Thermophysical properties zahraa OpenFOAM Running, Solving & CFD 3 August 14, 2014 09:11
Discrete event simulation vs. fixed time (discrete time simulation) jenjon FLUENT 0 March 10, 2013 07:58


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