|
[Sponsors] |
Computing mass flow rate on an arbitrary plane |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 9, 2014, 18:05 |
Computing mass flow rate on an arbitrary plane
|
#1 |
New Member
Jamie Canino
Join Date: Feb 2014
Posts: 2
Rep Power: 0 |
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. |
|
Tags |
mass flow rate |
|
|
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 |