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 /647/CH9/EX9.14/Example9_14.sce | |
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 '647/CH9/EX9.14/Example9_14.sce')
-rwxr-xr-x | 647/CH9/EX9.14/Example9_14.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/647/CH9/EX9.14/Example9_14.sce b/647/CH9/EX9.14/Example9_14.sce new file mode 100755 index 000000000..1bce40b59 --- /dev/null +++ b/647/CH9/EX9.14/Example9_14.sce @@ -0,0 +1,25 @@ +clear;
+clc;
+
+// Example: 9.14
+// Page: 357
+
+printf("Example: 9.14 - Page: 357\n\n");
+
+// Solution
+
+//*****Data******//
+b = 0.0391;// [cubic dm/mol]
+P1 = 1000;// [atm]
+T = 1000 + 273;// [K]
+R = 0.0892;// [L bar/K mol]
+deff('[Vreal] = f1(P)','Vreal = R*T/P + b');
+deff('[Videal] = f2(P)','Videal = R*T/P');
+//**************//
+
+// We know that:
+// RTlog(f/P) = integral('Vreal - Videal',P,0,P)
+f = P1*exp((1/(R*T))*integrate('f1(P) - f2(P)','P',0,P1));// [atm]
+phi = f/P1;
+printf("The fugacity of the gas is %d atm \n",f);
+printf("The fugacity coeffecient of the gas is %.3f atm",phi);
\ No newline at end of file |