summaryrefslogtreecommitdiff
path: root/1427/CH1/EX1.13
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1427/CH1/EX1.13
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 '1427/CH1/EX1.13')
-rw-r--r--1427/CH1/EX1.13/1_13.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/1427/CH1/EX1.13/1_13.sce b/1427/CH1/EX1.13/1_13.sce
new file mode 100644
index 000000000..98f2ce6e4
--- /dev/null
+++ b/1427/CH1/EX1.13/1_13.sce
@@ -0,0 +1,34 @@
+//ques-1.13
+//Calculating amount of lime and soda and NaCl required
+clc
+p1=80;//Purity percentage of lime
+p2=90;//Purity percentage of soda
+V1=1000000;//volume of water for lime and soda calculation
+V2=10000;//volume of water for zeolite softener
+
+//Raw treatement
+A=300;//content of Ca cation (in ppm)
+B=150;//content of Mg cation (in ppm)
+C=244;//content of Hydrogen carbonate anion (in ppm)
+D=60;//content of CO2 (in ppm)
+E=41;//content of NaAlO2 (in ppm)
+a1=(A/40)*100;//CaCO3 equivalent of A (in ppm)
+a2=(B/24)*100;//CaCO3 equivalent of B (in ppm)
+a3=(C/122)*100;//CaCO3 equivalent of C (in ppm)
+a4=(D/44)*100;//CaCO3 equivalent of D (in ppm)
+a5=(E/164)*100;//CaCO3 equivalent of E (in ppm)
+
+//Treated water
+F=65;//content of Hydroxide anion (in ppm)
+G=40;//content of Carbonate anion (in ppm)
+a6=(F/34)*100;//CaCO3 equivalent of F (in ppm)
+a7=(G/60)*100;//CaCO3 equivalent of G (in ppm)
+
+lime=(a2+a3+a4+a5+a6)*(74/100)*V1*(100/p1);//lime required (in mg)
+soda=(a1+a2-a3+a5+a6+a7)*(106/100)*V1*(100/p2);//soda required (in mg)
+printf("Lime required for softening 1 million litre of hard water is %d kg and Soda required is %d kg.\n",lime/1000000,soda/1000000);
+
+h=(a1+a2)*V2;//hardness of 10000L of water
+//50g of CaCO3 = 58.5g of NaCl
+n=(58.5/50)*h;//NaCl required (in g)
+printf(" Amount of NaCl required is %.3f kg.",n/1000000);