Sei sulla pagina 1di 3

>> altura=xlsread('011.

xlsx','011','B:B'); % read normalized heights for each


measured point ---(filename.xlsx,sheetname,xlrange)
>> u_p011=xlsread('011.xlsx','011','C:C'); % read normalized mean velocity
values for ABL profile p=0.11
>> u_p011_2D=xlsread('011.xlsx','2D','C:C'); % read normalized wake mean
velocity values for ABL p=0.11 at downwind distance x/D=2
>> u_p011_4D=xlsread('011.xlsx','4D','C:C'); % read normalized wake mean
velocity values for ABL p=0.11 at downwind distance x/D=4
>> u_p011_7D=xlsread('011.xlsx','7D','C:C'); % read normalized wake mean
velocity values for ABL p=0.11 at downwind distance x/D=7
>> u_p011_10D=xlsread('011.xlsx','10D','C:C'); % read normalized wake mean
velocity values for ABL p=0.11 at downwind distance x/D=10
>> figure
>> subplot(2,2,1);
>> plot(u_p011,altura,':*b',u_p011_2D,altura,':sr');
>> xlabel('U/U_{hub}'),ylabel('z/r');
>> xlim([0.4,1.4]),ylim([0,6]);
>> legend('p = 0.11','x/D = 2','location','northwest');
>> subplot(2,2,2);
>> plot(u_p011,altura,':*b',u_p011_4D,altura,':sr');
>> xlabel('U/U_{hub}'),ylabel('z/r');
>> xlim([0.4,1.4]),ylim([0,6]);
>> legend('p = 0.11','x/D = 4','location','northwest');
>> subplot(2,2,3);
>> plot(u_p011,altura,':*b',u_p011_7D,altura,':sr');
>> xlabel('U/U_{hub}'),ylabel('z/r');
>> xlim([0.4,1.4]),ylim([0,6]);
>> legend('p = 0.11','x/D = 7','location','northwest');
>> subplot(2,2,4);
>> plot(u_p011,altura,':*b',u_p011_10D,altura,':sr');
>> xlabel('U/U_{hub}'),ylabel('z/r');
>> xlim([0.4,1.4]),ylim([0,6]);
>> legend('p = 0.11','x/D = 10','location','northwest');

-----------------------------------------------------------

>> figure;
>> plot(u_p011,altura,':*b',u_p011_2D,altura,':sr');
>> xlabel('U/U\it_{hub}'),ylabel('z/r');
>> xlim([0.4,1.2]),ylim([0,6]);
>> legend('p = 0.11','x/D = 2','location','northwest');
>> figure
>> plot(u_p011,altura,':*b',u_p011_4D,altura,':sr');
>> xlabel('U/U_{hub}'),ylabel('z/r');
>> xlim([0.4,1.2]),ylim([0,6]);
>> legend('p = 0.11','x/D = 4','location','northwest');
>> figure
>> plot(u_p011,altura,':*b',u_p011_7D,altura,':sr');
>> xlabel('U/U_{hub}'),ylabel('z/r');
>> xlim([0.4,1.2]),ylim([0,6]);
>> legend('p = 0.11','x/D = 7','location','northwest');
>> figure
>> plot(u_p011,altura,':*b',u_p011_10D,altura,':sr');
>> xlabel('U/U_{hub}'),ylabel('z/r');
>> xlim([0.4,1.2]),ylim([0,6]);
>> legend('p = 0.11','x/D = 10','location','northwest');

-----------------------------------------------------------
>> figure;
>> plot(u_p011,altura,':*b',u_p011_2D,altura,':sr');
>> xlabel('\fontname{Arial}\fontsize{12}\it
U/U_{hub}'),ylabel('\fontname{Arial}\fontsize{12}\itz/r');
>> xlim([0.4,1.4]),ylim([0,6]);
>> legend('p = 0.11','x/D = 2','location','northwest');
>> hold on;
>> plot(xlim, [0.78 0.78], ':k'); %adds a constant horizontal line at bottom tip
of the rotor
>> plot(xlim, [1.78 1.78], ':k'); %adds a constant horizontal line at central
axis of the rotor
>> plot(xlim, [2.78 2.78], ':k'); %adds a constant horizontal line at top tip of
the rotor
>> hold off;

------------------------------
clear all;
clc;
altura=xlsread('011.xlsx','011','B:B'); % reads normalized heights for each
measured point ---(filename.xlsx,sheetname,xlrange)
u_p011=xlsread('011.xlsx','011','C:C'); % reads normalized mean velocity values
for ABL profile p=0.11
u_p011_2D=xlsread('011.xlsx','2D','C:C'); % reads normalized wake mean velocity
values for ABL p=0.11 at downwind distance x/D=2
u_p011_4D=xlsread('011.xlsx','4D','C:C'); % reads normalized wake mean velocity
values for ABL p=0.11 at downwind distance x/D=4
u_p011_7D=xlsread('011.xlsx','7D','C:C'); % reads normalized wake mean velocity
values for ABL p=0.11 at downwind distance x/D=7
u_p011_10D=xlsread('011.xlsx','10D','C:C'); % reads normalized wake mean
velocity values for ABL p=0.11 at downwind distance x/D=10
figure;
subplot(2,2,1);
plot(u_p011,altura,':*b',u_p011_2D,altura,':sr');
xlim([0.4,1.4]),ylim([0,6]);
hold on;
plot(xlim, [0.78 0.78], ':k'); %adds a constant horizontal line at bottom tip
of the rotor
plot(xlim, [1.78 1.78], ':k'); %adds a constant horizontal line at central
axis of the rotor
plot(xlim, [2.78 2.78], ':k'); %adds a constant horizontal line at top tip of
the rotor
xlabel('\fontname{Arial}\it\bf U/U_{hub}'),ylabel('\fontname{Arial}\it\bf z/r');
legend('p = 0.11','x/D = 2','location','northwest');
hold off;
subplot(2,2,2);
plot(u_p011,altura,':*b',u_p011_4D,altura,':sr');
xlim([0.4,1.4]),ylim([0,6]);
hold on;
plot(xlim, [0.78 0.78], ':k'); %adds a constant horizontal line at bottom tip
of the rotor
plot(xlim, [1.78 1.78], ':k'); %adds a constant horizontal line at central
axis of the rotor
plot(xlim, [2.78 2.78], ':k'); %adds a constant horizontal line at top tip of
the rotor
xlabel('\fontname{Arial}\it\bf U/U_{hub}'),ylabel('\fontname{Arial}\it\bf z/r');
legend('p = 0.11','x/D = 4','location','northwest');
hold off;
subplot(2,2,3);
plot(u_p011,altura,':*b',u_p011_7D,altura,':sr');
xlim([0.4,1.4]),ylim([0,6]);
hold on;
plot(xlim, [0.78 0.78], ':k'); %adds a constant horizontal line at bottom tip
of the rotor
plot(xlim, [1.78 1.78], ':k'); %adds a constant horizontal line at central
axis of the rotor
plot(xlim, [2.78 2.78], ':k'); %adds a constant horizontal line at top tip of
the rotor
xlabel('\fontname{Arial}\it\bf U/U_{hub}'),ylabel('\fontname{Arial}\it\bf z/r');
legend('p = 0.11','x/D = 7','location','northwest');
hold off;
subplot(2,2,4);
plot(u_p011,altura,':*b',u_p011_10D,altura,':sr');
xlim([0.4,1.4]),ylim([0,6]);
hold on;
plot(xlim, [0.78 0.78], ':k'); %adds a constant horizontal line at bottom tip
of the rotor
plot(xlim, [1.78 1.78], ':k'); %adds a constant horizontal line at central
axis of the rotor
plot(xlim, [2.78 2.78], ':k'); %adds a constant horizontal line at top tip of
the rotor
xlabel('\fontname{Arial}\it\bf U/U_{hub}'),ylabel('\fontname{Arial}\it\bf z/r');
legend('p = 0.11','x/D = 10','location','northwest');
hold off;

Potrebbero piacerti anche