CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > 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 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: 4
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: 130
Rep Power: 8
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: 4
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: 236
Rep Power: 8
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
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 inlet and pressure outlet issue nikhil FLUENT 5 December 11, 2013 13:30
mass flow inlet and pressure outlet with target mass flow rate Zigainer FLUENT 10 January 5, 2013 22:51
Net mass flow inlet vs outlet Nigui28 FLUENT 1 August 12, 2011 10:09
Compressible flow, no data at the outlet mireis FLUENT 1 July 28, 2010 05:22
Inlet and outlet flow rate Neser CFX 1 March 2, 2004 17:02


All times are GMT -4. The time now is 23:30.