summaryrefslogtreecommitdiff
path: root/555/CH6/EX6.3/3.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /555/CH6/EX6.3/3.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '555/CH6/EX6.3/3.sce')
-rw-r--r--555/CH6/EX6.3/3.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/555/CH6/EX6.3/3.sce b/555/CH6/EX6.3/3.sce
new file mode 100644
index 000000000..feb44e1ee
--- /dev/null
+++ b/555/CH6/EX6.3/3.sce
@@ -0,0 +1,34 @@
+// Implementation of example 6.3
+// Basic and Applied Thermodynamics by P.K.Nag
+
+clc
+clear
+
+// T temperature,Nmax max efficiency,W work done,Q heat trnsfer,COP coefficient of performance of refrigerator..
+t1=600
+T1=t1+273 // K
+t2=40
+T2=t2+273 // K
+t3=-20
+T3=t3+273 // K
+Q1=2000 // kJ
+W=360 // kJ
+
+Nmax=1-(T2/T1);
+W1=Nmax*Q1;
+COP=T3/(T2-T3);
+W2=W1-W;
+Q4=COP*W2;
+Q3=Q4+W2;
+Q2=Q1-W1;
+printf("heat rejection to 40 degree celsius reservoir = %.2f kJ \n",Q2+Q3);
+// part b
+N=0.4*Nmax;
+W1=N*Q1;
+W2=W1-W;
+COP2=0.4*COP;
+Q4=W2*COP2;
+Q3=Q4+W2;
+Q2=Q1-W1;
+printf("heat rejection to 40 degree celsius reservoir with decreased efficiency= %.2f kJ \n",Q2+Q3);
+// end \ No newline at end of file