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

Mass flow calculation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Gert-Jan
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 5, 2021, 11:37
Default Mass flow calculation
  #1
Senior Member
 
Join Date: Aug 2012
Posts: 269
Rep Power: 15
Julian121 is on a distinguished road
I am solving a problem in which the flow goes into and out of a single defined surface. Please see the screenshot. Since there is no boundary between the regions that the flow goes in or out in the surface, CFD Post shows that the mass flow is zero at the surface.

Is there a way to estimate the mass flow that goes in/out seperately?

I was thinking that if I could use a conditional statement in which areaInt (density*velocity) is positive it should show the mass flow in one direction and if it is negative it would show the other mass flow.

Is is correct?
Attached Images
File Type: jpg velocity.jpg (77.1 KB, 32 views)
Julian121 is offline   Reply With Quote

Old   April 5, 2021, 15:24
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
It depends if the velocity that you show is aligned with the global coordinate system. If so, then you can calculate the massflow in Z-direction as

UpwardFlow = areaInt(max(0[m/s],Velocity w))@Surface
DownwardFlow = areaInt(min(0[m/s],Velocity w))@Surface

If correct, than Upward and Downward flows are equal.

For X and Y take velocity u and velocity v
Julian121 likes this.

Last edited by Gert-Jan; April 5, 2021 at 17:21.
Gert-Jan is offline   Reply With Quote

Old   April 6, 2021, 03:26
Default
  #3
Senior Member
 
Join Date: Aug 2012
Posts: 269
Rep Power: 15
Julian121 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
It depends if the velocity that you show is aligned with the global coordinate system. If so, then you can calculate the massflow in Z-direction as

UpwardFlow = areaInt(max(0[m/s],Velocity w))@Surface
DownwardFlow = areaInt(min(0[m/s],Velocity w))@Surface

If correct, than Upward and Downward flows are equal.

For X and Y take velocity u and velocity v
No they are not aligned.

Since the surface is annular and according to the definition normal velocity to the surface should be used to evaluate mass flow, should the radial velocity be used instead?

Should the area integral be evaluted over the projected area of the anuular surafce?
Julian121 is offline   Reply With Quote

Old   April 6, 2021, 04:29
Default
  #4
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
If the surface is annular, then in Post you should go to the Turbo Tab and let Post calculate the radial and tangential components. Then use the expressions given above and use "Velocity Radial" in stead of Velocity w.
Gert-Jan is offline   Reply With Quote

Old   April 6, 2021, 10:02
Default
  #5
Senior Member
 
Join Date: Aug 2012
Posts: 269
Rep Power: 15
Julian121 is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
If the surface is annular, then in Post you should go to the Turbo Tab and let Post calculate the radial and tangential components. Then use the expressions given above and use "Velocity Radial" in stead of Velocity w.
How about the surface? Should the projected area normal to the veocity be taken or the annular surface itself?
Julian121 is offline   Reply With Quote

Old   April 6, 2021, 10:43
Default
  #6
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,928
Rep Power: 28
Gert-Jan will become famous soon enough
I would take the annular surface..
If you have any doubt, calculate all numbers that you might think are relevant and try to understand what they mean and if the result makes sence. In that way you learn what Post is calculating.
In principle there should be a mass balance: all fluid going upward should equal to the fluid going downward, except for the flow towards inlet and outlets.
Gert-Jan is offline   Reply With Quote

Old   April 6, 2021, 23:56
Default
  #7
Senior Member
 
Join Date: Jun 2009
Posts: 1,880
Rep Power: 33
Opaque will become famous soon enough
If you are using a surface that is not an external boundary, the Normal vector is not well defined, i.e. arbitrary side of the surface. If so, first order of business is to know what is the Normal direction used by CFD-Post, i.e. create a vector plot on that surface of Normal.

With that out of the way, the next step is to compute the mass flow correctly,

Net_massflow = areaInt (density * VdotN)@surface

VdotN = Velocity u * Normal X + Velocity v * Normal Y + Velocity w * Normal Z

Two down, two more to go.

SignedP_massflow = areaInt(density * max(VdotN, 0))@surface

SignedN_massflow = areaInt(density * max(-VdotN,0))@surface

I think that should do what you want. Keep us posted..

PS: Using density * velocity, you are using the magnitude of velocity as far as I recall
Julian121 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   April 15, 2021, 04:13
Default
  #8
Senior Member
 
Join Date: Aug 2012
Posts: 269
Rep Power: 15
Julian121 is on a distinguished road
Thank you for your replies.
Similarly, I would like to calculate the averaged-circumferential velocity of the flow going inside/outside the surface seperately.
Is there a way to limit cfd post to calculate the velocity seperately in a single surface where flow goes inside/outside? Please see the screenshot in the first post. They are normal velocity vectors to an annular surface.

Last edited by Julian121; April 16, 2021 at 02:29.
Julian121 is offline   Reply With Quote

Old   April 20, 2021, 11:11
Default
  #9
Senior Member
 
Join Date: Mar 2009
Location: Norway
Posts: 138
Rep Power: 17
kjetil is on a distinguished road
You could try to create an isoclip in CFD-Post of the same surface, limiting it to the directional velocity in the desired direction (greater or smaller than 0), and then calculate massFlow on this clip surface.
kjetil 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 in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Exit Corrected Mass Flow Rate Mesh Sensitivity Study s__s__s CFX 4 July 20, 2016 12:46
total mass loss/gain--simulating taylor couette flow nwpukaka OpenFOAM Programming & Development 0 February 12, 2014 19:57
mass flow rate... sanjar OpenFOAM Running, Solving & CFD 1 December 2, 2013 01:09
Mass flow calculation across a mesh section Haris Maharana Siemens 3 March 2, 2001 09:56


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