Anda di halaman 1dari 2

Code:

Dout = 0.35 ;
%(m) Major diameter of rotor
Din = 0.2 ;
%(m) Minor diameter of rotor
Rout = Dout/2;
%(m) Major radius of rotor
Rin = Din/2;
%(m) Minor radius of rotor
l
= 0.025;
%(m) Thickness / height of rotor
cp
= 460 ;
%{kJ/K) Specific heat capacity of iron
hcr = 250 ;
%(W/m^2K) Overall heat coefficient of iron rotor
wo
= 1500* 2*pi/60 ;
%(rad/s) Initial angular velocity of rotor
f
= 0.3 ;
% Coefficient of friction
F
= 5000 ;
%(N) Force resisting motion
I
= 25
;
%(kg/m^2) Moment of inertia of rotor
Tinf = 25
;
%(C) Ambient temperature
Re
=(Rout+ Rin)/2 ;
%(m) Effective radius.We assume it is constnt wear
T
= 2*Re*f*F;
%(Nm) Torque appliied by brake pads to stop the brake
rotor.Multiplied by 2 as 2 surfaces ie. 2brake pads
angacc = -T/I ;
%(rad/s^2) Angular acceleration
wf
= 0
;
%(rad/s) Angular velocity when the rotor stops
tstop= (wf - wo)/angacc; %(s) Time for rotor to completely stop
p
= 7874 ;
%(kg/m^3) Density of iron
Vol = pi*(Rout^2 - Rin^2)*l;%(m^3) volume of iron rotor
m
= p*Vol ;
%(kg) Mass of rotor
Dout = 0.35 ;
%(m) Major diameter of rotor
Din = 0.2 ;
%(m) Minor diameter of rotor
Rout = Dout/2;
%(m) Major radius of rotor
Rin = Din/2;
%(m) Minor radius of rotor
l
= 0.025;
%(m) Thickness / height of rotor
cp
= 460 ;
%{kJ/K) Specific heat capacity of iron
hcr = 250 ;
%(W/m^2K) Overall heat coefficient of iron rotor
wo
= 1500* 2*pi/60 ;
%(rad/s) Initial angular velocity of rotor
f
= 0.3 ;
% Coefficient of friction
F
= 5000 ;
%(N) Force resisting motion
I
= 25
;
%(kg/m^2) Moment of inertia of rotor
Tinf = 25
;
%(C) Ambient temperature
Re
=(Rout+ Rin)/2 ;
%(m) Effective radius.We assume it is constnt wear
T
= 2*Re*f*F;
%(Nm) Torque appliied by brake pads to stop the brake
rotor.Multiplied by 2 as 2 surfaces ie. 2brake pads
angacc = -T/I ;
%(rad/s^2) Angular acceleration
wf
= 0
;
%(rad/s) Angular velocity when the rotor stops
tstop= (wf - wo)/angacc; %(s) Time for rotor to completely stop
p
= 7874 ;
%(kg/m^3) Density of iron
Vol = pi*(Rout^2 - Rin^2)*l;%(m^3) volume of iron rotor
m
= p*Vol ;
%(kg) Mass of rotor
Larea = (2*pi*l*(Rout+Rin)) ; %(m)Lateral area
tinitial = 0;
%(s) initial time this will be used further ;
tplot = 0;
%(s) time for plotting on x axis
counter=0;
%for loop
Tsave = 25;
%for saving temperature in array
Tstart=25;
for counter=0:(tstop/100):tstop
syms t
Heatgain = int((-(T*T*t/I) + (T*wo) ),tinitial ,counter); %(J) Thermal energy
produced this increases temperature

Tf = (Heatgain/(m*cp)) + Tstart; % (C) Temperature rise in each division


tplot = [tplot;counter];
tinitial = counter;
h=exp(-hcr*Larea*(tstop/100)/(cp*m));
Tlow =(( h* (Tf-Tinf)) +Tinf) ; %(C) for plotting
Tsave =[Tsave; Tlow];
Tstart= Tlow;
end;

for a=counter:(tstop/100):100
T=Tlow;
Tlow =(( h* (T-Tinf)) +Tinf);
Tsave =[Tsave; Tlow];
tplot = [tplot;a];
end;

%for cooling curve

plot(tplot,Tsave)
xlabel('Time(s)')
ylabel('Temperature(C)')
grid on
axis([0,100,0,100])
title ('Rotor temperature vs time')

Graph

Anda mungkin juga menyukai