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 /1919/CH1/EX1.7 | |
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 '1919/CH1/EX1.7')
-rwxr-xr-x | 1919/CH1/EX1.7/Ex1_7.sce | 22 |
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)
|