summaryrefslogtreecommitdiff
path: root/3685/CH8/EX8.15/Ex8_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '3685/CH8/EX8.15/Ex8_15.sce')
-rw-r--r--3685/CH8/EX8.15/Ex8_15.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3685/CH8/EX8.15/Ex8_15.sce b/3685/CH8/EX8.15/Ex8_15.sce
new file mode 100644
index 000000000..9f9a18bb2
--- /dev/null
+++ b/3685/CH8/EX8.15/Ex8_15.sce
@@ -0,0 +1,18 @@
+clc
+// Since vacuum has zero mass
+U = 0 // Initial internal energy in kJ/kg
+H0 = 0 // Initial enthalpy in kJ/kg
+S = 0 // Initial entropy in kJ/kgK
+// If the vacuum has reduced to dead state
+U0 = 0 // Final internal energy in kJ/kg
+H0 = 0 // Final enthalpy in kJ/kg
+S0 = 0 // Final entropy in kJ/kgK
+V0 = 0 // Final volume in m^3
+P0 = 1 // Pressure in bar
+V = 1 // Volume of space in m^3
+fi = P0*1e5*V
+
+printf("\n Example 8.15")
+printf("\n The exergy of the complete vacuum is %d kJ",fi/1e3)
+
+