summaryrefslogtreecommitdiff
path: root/896/CH3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /896/CH3
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 '896/CH3')
-rwxr-xr-x896/CH3/EX3.11/11.sce7
-rwxr-xr-x896/CH3/EX3.4/4.sce14
-rwxr-xr-x896/CH3/EX3.5/5.sce14
-rwxr-xr-x896/CH3/EX3.6/6.sce15
-rwxr-xr-x896/CH3/EX3.7/7.sce9
-rwxr-xr-x896/CH3/EX3.8/8.sce10
-rwxr-xr-x896/CH3/EX3.9/9.sce23
7 files changed, 92 insertions, 0 deletions
diff --git a/896/CH3/EX3.11/11.sce b/896/CH3/EX3.11/11.sce
new file mode 100755
index 000000000..8dd9a6b30
--- /dev/null
+++ b/896/CH3/EX3.11/11.sce
@@ -0,0 +1,7 @@
+clc
+//Example 3.11
+//calculate flow rate of ventilation air supply
+q=5/8;//kg/hr mass evaporation rate of benzene
+c=1.3*10^(-6);//kg/m^3 concentration of benzene
+Q=q/c/3600//m^3/s
+printf("The flow rate of ventilation air supply is %f m^3/s",Q); \ No newline at end of file
diff --git a/896/CH3/EX3.4/4.sce b/896/CH3/EX3.4/4.sce
new file mode 100755
index 000000000..777a0c05e
--- /dev/null
+++ b/896/CH3/EX3.4/4.sce
@@ -0,0 +1,14 @@
+clc
+//Calculate vol. flow rate, mass flow rate and average vel of gasoline through pipe
+V=15;//gal volume of gasoline
+t=2;//min
+rho_water=62.3;//lbm/ft^3
+sg=0.72;//specific gravity
+q=(15/2)*(0.1336/60)//ft^3/s vol. flow rate
+printf("volumetric flow rate is %f ft^3/s\n",q);
+m=q*sg*rho_water//lbm/s
+printf("Mass flow rate is %f lbm/s\n",m);
+d=1;//in diameter of pipe
+a=((%pi)*d^2/4)/144;//ft^2 area of pipe
+v_avg=q/a//ft/s
+printf("The average velocity is %f ft/s",v_avg); \ No newline at end of file
diff --git a/896/CH3/EX3.5/5.sce b/896/CH3/EX3.5/5.sce
new file mode 100755
index 000000000..c12c2b432
--- /dev/null
+++ b/896/CH3/EX3.5/5.sce
@@ -0,0 +1,14 @@
+clc
+//Example 3.5
+//calculate velocity and mass flow rate of natural in a pipe
+d1=2;//ft diameter of pipe at position 1
+a1=(%pi)/4*d1^2;//ft^2
+v1=50;//ft/s vel of gas at position 1
+rho1=2.58;//lbm/ft^3 density of gas at position 1
+d2=3;//ft diameter of pipe at position 2
+a2=(%pi)/4*d2^2;
+rho2=1.54;//lbm/ft^3 density at position 2
+v2=(rho1/rho2)*(a1/a2)*v1//ft/s
+printf("Velocity is %f ft/s\n",v2);
+m=rho1*v1*a1//lbm/s mass flow rate
+printf("The mass flow rate is %f lbm/s",m); \ No newline at end of file
diff --git a/896/CH3/EX3.6/6.sce b/896/CH3/EX3.6/6.sce
new file mode 100755
index 000000000..d46385830
--- /dev/null
+++ b/896/CH3/EX3.6/6.sce
@@ -0,0 +1,15 @@
+clc
+//Example 3.6
+//calculate the mass flow rate, volumetric flow rate and velocity of waterin a pipe
+d1=0.25;//m diameter of pipe at position 1
+v1=2;//m/s velocity
+rho=998.2;//kg/m^3 density of water
+a1=(%pi)/4*d1^2;//m^2
+d2=0.125//m diameter of pipe at position 2
+a2=(%pi)/4*d2^2;//m^2
+m=rho*a1*v1//kg/s mass flow rate
+printf("Mass flow rate is %f kg/s\n",m);
+q=m/rho//m^3/s volumetric flow rate
+printf("The volumetric flow rate is %f m^3/s\n",q);
+v2=(a1/a2)*v1//m/s velocity
+printf("Velocity of water is %f m/s",v2); \ No newline at end of file
diff --git a/896/CH3/EX3.7/7.sce b/896/CH3/EX3.7/7.sce
new file mode 100755
index 000000000..5b16165ff
--- /dev/null
+++ b/896/CH3/EX3.7/7.sce
@@ -0,0 +1,9 @@
+clc
+//Example 3.7
+//calulate the time required
+p_initial=1;//atm pressure initially
+p_final=0.0001;//atm pressure finally
+V=10;//ft^3 volume of system
+q=1;//ft^3/min vol. flow rate
+t=(V/q)*log(p_initial/p_final)//min
+printf("The time required is %f min",t); \ No newline at end of file
diff --git a/896/CH3/EX3.8/8.sce b/896/CH3/EX3.8/8.sce
new file mode 100755
index 000000000..78e3b5edf
--- /dev/null
+++ b/896/CH3/EX3.8/8.sce
@@ -0,0 +1,10 @@
+clc
+//Example 3.8
+//calculate the final or steady state pressure in tank
+m_in=0.0001;//lbm/min
+q_out=1;//ft^3/min
+rho_sys=m_in/q_out//lbm/ft^3
+rho_air=0.075;//lbm/ft^3
+p_initial=1;//atm
+p_steady=p_initial*(rho_sys/rho_air)//atm
+printf("The steady state pressure is %f atm",p_steady); \ No newline at end of file
diff --git a/896/CH3/EX3.9/9.sce b/896/CH3/EX3.9/9.sce
new file mode 100755
index 000000000..b5a20bd38
--- /dev/null
+++ b/896/CH3/EX3.9/9.sce
@@ -0,0 +1,23 @@
+clc
+//Example 3.9
+//calculate how fast the level of water is rising or falling in a cylindrical tank
+d=3;//m diameter of tank
+a=(%pi)*d^2/4;//m^2
+d_in=0.1;//m inner diameter of inflow pipe
+d_out=0.2;//m
+v_in=2;//m/s
+v_out=1;//m/s
+q_in=((%pi)*d_in^2/4)*v_in;//m^3/s
+q_out=((%pi)*d_out^2/4)*v_out;//m^3/s
+//let D represent d/dt
+DV=q_in-q_out;//m^3/s
+if DV>1 then
+ printf("The water level in tank is rising\n");
+else if DV<1 then
+ printf("The water level in tank is falling\n");
+ else
+ printf("No accumulation\n");
+ end
+//let h be the height of water in tank
+Dh=DV/a//m/s
+printf("The rate of level of water is rising or falling in a cylindrical tank is %f m/s",Dh); \ No newline at end of file