summaryrefslogtreecommitdiff
path: root/647/CH3/EX3.5/Example3_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '647/CH3/EX3.5/Example3_5.sce')
-rwxr-xr-x647/CH3/EX3.5/Example3_5.sce25
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