Ball bearings are hardened through a process of heating and then rapid cooling. The temperature of the ball during this process can be estimated using the equation:
T(t) = (ti-to)*e^(-t/T)+to
where ti = initial ball temp = 800 degrees celcius
to = initial oil temp = 40 degrees celcius
t = time = 0-180 seconds at 1 second intervals
T = time contraint
Create a graph in matlab showing ball temperature versus time.
the graph should have 3 curves for the 3 time contraints entered by
the user. the 3 time constrains are:
T = 20, 50, and 80 seconds
Use a while loop to generate the arrays to be plotted, with a stopping condition that the value of temperature for all 3 arrays to be plotted is less than 80 degrees celcius. Include a function that is called from the script to get the time constant from the user, and to verify that it is a value between 20 and 100 inclusive. If not, stay in a loop until the user enters a value between 20 and 100.
The final answer should look like this:
MATLAB SCRIPT :
Code to Copy:
% time interval
t = 0:250;
% initial oil temperature
to = 40;
% initial ball temperature
ti = 800;
% Get the time constant from user
T1 =input('Enter the value of T1: ');
% verify that it is a value between 20 and 100
while ((T1<20)||(T1>100))
T1 =input('Entered value does not lie between 20 and 100. Reenter the value: ');
end
% Get the time constant from user
T2 =input('Enter the value of T2: ');
% verify that it is a value between 20 and 100
while ((T2<20)||T2>100)
T2 =input('Entered value does not lie between 20 and 100. Reenter the value: ');
end
% Get the time constant from user
T3=input('Enter the value of T3: ');
% verify that it is a value between 20 and 100
while (T3<20||T3>100)
T3 =input('Entered value does not lie between 20 and 100. Reenter the value: ');
end
% Initialize the variables
Temp1=0; Temp2=0; Temp3=0;
% verify the stopping the condition that the value of temperature for all 3 arrays to be plotted is less than 80 degrees Celsius
while(((max(Temp1) < 80)&&(max(Temp2) < 80)&&(max(Temp3) < 80)))
% calculating the ball temperatures
Temp1 = (ti-to).*exp(-t./T1)+to;
Temp2 = (ti-to).*exp(-t./T2)+to;
Temp3 = (ti-to).*exp(-t./T3)+to;
end
% Display the graph
plot(t, Temp1,'r', t, Temp2, 'g', t, Temp3, 'b'), xlabel('time, s'), ylabel ('temperature');
legend('Time constant 1','Time constant 2','Time constant 3');
Ball bearings are hardened through a process of heating and then rapid cooling. The temperature of...
I just need the last part. T_3min HW7_3 Ball bearings are hardened through a process known as quenching-submersion of the heated ball bearing in oil or water in order to cool it rapidly. The data below represent the temperature of the ball at various points in the cooling process | time (sec) 0 30 | 60 | 150 | 240 Temp (C) 800 457 269 | 79 46 Plot the data, along with a) interpolating polynomial, (use polyfit and polyval)...
Problems 1 through 5 below refer to the following graph. A 200 gram ice sample is placed in a closed (and otherwise evacuated) beaker on top of a bunsen burner. The initial temperature of the ice is -20 degrees Celcius. It is heated until all of the ice melts and turns into water, the water is heated until it boils, and it continues to be heated until all of the water turns into steam. The temperature of the water (in...
Can someone please help me finish the tables and calculations. Thanks in advance Data Sheet Part A: Dependence of Reaction Rate on Concentration Table 1 H Temperature Time Relative mixture ! (seconds) | rate 1000 Reaction BrOsl (eC) . 1235.6 Avg. time 2. 67.S 3. 08,24 Avg. time 2. 74.2 3. 70.74.O Avg. time 24.o' 4 弘·11 0.2 OD3 0.00 8 100 o.oy | 23.5 3. 29. Avg. time 교 Table 2: Calculations for the [I']. [Bro, & [H'] BrOs...
PLEASE ANSWER #5AND #6, THE ANSWER FOR #3 AND #4 ARE ALREADY PROVIDED!!! 3 .Using Java, Write a computer program that prompts the user for one number, n for the number of items in the array to sort, and create and sort 1000 arrays of this size timing the run to get an average time to sort an array of this size. Then do the following: Initiate a variable running_time to 0 Create a for loop that iterates 1000 times....
In this assignment you will be implementing a weather forecaster. It involves writing 3 different classes plus a driver program. It is recommended that you write one class at a time and then write a driver (tester) program to ensure that it works before putting everything together. Alternately, you can use the Interactions tab of JGRASP to test some of the early classes. This is discussed in the next few pages. The Season Class The first, shortest, and easiest class...
my chemistry lab did the composition of hydrogen peroxide. i am having trouble trying to fugure out how to fill in the table. i dont understand why “s” is added to pvnrt and how to apply that to my equation. these are the steps on how to solve but i believe they are rather confusing. please help! thank you! i dont know how to convert PV=nRT so m/s for the initial rate. im confused on how to fill out the...
only questions number: #3,6,8,16,19,22 Δι CH 122 - Practice Problems for Chapter 12 Do NOT use this problem set solely as test preparation. This problem set does NOT cover everything that we have discussed in class. You will still need to study class materials in order to do well on the learning assessment. 1. Of the following all are valid units for a reaction rate except A. moll B. M/S C. molhr D.g's E.molle 2. Which one of the following...
1)I need introduction will be different from this introduction but in the same subject and the same idea (with littel different) 2)Select the discussion ,results ,conclusion , methods and references from this search INTERNATIONAL JOURNAL OF SCIENTIFIC& TECHNOLOGY RESEARCH VOLUME 2, ISSUE 9 SEPTEMBER 2013 ISSN 2277-8616 Dyes Removal From Textile Wastewater Using 1 PREFACE 2 MATERIALS AND METHODS the largest Bangladesh, the textile industry manufacturing industries. in every stage of textile industry 2.1 Sample and Adsorbents Collection various types...