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

Comparison Mass flow rate at the inlet and outlet???

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 6, 2012, 00:29
Default Comparison Mass flow rate at the inlet and outlet???
  #1
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
Hi dear Foamers.

I have a question,please help me?
I want to Comparison Mass flow rate at the inlet and outlet in my geometry after running???
but i dont know hot to get them???

Thanks for your attention.
vahid.najafi is offline   Reply With Quote

Old   October 6, 2012, 09:02
Default
  #2
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 17
wouter is on a distinguished road
hello,

did you take the trouble to search the forum for mass flow rate?
I got a lot of hits, so maybe one will solve your problem

Best
Wouter
wouter is offline   Reply With Quote

Old   October 6, 2012, 10:24
Default Tnx
  #3
Member
 
vahid
Join Date: Feb 2012
Location: Mashhad-Iran
Posts: 80
Rep Power: 13
vahid.najafi is an unknown quantity at this point
Hi Wouter.
Thanks for your Guidance!
vahid.najafi is offline   Reply With Quote

Old   October 25, 2012, 13:36
Default
  #4
Senior Member
 
HECKMANN Frédéric
Join Date: Jul 2010
Posts: 249
Rep Power: 16
fredo490 is on a distinguished road
A bit late but here is your answer :
http://openfoamwiki.net/index.php/Ho...e_density_flow


Code:
    label inletPatch = mesh.boundaryMesh().findPatchID("velocity_inlet"); 
 
    // if we don't have such a patch, warn the user
    if (inletPatch==-1) 
    {
	Info << "Failure to find patch named velocity_inlet for mass flow calc."
	     <<endl;
    }
    else   // calculate the result and do output
    {
	scalar inFlux = -1.0* sum(phi.boundaryField()[inletPatch]); 
 
	Info << "   Inflow= " << inFlux    <<" [kg/s]  " ;
you can repeat the "inletPatch" declaration for an outlet and then plot it or do the subtraction.
fredo490 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 inlet and pressure outlet with target mass flow rate Zigainer FLUENT 13 October 26, 2018 05:58
Compressible flow, no data at the outlet mireis FLUENT 6 September 3, 2015 02:10
Mass flow inlet and pressure outlet issue nikhil FLUENT 5 December 11, 2013 12:30
Net mass flow inlet vs outlet Nigui28 FLUENT 1 August 12, 2011 10:09
Inlet and outlet flow rate Neser CFX 1 March 2, 2004 16:02


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