summaryrefslogtreecommitdiff
path: root/581/CH2/EX2.3/Example2_3.sci
blob: f03b9642a1a33738961eb0a98a3ab8cd70f70b7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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