summaryrefslogtreecommitdiff
path: root/32/CH4/EX4.05
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH4/EX4.05
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 '32/CH4/EX4.05')
-rwxr-xr-x32/CH4/EX4.05/4_05.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/32/CH4/EX4.05/4_05.sce b/32/CH4/EX4.05/4_05.sce
new file mode 100755
index 000000000..84825091d
--- /dev/null
+++ b/32/CH4/EX4.05/4_05.sce
@@ -0,0 +1,15 @@
+//pathname=get_absolute_file_path('4.05.sce')
+//filename=pathname+filesep()+'4.05-data.sci'
+//exec(filename)
+//Temperature inside the house(in K):
+T1=25+273.15
+//Temperature outside the house(in K):
+T2=-1+273.15
+//Heating load(in MJ/h):
+Q1=125
+//COP:
+COP=1/(1-T2/T1)
+//Minimum power required(in MJ/h):
+W=Q1/COP
+printf("\nRESULTS\n")
+printf("\nMinimum power required = %f kW",W/(3600/10^3)) \ No newline at end of file