|
[Sponsors] |
December 17, 2019, 07:10 |
Calculating mass flow rate through a slice
|
#1 |
New Member
Maksymilian Kurjata
Join Date: Jun 2019
Posts: 6
Rep Power: 6 |
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. |
|
December 17, 2019, 17:14 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
use flowRatePatch functionObject or something similar.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
|
|
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 |