diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /581/CH2/EX2.3 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '581/CH2/EX2.3')
-rwxr-xr-x | 581/CH2/EX2.3/Example2_3.sci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/581/CH2/EX2.3/Example2_3.sci b/581/CH2/EX2.3/Example2_3.sci new file mode 100755 index 000000000..f03b9642a --- /dev/null +++ b/581/CH2/EX2.3/Example2_3.sci @@ -0,0 +1,15 @@ +
+clear;
+clc;
+
+printf("\t Example 2.3\n");
+
+l=1; // tube length, m
+m=0.01; // mass fraction
+D12=2.84*10^-5; // diffusivity, m^2/s
+a=1.18; // density, kg/m^3
+
+J=a*D12*m/l;
+//steady state flux of water from one side to the other,kg/(m^2*s)
+printf("\t steady flux of water is %.2e kg/(m^2*s)",J);
+//end
\ No newline at end of file |