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/)
-   -   integration in postprocessing (https://www.cfd-online.com/Forums/openfoam-post-processing/132375-integration-postprocessing.html)

mmmn036 March 31, 2014 00:21

integration in postprocessing
 
1 Attachment(s)
Hello,

I need to integrate the following equation for all time steps.

http://www.cfd-online.com/Forums/att...1&d=1396238895

U(y) is instantaneous velocity from simulation. y is in vertical direction and C is a constant. I need to calculate it for every meshgrid in x direction (streamwise).

Anyone can help?

Thanks
mmmn

huangxianbei April 3, 2014 21:12

Hi
I'm also facing this problem. I found this
http://www.cfd-online.com/Forums/ope...tml#post221235
But I can't compile the code, with the error without .dep file. Perhaps the code only works for of-1.6.

I'm a little confused about the integration in openfoam. If I want to integrate a variable, is it means that sum(U*dL)/L,U is the variable value on the cell center and L is the direction you want to integrate, dL is the length of the cell in this direction


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