CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Adding imaginary patch for calculation of average values (https://www.cfd-online.com/Forums/openfoam-solving/57931-adding-imaginary-patch-calculation-average-values.html)

bboonacker February 17, 2009 07:58

Hello OF'ers, I am simulati
 
Hello OF'ers,

I am simulating pipe flows and I have a question concerning the calculation of average velocities and pressures.
Is it possible to add something like an additional, imaginary, patch at a specified point in order to calculate the averages ?

I know it is possible within Paraview, but I am looking for something like patchAverage, although I do not want to use the Inlet or Outlet patch.

Thanks in advance,

Bart

antonio_ing February 17, 2009 09:20

hi Bart have a look in anot
 
hi Bart

have a look in another post regarding "pressure coefficients" in "Running / Solving / CFD". There someone suggested me to use probe points that save for each time you will store the value of velocity or pressure or whatever you want.

hope this helps

antonio

santos February 17, 2009 09:30

Hi Bart, Have a look at the
 
Hi Bart,

Have a look at the sample utility, that lies in $FOAM_UTILITIES/postProcessing/sampling/sample.

In that path you have a sampleDict dictionary, that I believe is self-explanatory.

Just place that dictionary in the system directory of your case, and make the necessary adjustments to get the values belonging to the plane your are interested in.

Regards,
Jose Santos

bboonacker February 20, 2009 05:13

Hello Jose, Thanks for the
 
Hello Jose,

Thanks for the tip, it works perfectly.
Now I only have to average the pressure on each surface and then I'm done http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

Bart

Subodh June 1, 2009 23:00

Hi Bart,

Did you able to calculate average from sampled data for planes. Though my patch is not a plane but i have sampled data, and I want to calculate average value from it. Can you help me out ??

Thanks in advance
Subodh


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