CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Flow/ Velocity Calculation (https://www.cfd-online.com/Forums/openfoam-post-processing/109512-flow-velocity-calculation.html)

Nikunj.R November 19, 2012 15:49

Flow/ Velocity Calculation
 
1 Attachment(s)
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.

gschaider November 21, 2012 19:19

Quote:

Originally Posted by Nikunj.R (Post 393045)
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.


All times are GMT -4. The time now is 08:11.