|
[Sponsors] |
How to estimate the scales in your flow - 3d Data |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 7, 2015, 15:02 |
How to estimate the scales in your flow - 3d Data
|
#1 |
New Member
Erik Thyil
Join Date: Sep 2015
Posts: 8
Rep Power: 10 |
The classical approach for 1d hot wire anemometer experiments is simply doing an fft analysis for a time resolved data taking sampling frequency into account.
However, i couldnt find much info for calculating spatial spectrum where the largest and the smallest scales in the flow would be calculated. Additionally, do you have any idea how to filter a turbulence box. i have some signal filtering knowledge but i am not sure if it is directly applicable to a flow field data. |
|
September 7, 2015, 15:42 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
Are you considering a numerical or experimental measurement? Numerically the largest scale is the computational domain lenght and the smallest scale is dictated by the computational step size (2*h is the smallest wavelength) |
||
September 7, 2015, 16:04 |
|
#3 | |
New Member
Erik Thyil
Join Date: Sep 2015
Posts: 8
Rep Power: 10 |
Quote:
so isnt that supposed to be the largest size then? Second method is the spatial fft. So a routine like this below indeed gives the smallest wavelength to be 2*h. however the largest scale is weird numbers in the log log plot. v=U(:,100,100); fs=1./(6000/32768) npt=length(v);v=v-mean(v); ff=fft(v); pff=ff.*conj(ff)/npt; f=fs*(0:npt/2-1)/npt; loglog(f,pff(1:npt/2),'b') And if the largest and the smallest sizes are those, one should still be able to filter with a cutoff or bandpass to have the same turbulence box with various scales. This I can do while generating my turbulence box since i tell the pseudo random numbers correlation to fit a spectrum, however if i get a readily generated box then how to filter it i am not sure... |
||
September 7, 2015, 16:21 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
What kind of signal you have? |
||
September 7, 2015, 16:29 |
|
#5 | |
New Member
Erik Thyil
Join Date: Sep 2015
Posts: 8
Rep Power: 10 |
Quote:
The signal i have is a 3d turbulence box. for streamwise component |
||
September 7, 2015, 16:39 |
|
#6 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
3D periodical box? Why do you want to filter ?
|
|
September 7, 2015, 16:45 |
|
#7 |
New Member
Erik Thyil
Join Date: Sep 2015
Posts: 8
Rep Power: 10 |
not necessarily periodic, but i can choose to have it like that too...
i want to filter it because i want to run different simulations with the same turbulence box that has different scale content. this flow field is embedded to another acoustic simulation |
|
September 8, 2015, 03:00 |
|
#8 |
New Member
Erik Thyil
Join Date: Sep 2015
Posts: 8
Rep Power: 10 |
i found sth relevant in the pivmat toolbox
for instance % U is a 2D slice of turbulence box filtsize = 8; % must be adjusted order = 8; % must be adjusted nx=size(U,2);ny=size(U,1); n=min(nx,ny); kx0=nx/2+1; ky0=ny/2+1; [ky,kx] = meshgrid(1:ny,1:nx); k = sqrt((kx-kx0).^2+(ky-ky0).^2); T = 1./(1+(k/(n/filtsize)).^(order/2)); sp=fftshift(fft2(U)); filtU = real(ifft2(ifftshift(sp.*T))); |
|
September 8, 2015, 04:22 |
|
#9 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
I am not sure of what you want to do ...
you have a turbulent field in a 3D box of lenght L and you want to extract a field over a 2D box of lenght < L ?? |
|
September 8, 2015, 04:37 |
|
#10 | |
New Member
Erik Thyil
Join Date: Sep 2015
Posts: 8
Rep Power: 10 |
Quote:
http://imgur.com/ecgEKuJ,fhOaXmn#0 if you click the link there are two images second one is the specta of thsoe two |
||
September 8, 2015, 04:44 |
|
#11 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
Ok, so you filtered with a cut-off at a wavenumber kc = pi/hc < pi/h (h original computational size) over the same domain. But, as a consequence, the two spectra in the second figure should be exactly the same up to kc, then the filtered spectra should vanish for wavenumbers > kc. I suspect something is not clear to me... |
||
September 8, 2015, 04:52 |
|
#12 | |
New Member
Erik Thyil
Join Date: Sep 2015
Posts: 8
Rep Power: 10 |
Quote:
I tuned the order and the filtersize, the second image in this link is as good as it gets so to say, on the other hand i believe if you look at an average spectrum (the images are only for a stremwise vector of a 2d data) they should be identical. additionally this is a badly generated turbulence box in the sense that the largest and there are not enough modes while generation 1024 for 500 meter so i believe a better resolved turb. box would me more accurate to comment on. |
||
September 8, 2015, 04:58 |
|
#13 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
I suppose the problem could be in the way you are doing FFT.... if the unfiltered field is sampled over a step size h = L/N the FFT is done considering the N/2 nodes. but the filtered field is equivalent to have a sampling over hf=L/Nf, therefore the FFT should be over Nf/2, can not be extended up to N/2. This way you are causing a sort of aliasing effect. The key is to work on a coars grid for the filtered field, not on the original fine. |
||
September 8, 2015, 05:14 |
|
#14 | |
New Member
Erik Thyil
Join Date: Sep 2015
Posts: 8
Rep Power: 10 |
Quote:
the lines are on top of each other. http://imgur.com/Bovhh5N,HxLgnbz see 2 images |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressible flow, no data at the outlet | mireis | FLUENT | 6 | September 3, 2015 02:10 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 09:28 |
information from saved data files:Unsteady flow | Atul | FLUENT | 5 | July 27, 2008 20:05 |
Inviscid Drag at subsonic, subcritical Mach # | Axel Rohde | Main CFD Forum | 1 | November 19, 2001 12:19 |
PhD in turbulence | Hans | Main CFD Forum | 14 | October 8, 2001 03:03 |