summaryrefslogtreecommitdiff
path: root/32/CH4/EX4.05/4_05.sce
diff options
context:
space:
mode:
Diffstat (limited to '32/CH4/EX4.05/4_05.sce')
-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