CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to find Mass flow at the inlet and outlet patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2016, 13:02
Default How to find Mass flow at the inlet and outlet patch
  #1
Member
 
Sheikh Ahmed
Join Date: Dec 2015
Location: South Carolina, USA
Posts: 88
Rep Power: 10
sahmed is on a distinguished road
Hi
Could anyone please share your thoughts about how can I find the mass flow at the inlet and outlet patches for a flow through a tube with minimum effor in OpenFOAM? I am using OF version 2.3.1 and I think 'calcMassFlow' utility works with the older versions. Any of your suggestion will be highly appreciated.
sahmed is offline   Reply With Quote

Old   June 3, 2016, 14:52
Default
  #2
New Member
 
Balajee
Join Date: Dec 2013
Posts: 13
Rep Power: 12
bala_gk1988 is on a distinguished road
Code:
patchIntegrate phi patchname
bala_gk1988 is offline   Reply With Quote

Old   June 3, 2016, 16:12
Default
  #3
Member
 
Sheikh Ahmed
Join Date: Dec 2015
Location: South Carolina, USA
Posts: 88
Rep Power: 10
sahmed is on a distinguished road
Thanks for your reply. Could you please tell me what is the 'phi' here. The Patchname here is the inlet and outlet for my case I believe.
Also, is this an openFoam command to find the mass flow?? PLEASE tell me a little more details.
Thanks once again.
sahmed is offline   Reply With Quote

Old   June 6, 2016, 11:47
Default
  #4
Member
 
Sheikh Ahmed
Join Date: Dec 2015
Location: South Carolina, USA
Posts: 88
Rep Power: 10
sahmed is on a distinguished road
Hi Balajee
Thanks for your sharing. I came to learn that 'patchIntegrae phi patchname -latestTime' is the openfoam command to integrate the quantity 'phi' that is calculated when I select the fluxRequired option in the system/fvSchemes as "p", changing from the default 'no'. The last line of the output from this command gives the integral of phi over the specified patch, which is nothing but the mass flow (in mass/time).
Is that correct? Please correct me if I am wrong.
sahmed is offline   Reply With Quote

Old   June 7, 2016, 05:24
Default
  #5
New Member
 
Balajee
Join Date: Dec 2013
Posts: 13
Rep Power: 12
bala_gk1988 is on a distinguished road
Yes. phi is a surfaceScalarField and it represents the mass flux across the faces. And patchIntegrate integrates phi over all the boundary faces in the patch and gives you the mass flux through that patch.
bala_gk1988 is offline   Reply With Quote

Reply

Tags
mass flow


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
Calculate Mass Flowrate and Mass Flow Averaged Total Pressure at inlet and outlet coolcrasher OpenFOAM Post-Processing 7 November 4, 2021 04:57
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
mass flow inlet and pressure outlet with target mass flow rate Zigainer FLUENT 13 October 26, 2018 05:58
Pressure Outlet Targeted Mass Flow Rate LuckyTran FLUENT 1 November 23, 2016 10:40
Net mass flow inlet vs outlet Nigui28 FLUENT 1 August 12, 2011 10:09


All times are GMT -4. The time now is 13:26.