summaryrefslogtreecommitdiff
path: root/1913/CH2/EX2.28/ex28.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1913/CH2/EX2.28/ex28.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1913/CH2/EX2.28/ex28.sce')
-rwxr-xr-x1913/CH2/EX2.28/ex28.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1913/CH2/EX2.28/ex28.sce b/1913/CH2/EX2.28/ex28.sce
new file mode 100755
index 000000000..96da2fd93
--- /dev/null
+++ b/1913/CH2/EX2.28/ex28.sce
@@ -0,0 +1,19 @@
+clc
+clear
+//Input data
+m1=100;//Air flow rate in kg/hr
+q1=600;//The heat generated by each person in kJ/hr
+h1=85;//The enthalpy of air entering the room in kJ/kg
+h2=60;//The enthalpy of air leaving the room in kJ/kg
+Q1=0.2;//The heat added by each lamp in the room in kW
+P1=0.2;//The power consumed by each fan in kW
+
+//Calculations
+q=(5*q1)/3600;//The heat generated by 5 persons in the room in kW
+Q=3*Q1;//The heat added by three lamps in the room in kW
+P=2*P1;//The power consumed by two fans in the room in kW
+m=m1/3600;//Mass flow rate of air in kg/s
+H=[q+Q+P]+[m*(h1-h2)];//Heat to be removed by the cooler in kW
+
+//Output
+printf('The rate at which the heat is to be removed by cooler X = %3.3f kJ/sec ',H)