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

Calculating mass flow rate through a slice

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2019, 07:10
Default Calculating mass flow rate through a slice
  #1
New Member
 
Maksymilian Kurjata
Join Date: Jun 2019
Posts: 6
Rep Power: 6
m.kurjata is on a distinguished road
Hello everyone,

I have a problem regarding the calculation of mass flow rate through a slice of my geometry (a combustion chamber). What I need to examine is recirculation in the inlet area. I won't upload any image of the chamber since the geometry doesn't matter here - the question is general.

I know how to do it in paraview, but this method is too slow for me and I'd like to automatize the whole process.

A different idea was to use a function added to controlDict (it would write data to a file for one slice):


sliceX
{
type surfaces;
writeControl timeStep;
writeInterval 100;
surfaceFormat vtk;
interpolationScheme cellPoint;
fields (rhoUxMean );

surfaces
(
interpolatedPlane
{
type cuttingPlane;
planeType pointAndNormal;
pointAndNormalDict
{
point (0.0 0.0 0.0);
normal (1 0 0);
}
triangulate true;
interpolate true;
}
);
}

where rhoUxMean is, of course, a product of the mean density and one component of the Velocity. The data file that's saved in the postProcessing Directory contains Point coordinates (one Point for each cell) and the rhoUxMean value for each point. Unfortunatelly, I can't integrate the mass flow using this data, since I don't know the area of each cell-slice and I can't assume that the area is constant for each of them

Is there any way to solve this problem by modifying the above solution or any other way to efficiently and quickly calculate the mass flow?

I hope my description of the problem isn't too vague.
m.kurjata is offline   Reply With Quote

Old   December 17, 2019, 17:14
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
use flowRatePatch functionObject or something similar.
HPE 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
Mass flow rate: calculation v/s computation beguxa FLUENT 5 December 2, 2018 21:02
calculating mass flow rate mohit68 FLUENT 2 March 6, 2018 11:54
Calculating mass flow rate at multiphase flows Kuslo187 OpenFOAM Post-Processing 1 August 21, 2015 18:11
mass flow rate... sanjar OpenFOAM Running, Solving & CFD 1 December 2, 2013 00:09
Calculating mass flow rate cfd novice FLUENT 1 April 3, 2008 18:31


All times are GMT -4. The time now is 21:49.