Effacer les filtres
Effacer les filtres

Labeling multiple plots along the plotted line on the same figure

2 vues (au cours des 30 derniers jours)
I have a program to check how power vs wind speed curve changes when the Gear Ratio changes. I have 6 Gear Ratios 21.58 and 22 through 24 at steps on 0.5. I want to the each plotted curve within the loop such that along the plotted curve it should read "GR=21.58" for the 1st gear ratio. My code is as below:
%Program to create a Power vs Wind Speed Curve for a Fixed Speed Wind
%Turbine of 100kW
clear all
close all
clc
%WIND TURBINE SYSTEM PARAMETERS
D = 18.5; %Rotor diameter in m
GR= [21.58,22:0.5:24]; %Gear Ratio of the gearbox connecting rotor to generator
beta= 2.2; % Angle of attack for maximum efficiency of the turbine
%AIR PROPERTIES
rho = 1.27; % Density of air kg/m^3
Vw = [0.001:0.01:25]; %Vector of Wind Speed Incident on the turbine
% GENERATOR SYSTEM PROPERTIES
Wgen = 1800; %Synchronous Speed of the Generator in rpm
%CALCULATING TIP SPEED RATIO
%Calculating Tip Speed
for i=1:6;
Vt= ((Wgen.*pi/30)./GR(i)).*(D/2);
Lambda = Vt./Vw;
%Heier Approach to Calculate the Coefficient of Performance (Cp)
%Matrix of Coefficient
C=[0.5 116 0.4 0 0 6 21 0.08 0.035];
Lambda_i = ((1./(Lambda+(C(8).*beta)))-(C(9)./((beta.*beta.*beta)+1))).^(-1);
Cp=0.5*((C(2)./Lambda_i)-(C(3).*beta)-C(6)).*exp(-C(7)./Lambda_i);
%Calculation of Power
P=0.5*rho*((pi/4)*(D*D/2).*(Vw.^3)).*(Cp./1000);
%Finding the rated Power
plot(Vw,P,'LineWidth',3);
grid on
hold on
end
xlabel('Wind Speed [m/s]');
ylabel('Power [kW]');
title('Power Curve of a 100kW Wind Turbine');

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 25 Sep 2018
Modifié(e) : KALYAN ACHARJYA le 25 Sep 2018
Add Legend: Add this line at last of the code
legend({'GR:21.58','GR=22','name1','name2','name3','name4'},'Location','northwest')
  2 commentaires
ANOSH PHIROZ AMARIA
ANOSH PHIROZ AMARIA le 25 Sep 2018
Hey thank you for your help
KALYAN ACHARJYA
KALYAN ACHARJYA le 25 Sep 2018
Welcome, Anosh!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Wind Power dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by