summaryrefslogtreecommitdiff
path: root/2135/CH2/EX2.45/Exa_2_45.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2135/CH2/EX2.45/Exa_2_45.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 '2135/CH2/EX2.45/Exa_2_45.sce')
-rwxr-xr-x2135/CH2/EX2.45/Exa_2_45.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2135/CH2/EX2.45/Exa_2_45.sce b/2135/CH2/EX2.45/Exa_2_45.sce
new file mode 100755
index 000000000..5b425f16b
--- /dev/null
+++ b/2135/CH2/EX2.45/Exa_2_45.sce
@@ -0,0 +1,21 @@
+//Exa 2.45
+clc;
+clear;
+close;
+format('v',8);
+
+//Given Data :
+mdot=5;//Kg/s
+T1=27+273;//K
+//Z1=Z2
+deltaPE=0;
+Wdot=-100;//KW
+C1=60;//m/s
+C2=150;//m/s
+q=-2;//KJ/Kg
+Cp=1.05;//KJ/Kg
+Qdot=mdot*q;//KJ/s
+delta_h=Cp;//KJ/Kg
+//Qdot-Wdot=mdot*(delta_h*(T2-T1)+(C2^2-C1^2)/2/1000+g*(Z2-Z1))/1000)
+T2=((Qdot-Wdot)/mdot-(C2^2-C1^2)/2/1000)/delta_h+T1;//K
+disp(T2,"Exit temperature in K : ");