clc
clear all
close all
load effyTest;
I=(map.Id.^2+map.Iq.^2).^0.5;
E=100*map.Pmech./map.Pelt;
Loss=map.Pelt-map.Pmech;
Rs_hot=setup.R0*(1+0.004*(map.tempCu-20));
Copper_loss=3.*Rs_hot.*I.^2/2;
P_FE=Loss-Copper_loss;
figure(1)
plot(map.n,map.T,'bx-','LineWidth',1);
[cc,hh] = contourf(map.n,map.T,P_FE);
clabel(cc,hh);
axis([0 6000 0 50]);
set(gca,'XTick',[0 1000 2000 3000 4000 5000 6000]);
set(gca,'XTickLabel',{'0','1','2','3','4','5','6'},'FontSize', 12);
set(gca,'YTick',[0:5:50],'FontSize', 12);
colorbar('FontSize', 12);
grid on
xlabel('Speed [kr/min]', 'FontSize', 12);
ylabel('Torque [Nm]', 'FontSize', 12);
title('Measured Non-Copper Losses [W]', 'FontSize', 12);
colormap(figure(1),jet)
for i=1:24
Speed1(:,i)= linspace(min(map.n(:,i)),max(map.n(:,i)), 256);
end
for j=1:256
Speed2(j,:)= linspace(min(Speed1(j,:)),max(Speed1(j,:)), 256);
end
for j=1:24
T1 (:,j)= linspace(min(map.T(:,j)),max(map.T(:,j)), 256);
end
for i=1:256
T2 (i,:)= interp1(Speed1(i,:),T1(i,:),Speed2(i,:)) ;
end
figure(3)
plot (Speed2,T2, 'r')
for i=1:24
loss1(:,i)= linspace(min(P_FE(:,i)),max(P_FE(:,i)), 256);
end
F = clc
clear all
close all
load effyTest;
I=(map.Id.^2+map.Iq.^2).^0.5;
E=100*map.Pmech./map.Pelt;
Loss=map.Pelt-map.Pmech;
Rs_hot=setup.R0*(1+0.004*(map.tempCu-20));
Copper_loss=3.*Rs_hot.*I.^2/2;
P_FE=Loss-Copper_loss;
figure(1)
plot(map.n,map.T,'bx-','LineWidth',1);
[cc,hh] = contourf(map.n,map.T,P_FE);
clabel(cc,hh);
axis([0 6000 0 50]);
set(gca,'XTick',[0 1000 2000 3000 4000 5000 6000]);
set(gca,'XTickLabel',{'0','1','2','3','4','5','6'},'FontSize', 12);
set(gca,'YTick',[0:5:50],'FontSize', 12);
colorbar('FontSize', 12);
grid on
xlabel('Speed [kr/min]', 'FontSize', 12);
ylabel('Torque [Nm]', 'FontSize', 12);
title('Measured Non-Copper Losses [W]', 'FontSize', 12);
colormap(figure(1),jet)
for i=1:24
Speed1(:,i)= linspace(min(map.n(:,i)),max(map.n(:,i)), 256);
end
for j=1:256
Speed2(j,:)= linspace(min(Speed1(j,:)),max(Speed1(j,:)), 256);
end
for j=1:24
T1 (:,j)= linspace(min(map.T(:,j)),max(map.T(:,j)), 256);
end
for i=1:256
T2 (i,:)= interp1(Speed1(i,:),T1(i,:),Speed2(i,:)) ;
end
figure(3)
plot (Speed2,T2, 'r')
for i=1:24
loss1(:,i)= linspace(min(P_FE(:,i)),max(P_FE(:,i)), 256);
end
F = scatteredInterpolant(map.n(:),map.T(:),P_FE(:)) ;
Iron_loss_new= F(Speed2,T2) ;
figure(4)
plot(map.n,map.T,'bx-','LineWidth',1);
[cc,hh] = contourf(Speed2,T2,Iron_loss_new);
clabel(cc,hh);
axis([0 6000 0 50]);
set(gca,'XTick',[0 1000 2000 3000 4000 5000 6000]);
set(gca,'XTickLabel',{'0','1','2','3','4','5','6'},'FontSize', 12);
set(gca,'YTick',[0:5:50],'FontSize', 12);
colorbar('FontSize', 12);
grid on
xlabel('Speed [kr/min]', 'FontSize', 12);
ylabel('Torque [Nm]', 'FontSize', 12);
title('Measured Non-Copper Losses [W]', 'FontSize', 12);
colormap(figure(4),jet)scatteredInterpolant(map.n(:),map.T(:),P_FE(:)) ;
Iron_loss_new= F(Speed2,T2) ;
figure(4)
plot(map.n,map.T,'bx-','LineWidth',1);
[cc,hh] = contourf(Speed2,T2,Iron_loss_new);
clabel(cc,hh);
axis([0 6000 0 50]);
set(gca,'XTick',[0 1000 2000 3000 4000 5000 6000]);
set(gca,'XTickLabel',{'0','1','2','3','4','5','6'},'FontSize', 12);
set(gca,'YTick',[0:5:50],'FontSize', 12);
colorbar('FontSize', 12);
grid on
xlabel('Speed [kr/min]', 'FontSize', 12);
ylabel('Torque [Nm]', 'FontSize', 12);
title('Measured Non-Copper Losses [W]', 'FontSize', 12);
colormap(figure(4),jet)