summaryrefslogtreecommitdiff
path: root/172/CH7/EX7.4/ex4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /172/CH7/EX7.4/ex4.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 '172/CH7/EX7.4/ex4.sce')
-rwxr-xr-x172/CH7/EX7.4/ex4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/172/CH7/EX7.4/ex4.sce b/172/CH7/EX7.4/ex4.sce
new file mode 100755
index 000000000..4693cab22
--- /dev/null
+++ b/172/CH7/EX7.4/ex4.sce
@@ -0,0 +1,15 @@
+//example 4
+//comparison of ideal carnot heat engine with actual heat engine
+clear
+clc
+Qh=1000 //rate of heat transfer to heat engine in kW
+W=450 //rate of production of work in kW
+Ql=Qh-W //rate of heat rejected by heat engine in kW
+nthermal=W/Qh //efficiency from the definition of efficiency
+Tl=300 //temperature of surroundings in K
+Th=550 //temperature of heat source in Celsius
+ncarnot=1-Tl/(Th+273) //efficiency if heat engine is considered to be ideal carnot heat engine
+W2=ncarnot*Qh //rate of work production if heat engine is assumed to be ideal carnot heat engine in kW
+Ql2=Qh-W2 //rate of heat rejected by heat engine in kW if heat engine is assumed to be ideal carnot heat engine
+printf("\n hence,energy discarded to the ambient surroundings is Ql2=%.0fkW.\n",Ql2)
+printf("\n and the engine efficiency is ncarnot=%.3f.\n",ncarnot) \ No newline at end of file