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

Mass fraction query of mass flow

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By evcelica
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2021, 10:16
Default Mass fraction query of mass flow
  #1
New Member
 
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5
Nheni is on a distinguished road
Dear All,

I have a multicomponent gas simulation, where I want to monitor the mass flow rate through a surface, and the mass fraction of this flow. So, I need to know, how the flow is divided between the two components.
I had two idea to realize this, but none of it works. Both idea is based on components flow monitoring, from which I can calculate the ratio:
- gas1.massFlow()@surface - this function prefix is need to be a phase, but I have components, I think this is the reason why it is not worked
- massFlowInt(gas1. Mass Fraction)@surface - I don't know what is this, but it is not the expected ratio

I'm out of ideas, could you possibly help? Do you have experiences?

Thank you,
Henrietta
Nheni is offline   Reply With Quote

Old   November 3, 2021, 11:59
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
Hmmm.... not sure on this, but possibly:
massFlowAve(gas1.Mass Fraction)@surface
Go to the functions calculator to find a nice list of usable functions to try out. Click on the "display function" box to see the exact function it is evaluating, which you can then put in expression form for future use once you figure out what is correct.
evcelica is offline   Reply With Quote

Old   November 4, 2021, 08:47
Default
  #3
New Member
 
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5
Nheni is on a distinguished road
Evcelica,

Thank you, it is a super opportunity this Function Calculator, I didn't know it until now But sadly the recommended expression isn't work.
Anyone else have any other suggestion?

Thanks
Nheni is offline   Reply With Quote

Old   November 4, 2021, 12:24
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
What about writing in mathematical terms what you would like to see?

Say

A = integral over the area of ( .... )

Which is the integrand you want?

Then, we find out what CEL expression is required.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   November 4, 2021, 15:42
Default
  #5
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
The expression I gave you should work, I just tested it on a multicomponent flow.
But so did your original expression "massFlowInt(gas1.Mass Fraction)@surface" (though I did have to remove the space between the period and the M in Mass)
In fact I get consistent results from each:

In my test:
massFlow()@surface = -20.7947 [kg s^-1]
massFlowInt(Argon.Mass Fraction)@surface = -2.37778 [kg s^-1]
massFlowInt(Air.Mass Fraction)@surface = -18.4169 [kg s^-1]
massFlowAve(Argon.Mass Fraction)@surface = 0.114345
massFlowAve(Air.Mass Fraction)@surface = 0.885655
My mass flow Integrals sum to the total mass flow, and agree with the 11.4% and 88.6% values given my the massFlowAve expressions.

Perhaps you are doing something else wrong?
1.) Is this "surface" some surface with fluid flowing across it? (opening, inlet, outlet, or a surface you defined in the volume? It needs to be, as there is no mass flow across a solid surface like a wall.
2.) Is "gas1" the name of one of your components in your gas? Can you plot the variable "gas1.Mass Fraction" on your surface. It should be a standard variable if so.
Opaque and Matthew Huang like this.
evcelica is offline   Reply With Quote

Old   November 4, 2021, 16:42
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Quote:
Originally Posted by Nheni View Post
- gas1.massFlow()@surface - this function prefix is need to be a phase, but

I have components, I think this is the reason why it is not worked
From the above, it seems you have a fluid mixture named gas1 made out of several components, correct?

The above in mathematical form is

Integral over surface of (gas1.density * Velocity dot Normal Area vector)

Quote:
Originally Posted by Nheni View Post
- massFlowInt(gas1. Mass Fraction)@surface - I don't know what is this, but it is not the expected ratio
Fixing the space after the ".", the syntax is

{Phase}.massFlowInt([Material].Mass Fraction)@surface

{Phase} is optional, and only required when there is more than one phase in the model.
[Material] is required to qualify the mass fraction of interest

The expression above in mathematical form is

Integral over surface of (Phase.Density * Material.Mass Fraction * Velocity dot Normal Area Vector)
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   November 10, 2021, 05:17
Default
  #7
New Member
 
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5
Nheni is on a distinguished road
Thanks for your help!

In the model there is a gas mixture of two components (gas1 and gas2). The gas mixture flows (in) from the outer fluid1 domain through a porous domain to the inner fluid2 domain. The interested surface is the porous-fluid2 interface.

Evcelica, I checked these values in my simulation, and it shows a perfect correlation, but... When I monitor the changes (increase)of the mass of gas1 and gas2 in fluid2, and calculate the mass fraction for that mass increase, then this mass fraction is not the same to the one got from monitoring the mass fraction based on your suggestion. It would be important for me to get the same ratio from surface queries, because I want to omit fluid1 and porous domain, and I have to know, what mass flow and mass fraction do I need to define on the boundary of fluid2.

I know, it's not a simple problem, but I really don't understand why the mass fraction is not the same calculated from mass increases in fluid2 and from the surface values.

Thanks again,
Henrietta
Nheni is offline   Reply With Quote

Old   November 10, 2021, 10:44
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Advice: write down the mathematical formalism of what you are evaluating, and how you want to use it. Otherwise, there will be a lot of iterations just to decipher we use different terminology.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   November 10, 2021, 11:46
Default
  #9
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
Like Opaque implies,
Please explain, I don't understand what you mean by the change of the mass?
Pictures would help. Are you compressing this gas into some volume? Does this volume have an exit?
evcelica is offline   Reply With Quote

Old   November 11, 2021, 09:09
Default
  #10
New Member
 
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5
Nheni is on a distinguished road
Initially, I have gas1 in each domain, then I compressing gas2 into fluid1. Neither volume have an exit, but the mixture flow through the porous domain into fluid2. I monitor 4 thing:

- gas1 mass in fluid2: volumeAve(gas1.Mass Concentration)@fluid2*volume()@fluid2
-gas2 mass in fluid2: volumeAve(gas2.Mass Concentration)@fluid2*volume()@fluid2
-mass fraction at porous fluid interface: areaAve(gas1.Mass Fraction)@interface
-mass flow rate through porous fluid interface: massFlow()@interface

Then I do calculations in excel after exporting the monitor points:
- gas1 and gas2 mass increase at every timestep(m(timestep n.)-m(timestep n-1.))
- from that step by step change I calculate the mass fraction: gas1 mass increase/(gas1 mass increase and gas2 mass increase)

In principle, the mixture enters fluid2 with above calculated mass fraction, but this is not the same with the monitored mass fraction at the interface.

When I omit fluid1 and porous domain, I defined to the boundary:
simulation1: mass flow rate average and the mass fraction (calculated from mass increase)
simulation2: mass flow rate average and the mass fraction(obtained from interface monitor point).
The simulation1 gives exactly the same result (gas mixture mass fraction) as in the original simulation.

So the question again: Why the results obtained in two ways do not match? And how do I retrieve this value from the interface to get the same result?

Thank you, I hope this description already clarifies the problem.
Henrietta
Nheni is offline   Reply With Quote

Old   November 12, 2021, 11:46
Default
  #11
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
Again, you are not explaining the mathematical model or your goals, but rather your steps using ANSYS CFX.

Those are very different contexts where the first one will set the tone for understanding by others, while the second one assumes everyone else understands what you want and need to help you find an error in your approach.

So far I have understood you have two volumes connected via an interface. Within a volume you have a mixture of two materials that is being compressed.

Then, a bunch of expressions with no clear goal that relates to one another.
evcelica 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   November 16, 2021, 01:43
Default
  #12
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
I don't understand either.
I don't think areaAve(gas1.Mass Fraction)@interface should be used. It should be massFlowAve.
evcelica is offline   Reply With Quote

Old   November 16, 2021, 10:52
Default
  #13
New Member
 
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5
Nheni is on a distinguished road
As I wrote in my first post, my goal is to monitor the mass flow rate through an interface, and the mass fraction of this flow. (via surface queries)
I can’t provide more definitions than described, but a different approach to the problem is going on, so my question has become irrelevant.
I apologize, and thank you for your time!
Nheni is offline   Reply With Quote

Reply


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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Error message: Insufficient Catalogue Size Paresh Jain CFX 32 February 3, 2021 03:37
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Target Mass Flow Rate Nitin FLUENT 9 June 17, 2017 10:30
Pressure Outlet Targeted Mass Flow Rate LuckyTran FLUENT 1 November 23, 2016 10:40


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