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

mass flow rate

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By xerox

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2017, 16:20
Default mass flow rate
  #1
New Member
 
majid
Join Date: Oct 2016
Posts: 3
Rep Power: 9
majidroozbahani is on a distinguished road
dear all formers
i have a problem to calculate the mass flow rate on a patch!
i saw a lot of threads about this problem but unfortunately non of them worked for me!!
The way that i tried, was using the below comment in terminal:
patchIntegrate phi inlet -latestTime

but the OF says it doesn't work on this version (my OF version is 4.1)
so you should use postProcess -func

I use this comment in terminal:
postProcess -func phi -latestTime

but it shows me the below error!!

Create time

Create mesh for time = 0.0101001

--> FOAM Warning :
From function static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<>&, const Foam::word&)
in file db/functionObjects/functionObjectList/functionObjectList.C at line 245
Cannot find functionObject file phi
Time = 0.0101001

Reading fields:


Executing functionObjects

End

could you please tell me how to calculate mass flow rate on inlet and outlet?
thank you
majid
majidroozbahani is offline   Reply With Quote

Old   January 5, 2018, 03:57
Default
  #2
New Member
 
Join Date: Nov 2017
Location: Germany
Posts: 11
Rep Power: 8
elomri is on a distinguished road
Try to use the #includeFunc flowRatePatch(name=inlet)
this works for me in OF 4.1
elomri is offline   Reply With Quote

Old   July 29, 2018, 13:43
Default
  #3
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Quote:
Originally Posted by elomri View Post
Try to use the #includeFunc flowRatePatch(name=inlet)
this works for me in OF 4.1
Hi,
Can you elaborate a little more by what you meant by this?

Thanks
deepbandivadekar is offline   Reply With Quote

Old   August 7, 2018, 09:19
Default
  #4
New Member
 
Join Date: May 2018
Posts: 14
Rep Power: 7
Jeneas is on a distinguished road
In the controlDict:
functions
{
#includeFunc nameofthefunction
}
Jeneas is offline   Reply With Quote

Old   August 7, 2018, 09:24
Default
  #5
New Member
 
Join Date: May 2018
Posts: 14
Rep Power: 7
Jeneas is on a distinguished road
And he talk about the function flowRatePatch in

/etc/caseDicts/postProcessing/flowRate/flowRatePatch
Jeneas is offline   Reply With Quote

Old   August 20, 2018, 08:45
Default
  #6
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Quote:
Originally Posted by Jeneas View Post
In the controlDict:
functions
{
#includeFunc nameofthefunction
}

Alright! Thanks, I'll try this.
deepbandivadekar is offline   Reply With Quote

Old   February 4, 2019, 07:59
Default
  #7
New Member
 
Join Date: Aug 2015
Posts: 10
Rep Power: 10
xerox is on a distinguished road
Quote:
Originally Posted by majidroozbahani View Post
dear all formers
i have a problem to calculate the mass flow rate on a patch!
i saw a lot of threads about this problem but unfortunately non of them worked for me!!
The way that i tried, was using the below comment in terminal:
patchIntegrate phi inlet -latestTime

but the OF says it doesn't work on this version (my OF version is 4.1)
so you should use postProcess -func

I use this comment in terminal:
postProcess -func phi -latestTime

but it shows me the below error!!

Create time

Create mesh for time = 0.0101001

--> FOAM Warning :
From function static bool Foam::functionObjectList::readFunctionObject(const Foam::string&, Foam::dictionary&, Foam::HashSet<>&, const Foam::word&)
in file db/functionObjects/functionObjectList/functionObjectList.C at line 245
Cannot find functionObject file phi
Time = 0.0101001

Reading fields:


Executing functionObjects

End

could you please tell me how to calculate mass flow rate on inlet and outlet?
thank you
majid

Just for your interrest, the correct usage of the command is:



Code:
postProcess -func 'patchIntegrate(name=outlet,phi)' -latestTime
I still don't know why patchIntegrate and flowRatePatch show different results for the flux. Can anyone elaborate?



According to this page

http://openfoamwiki.net/index.php/Co...unctionObjects

patchIntegrate does the following:


\overline{\phi}=\frac{\sum_i \phi_i A_i}{\sum_i A_i}


However, flowRatePatch does show the theoretical (analytical) result but patchIntegrate gives a value 5 orders of magnitude lower.


Any help is appreciated. Thanks!
broccolibadger and sourav90 like this.
xerox is offline   Reply With Quote

Reply

Tags
mass flow rate, openfoam 4.1


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
Higher mass flow rate at outlets as compare to inlet Ahmed Saieed FLUENT 0 April 3, 2016 23:08
trying to perform accurate mass flow rate sampling through hot-film probe UTA_ARC ANSYS 0 December 2, 2015 13:20
Calculating mass flow rate at multiphase flows Kuslo187 OpenFOAM Post-Processing 1 August 21, 2015 18:11
mass flow rate in DPM steady tracking Roule FLUENT 4 June 1, 2015 10:44
mass flow rate error Masood FLUENT 0 May 22, 2005 00:32


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