summaryrefslogtreecommitdiff
path: root/1919/CH1/EX1.7
diff options
context:
space:
mode:
Diffstat (limited to '1919/CH1/EX1.7')
-rwxr-xr-x1919/CH1/EX1.7/Ex1_7.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1919/CH1/EX1.7/Ex1_7.sce b/1919/CH1/EX1.7/Ex1_7.sce
new file mode 100755
index 000000000..527f0044c
--- /dev/null
+++ b/1919/CH1/EX1.7/Ex1_7.sce
@@ -0,0 +1,22 @@
+// Theory and Problems of Thermodynamics
+// Chapter 1
+// Basic Concepts
+// Example 7
+
+clear ;clc;
+
+//Given data
+t = 10 //t = time period for a liquid is heated in minutes
+I = 3 // I = current in amperes
+V = 200 // V = electric potential in volts
+P = 200 // P = opearted power of rating motor in watts
+
+//Calculate mass of 1 kmol air
+t = t * 60; //units conversion minutes to seconds
+E_res = V * I * t; //Energy transfered by resistor in J
+E_pad = P * t; //Energy transfered by paddle wheel in J
+E_tot = E_res + E_pad; //Total energy transfered
+E_tot = E_tot/1000; //units conversion J to kJ
+
+// Results
+mprintf('Total enegy transfered = %3.0f kJ', E_tot)