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 --- 905/CH1/EX1.12/1_12.sce | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 905/CH1/EX1.12/1_12.sce (limited to '905/CH1/EX1.12/1_12.sce') diff --git a/905/CH1/EX1.12/1_12.sce b/905/CH1/EX1.12/1_12.sce new file mode 100755 index 000000000..d95f98586 --- /dev/null +++ b/905/CH1/EX1.12/1_12.sce @@ -0,0 +1,28 @@ +clear; +clc; + +// Illustration 1.12 +// Page: 34 + +printf('Illustration 1.12 - Page:34 \n\n'); +// Solution + +//*****Data*****// +// ammonia-1 nitrogen-2 hydrogen-3 +T = 300; // [K] +P = 1; // [bar] +y_1 = .40; +y_2 = .20; +y_3 = .40; +//*****// + +// The binary diffusivities are the same as for Example 1.11. +D_12 = 0.237; // [square cm/s] +D_13 = 0.728; // [square cm/s] + +// mole fractions of nitrogen (2) and hydrogen (3) on an ammonia (1)-free base from equation (1.61) +y_21 = y_2/(1-y_1); +y_31 = y_3/(1-y_1); +// Substituting in equation (1.60) gives us +D_1eff = 1/((y_21/D_12)+(y_31/D_13)); +printf("The effective diffusivity of ammonia in the gaseous mixture is %e square cm/s",D_1eff); \ No newline at end of file -- cgit