|
[Sponsors] |
August 4, 2010, 06:52 |
calculate mass flow rate on face OpenFoam
|
#1 |
Member
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 17 |
Dear All,
could some please tell me how to calculate mass flow rate on face OpenFoam. I need it for a Presentation. Thanks in advance, Ronaldo |
|
August 5, 2010, 06:27 |
|
#2 |
New Member
Robert Langner
Join Date: Dec 2009
Location: Freiburg, Germany
Posts: 27
Rep Power: 17 |
Hi ronaldo,
you can get the mass flux by volume flux * density. The volume flux you can read out directly from the result directories (0.*). You just need to know the number of your expected face. But normally the mass flux is needed for a whole patch (to be independent from the cell resolution). In these cases you can use the function: patchIntegrate phi <patchName> -case <caseName> There are more functions which may provide you a more elegant way: http://openfoamwiki.net/index.php/Co...unctionObjects Or if you got OF 1.6, you can simply use the mass flow functions :-)) Regards, Robert Last edited by Robat; August 5, 2010 at 06:31. Reason: add link |
|
August 6, 2010, 09:47 |
|
#3 |
Member
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 17 |
Thank you so much Robat,
I have tried, but it not works.This is the message Table of functionObjects is empty From function functionObject::New(const word& functionType, const Time&, const dictionary&) in file db/functionObject/functionObject.C at line 75. |
|
August 9, 2010, 11:21 |
|
#4 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
|
|
August 20, 2010, 08:05 |
compatible with 1.6 or 1.7
|
#5 |
Member
|
Is this compatible with 1.6 or higher vesion?
I tried to compile with 1.6 and ended up with some errors.! Regards Raghu |
|
August 27, 2010, 06:26 |
|
#6 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
it works on my 1.7.0 installation. Use the attached tar.gz : it contains a few modifications to make compatible with newer version
|
|
August 27, 2010, 06:56 |
thanks.. It worked
|
#7 |
Member
|
Hi Emanuele,
Thanks for the attached file.. I was able to compile in OF 1.7 Regards Raghu |
|
November 8, 2019, 01:10 |
Compiling Error of calcMassFlow utility
|
#8 | |
Member
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 8 |
Quote:
I do not know whether you are still here or not. I tried to compile this utility but it shows the following error in OpenFOAM 3.0.1. Do you know the reason for that? HTML Code:
calcMassFlow.C: In function ‘int main(int, char**)’: calcMassFlow.C:169:31: error: ‘endTime’ was not declared in this scope for (label i=startTime; i<endTime; i++) Cheers Razon |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow rate not conserved in turbomachine, interface defined wrong? | wildli | FLUENT | 3 | September 15, 2022 13:19 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
dieselFoam- Density and mass flow rate | Rachel | OpenFOAM Running, Solving & CFD | 1 | July 20, 2009 07:36 |
How to change from mass flow to volume flow rate | stanley | FLUENT | 1 | February 2, 2007 07:44 |
How to calculate the mass flow rate with UDF ? | HP | FLUENT | 0 | January 10, 2005 20:38 |