Sie sind auf Seite 1von 4

........................................................................................................................................ 1
Importing data .................................................................................................................... 1
Question 01 ........................................................................................................................ 1
Question 02 ........................................................................................................................ 4
Question 03 ........................................................................................................................ 4
Question 04 ........................................................................................................................ 4
Question 05 ........................................................................................................................ 4

clear
close all

Importing data
Import_data = 1;

if Import_data
currentFolder = pwd;

raw_data =

u = raw_data(:,1);

v = raw_data(:,2);

w = raw_data(:,3);
end

t = linspace(0,30*60,20*30*60).';

Question 01
Separate the time series into mean and fluctuating parts. Plot the time ser

hold all
plot(t,u)
plot([t(1) t(end)],mean(u)*[ 1 1],'r')

## title(['mean = ' num2str(mean(u)) ' Std Dev = '

num2str(std(u))])

xlabel('Time [s]')
ylabel('u [m/s]')
grid

figure

1
hold all
plot(t,v)
plot([t(1) t(end)],mean(v)*[ 1 1],'r')

## title(['mean = ' num2str(mean(v)) ' Std Dev = ' num2str(std(v))])

xlabel('Time [s]')
ylabel('v [m/s]')
grid

figure
hold all
plot(t,w)
plot([t(1) t(end)],mean(w)*[ 1 1],'r')

## title(['mean = ' num2str(mean(w)) ' Std Dev = '

num2str(std(w))])

xlabel('Time [s]')
ylabel('w [m/s]')
grid

2
3
u looks larger

Question 02
There is virtually no wind velocity on the y and z axis. Only turbulence.

Question 03
u has a larger standard deviation.

## Table_u_v_w = [mean(u) std(u); mean(v) std(v); mean(w) std(w)]

Table_u_v_w =

9.1515 0.8548
-0.0000 0.6687
0.0000 0.4142

Question 04
u Has larger turbulence scales

## % Fs = 20; % Sampling frequency [Hz]

%
% L = t(end);
%
% [f, U] = my_fft(u,Fs*2000,L,0);
%
% k = 2*pi*f/mean(u);
%
% figure
% loglog(f,f.'.*U.^2)
% title('Power spectral density')
% xlabel('Frequency (Hz)')
% grid

Question 05
Published with MATLAB R2016a