Motor Selection

DriveCycle=readmatrix(‘FUDS.xlsx’);
t=DriveCycle(:,1);
v_mph=DriveCycle(:,2);
v_kmph=v_mph*1.609;
v_mps=v_kmph*5/18;
d_m(1)=0;
a_mpss(1)=v_mps(2)-v_mps(1);
for k=2:(length(t)-1)
     d_m(k)=d_m(k-1)+v_mps(k);
      a_mpss(k)=v_mps(k+1)-v_mps(k);
end
d_m(length(t))=d_m(length(t)-1)+v_mps(length(t));
d_m=(d_m)’;
a_mpss(length(t))= -v_mps(length(t));
a_mpss=(a_mpss)’;
d_km=(d_m/1000)’;
figure(1);
subplot(3,1,1);
plot(t,v_kmph);
xlabel(‘time (s)’);
ylabel(‘speed (kmph)’);
title([‘Max Velocity :’,num2str(max(v_kmph)),’ km/hr’]);
subplot(3,1,2);
plot(t,a_mpss);
xlabel(‘time (s)’);
ylabel(‘accleration (m/s^2)’);
title([‘Max Accleration :’,num2str(max(a_mpss)),’m/s^2′]);
subplot(3,1,3);
plot(t,d_km);
xlabel(‘time (s)’);
ylabel(‘distance (km)’);
title([‘Distance travelled :’,num2str(max(d_km)),’km’]);
mass=180;
Cd=1;
F_a=0.6;
Urr=0.015;
Tr=0.28;
gr=2;
m_eff=0.8;
t_eff=0.95;
roh=1.225;
g=9.821;
P_accessories = 50*ones(length(t));
P_accessories=P_accessories(:,1);
tyre_radps=v_mps/Tr;
motor_radps=tyre_radps*gr;
motor_rpm=motor_radps*60/(2*pi);
F_inertia =transpose(mass*a_mpss);
F_rr= Urr*mass*g*ones(length(t));
F_rr=F_rr(:,1);
F_aero=0.5*roh*Cd*F_a*v_mps.^2;
F_traction=F_inertia+F_rr+F_aero;
T_tyre=F_traction.*Tr;
T_motor=T_tyre/(gr*t_eff);
P_motor=motor_radps.*T_motor;
figure(2)
subplot(3,1,1);
plot(t,P_motor);
xlabel(‘time (s)’);
ylabel(‘motor power (watt)’);
title([‘Max Power :’,num2str(max(P_motor)),’ watt’]);
subplot(3,1,2);
plot(t,motor_rpm);
xlabel(‘time (s)’);
ylabel(‘motor speed (rpm)’);
title([‘Max speed :’,num2str(max(motor_rpm)),’rpm’]);
subplot(3,1,3);
plot(t,T_motor);
xlabel(‘time (s)’);
ylabel(‘motor torque (watt)’);
title([‘Max torque :’,num2str(max(T_motor)),’ N/m’]);
P_total=(P_motor/m_eff) + P_accessories;
energy(1)=0;
for k=2:length(t)
     energy(k)=energy(k-1)+P_total(k);
end
energy=energy*2.778e-7;
figure(3)
plot(t,energy);
xlabel(‘time (s)’);
ylabel(‘energy (kWh)’);
title([‘Enrgy consumed :’,num2str(max(energy)),’ kWh’]);
June 21, 2022

0 responses on "Motor Selection"

Leave a Message

Copyright © DIYguru Education & Research Pvt. Ltd.                            

Book Your Free Session Now

Fill in the form below to book a 30 min no-obligation consulting session.

I will reply within 24 hours.