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/CH3/EX3.5/Example3_5.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/CH3/EX3.5/Example3_5.sce')
-rwxr-xr-x | 647/CH3/EX3.5/Example3_5.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/647/CH3/EX3.5/Example3_5.sce b/647/CH3/EX3.5/Example3_5.sce new file mode 100755 index 000000000..cf403fe21 --- /dev/null +++ b/647/CH3/EX3.5/Example3_5.sce @@ -0,0 +1,25 @@ +clear;
+clc;
+
+// Example: 3.5
+// Page: 95
+
+printf("Example: 3.5 - Page: 95\n\n");
+
+// Solution
+
+//*****Data*****//
+m = 1.373;// [kg]
+P = 1.95*10^(6);// [Pa]
+V = 0.1;// [cubic m]
+a = 422.546*10^(-3);// [cubic m/square mol]
+b = 37*10^(-6);// [cubic m/mol]
+M = 17*10^(-3);// [kg/mol]
+R = 8.314;// [J/mol K]
+//****************//
+
+n = m/M;// [moles]
+Vm = V/n;// [molar volume, cubic m]
+// Applying Van der Waals equation of state:
+T = (P + (a/Vm^2))*((Vm - b)/R);// [K]
+printf("The temperature at which ammonia exists in the cylinder is %.1f K\n",T)
\ No newline at end of file |