summaryrefslogtreecommitdiff
path: root/539/CH14/EX14.3.a/Example_14_3a.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /539/CH14/EX14.3.a/Example_14_3a.sce
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 '539/CH14/EX14.3.a/Example_14_3a.sce')
-rwxr-xr-x539/CH14/EX14.3.a/Example_14_3a.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/539/CH14/EX14.3.a/Example_14_3a.sce b/539/CH14/EX14.3.a/Example_14_3a.sce
new file mode 100755
index 000000000..add1a5de5
--- /dev/null
+++ b/539/CH14/EX14.3.a/Example_14_3a.sce
@@ -0,0 +1,23 @@
+//Computations of Diffusion Flux of Carbon dioxide through Plasic Beverage Container
+
+clear;
+clc;
+
+function[A]= approx(V,n)
+ A= round(V*10^n)/10^n;
+ funcprot(0)
+endfunction
+
+printf("\tExample 14.3\n");
+
+printf("\n\tPart A");
+P1=400000; // in Pa Pressure inside the bottle
+P2=400; // in Pa Pressure outside the bottle
+Pm=0.23*10^-13; //Solubility Coefficient
+dx=0.05; // in cm Thickness of wall
+
+J=approx(-Pm*(P2-P1)/dx,8);
+printf("\nDiffusion flux is : %.2f * 10 ^ -6 ",J/10^-6);
+printf("cm^3 STP/cm^2-s\n");
+
+//End \ No newline at end of file