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

Correlation tensor

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By LuckyTran
  • 1 Post By FMDenaro
  • 1 Post By LuckyTran
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2019, 12:39
Default Correlation tensor
  #1
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
Hi,

I have several doubts on the correlation tensor component on the diagonal:

1. I have tried to calculate my correlation functions of a buoyant plume.
I have the velocity component recorded at a time step of 0.001 s, so starting from this formula

Rii (r) = \overline{ui (\underline{x},t)uj (\underline{x}+\underline{r},t)}
Since the overbar should be a time averaging, as stated by Tennenkes, i can write it:
Rii (r)= lim T\rightarrow\infty  \frac{1}{T} \int{ui (\underline{x},t)uj (\underline{x}+\underline{r},t)}dt
Moreover, provided that T is large enough, I can use the summation operator
Rii (r)= \frac{1}{T}\sum {ui (\underline{x},t)uj (\underline{x}+\underline{r},t)}\DeltaT

Is this approach correct? I have some colleagues that are telling me that in their opinion the overbar is a spatial average and that this calculation should be done at a fixed time step. That's why I am asking

2. As you can see in the file uploaded, Tennekes and Lumley have shown two examples of correlation function. Do you think that their trend that they have drawn is typical, or just casual? I have tried to plot mine, but they are really different from the ones of the Tennekes book, as you can see in the attached file
Attached Images
File Type: png RII.PNG (5.4 KB, 13 views)
File Type: png RIIM.PNG (27.1 KB, 16 views)
lucamirtanini is offline   Reply With Quote

Old   March 26, 2019, 13:07
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Yes, it is assumed that the time is fixed and the averaging is over the x direction so that the correlation is a function only of the separation r
FMDenaro is offline   Reply With Quote

Old   March 26, 2019, 13:14
Default
  #3
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Yes, it is assumed that the time is fixed and the averaging is over the x direction so that the correlation is a function only of the separation r
Thank you for your reply, but I have not understood your answer! Do you think that I should not time averaging?
Is the overbar a time averaging?
Why are you talking of x direction
lucamirtanini is offline   Reply With Quote

Old   March 26, 2019, 13:49
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by lucamirtanini View Post
Thank you for your reply, but I have not understood your answer! Do you think that I should not time averaging?
Is the overbar a time averaging?
Why are you talking of x direction



You are wrong, the expression of the Rii you wrote is a spatial correlation (see x and x+r) not a time correlation. Therefore it is assumed to perform the correlation operation at a certain time t. The overbar is the statistical mean and under suitable properties (ergodicity) the spatial and time averaging do converge towards the same mean
FMDenaro is offline   Reply With Quote

Old   March 26, 2019, 23:28
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,750
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
What you wrote is a spatial correlation (because x and x+r) and the overbar is averaging in time.


There is also a temporal correlation (where you'll find instead t and t+r).


To calculate the spatial correlation you need to measure velocity at all x (i.e. an entire line) for all time. If you measure velocity only at a single point, you won't be able to calculate the spatial correlation function.
lucamirtanini likes this.
LuckyTran is offline   Reply With Quote

Old   March 27, 2019, 03:11
Default
  #6
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
Thank you for your reply. Unfortunately I am still confused. If I follow the Tennekes book, the overbar is defined as a time average (page attached).

I think I ve explained badly. I ve placed 70 velocity device along the z axis (in the centerline of my domain), so I have decided that this axis define the direction of my separating vector r.

So I have done the correlation between these velocity component, but I have done a time average.

I do not understand if this procedure is right, or if I should have placed other velocity device in order to do a spatial average. Unfortunately I cannot find reference for the detail of this calculation
Attached Images
File Type: png overbar.PNG (55.8 KB, 9 views)
lucamirtanini is offline   Reply With Quote

Old   March 27, 2019, 04:01
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The overbar stands in general for a statistical mean like an ensemble averaging. Under particular assumption, this averaging as the same convegence of the time ans spatial averaging. However, the key is that you have to consider the separation r in space along x. Of course, if you have for example measurements in a plane of homogeneity of the flow, you can repeat this procedure along x at the others location in the plane (z direction). Then the overbar is performed by the time averaging and the spatial averaging along z
FMDenaro is offline   Reply With Quote

Old   March 27, 2019, 06:51
Default
  #8
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
The overbar stands in general for a statistical mean like an ensemble averaging. Under particular assumption, this averaging as the same convegence of the time ans spatial averaging.
When you say ensamble averaging, are you meaning a generic mean in time or space?

Quote:
Originally Posted by FMDenaro View Post
However, the key is that you have to consider the separation r in space along x. Of course, if you have for example measurements in a plane of homogeneity of the flow, you can repeat this procedure along x at the others location in the plane (z direction). Then the overbar is performed by the time averaging and the spatial averaging along z
So was my procedure right?

I multiplied the velocity components recorded at different location along the separating vector (as indicated in the formulae that I have shown), at the same time step, and then I have time averaged.
When you are talking about ensamble average are you meaning that there is not difference between time averaging or space averaging?
lucamirtanini is offline   Reply With Quote

Old   March 27, 2019, 07:27
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The meaning implied by the overbar operation is as same as that implied in the RANS equations, just consider that at r=0 the correlations are the entries of the unresolved Reynolds tensor.
FMDenaro is offline   Reply With Quote

Old   March 27, 2019, 08:04
Default
  #10
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
The meaning implied by the overbar operation is as same as that implied in the RANS equations, just consider that at r=0 the correlations are the entries of the unresolved Reynolds tensor.
I have not understood if your answer means yes or no
lucamirtanini is offline   Reply With Quote

Old   March 27, 2019, 08:10
Default
  #11
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
You did a time-averaging, that is correct for statistically steady and homogeneous flows for which ergodicity can be invoked.
There is not a unique definition for the overbar operation in defining RANS eqs.
lucamirtanini likes this.
FMDenaro is offline   Reply With Quote

Old   March 27, 2019, 08:27
Default
  #12
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
I am not using a RANS model, but a LES.

It is a statistically steady flow, but not homogeneous.

In the Tennekes book there is not an other explanation of the overbar, it is always defined as time averaging. Btw I cannot understand, in my case study, the sense of doing a spatial average in a flow like a buoyant plume, where there is not a defined domain like in a pipe, where the pipe defines the boundary of the flow. In this case is not easy to define in which point should I place the velocity device, since in certain points the velocity is almost 0.
lucamirtanini is offline   Reply With Quote

Old   March 27, 2019, 08:57
Default
  #13
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
https://nptel.ac.in/courses/11210411...elation_fn.htm

Also in these slide, it is assumed a time averaging.
lucamirtanini is offline   Reply With Quote

Old   March 27, 2019, 11:57
Default
  #14
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,750
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
So you have velocity at 70 different locations and many many time-steps right (let's say 1000 time-steps)?

At every time-step, you should do the sumproduct of the velocity with the velocity shifted by r (start with 0). Then you average over the 1000 time-steps. This gifts you Rij at r=0.

Then you shift by r=1. Take the sumproduct again. Average all 1000 again. This gives you Rij(r=1).

Repeat until you exhaust all the r's.

Again, this is the arithmetic way to do it which is in my opinion the best way for you to learn how to do it right now. Eventually you'll learn to abuse the Fourier properties and use the fft for large datasets.

This is how you get the spatial correlation. Temporal correlation (which has almost the exact same formula but you swap x with t) is done the other way around.

Quote:
Originally Posted by lucamirtanini View Post
It is a statistically steady flow, but not homogeneous.

In the Tennekes book there is not an other explanation of the overbar, it is always defined as time averaging. Btw I cannot understand, in my case study, the sense of doing a spatial average in a flow like a buoyant plume, where there is not a defined domain like in a pipe, where the pipe defines the boundary of the flow. In this case is not easy to define in which point should I place the velocity device, since in certain points the velocity is almost 0.
What you say is correct. The spatial correlation will be dependent on where you put your velocity measurement devices. This is not wrong, because Rij is a function of x and r. The x here is the reference location you take for your spatial correlation. Only in the case of homogeneous turbulence does the spatial correlation become degenerate and is the same at all locations.
lucamirtanini likes this.
LuckyTran is offline   Reply With Quote

Old   March 27, 2019, 12:34
Default
  #15
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by lucamirtanini View Post
I am not using a RANS model, but a LES.

It is a statistically steady flow, but not homogeneous.

In the Tennekes book there is not an other explanation of the overbar, it is always defined as time averaging. Btw I cannot understand, in my case study, the sense of doing a spatial average in a flow like a buoyant plume, where there is not a defined domain like in a pipe, where the pipe defines the boundary of the flow. In this case is not easy to define in which point should I place the velocity device, since in certain points the velocity is almost 0.



That is exactly what stated at page 28 in the textbook of Lumley to introduce the time-averaging. You will get the dependence of the correlation function on the position owing to the inhomogeneity of your flow problem. But you are safe if the problem is statistically steady.

To see more about the types of averaging and their properties, I suggest to have also a look to the book of Wilcox.
lucamirtanini likes this.
FMDenaro is offline   Reply With Quote

Old   March 27, 2019, 12:49
Default
  #16
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
So you have velocity at 70 different locations and many many time-steps right (let's say 1000 time-steps)?

At every time-step, you should do the sumproduct of the velocity with the velocity shifted by r (start with 0). Then you average over the 1000 time-steps. This gifts you Rij at r=0.

Then you shift by r=1. Take the sumproduct again. Average all 1000 again. This gives you Rij(r=1).

Repeat until you exhaust all the r's.

Again, this is the arithmetic way to do it which is in my opinion the best way for you to learn how to do it right now. Eventually you'll learn to abuse the Fourier properties and use the fft for large datasets.

This is how you get the spatial correlation. Temporal correlation (which has almost the exact same formula but you swap x with t) is done the other way around.

What you say is correct. The spatial correlation will be dependent on where you put your velocity measurement devices. This is not wrong, because Rij is a function of x and r. The x here is the reference location you take for your spatial correlation. Only in the case of homogeneous turbulence does the spatial correlation become degenerate and is the same at all locations.
Thank u for your answer. I am doing exactly like you said. So I am very happy.
Of course, I am doing this as training. Also because I have no background about signal processing, I am learning it. Do you have a good reference book for signal processing to recommend?
lucamirtanini is offline   Reply With Quote

Old   March 27, 2019, 13:03
Default
  #17
Senior Member
 
luca mirtanini
Join Date: Apr 2018
Posts: 165
Rep Power: 8
lucamirtanini is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
That is exactly what stated at page 28 in the textbook of Lumley to introduce the time-averaging. You will get the dependence of the correlation function on the position owing to the inhomogeneity of your flow problem. But you are safe if the problem is statistically steady.

To see more about the types of averaging and their properties, I suggest to have also a look to the book of Wilcox.
Thank u. also for the recommerndation
lucamirtanini is offline   Reply With Quote

Reply


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
Magnitude of a tensor mmkr825 OpenFOAM Programming & Development 9 October 23, 2024 00:41
From the correlation tensor Rii to the three-dimensional spectrum E(k). lucamirtanini Main CFD Forum 4 January 30, 2019 12:28
How Tensor Transforms Between Cartesian and Polar Coordinate Systems ChanStormstout OpenFOAM 0 February 26, 2018 20:53
wmake libso error while compiling library for dynamic mesh Naveed Salman OpenFOAM Programming & Development 3 August 28, 2017 21:53
complex eigenvalues detected for tensor thegauravonline OpenFOAM Pre-Processing 3 January 14, 2017 06:18


All times are GMT -4. The time now is 23:12.