summaryrefslogtreecommitdiff
path: root/617/CH16/EX16.4/Example16_4.sci
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /617/CH16/EX16.4/Example16_4.sci
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '617/CH16/EX16.4/Example16_4.sci')
-rwxr-xr-x617/CH16/EX16.4/Example16_4.sci12
1 files changed, 12 insertions, 0 deletions
diff --git a/617/CH16/EX16.4/Example16_4.sci b/617/CH16/EX16.4/Example16_4.sci
new file mode 100755
index 000000000..4ddfede85
--- /dev/null
+++ b/617/CH16/EX16.4/Example16_4.sci
@@ -0,0 +1,12 @@
+clc();
+clear;
+
+// To compute the hydrogen loss per unit pipe by diffusion
+
+ri=3/96; // Inner radius of pipe in ft
+ro=1/24; // Outer radius of pipe in ft
+Ca1=0.0003; // Concentration at the inner hose of pipe in lb-mol/ft^2
+Ca2=0; // Concentration at the outer surface
+D=0.7*10^-5; // Diffusion coefficient of hydrogen in rubber in ft^2/hr
+N=2*%pi*D*(Ca1-Ca2)/log(ro/ri); // Rate of diffusion in lb-mol/hr
+printf("The rate of diffusion iof hydrogen in rubber is %.2f*10^-8 lb-mole/hr",N*10^8); \ No newline at end of file