blob: 74950f8d6cd30a98f76c0ad39f94bcf139da4c2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc();
clear;
// To calculate the depth of penetration of the temperature oscillation into the cylinder wall
rpm = 2000; // Revolutions per minute of motor
a = 0.64; // Thermal diffusivity in ft^2/hr
to = 1/(60*rpm); // Period of oscillation in hr
x = 1.6*sqrt(%pi*a*to); // depth of penetration in hr
printf("the depth of penetration of the temperature oscillation into the cylinder wall is %.5f ft",x);
|