diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /617/CH4 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '617/CH4')
-rwxr-xr-x | 617/CH4/EX4.5/Example4_5.sci | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/617/CH4/EX4.5/Example4_5.sci b/617/CH4/EX4.5/Example4_5.sci index 65a309602..ad1c969b6 100755 --- a/617/CH4/EX4.5/Example4_5.sci +++ b/617/CH4/EX4.5/Example4_5.sci @@ -1,12 +1,12 @@ -clc();
-clear;
-// To estimate the time lag of temperature (sine) wave
-t = 24; // Time period of tempearture wave in hr
-k = 0.6; // Thermal conductivity of wall in Btu/hr-ft-degF
-Cp = 0.2; // Specific heat capacity of wall in Btu/lb-degF
-y = 110; // specific gravity in lb/ft^3
-x = 8/12; // Distance from surface in ft
-a = k/(y*Cp); // Thermal diffusivity in ft^2/hr
-n=1/t; // frequency in /hr
-delr = x/(2*sqrt(a*%pi*n); // Time lag in hr
-printf("Time lag of the temperature at a point 8 in from surface is %.1f hr", delr;
+clc(); +clear; +// To estimate the time lag of temperature (sine) wave +t = 24; // Time period of tempearture wave in hr +k = 0.6; // Thermal conductivity of wall in Btu/hr-ft-degF +Cp = 0.2; // Specific heat capacity of wall in Btu/lb-degF +y = 110; // specific gravity in lb/ft^3 +x = 8/12; // Distance from surface in ft +a = k/(y*Cp); // Thermal diffusivity in ft^2/hr +n=1/t; // frequency in /hr +delr = x/(2*sqrt(a*%pi*n)); // Time lag in hr +printf("Time lag of the temperature at a point 8 in from surface is %.1f hr", delr);
\ No newline at end of file |