summaryrefslogtreecommitdiff
path: root/3689/CH9
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3689/CH9
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3689/CH9')
-rw-r--r--3689/CH9/EX9.10/9_10.sce11
-rw-r--r--3689/CH9/EX9.11/9_11.sce14
-rw-r--r--3689/CH9/EX9.12/9_12.sce20
-rw-r--r--3689/CH9/EX9.2/9_2.sce21
-rw-r--r--3689/CH9/EX9.3/9_3.sce23
-rw-r--r--3689/CH9/EX9.6/9_6.sce21
-rw-r--r--3689/CH9/EX9.7/9_7.sce11
-rw-r--r--3689/CH9/EX9.8/9_8.sce14
-rw-r--r--3689/CH9/EX9.9/9_9.sce14
9 files changed, 149 insertions, 0 deletions
diff --git a/3689/CH9/EX9.10/9_10.sce b/3689/CH9/EX9.10/9_10.sce
new file mode 100644
index 000000000..308fcfd66
--- /dev/null
+++ b/3689/CH9/EX9.10/9_10.sce
@@ -0,0 +1,11 @@
+////Variable Declaration
+rho = 789.9 //Density of acetone, g/L
+n = 1.0 //moles of acetone, mol
+M = 58.08 //Molecular wt of acetone, g/mol
+kHacetone = 1950 //Henrys law constant, torr
+//Calculations
+H = n*M*kHacetone/rho
+
+//Results
+printf("\n Henrys constant = %5.2f torr",H)
+
diff --git a/3689/CH9/EX9.11/9_11.sce b/3689/CH9/EX9.11/9_11.sce
new file mode 100644
index 000000000..8083b05c5
--- /dev/null
+++ b/3689/CH9/EX9.11/9_11.sce
@@ -0,0 +1,14 @@
+////Variable Declaration
+m = 0.5 //Mass of water, kg
+ms = 24.0 //Mass of solute, g
+Ms = 241.0 //Molecular wt of solute, g/mol
+Tfd = 0.359 //Freezinf point depression, °C or K
+kf = 1.86 //Constants for freezing point depression for water, K kg/mol
+
+//Calculations
+msolute = ms/(Ms*m)
+gama = Tfd/(kf*msolute)
+
+//Results
+printf("\n Activity coefficient = %4.3f",gama)
+
diff --git a/3689/CH9/EX9.12/9_12.sce b/3689/CH9/EX9.12/9_12.sce
new file mode 100644
index 000000000..800e9029f
--- /dev/null
+++ b/3689/CH9/EX9.12/9_12.sce
@@ -0,0 +1,20 @@
+////Variable Declaration
+m = 70.0 //Mass of human body, kg
+V = 5.00 //Volume of blood, L
+HN2 = 9.04e4 //Henry law constant for N2 solubility in blood, bar
+T = 298.0 //Temperature, K
+rho = 1.00 //density of blood, kg/L
+Mw = 18.02 //Molecualr wt of water, g/mol
+X = 80 //Percent of N2 at sea level
+p1= 1.0 //Pressures, bar
+ p2 = 50.0
+R = 8.314e-2 //Ideal Gas constant, L.bar/(mol.K)
+//Calculations
+nN21 = (V*rho*1e3/Mw)*(p1*X/100)/HN2
+nN22 = (V*rho*1e3/Mw)*(p2*X/100)/HN2
+V = (nN22-nN21)*R*T/p1
+//Results
+printf("\n Number of moles of nitrogen in blood at 1 and 50 bar are %3.2e,%3.3f mol",nN21,nN22)
+
+printf("\n Volume of nitrogen released from blood at reduced pressure %4.3f L",V)
+
diff --git a/3689/CH9/EX9.2/9_2.sce b/3689/CH9/EX9.2/9_2.sce
new file mode 100644
index 000000000..52a03ce76
--- /dev/null
+++ b/3689/CH9/EX9.2/9_2.sce
@@ -0,0 +1,21 @@
+////
+//Variable Declaration
+nb = 5.00 //Number of moles of Benzene, mol
+nt = 3.25 //Number of moles of Toluene, mol
+T = 298.15 //Temperature, K
+P = 1.0 //Pressure, bar
+R = 8.314 //Ideal Gas Constant, J/(mol.K)
+
+//Calculations
+n = nb + nt
+xb = nb/n
+xt = 1. - xb
+dGmix = n*R*T*(xb*log(xb)+xt*log(xt))
+dSmix = -n*R*(xb*log(xb)+xt*log(xt))
+
+//Results
+printf("\n Gibbs energy change of mixing is %4.3e J",dGmix)
+
+printf("\n Gibbs energy change of mixing is < 0, hence the mixing is spontaneous')
+printf("\n Entropy change of mixing is %4.2f J/K",dSmix)
+
diff --git a/3689/CH9/EX9.3/9_3.sce b/3689/CH9/EX9.3/9_3.sce
new file mode 100644
index 000000000..cda296edf
--- /dev/null
+++ b/3689/CH9/EX9.3/9_3.sce
@@ -0,0 +1,23 @@
+////Variable Declaration
+nb = 5.00 //Number of moles of Benzene, mol
+nt = 3.25 //Number of moles of Toluene, mol
+T = 298.15 //Temperature, K
+R = 8.314 //Ideal Gas Constant, J/(mol.K)
+P0b = 96.4 //Vapor pressure of Benzene, torr
+P0t = 28.9 //Vapor pressure of Toluene, torr
+
+//Calculations
+n = nb + nt
+xb = nb/n
+xt = 1. - xb
+P = xb*P0b + xt*P0t
+y = (P0b*P - P0t*P0b)/(P*(P0b-P0t))
+yt = 1. -y
+
+//Results
+printf("\n Total pressure of the vapor is %4.1f torr",P)
+
+printf("\n Benzene fraction in vapor is %4.3f ",y)
+
+printf("\n Toulene fraction in vapor is %4.3f ",yt)
+
diff --git a/3689/CH9/EX9.6/9_6.sce b/3689/CH9/EX9.6/9_6.sce
new file mode 100644
index 000000000..7c1555d8f
--- /dev/null
+++ b/3689/CH9/EX9.6/9_6.sce
@@ -0,0 +1,21 @@
+////Variable Declaration
+m = 4.50 //Mass of substance dissolved, g
+ms = 125.0 //Mass of slovent (CCl4), g
+TbE = 0.65 //Boiling point elevation, °C
+[Kf, Kb] = (30.0, 4.95) //Constants for freezing point elevation
+ // and boiling point depression for CCl4, K kg/mol
+Msolvent = 153.8 //Molecualr wt of solvent, g/mol
+//Calculations
+DTf = -Kf*TbE/Kb
+Msolute = Kb*m/(ms*1e-3*TbE)
+nsolute = m/Msolute
+nsolvent = ms/Msolvent
+x = 1.0 - nsolute/(nsolute + nsolvent)
+
+//Results
+printf("\n Freezing point depression %5.2f K",DTf)
+
+printf("\n Molecualr wt of solute %4.1f g/mol",Msolute)
+
+printf("\n Vapor pressure of solvent is reduced by a factor of %4.3f",x)
+
diff --git a/3689/CH9/EX9.7/9_7.sce b/3689/CH9/EX9.7/9_7.sce
new file mode 100644
index 000000000..291a6ab5c
--- /dev/null
+++ b/3689/CH9/EX9.7/9_7.sce
@@ -0,0 +1,11 @@
+////Variable Declaration
+csolute = 0.500 //Concentration of solute, g/L
+R = 8.206e-2 //Gas constant L.atm/(mol.K)
+T = 298.15 //Temperature of the solution, K
+
+//Calculations
+pii = csolute*R*T
+
+//Results
+printf("\n Osmotic pressure %4.2f atm",pii)
+
diff --git a/3689/CH9/EX9.8/9_8.sce b/3689/CH9/EX9.8/9_8.sce
new file mode 100644
index 000000000..fa28a34ed
--- /dev/null
+++ b/3689/CH9/EX9.8/9_8.sce
@@ -0,0 +1,14 @@
+////Variable Declaration
+xCS2 = 0.3502 //Mol fraction of CS2, g/L
+pCS2 = 358.3 //Partial pressure of CS2, torr
+p0CS2 = 512.3 //Total pressure, torr
+
+//Calculations
+alpha = pCS2/p0CS2
+gama = alpha/xCS2
+
+//Results
+printf("\n Activity of CS2 %5.4f atm",alpha)
+
+printf("\n Activity coefficient of CS2 %5.4f atm",gama)
+
diff --git a/3689/CH9/EX9.9/9_9.sce b/3689/CH9/EX9.9/9_9.sce
new file mode 100644
index 000000000..07c46fa1d
--- /dev/null
+++ b/3689/CH9/EX9.9/9_9.sce
@@ -0,0 +1,14 @@
+////Variable Declaration
+xCS2 = 0.3502 //Mol fraction of CS2, g/L
+pCS2 = 358.3 //Partial pressure of CS2, torr
+kHCS2 = 2010. //Total pressure, torr
+
+//Calculations
+alpha = pCS2/kHCS2
+gama = alpha/xCS2
+
+//Results
+printf("\n Activity of CS2 %5.4f atm",alpha)
+
+printf("\n Activity coefficinet of CS2 %5.4f atm",gama)
+