In the manufacturing of ball bearings, the components, such as the ball, are har
ID: 1717860 • Letter: I
Question
In the manufacturing of ball bearings, the components, such as the ball, are hardened through a process of heating and then rapid cooling or "quenching" by submersion in an oil or water bath. The temperature of the ball as a functino of time, T(t), in a bath may be estimated as: T(t)= (Ti- Toil)e^(-t/tau)+Toil
t= the time in seconds in the bath; Ti= the initial ball temperature; Toil= the oil temperature; tau= the time constant in seconds
a) Write a MATLAB function that utilizes Toil, Ti, t, and tau as input arguements and returns the ball temperature.
b) assuming an initial ball temperature of 1000 degrees C, and oil temperature of 60 degrees C, and a time constant of 60 seconds, determine the ball temperature for 100 seconds
Explanation / Answer
function [T] = Cal_Temp(Toil, Ti, t, tau) %Cal_Temp is the function name.
Tcool = (Ti-Toil)*exp(-t/tau); %Tcool is the 1st half part of the relation.
T = Tcool+Toil; %T is the ball temperature at t.
end %end of function.
To call the above function with given values:
[Temp] = Cal_Temp(60, 1000, 100, 60)
%Answer is:
Temp =
237.54
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.