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

How to Monitor Mass flow rate in CFX

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2017, 03:09
Default
  #21
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
and why is the 1st solution I mentioned not ok?

Just load your 15th timestep or choose from the (clock) tipe of buton on top in post
urosgrivc is offline   Reply With Quote

Old   June 22, 2017, 03:57
Default
  #22
Member
 
Dr Gurubasavaraju
Join Date: Dec 2014
Location: Bengaluru India
Posts: 77
Rep Power: 11
gbrajtm is on a distinguished road
Quote:
Originally Posted by urosgrivc View Post
and why is the 1st solution I mentioned not ok?

Just load your 15th timestep or choose from the (clock) tipe of buton on top in post
My requirement needs a force from expression.

I am using this expression in optimisation problem as the output parameter to design of experiments (DOE). This DOE takes the values of the first time step, which not a desirable for my problem. Instead, i want maximum value of force among all time steps (nearly 250 are there in my analysis).
To obtain this I have to write an expression which could calculate the force at a particular time (time belong to max value of force) then i can assign this expression as the output parameter to DOE.
Attached Images
File Type: png optimi.PNG (19.3 KB, 18 views)
File Type: png DOE.PNG (24.4 KB, 21 views)
gbrajtm is offline   Reply With Quote

Old   June 22, 2017, 07:06
Default
  #23
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
Now this is quite a diferent thing than originaly posted.
i think this will be a tough nut to crack.

I am thinking something about; if and acumulated timestep but i doubt that this will work in this case,
urosgrivc is offline   Reply With Quote

Old   June 22, 2017, 08:28
Default
  #24
Member
 
Dr Gurubasavaraju
Join Date: Dec 2014
Location: Bengaluru India
Posts: 77
Rep Power: 11
gbrajtm is on a distinguished road
Yea, I am trying all possible ways but it still taking the default time. If could manage to calculate the force though CEL with a current time step, it would solve my problem. Since I know which time have maximum value of Force.

Thank you.
gbrajtm is offline   Reply With Quote

Old   December 23, 2019, 09:45
Default Monitoring maximum of entered fluid mass
  #25
New Member
 
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6
Ali Di is on a distinguished road
Dear forum members,

I want to monitor maximum of entered fluid mass and its position in a specific volume of a tank which is empty, but I don't know how do this by adjusting monitor expressions in output control in CFX?

Thank you very much in advance.
Ali Di is offline   Reply With Quote

Old   December 23, 2019, 12:07
Default
  #26
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,887
Rep Power: 27
Gert-Jan will become famous soon enough
You have to split up and mesh your tank in different named volume parts. Then in Pre you can add expressions like volInt(Liquid 1.Mass Fraction)@volume 1 where it integrates the total amount of of the volume represented by the massfraction of the substance you are interested in.

The maximum position can be derived from an isosurface of a certain massfraction value (e.g. 0.5). Then you can create an expression like maxVal(Z)@Isosurface 1, where Z is the z-coordinate. But I think this cannot be done during the solving process, but only afterwards in Post using transient files.
Ali Di likes this.
Gert-Jan is offline   Reply With Quote

Old   January 30, 2020, 17:33
Default
  #27
New Member
 
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6
Ali Di is on a distinguished road
Dear Jan,

Thanks for your solution, I tried your solution but it gives me a m^3 parameter, whereas I want a Kg parameter. Therefore, I have tried "massFlowInt(Liquid 1.Volume Fraction)@Fluid Fluid Interface" which gives me mass rate of flowing Fluid 1. But, it just works in "Post", whereas as I want this parameter in "Pre". Can you help me to solve this problem?

About second solution you are right it cant be done in Pre. But, my mean was center of mass of the entered mass in specific volume.

Thanks for all your help
Ali Di is offline   Reply With Quote

Old   January 30, 2020, 18:14
Default
  #28
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Gert's function returns a volume, so if you want the mass of fluid you just multiply it by density. This function should work fine in the solver.

You are correct that the isosurface function only works in CFD-Post.
Ali Di 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   January 30, 2020, 18:59
Default
  #29
New Member
 
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6
Ali Di is on a distinguished road
Thank you Glenn, you are right. That was my fault.

Do you have any idea how I can locate CoM of moving fluid in the solver?
Ali Di is offline   Reply With Quote

Old   January 30, 2020, 21:07
Default
  #30
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
This should give you the x location: volumeInt(density*x)@domain/volumeInt(density)@domain
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 31, 2020, 13:07
Default
  #31
New Member
 
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6
Ali Di is on a distinguished road
Dear Glenn,

Thank you for your comment. It was really helpful. But, there are two problem. First, this function works in CFX-Post, since just single recognized variables are supported by volumeInt in CFX-Pre.

Moreover, I want to simulate a turbulent fluid, so I have a two-phase fluid (water and air) and this function considers both phases as a unit fluid (water) in considered domain and give me a constant value all over simulation time for vertical axis (z axis).
Ali Di is offline   Reply With Quote

Old   January 31, 2020, 13:27
Default
  #32
Senior Member
 
M
Join Date: Dec 2017
Posts: 694
Rep Power: 12
AtoHM is on a distinguished road
I hope I understand your question correctly. In a multiphase simulation you can (or better have to?!) distinguish between the phases by prefixing the phase to the variable you look at. Instead of volumeInt(Velocity) you would write volumeInt(Fluid.Velocity).
AtoHM is offline   Reply With Quote

Old   January 31, 2020, 15:30
Default
  #33
New Member
 
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6
Ali Di is on a distinguished road
Dear M,

Thank you for your helpful comment. In my problem it works if I could distinguish between Z axes. I mean Z axis for water and Z axis for air. Therefore, I have tried volumeInt(Density*water.Velocity w*t)/volumeInt(Density). But, I think it's wrong.
Ali Di is offline   Reply With Quote

Old   January 31, 2020, 15:51
Default
  #34
Senior Member
 
Join Date: Jun 2009
Posts: 1,852
Rep Power: 33
Opaque will become famous soon enough
The workaround of using expressions in the argument of functions in CFX-Pre is to create Algebraic Equation Additional Variable, say

MyAVExpressionX

as Unspecified and the dimensions expected for the expression, then activate the variable in the domain of interest (kg/m^3 * m)

Additional Variable Value = Density * x

Then, in the other expression use

CofMx = volumeInt( MyAVExpressionX)@Domain / volumeInt(Density)@Domain

Repeat for CofMy, and CofMz
Opaque is offline   Reply With Quote

Old   January 31, 2020, 16:25
Default
  #35
New Member
 
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6
Ali Di is on a distinguished road
Thank you for your comment. But, if you mean

MyAVExpressionX=Density*x

and

CofMx = volumeInt( MyAVExpressionX)@Domain / volumeInt(Density)@Domain

it didnt work, and I faced to the same error.
Ali Di is offline   Reply With Quote

Old   February 2, 2020, 18:00
Default
  #36
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,887
Rep Power: 27
Gert-Jan will become famous soon enough
And what is "the same error". The same as what?
Don't let us guess. Please share a screenshot or a text file.
Gert-Jan is offline   Reply With Quote

Old   February 3, 2020, 07:35
Default
  #37
New Member
 
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6
Ali Di is on a distinguished road
When I add this expression (CofMx) to a monitor point, this is the error that I face to:

Only arguments that consist of a single recognized variable name are supported by the solver.
Ali Di is offline   Reply With Quote

Old   February 3, 2020, 10:22
Default
  #38
New Member
 
Ali
Join Date: Dec 2019
Posts: 18
Rep Power: 6
Ali Di is on a distinguished road
Dear Glenn,

Since I simulate turbulent and two-phase fluid (water and air), do you think that following expression give me more precise response?

volumeInt(water.Density*water.Volume Fraction*z)@region/volumeInt(water.Density)@region

Thank you so much.
Ali Di is offline   Reply With Quote

Old   February 3, 2020, 16:15
Default
  #39
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Opaque's post told you how to work around that error.

Whether your equation or my original equation is more accurate depends on what you are trying to do and what you are trying to measure. If you want the COM of the entire fluid domain then mine is the correct one. If you want the COM of the water fraction only then yours is the correct one. I don't know what you are trying to do, so cannot say what is correct.
Ali Di 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   June 9, 2020, 08:17
Default Massflow rate monitor at an interface
  #40
Senior Member
 
Join Date: Mar 2013
Location: Germany
Posts: 357
Rep Power: 14
AS_Aero is on a distinguished road
Hi All

I have a channel inside which I have some wall with holes in it. I have interface at these holes as I have divided my domain as inlet domain and outlet domain. Now the thing is I need to monitor the massflow/volumeflow through these holes. I am not able to do this because when I give in OutputControl monitor, CFX says unvalid surface is selected
In my expression I selected Interface_holes
AS_Aero 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
Mass flow rate: calculation v/s computation beguxa FLUENT 5 December 2, 2018 21:02
Compressible Flow in Ansys CFX bcheruk CFX 15 July 6, 2017 06:30
in CFX, how to define a inlet condition of feedback control flow rate ? suihenry CFX 12 May 14, 2009 17:59
mass flow rate error Masood FLUENT 0 May 22, 2005 00:32
Mass Flow Rate Calculation Paul FLUENT 9 March 23, 2002 08:37


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