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 /3050/CH1 | |
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 '3050/CH1')
-rwxr-xr-x | 3050/CH1/EX1.1/Ex1_1.sce | 9 | ||||
-rwxr-xr-x | 3050/CH1/EX1.10/Ex1_10.sce | 11 | ||||
-rwxr-xr-x | 3050/CH1/EX1.11/Ex1_11.sce | 11 | ||||
-rwxr-xr-x | 3050/CH1/EX1.2/Ex1_2.sce | 9 | ||||
-rwxr-xr-x | 3050/CH1/EX1.3/Ex1_3.sce | 48 | ||||
-rwxr-xr-x | 3050/CH1/EX1.4/Ex1_4.sce | 35 | ||||
-rwxr-xr-x | 3050/CH1/EX1.5/Ex1_5.sce | 26 | ||||
-rwxr-xr-x | 3050/CH1/EX1.6/Ex1_6.sce | 37 | ||||
-rwxr-xr-x | 3050/CH1/EX1.7/Ex1_7.sce | 41 | ||||
-rwxr-xr-x | 3050/CH1/EX1.8/Ex1_8.sce | 34 | ||||
-rwxr-xr-x | 3050/CH1/EX1.9/Ex1_9.sce | 34 |
11 files changed, 295 insertions, 0 deletions
diff --git a/3050/CH1/EX1.1/Ex1_1.sce b/3050/CH1/EX1.1/Ex1_1.sce new file mode 100755 index 000000000..eeab83b14 --- /dev/null +++ b/3050/CH1/EX1.1/Ex1_1.sce @@ -0,0 +1,9 @@ +//calculating hardness
+//Example 1.1
+clc
+clear
+//100gm of CaCO3 = 136gm of CaSO4
+m=204//mass of the substance
+wt=136//molecular mass
+Eq=(m*100)/wt//Equivalents of CaCO3
+printf('Thus Equivalents of CaCO3 = %3.2f mg/L or ppm',Eq)
diff --git a/3050/CH1/EX1.10/Ex1_10.sce b/3050/CH1/EX1.10/Ex1_10.sce new file mode 100755 index 000000000..bfbb09526 --- /dev/null +++ b/3050/CH1/EX1.10/Ex1_10.sce @@ -0,0 +1,11 @@ +//calculating volume
+//Example 1.10
+clc
+clear
+v=100//Amount of NaCl solution in litres
+m=120*v//Amount of NaCl in g
+wt=58.5*2//molecular mass of NaCl
+Eq=m*100/wt//Equivalents of CaCO3 in g
+h=500//hardness in ppm
+V=Eq*1000/h//water required to soften the zeolite softner in litres
+printf('Thus the zeolite softner can soften %5.2f L of Hard water',V)
diff --git a/3050/CH1/EX1.11/Ex1_11.sce b/3050/CH1/EX1.11/Ex1_11.sce new file mode 100755 index 000000000..eca0a9adc --- /dev/null +++ b/3050/CH1/EX1.11/Ex1_11.sce @@ -0,0 +1,11 @@ +//calculating hardness
+//Example 1.11
+clc
+clear
+v=30//Amount of NaCl solution in litres
+m=15*v//Amount of NaCl in g
+wt=58.5*2//molecular mass of NaCl
+Eq=m*100/wt//Equivalents of CaCO3 in g
+V=1000//water required to soften the zeolite softner in litres
+h=Eq*1000/V//hardness in ppm
+printf('Thus the hardness of water = %3.2f ppm',h)
diff --git a/3050/CH1/EX1.2/Ex1_2.sce b/3050/CH1/EX1.2/Ex1_2.sce new file mode 100755 index 000000000..84d87ba06 --- /dev/null +++ b/3050/CH1/EX1.2/Ex1_2.sce @@ -0,0 +1,9 @@ +//calculating mass
+//Example 1.2
+clc
+clear
+wt=152//molar mass of FeSo4 in moles
+Eq=210.5//equivalents of CaCO3 in ppm
+m=wt*Eq/100//Mass of FeSO4 in ppm
+m1=m/1000//Mass of FeSO4 required per liter
+printf('Thus the mass of FeSO4 required per litre is %2.5f g/L',m1)
diff --git a/3050/CH1/EX1.3/Ex1_3.sce b/3050/CH1/EX1.3/Ex1_3.sce new file mode 100755 index 000000000..24102490b --- /dev/null +++ b/3050/CH1/EX1.3/Ex1_3.sce @@ -0,0 +1,48 @@ +//calculating hardness
+//Example 1.3
+clc
+clear
+//For Ca(HCO3)2,
+q1=10//quantity
+wt1=162//molecular weight
+M1=100/wt1//multiplication factor
+Eq1=M1*q1//CaCO3 equivalents in mg/L
+//For Mg(HCO3)2,
+q2=8.5//quantity
+wt2=146//molecular weight
+M2=100/wt2//multiplication factor
+Eq2=M2*q2//CaCO3 equivalents in mg/L
+//For CaSO4,
+q3=12//quantity
+wt3=136//molecular weight
+M3=100/wt3//multiplication factor
+Eq3=M3*q3//CaCO3 equivalents in mg/L
+//For MgSO4,
+q4=14//quantity
+wt4=120//molecular weight
+M4=100/wt4//multiplication factor
+Eq4=M4*q4//CaCO3 equivalents in mg/L
+Th=Eq1+Eq2//Temperory hardness due to Mg(HCO3)2 and Ca(HCO3)2
+Ph=Eq3+Eq4//Permanent hardness due to CaSO4 and MgSO4
+T=Th+Ph//Total hardness
+printf('Thus (i) in mg/L Temporary hardness = %2.2f',Th)
+printf('\n and permanent hardness = %2.2f',Ph)
+printf('\n and total hardness = %2.2f',T)
+printf('\n\n(ii) in ppm Temporary hardness = %2.2f',Th)
+printf('\n and permanent hardness = %2.2f',Ph)
+printf('\n and total hardness = %2.2f',T)
+ThC=Th*0.07//temperory hardness in degreeCl
+PhC=Ph*0.07//permanent hardness in degreeCl
+TC=T*0.07//total hardness in degreeCl
+ThF=Th*0.1//temperory hardness in degreeFr
+PhF=Ph*0.1//permanent hardness in degreeFr
+TF=T*0.1//total hardness in degreeFr
+printf('\n\n(iii) in degreeCl Temporary hardness = %2.4f',ThC)
+printf('\n and permanent hardness = %2.4f',PhC)
+printf('\n and total hardness = %2.4f',TC)
+printf('\n\n(iv) in degreeFr Temporary hardness = %2.4f',ThF)
+printf('\n and permanent hardness = %2.4f',PhF)
+printf('\n and total hardness = %2.4f',TF)
+
+
+
diff --git a/3050/CH1/EX1.4/Ex1_4.sce b/3050/CH1/EX1.4/Ex1_4.sce new file mode 100755 index 000000000..488769129 --- /dev/null +++ b/3050/CH1/EX1.4/Ex1_4.sce @@ -0,0 +1,35 @@ +//calculating hardness
+//Example 1.4
+clc
+clear
+//For Ca(HCO3)2,
+q1=40.5//quantity
+wt1=162//molecular weight
+M1=100/wt1//multiplication factor
+Eq1=M1*q1//CaCO3 equivalents in mg/L
+//For Mg(HCO3)2,
+q2=46.5//quantity
+wt2=146//molecular weight
+M2=100/wt2//multiplication factor
+Eq2=M2*q2//CaCO3 equivalents in mg/L
+//For MgSO4,
+q3=27.6//quantity
+wt3=120//molecular weight
+M3=100/wt3//multiplication factor
+Eq3=M3*q3//CaCO3 equivalents in mg/L
+//For CaSO4,
+q4=32.1//quantity
+wt4=136//molecular weight
+M4=100/wt4//multiplication factor
+Eq4=M4*q4//CaCO3 equivalents in mg/L
+//For CaCl2
+q5=22.45//quantity
+wt5=111//molecular weight
+M5=100/wt5//multiplication factor
+Eq5=M5*q5//CaCO3 equivalents in mg/L
+Th=Eq1+Eq2//Temperory hardness due to Mg(HCO3)2 and Ca(HCO3)2
+Ph=Eq3+Eq4+Eq5//Permanent hardness due to CaSO4 and MgSO4 and CaCl2
+T=Th+Ph//Total hardness
+printf('Thus in Temporary hardness = %2.2f mg/L',Th)
+printf('\n and permanent hardness = %2.2f mg/L',Ph)
+printf('\n and total hardness = %3.2f mg/L',T)
diff --git a/3050/CH1/EX1.5/Ex1_5.sce b/3050/CH1/EX1.5/Ex1_5.sce new file mode 100755 index 000000000..b540f6632 --- /dev/null +++ b/3050/CH1/EX1.5/Ex1_5.sce @@ -0,0 +1,26 @@ +//calculating hardness
+//Example 1.5
+clc
+clear
+//For Ca(HCO3)2,
+q1=12.5//quantity
+wt1=162//molecular weight
+M1=100/wt1//multiplication factor
+Eq1=M1*q1//CaCO3 equivalents in mg/L
+//For CaCl2,
+q2=8.2//quantity
+wt2=111//molecular weight
+M2=100/wt2//multiplication factor
+Eq2=M2*q2//CaCO3 equivalents in mg/L
+//For MgSO4,
+q3=2.6//quantity
+wt3=120//molecular weight
+M3=100/wt3//multiplication factor
+Eq3=M3*q3//CaCO3 equivalents in mg/L
+Th=Eq1//Temperory hardness due to Ca(HCO3)2 in ppm
+Ph=Eq3+Eq2//Permanent hardness due to MgSO4 and CaCl2 in ppm
+T=Th+Ph//Total hardness in ppm
+TF=T*0.1//Total hardness in degreeFr
+printf('Thus in ppm Temporary hardness = %2.2f ppm',Th)
+printf('\n and permanent hardness = %2.2f ppm',Ph)
+printf('\n in degreeFr total hardness = %3.3f',TF)
diff --git a/3050/CH1/EX1.6/Ex1_6.sce b/3050/CH1/EX1.6/Ex1_6.sce new file mode 100755 index 000000000..cb6cbaa06 --- /dev/null +++ b/3050/CH1/EX1.6/Ex1_6.sce @@ -0,0 +1,37 @@ +//calculating lime and soda
+//Example 1.6
+clc
+clear
+//For Ca(HCO3)2,
+q1=4.86//quantity
+wt1=162//molecular weight
+M1=100/wt1//multiplication factor
+Eq1=M1*q1//CaCO3 equivalents in mg/L
+//For Mg(HCO3)2,
+q2=7.3//quantity
+wt2=146//molecular weight
+M2=100/wt2//multiplication factor
+Eq2=M2*q2//CaCO3 equivalents in mg/L
+//For CaSO4,
+q3=6.8//quantity
+wt3=136//molecular weight
+M3=100/wt3//multiplication factor
+Eq3=M3*q3//CaCO3 equivalents in mg/L
+//For MgCl2,
+q4=5.7//quantity
+wt4=95//molecular weight
+M4=100/wt4//multiplication factor
+Eq4=M4*q4//CaCO3 equivalents in mg/L
+//For MgSO4,
+q5=9//quantity
+wt5=120//molecular weight
+M5=100/wt5//multiplication factor
+Eq5=M5*q5//CaCO3 equivalents in mg/L
+//SiO2 and NaCl neglected
+V=25000//Volume of water in litres
+L=74*(Eq1+(2*Eq2)+Eq4+Eq5)/100//lime requirement in mg/L
+L1=L*V/1000000//Lime required for softening 25000 litres in kg
+S=106*(Eq3+Eq4+Eq5)/100//soda requirement in mg/L
+S1=S*V/1000000//soda required for softening 25000 litres in kg
+printf('Thus amount of lime required to soften 25000 litres of water = %2.5f kg\n',L1)
+printf('and amount of soda required to soften 25000 litres of water = %2.5f kg\n',S1)
diff --git a/3050/CH1/EX1.7/Ex1_7.sce b/3050/CH1/EX1.7/Ex1_7.sce new file mode 100755 index 000000000..47a769264 --- /dev/null +++ b/3050/CH1/EX1.7/Ex1_7.sce @@ -0,0 +1,41 @@ +//calculating lime-soda and hardness
+//Example 1.7
+clc
+clear
+//For Ca(HCO3)2,
+q1=40.5//quantity
+wt1=162//molecular weight
+M1=100/wt1//multiplication factor
+Eq1=M1*q1//CaCO3 equivalents in mg/L
+//For Mg(HCO3)2,
+q2=36.5//quantity
+wt2=146//molecular weight
+M2=100/wt2//multiplication factor
+Eq2=M2*q2//CaCO3 equivalents in mg/L
+//For MgSO4,
+q3=30//quantity
+wt3=120//molecular weight
+M3=100/wt3//multiplication factor
+Eq3=M3*q3//CaCO3 equivalents in mg/L
+//For CaSO4,
+q4=34//quantity
+wt4=136//molecular weight
+M4=100/wt4//multiplication factor
+Eq4=M4*q4//CaCO3 equivalents in mg/L
+//For CaCl2,
+q5=27.75//quantity
+wt5=111//molecular weight
+M5=100/wt5//multiplication factor
+Eq5=M5*q5//CaCO3 equivalents in mg/L
+// NaCl neglected
+V=20000//Volume of water in litres
+L=(74*(Eq1+(2*Eq2)+Eq3)/100)*(V/1000)//Lime required for softening 20000 litres in g
+S=(106*(Eq3+Eq4+Eq5)/100)*(V/1000)//soda required for softening 20000 litres in g
+L1=(100*L)/(84*1000)//Lime required for 84% purity in kg
+S1=(100*S)/(92*1000)//Soda required for 92% purity in kg
+Th=Eq1+Eq2//Temperory hardness due to Mg(HCO3)2 and Ca(HCO3)2
+Ph=Eq3+Eq4+Eq5//Permanent hardness due to CaSO4 and MgSO4and CaCL2
+printf('Thus amount of lime(84percent pure) required to soften 20000 litres of water = %2.5f kg\n',L1)
+printf('and amount of soda(92percent pure) required to soften 20000 litres of water = %2.5f kg\n',S1)
+printf('\nAlso Temporary hardness = %2.2f ppm',Th)
+printf('\n and permanent hardness = %2.2f ppm',Ph)
diff --git a/3050/CH1/EX1.8/Ex1_8.sce b/3050/CH1/EX1.8/Ex1_8.sce new file mode 100755 index 000000000..aefa0a724 --- /dev/null +++ b/3050/CH1/EX1.8/Ex1_8.sce @@ -0,0 +1,34 @@ +//calculating lime and soda
+//Example 1.8
+clc
+clear
+//For raw water Ca+2,
+q1=240//quantity
+wt1=40//molecular weight
+M1=100/wt1//multiplication factor
+Eq1=M1*q1//CaCO3 equivalents in mg/L
+//For Mg+2,
+q2=96//quantity
+wt2=24//molecular weight
+M2=100/wt2//multiplication factor
+Eq2=M2*q2//CaCO3 equivalents in mg/L
+//For CO2,
+q3=44//quantity
+wt3=44//molecular weight
+M3=100/wt3//multiplication factor
+Eq3=M3*q3//CaCO3 equivalents in mg/L
+//For HCO3-,
+q4=732//quantity
+wt4=122//molecular weight
+M4=100/wt4//multiplication factor
+Eq4=M4*q4//CaCO3 equivalents in mg/L
+//For FeSO4.7H2O,
+q5=278//quantity
+wt5=278//molecular weight
+M5=100/wt5//multiplication factor
+Eq5=M5*q5//CaCO3 equivalents in mg/L
+V=250000//Volume of water in litres
+L=(74*(Eq2+Eq3+Eq4+Eq5)/100)*(V/1000000)//lime requirement in kg
+S=(106*(Eq1+Eq2+Eq5-Eq4)/100)*(V/1000000)//soda requirement in kg
+printf('Thus amount of lime required to soften 250000 litres of water = %3.1f kg\n',L)
+printf('and amount of soda required to soften 250000 litres of water = %3.1f kg\n',S)
diff --git a/3050/CH1/EX1.9/Ex1_9.sce b/3050/CH1/EX1.9/Ex1_9.sce new file mode 100755 index 000000000..718fd5e12 --- /dev/null +++ b/3050/CH1/EX1.9/Ex1_9.sce @@ -0,0 +1,34 @@ +//calculating lime and soda
+//Example 1.9
+clc
+clear
+//For raw water Ca+2,
+q1=160//quantity
+wt1=40//molecular weight
+M1=100/wt1//multiplication factor
+Eq1=M1*q1//CaCO3 equivalents in mg/L
+//For Mg+2,
+q2=96//quantity
+wt2=24//molecular weight
+M2=100/wt2//multiplication factor
+Eq2=M2*q2//CaCO3 equivalents in mg/L
+//For CO2,
+q3=34//quantity
+wt3=44//molecular weight
+M3=100/wt3//multiplication factor
+Eq3=M3*q3//CaCO3 equivalents in mg/L
+//For HCO3-,
+q4=403//quantity
+wt4=122//molecular weight
+M4=100/wt4//multiplication factor
+Eq4=M4*q4//CaCO3 equivalents in mg/L
+//For NaAlO2,
+q5=20//quantity
+wt5=82*2//molecular weight
+M5=100/wt5//multiplication factor
+Eq5=M5*q5//CaCO3 equivalents in mg/L
+V=300000//Volume of water in litres
+L=(74*(Eq2+Eq3+Eq4-Eq5)/100)*(V/1000000)//lime requirement in kg
+S=(106*(Eq1+Eq2-Eq4)/100)*(V/1000000)//soda requirement in kg
+printf('Thus amount of lime required to soften 250000 litres of water = %3.1f kg\n',L)
+printf('and amount of soda required to soften 250000 litres of water = %3.1f kg\n',S)
|