|
[Sponsors] |
February 15, 2021, 13:19 |
Calculate flowrate of a scalarField
|
#1 |
Member
Join Date: Mar 2019
Posts: 31
Rep Power: 7 |
Hi,
with "flowRatePatch" postprocess function you can calculate the volumetric or mass flow rate through a patch, reading the phi scalarfield. I want to calculate the flowrate of a concentration (scalarfield T). There is a postprocess function to calcolate the flowrate of phi*T? or there is a way to multiply these 2 fields? the problem is that T has 1 value per cell, phi has 1 value per face so it has to be a openfoam function that associate cell T value with phi value of cell faces Thanks |
|
February 15, 2021, 14:43 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Maybe helps?
- surfaceInterpolate function object to obtain (somewhat) equivalent surface field values from volumetric field values (using T). - Multiply the two fields (surfaceInterpolated T and phi) by using `multiply` function object.
__________________
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 |
|
February 15, 2021, 16:24 |
|
#3 | ||
Member
Join Date: Mar 2019
Posts: 31
Rep Power: 7 |
Quote:
calcolate surfaceInterpolated and multiplying for phi is the same as multiply T cellcenter value for phi? if yes, I have to write this in controlDict Quote:
as last step after I have the new volScalarField I rename it as "phi" and use "flowRatePatch", right? |
|||
February 15, 2021, 16:58 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
For the first question: dont know.
For the second question: Please see incompressible/pisoFoam/RAS/cavity tutorial's controlDict.
__________________
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 |
|
February 16, 2021, 04:47 |
|
#5 | |||
Member
Join Date: Mar 2019
Posts: 31
Rep Power: 7 |
Quote:
I tried this too Quote:
and probably I have to use Quote:
|
||||
February 16, 2021, 09:40 |
|
#6 |
Member
Join Date: Mar 2019
Posts: 31
Rep Power: 7 |
the answer is in this post:
how to calculate mass flow rate on patches and summation of that during the run? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculate Mass Flowrate at a faceZone with OpenFOAM4 | donQi | OpenFOAM Post-Processing | 1 | August 31, 2016 21:13 |
calculate velocity difference | helly | OpenFOAM Post-Processing | 0 | June 21, 2016 08:49 |
How to calculate T+gradT where T is volScalarField and gradT is scalarField ??? | Zhiheng Wang | OpenFOAM Programming & Development | 4 | May 28, 2016 13:51 |
calculate values for eps and k from Re or u????? | sbar | OpenFOAM Pre-Processing | 5 | August 16, 2010 04:10 |
How to calculate Torque for francis turbine | manish | CFX | 4 | March 15, 2007 02:57 |