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

Calculation of mass flow rate in OpenFOAM 2.0.1

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

Like Tree4Likes
  • 2 Post By Aurelien Thinat
  • 1 Post By kripalpariyangat
  • 1 Post By Manojmech

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2012, 10:19
Default Calculation of mass flow rate in OpenFOAM 2.0.1
  #1
New Member
 
Join Date: Oct 2011
Posts: 20
Rep Power: 14
rawe666 is on a distinguished road
Hello friends,
After looking around the forums and reading some posts, I am confused with the measurement of mass flow rate in Openfoam. I want to calculate the values of my inlet and outlet patches. Could anybody can show me the proper way in OpenFoam 2.0.1? I am sorry for taking your time with that simple question.

Kind regards
rawe666 is offline   Reply With Quote

Old   February 23, 2012, 10:37
Default
  #2
Member
 
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 14
robbirobocop is on a distinguished road
Here you go...
This is probably one of the easier ways to do so.
robbirobocop is offline   Reply With Quote

Old   February 23, 2012, 10:45
Default
  #3
New Member
 
Join Date: Oct 2011
Posts: 20
Rep Power: 14
rawe666 is on a distinguished road
thank you for your reply I saw the post you send me. But still have a doubt are you talking about calcMassFlow utility? It seems to be it is valid for ver. 1.4
rawe666 is offline   Reply With Quote

Old   February 23, 2012, 10:46
Default
  #4
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 15
Aurelien Thinat is on a distinguished road
You can just use the command "patchIntegrate phi patchname", can't you ?
Barbara and utkunun like this.
Aurelien Thinat is offline   Reply With Quote

Old   February 23, 2012, 10:52
Default
  #5
New Member
 
Join Date: Oct 2011
Posts: 20
Rep Power: 14
rawe666 is on a distinguished road
Thank you it works!
rawe666 is offline   Reply With Quote

Old   February 29, 2012, 04:24
Default
  #6
New Member
 
Join Date: Jan 2012
Posts: 23
Rep Power: 14
Abhinay Kulkarni is on a distinguished road
Hi Aurelien,

I have used the "patchIntergrate phi Patchname" command. I want to calculate the mass flow at my oultet patch and also want to plot it over the time in paraview. I have two questions

1. Is the mass flow calculated by the patchIntergrate command stored somewhere?? or is just shown in the terminal.

2. Do you have an idea on plotting/viewing the mass flow at a particular patch in paraview?

Thank you in advance

Regards
Abhinay
Abhinay Kulkarni is offline   Reply With Quote

Old   February 29, 2012, 08:47
Default
  #7
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Dear Abhinay,

I am interested in this feature, too.

Have you solved it, by chance?

If so, what have you done?

Thanks,

Samuele.
samiam1000 is offline   Reply With Quote

Old   February 29, 2012, 11:22
Default
  #8
New Member
 
Join Date: Jan 2012
Posts: 23
Rep Power: 14
Abhinay Kulkarni is on a distinguished road
Hi Samuele,

unfortunately i have not found a solution although i did find an interesting discussion on the forum. I did try the way suggested here but have not quite understood the method. Still searching . Here is the link

http://www.cfd-online.com/Forums/ope...-paraview.html

Let me know if you figure it out.

Regards
Abhinay
Abhinay Kulkarni is offline   Reply With Quote

Old   May 15, 2012, 06:14
Default
  #9
New Member
 
Kripal
Join Date: May 2009
Posts: 8
Rep Power: 16
kripalpariyangat is on a distinguished road
Hi All,

You can save the data into a text file

use

patchIntegrate phi INLET >inletflow

This will create a file named "inletflow" in which the data will be saved at each timestep. Hope this helps
kripalpariyangat is offline   Reply With Quote

Old   May 15, 2012, 06:34
Default
  #10
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Hi all,

thanks for help.

Just a question: where should I insert the command
Code:
patchIntegrate phi INLET >inletflow
?
Should I insert it in a control-dict file or something like this?

Thanks a lot,

Samuele.
samiam1000 is offline   Reply With Quote

Old   May 15, 2012, 06:43
Default
  #11
New Member
 
Kripal
Join Date: May 2009
Posts: 8
Rep Power: 16
kripalpariyangat is on a distinguished road
Hi Samuele,

Get inside the case folder using cd command in command prompt and then used the "patchIntegrate" command.

Note: if the case is a decomposed one, reconstruct it and then use this command

Regards
Kripal
samiam1000 likes this.
kripalpariyangat is offline   Reply With Quote

Old   May 13, 2014, 04:23
Default
  #12
Member
 
adarsh tiwari's Avatar
 
adarsh tiwari
Join Date: Feb 2014
Location: Bangalore
Posts: 42
Blog Entries: 5
Rep Power: 12
adarsh tiwari is on a distinguished road
hi all,

I am relatively new in OpenFOAM and with my observation i can say that patchIntegrate gives the integrated values, but what to do if somebody is interested in calculating the average values for the same

I tried using
Code:
patchAverage phi Inlet
but it doesn't works..

Thanks and Regards,
Adarsh
adarsh tiwari is offline   Reply With Quote

Old   December 3, 2015, 15:21
Default
  #13
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Hi everybody,

I meet a problem with calculating the mass flow rate. I would like to know if mass flow rate for an interior surface, instead of the boundary surfaces. Is this possible? My mesh is 3D and generated by ICEM. Actually I have made an interior surface there, but as you may know, for openfoam, this interior surface does not appear in the boundary list (constant/polymesh/boundary). So it seems that "patchIntegrate phi BC_name" doed not work for this. Anybody has some ideas for this? Thank you so much.

best regards,
OFFO
openfoammaofnepo is offline   Reply With Quote

Old   April 5, 2017, 04:48
Default MFR in interior surfaces
  #14
New Member
 
cfdRocker
Join Date: Jun 2011
Posts: 5
Rep Power: 14
Manojmech is on a distinguished road
Hi All,

I have to reopen this thread. I think its been 2 years since the last post. OPenfoam has developed more now. I would like to know if there is anyway to calculate mass flow rate in any of the interior surfaces ?

Regards,
Manoj
sandra92g likes this.
Manojmech is offline   Reply With Quote

Old   November 17, 2017, 11:14
Default MassFlowRate; Inlet and Oulet Patch
  #15
Member
 
Shafik Walakaka
Join Date: Oct 2017
Posts: 38
Rep Power: 8
walakaka is on a distinguished road
Hi guys,

I am also needing to calculate the mass flow rate at the inlet and outlet to ensure that the mass is conserved.

Is there a way to do it on Openfoam4?

Regards
Shaq
walakaka is offline   Reply With Quote

Old   November 21, 2017, 10:18
Default
  #16
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Have you guys tried flowRateInletVelocity? I found this BC on https://www.openfoam.com/documentati...conditions.php
RobertHB is offline   Reply With Quote

Reply

Tags
calculation mass fw rate, mass flow rate, mass flow rate inlet

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: calculation v/s computation beguxa FLUENT 5 December 2, 2018 21:02
Calculation of mass flow rate through a plane titio OpenFOAM Post-Processing 2 September 28, 2010 00:28
The reporting of mass flow rate summer FLUENT 1 July 12, 2007 09:35
mass flow rate error Masood FLUENT 0 May 22, 2005 00:32
Target mass flow rate Saturn FLUENT 0 December 10, 2004 04:18


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