CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

calculate mass flow rate on face OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By Robat
  • 2 Post By nuovodna

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2010, 05:52
Default calculate mass flow rate on face OpenFoam
  #1
Member
 
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 16
ronaldo is on a distinguished road
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
ronaldo is offline   Reply With Quote

Old   August 5, 2010, 05:27
Default
  #2
New Member
 
Robert Langner
Join Date: Dec 2009
Location: Freiburg, Germany
Posts: 27
Rep Power: 16
Robat is on a distinguished road
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
mm.abdollahzadeh likes this.

Last edited by Robat; August 5, 2010 at 05:31. Reason: add link
Robat is offline   Reply With Quote

Old   August 6, 2010, 08:47
Default
  #3
Member
 
toto
Join Date: Jun 2009
Posts: 71
Rep Power: 16
ronaldo is on a distinguished road
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.
ronaldo is offline   Reply With Quote

Old   August 9, 2010, 10:21
Default
  #4
Senior Member
 
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17
nuovodna is on a distinguished road
You can use calcMassFlow utility

http://openfoamwiki.net/index.php/Contrib_calcMassFlow
Attached Files
File Type: gz calcMassFLOW.tar.gz (64.3 KB, 201 views)
mm.abdollahzadeh and nanavati like this.
nuovodna is offline   Reply With Quote

Old   August 20, 2010, 07:05
Default compatible with 1.6 or 1.7
  #5
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Is this compatible with 1.6 or higher vesion?
I tried to compile with 1.6 and ended up with some errors.!

Regards
Raghu
raagh77 is offline   Reply With Quote

Old   August 27, 2010, 05:26
Default
  #6
Senior Member
 
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17
nuovodna is on a distinguished road
it works on my 1.7.0 installation. Use the attached tar.gz : it contains a few modifications to make compatible with newer version
nuovodna is offline   Reply With Quote

Old   August 27, 2010, 05:56
Default thanks.. It worked
  #7
Member
 
Raghavendra
Join Date: Mar 2009
Location: Goteborg, Sweden
Posts: 95
Rep Power: 17
raagh77 is on a distinguished road
Send a message via Yahoo to raagh77 Send a message via Skype™ to raagh77
Hi Emanuele,

Thanks for the attached file.. I was able to compile in OF 1.7

Regards
Raghu
raagh77 is offline   Reply With Quote

Old   November 8, 2019, 00:10
Default Compiling Error of calcMassFlow utility
  #8
Member
 
Mondal131211's Avatar
 
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7
Mondal131211 is on a distinguished road
Quote:
Originally Posted by nuovodna View Post
Hi Nuovodna,

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++)
Anyone can help me if that is known to you. Thanks in advance.

Cheers
Razon
Mondal131211 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 12:19
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
dieselFoam- Density and mass flow rate Rachel OpenFOAM Running, Solving & CFD 1 July 20, 2009 06:36
How to change from mass flow to volume flow rate stanley FLUENT 1 February 2, 2007 06:44
How to calculate the mass flow rate with UDF ? HP FLUENT 0 January 10, 2005 19:38


All times are GMT -4. The time now is 11:50.