Calculate flowrate of a scalarField
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 |
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. |
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? |
For the first question: dont know.
For the second question: Please see incompressible/pisoFoam/RAS/cavity tutorial's controlDict. |
Quote:
I tried this too Quote:
and probably I have to use Quote:
|
|
All times are GMT -4. The time now is 04:30. |