From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1394/CH8/EX8.5.4/Ex8_5_4.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 1394/CH8/EX8.5.4/Ex8_5_4.sce (limited to '1394/CH8/EX8.5.4/Ex8_5_4.sce') diff --git a/1394/CH8/EX8.5.4/Ex8_5_4.sce b/1394/CH8/EX8.5.4/Ex8_5_4.sce new file mode 100755 index 000000000..2ec89501c --- /dev/null +++ b/1394/CH8/EX8.5.4/Ex8_5_4.sce @@ -0,0 +1,14 @@ + +clc +//initialization of variables +H1 = 75 // henrys constant for ammonia in atm +H2 = 41000 // henrys constant for methane in atm +p = 2.2 // pressure in atm +kya = 18 // product of m.t.c and packing area per tower volume in lb-mol/hr-ft^3 +kxa = 530 //product of m.t.c and packing area per tower volume in lb-mol/hr-ft^3 +//calcuations +Kya1 = 1/((1/kya) + (H1/p)/kxa) //The overall coefficient for ammonia in lb-mol/hr-ft^3 +Kya2 = 1/((1/kya) + (H2/p)/kxa) //The overall coefficient for methane in lb-mol/hr-ft^3 +//Results +printf("The overall coefficient for ammonia is %.1f lb-mol/hr-ft^3",Kya1) +printf("\n The overall coefficient for methane is %.2f lb-mol/hr-ft^3",Kya2) -- cgit