CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

cavitatingFoam: calculate the mass flow rate in a specific area

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2015, 13:43
Default cavitatingFoam: calculate the mass flow rate in a specific area
  #1
New Member
 
Sylvain
Join Date: Sep 2014
Posts: 5
Rep Power: 12
sylv20 is on a distinguished road
If the specific area is corresponding to a patch you can use "patchIntegrate U patchName" that will give you the volume flow rate over the patch area.

Knowing the flow density you get the mass flow rate (if incompressible).
sylv20 is offline   Reply With Quote

Old   September 7, 2015, 05:23
Default cavitatingFoam: calculate the mass flow rate in a specific area
  #2
New Member
 
ali
Join Date: May 2015
Posts: 1
Rep Power: 0
taeb is on a distinguished road
In cavitatingFoam I want to calculate the mass flow rate in a specific area, but I do not know how to do
How should I determine the surface area and then how do I calculate the mass flow rate
please help me
taeb is offline   Reply With Quote

Old   September 7, 2015, 14:07
Default
  #3
New Member
 
Damon Lee
Join Date: Sep 2014
Posts: 16
Rep Power: 12
D_LEE is on a distinguished road
Quote:
Originally Posted by taeb View Post
In cavitatingFoam I want to calculate the mass flow rate in a specific area, but I do not know how to do
How should I determine the surface area and then how do I calculate the mass flow rate
please help me
It sounds complicated to do, have you seen this?: http://scicomp.stackexchange.com/que...ge-in-openfoam

If you get that working then you could calculate the mass flow through that circular surface easily.
D_LEE is offline   Reply With Quote

Old   September 7, 2015, 15:16
Default
  #4
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12
Saideep is on a distinguished road
Hi I guess swak4Foam utility could help you out!!

So, I guess you want to know the outflow at the outlet right?

Then you can just install swak4Foam and use related code within the controlDict file under functions. You also have a good flexibility to choose the location where you want to obtain the mass flow, cumulative sum, velocity avg. etc.

I can attach you a code that i recently used. But if you want the flow over the face of a specific cell it is complicated but i guess swak4Foam will also help you there.

This post was something i made use of, {though there are many almost similar to this}.

http://www.cfd-online.com/Forums/openfoam-post-processing/115428-how-calculate-mass-flow-rate-patches-summation-during-run.html

Saideep
Saideep is offline   Reply With Quote

Old   September 30, 2015, 06:36
Default
  #5
Member
 
Sravan Kumar
Join Date: May 2014
Posts: 57
Rep Power: 12
coolcrasher is on a distinguished road
Code:
patchIntegrate phi patchName
will give you the volume flowrate of fluid at the patch, which you need to run after your case has compleated its run.

However you can also do it using function objects in control dict using function object named facesource. just look for it and you can fix your problem
coolcrasher 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
Pressure Outlet Targeted Mass Flow Rate LuckyTran FLUENT 1 November 23, 2016 11:40
UDF to access interior surface to calculate mass flow rate shahjehan Fluent UDF and Scheme Programming 0 August 11, 2015 15:44
mass flow rate in DPM steady tracking Roule FLUENT 4 June 1, 2015 11:44
Mass flow rate Neser CFX 4 February 14, 2004 01:27


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