diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3588/CH7/EX7.6 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3588/CH7/EX7.6')
-rw-r--r-- | 3588/CH7/EX7.6/EX7_6.sav | bin | 0 -> 19544 bytes | |||
-rw-r--r-- | 3588/CH7/EX7.6/EX7_6.sce | 24 |
2 files changed, 24 insertions, 0 deletions
diff --git a/3588/CH7/EX7.6/EX7_6.sav b/3588/CH7/EX7.6/EX7_6.sav Binary files differnew file mode 100644 index 000000000..bfa8c869c --- /dev/null +++ b/3588/CH7/EX7.6/EX7_6.sav diff --git a/3588/CH7/EX7.6/EX7_6.sce b/3588/CH7/EX7.6/EX7_6.sce new file mode 100644 index 000000000..e848eacd6 --- /dev/null +++ b/3588/CH7/EX7.6/EX7_6.sce @@ -0,0 +1,24 @@ +//Clearing console +clc +clear + +//Intializing variables +kx = 20 +ky = 20 +a = 0.5/12 +b = 0.5/12 +T =[180.000000;180.000000;180.000000;106.528061;111.987760;106.528061;89.057755;90.986763;89.057755] + +T2 = [T(4,1);T(7,1);T(8,1);T(5,1)] + +//Calculating the centroidal heat flux components for elements 2 and 3 +q2x = -(kx/(4*a))*(T2(2,1)-T2(1,1)+T2(3,1)-T2(4,1)) +q2y = -(ky/(4*b))*(T2(4,1)-T2(1,1)+T2(3,1)-T2(2,1)) + +//due to symmetry +q3x = q2x +q3y = -q2y + +printf('\nResults\n') +printf('\nHeat flux components for element 2 \nq2x=%fBtu/hr-ft 2 \nq2y=%fBtu/hr-ft^2',q2x,q2y) +printf('\nHeat flux components for element 3 \nq3x=%fBtu/hr-ft 2 \nq3y=%fBtu/hr-ft^2',q3x,q3y) |