# [OpenFOAM] Calculate mass flow

 Register Blogs Members List Search Today's Posts Mark Forums Read

 May 22, 2006, 08:23 Calculate mass flow #1 aurore Guest   Posts: n/a Hello, Has anybody calculated mass flow with Paraview ? I don't know if it's possible but if somebody has an idea :-) Thank you

 May 22, 2006, 08:35 Hi Aurore, You can calculate #2 theof Guest   Posts: n/a Hi Aurore, You can calculate the mass flow using the filter called Surface Flow. theophane

 May 22, 2006, 10:12 Hi Theophane, Thank you for #3 aurore Guest   Posts: n/a Hi Theophane, Thank you for your response. I don't want to have mass flow for each cell : how can I have mass flow through boundary patches ? Thank you

 May 23, 2006, 03:56 Hi Aurore, In order to calc #4 New Member   Julien FAURE-BONDAT Join Date: Mar 2009 Posts: 8 Rep Power: 15 Hi Aurore, In order to calculate mass flow through boundary patches you have to use "extract part" from the filter menu, then select the boundary patch you want. And then, use "Surface flow" on your extracted part.

 May 23, 2006, 05:09 Hi Julien, Thank you for yo #5 aurore Guest   Posts: n/a Hi Julien, Thank you for your answer because it works very well. Aurore

 June 13, 2006, 04:05 Hallo Aurore! Based on the is #6 Member   Dihao Tang Join Date: Mar 2009 Posts: 78 Rep Power: 15 Hallo Aurore! Based on the issue discussed above. I'm wondering how the mass flow is computed. Since I have the equation to obtain mass flow rate: mdot = (A * pt/sqrt[Tt]) * sqrt(gam/R) * M * [1 + .5 * (gam-1) * M^2 ]^-[(gam + 1)/(gam - 1)/2] Where mdot is mass flow rate we want to achieve, Tt is the total temperature, pt is the total pressure, M is Mach number, gam is the specific heat ratio. So I guess you have to define total temp and pressure somewhere in your preprocessing, am I right? So I want to know which solver did you use in FoamX? And how you defined pt, Tt boundary conditions? Thanks by the way!

 February 16, 2022, 00:33 #7 Member   qutadah Join Date: Jun 2021 Location: Germany Posts: 89 Rep Power: 3 do you mean extract block or surface? I tried both and it only shows in the options internalmesh to choose, there are no regions or patches i can use from, thanks!

 February 23, 2022, 03:35 How to Calculate the FlowRate and Plot it Over Time in ParaView #8 Senior Member   Asmaa Join Date: Mar 2016 Posts: 102 Rep Power: 8 Hello, I think this may help you! https://youtu.be/vgFL8kv320w

February 24, 2022, 16:52
multiphase
#9
Member

Join Date: Jun 2021
Location: Germany
Posts: 89
Rep Power: 3
So i tried your video, i used extract block, however in my case i couldnt extract the block first and then calculator, I had to do calculator first... then extract block inlet and outlet patches and then integrate variables.

So thanks I have that!

Quote:
 Originally Posted by aurore Hi Julien, Thank you for your answer because it works very well. Aurore
Quote:
 Originally Posted by foamiste Hello, I think this may help you! https://youtu.be/vgFL8kv320w