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

Computing mass flow rate on an arbitrary plane

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 9, 2014, 18:05
Default Computing mass flow rate on an arbitrary plane
  #1
jvc
New Member
 
Jamie Canino
Join Date: Feb 2014
Posts: 2
Rep Power: 0
jvc is on a distinguished road
I need to compute the mass flow rate for a compressible unsteady flow through an arbitrary plane in my computational domain at each time step. I can compute the mass flow rate at a boundary fairly easily using

patchName = runTime.controlDict().lookupOrDefault<word>("inlet Name","inlet");
label patchIn = mesh.boundaryMesh().findPatchID(patchName);
scalar massflow = Foam::sum(rhoPhi.boundaryField()[patchID]);
Foam::reduce(massflow, sumOp<scalar>());

My problem is how to find the cells in the domain that I want without having a patch. Is there a way to define a "fake" patch just for post-processing? I'm running a solver that is based on interPhaseChangeFoam.

Thanks for the help.
jvc is offline   Reply With Quote

 

Tags
mass flow rate


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 rate: calculation v/s computation beguxa FLUENT 5 December 2, 2018 21:02
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Mass Flow rate through a plane titio OpenFOAM Post-Processing 9 August 22, 2017 03:46
Calculation of mass flow rate through a plane titio OpenFOAM Post-Processing 2 September 28, 2010 00:28
mass flow rate error Masood FLUENT 0 May 22, 2005 00:32


All times are GMT -4. The time now is 12:28.