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

Flow/ Velocity Calculation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2012, 14:49
Default Flow/ Velocity Calculation
  #1
Member
 
Nikunj Raithatha
Join Date: Jul 2012
Location: Washington DC
Posts: 47
Rep Power: 13
Nikunj.R is on a distinguished road
Hello All!

As shown in the attached figure, I have fluid passing in positive and negative direction, through a plane. I was wondering, if there is a way to calculate the average flowrate (or even velocity) that is going in positive direction and negative direction separately.

In paraFoam, I tried using "integrateVariable" filter for this plane, but it is giving me integrated total velocity through this plane and not negative and positive values.

Any help in this regard will be greatly appreciated. Thanks for your time.


Regards,
Nikunj.
Attached Images
File Type: jpg Vz.jpg (17.7 KB, 12 views)
Nikunj.R is offline   Reply With Quote

Old   November 21, 2012, 18:19
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Nikunj.R View Post
Hello All!

As shown in the attached figure, I have fluid passing in positive and negative direction, through a plane. I was wondering, if there is a way to calculate the average flowrate (or even velocity) that is going in positive direction and negative direction separately.

In paraFoam, I tried using "integrateVariable" filter for this plane, but it is giving me integrated total velocity through this plane and not negative and positive values.

Any help in this regard will be greatly appreciated. Thanks for your time.


Regards,
Nikunj.
Something like (this is just a sketch, assumes that you're either on a faceSet, faceZone or sampledSurface)

Code:
variables (
    "upArea=sum(U.z>0 ? area() : 0);"
    "upVelSum=sum(U.z>0 ? U.z*area() : 0);"
);

expression "upVelSum/max(upArea,1e-15)";
in swak4Foam could do the trick.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
internal flow BCs: pressure driven versus velocity driven mihaipruna OpenFOAM Running, Solving & CFD 22 March 6, 2014 10:06
Steady pipe flow mean velocity higher than inlet velocity anita OpenFOAM Running, Solving & CFD 7 September 25, 2012 05:35
reversed flow at velocity inlet / mass flow inlet ib FLUENT 1 March 26, 2007 13:11
flow simulation across a small fan jane luo Main CFD Forum 15 April 12, 2004 17:49
Rotation flow calculation. Hans FLUENT 0 March 31, 2003 06:03


All times are GMT -4. The time now is 03:44.