summaryrefslogtreecommitdiff
path: root/3685/CH8/EX8.3
diff options
context:
space:
mode:
Diffstat (limited to '3685/CH8/EX8.3')
-rw-r--r--3685/CH8/EX8.3/Ex8_3.sce15
-rw-r--r--3685/CH8/EX8.3/Ex8_3.txt3
2 files changed, 18 insertions, 0 deletions
diff --git a/3685/CH8/EX8.3/Ex8_3.sce b/3685/CH8/EX8.3/Ex8_3.sce
new file mode 100644
index 000000000..6373b23fd
--- /dev/null
+++ b/3685/CH8/EX8.3/Ex8_3.sce
@@ -0,0 +1,15 @@
+clc
+Tw_ = 75 // Initial temperature of water in degree Celsius
+Ts_ = 5 // Atmospheric temperature in degree Celsius
+m = 40 // mass of water in kg
+cp = 4.2 // Specific heat capacity of water in kJ/kgK
+printf("\n Example 8.3")
+Tw= Tw_+273 // Initial temperature of water in K
+Ts = Ts_+273 // Atmospheric temperature in K
+Q1 = m*cp*(Tw-Ts) // Heat transfer
+
+W = integrate('m*cp*(1-(Ts/T))','T',Ts,Tw)
+UE = Q1-W // Available energy
+printf("\n Available energy is %d kJ",UE)
+//The answers vary due to round off error
+
diff --git a/3685/CH8/EX8.3/Ex8_3.txt b/3685/CH8/EX8.3/Ex8_3.txt
new file mode 100644
index 000000000..090bd2ae6
--- /dev/null
+++ b/3685/CH8/EX8.3/Ex8_3.txt
@@ -0,0 +1,3 @@
+
+ Example 8.3
+ Available energy is 10488 kJ \ No newline at end of file