|
[Sponsors] |
November 3, 2021, 10:16 |
Mass fraction query of mass flow
|
#1 |
New Member
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5 |
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 |
|
November 3, 2021, 11:59 |
|
#2 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,184
Rep Power: 23 |
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. |
|
November 4, 2021, 08:47 |
|
#3 |
New Member
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5 |
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 |
|
November 4, 2021, 12:24 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,862
Rep Power: 33 |
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. |
|
November 4, 2021, 15:42 |
|
#5 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,184
Rep Power: 23 |
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. |
|
November 4, 2021, 16:42 |
|
#6 | ||
Senior Member
Join Date: Jun 2009
Posts: 1,862
Rep Power: 33 |
Quote:
The above in mathematical form is Integral over surface of (gas1.density * Velocity dot Normal Area vector) Quote:
{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. |
|||
November 10, 2021, 05:17 |
|
#7 |
New Member
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5 |
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 |
|
November 10, 2021, 10:44 |
|
#8 |
Senior Member
Join Date: Jun 2009
Posts: 1,862
Rep Power: 33 |
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. |
|
November 10, 2021, 11:46 |
|
#9 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,184
Rep Power: 23 |
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? |
|
November 11, 2021, 09:09 |
|
#10 |
New Member
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5 |
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 |
|
November 12, 2021, 11:46 |
|
#11 |
Senior Member
Join Date: Jun 2009
Posts: 1,862
Rep Power: 33 |
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.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
November 16, 2021, 01:43 |
|
#12 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,184
Rep Power: 23 |
I don't understand either.
I don't think areaAve(gas1.Mass Fraction)@interface should be used. It should be massFlowAve. |
|
November 16, 2021, 10:52 |
|
#13 |
New Member
PG company
Join Date: Feb 2021
Posts: 16
Rep Power: 5 |
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! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error message: Insufficient Catalogue Size | Paresh Jain | CFX | 33 | August 16, 2024 05:09 |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 06:40 |
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 |