CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > 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 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: 8
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: 7
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: 8
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: 8
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, 140 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: 94
Rep Power: 8
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: 8
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: 94
Rep Power: 8
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

Reply

Thread Tools
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 On
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 2 July 8, 2015 11:38
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
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 07:44
How to calculate the mass flow rate with UDF ? HP FLUENT 0 January 10, 2005 20:38


All times are GMT -4. The time now is 18:00.