CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Reagrding autocorrelation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By flotus1

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 1, 2020, 09:53
Default Reagrding autocorrelation
  #1
Senior Member
 
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7
ari003 is on a distinguished road
To have a proper understanding I started with a short dataframe where the 2nd column represensts velocity at different time-step collected from a probe (for example). And I m trying to plot the correlation function with time lag.
PHP Code:
time    U
1    10.22
2    10.54
3    10.15
4    10.87
5    10.24
6    10.35
7    10.45
8    10.75
9    10.58
10    10.4 

r(s)=⟨U(t)U(t+S)⟩/⟨⋃(t)^2 ⟩

And the above formula is my auto-correlation function where τ is my time lag.
Now as far my my knowledge it is calculated as follows (explaining with this example).
1. The denominator is just when τ =0. So
Quote:
<u(1)*u(1)+u(2)*u(2)…….u(10)*u(10)>
In this way we found the mean <u2>.

2. The τ = 0 to 10
Quote:
For r(0)= <u2>/<u2> =1
For r(1)= <u(1)u(2)+u(2)u(3)……+u(8)u(9)+u(9)u(10)>/ <u2>.
Similarly it will be on till 10 where finally r(10)=0

Now my questions are:-
1. Does this procedure really happen like this?
2. If so then I tried it in MATLAB and it gave results with negative( whereas my U are all positive). How is that possible?

I ve attached a word doc for better understanding of my doubt. Will be really helpful if someone helps.
Attached Files
File Type: docx Doubt.docx (33.5 KB, 8 views)
ari003 is offline   Reply With Quote

 


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
autocorrelation in Matlab pappo1890 OpenFOAM 5 March 24, 2020 07:22
Energy Spectrum !!! stanking Main CFD Forum 107 October 21, 2016 10:48
Question about autocorrelation in turbulent flow pban92 Main CFD Forum 0 May 16, 2011 08:14
[OpenFOAM] Velocity autocorrelation and droplet counting coastal593 ParaView 0 March 12, 2008 00:27
tecplot: help reagrding ploting 2 diff data....... Kiran FLUENT 1 July 27, 2006 06:29


All times are GMT -4. The time now is 14:27.