CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > 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 Tree2Likes
  • 1 Post By Aurelien Thinat
  • 1 Post By kripalpariyangat

Reply
 
LinkBack Thread Tools Display Modes
Old   February 23, 2012, 11:19
Default Calculation of mass flow rate in OpenFOAM 2.0.1
  #1
New Member
 
Join Date: Oct 2011
Posts: 20
Rep Power: 5
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, 11:37
Default
  #2
Member
 
Rob
Join Date: Sep 2011
Posts: 55
Rep Power: 5
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, 11:45
Default
  #3
New Member
 
Join Date: Oct 2011
Posts: 20
Rep Power: 5
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, 11:46
Default
  #4
Senior Member
 
Aurelien Thinat
Join Date: Jul 2010
Posts: 154
Rep Power: 7
Aurelien Thinat is on a distinguished road
You can just use the command "patchIntegrate phi patchname", can't you ?
utkunun likes this.
Aurelien Thinat is offline   Reply With Quote

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

Old   February 29, 2012, 05:24
Default
  #6
New Member
 
Join Date: Jan 2012
Posts: 23
Rep Power: 5
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, 09:47
Default
  #7
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
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, 12:22
Default
  #8
New Member
 
Join Date: Jan 2012
Posts: 23
Rep Power: 5
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

How to plot flow rate over time with Paraview

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: 8
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: 490
Rep Power: 9
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: 8
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
Join Date: Feb 2014
Location: Bangalore
Posts: 48
Rep Power: 3
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

Reply

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

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: calculation v/s computation beguxa FLUENT 4 June 8, 2013 16:17
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 05:18


All times are GMT -4. The time now is 14:34.