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

mass flow rate on a patch

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By tperet
  • 2 Post By miotto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2017, 12:00
Default mass flow rate on a patch
  #1
New Member
 
thomas peret
Join Date: Jul 2016
Posts: 6
Rep Power: 9
tperet is on a distinguished road
Hi everyone,

I performed a simulation of the flow of a fluid (here water) within a spray gun device with the interFoam solver. I can make a nice video of the evolution of my alpha.water field using paraview but now I'm more interested in getting the outcome mass flow rate with respect to time. I created a patch named "outlet" which denotes the output surface. Basically, what I want is, at each time step, the integral over the surface of (rho*alpha*U.n) where n is the normal vector of the surface, U the velocity, alpha the volumetric rate of water and rho the density of my fluid.

I tried to use (without success obviously) the postprocessing tool with those two command lines:

1) postProcess -fields "(alpha.water)" -func "volflowRateSurface(name=outlet)"
2) postProcess -fields "(alpha.water)" -func "flowRatePatch(name=outlet)"

Does anybody have a solution or a few advices to solve my problem ? When I looked it up on forums and so on, I saw people getting their "postprocessed" results whilst the computation is running but I didn't make out the explanations at all...

Thanks a lot,

Thomas
miotto likes this.
tperet is offline   Reply With Quote

Old   April 8, 2020, 02:31
Default
  #2
Member
 
Gui Miotto
Join Date: Feb 2020
Posts: 30
Rep Power: 6
miotto is on a distinguished road
I did this in following way:


patchIntegrate


Not quite sure it is the best solution, though.
granzer and FloB like this.

Last edited by miotto; April 8, 2020 at 17:13.
miotto 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
Discrete Phase Model, outlet mass flow rate does not fit edu_aero FLUENT 29 February 3, 2020 08:38
Mass Flow rate in DPM model tohidtkz FLUENT 0 November 7, 2015 04:13
Periodic channel flow with time dependent mass flow rate QBeast FLUENT 3 May 10, 2013 13:14
Mass Flow Rate is not converging destgir448 CFX 5 December 11, 2010 05:55
Target mass flow rate Saturn FLUENT 0 December 10, 2004 04:18


All times are GMT -4. The time now is 17:42.