diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1775/CH4/EX4.2/Chapter4_Example2.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1775/CH4/EX4.2/Chapter4_Example2.sce')
-rwxr-xr-x | 1775/CH4/EX4.2/Chapter4_Example2.sce | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/1775/CH4/EX4.2/Chapter4_Example2.sce b/1775/CH4/EX4.2/Chapter4_Example2.sce new file mode 100755 index 000000000..5ab73b906 --- /dev/null +++ b/1775/CH4/EX4.2/Chapter4_Example2.sce @@ -0,0 +1,32 @@ +//Chapter-4, Illustration 2, Page 163
+//Title: Steam Nozzles and Steam Turbines
+//=============================================================================
+clc
+clear
+
+//INPUT DATA
+T1=273;//Temperature at section 1 in K
+P1=140;//Pressure at section 1 in KN/(m^2)
+v1=900;//Velocity at section 1 in m/s
+v2=300;//Velocity at section 2 in m/s
+Cp=1.006;//Specific heat at constant pressure in kJ/kg-K
+Cv=0.717;//Specific heat at constant volume in kJ/kg-K
+y=1.4;//Ratio of specific heats
+
+//CALCULATIONS
+c=y/(y-1);//Ratio
+R=Cp-Cv;//Universal gas constant in KJ/Kg-K
+T2=T1-(((v2)^2-(v1)^2)/(2000*c*R));//Temperature at section 2 in K
+DT=T2-T1;//Increase in temperature in K
+P2=P1*((T2/T1)^c);//Pressure at section 2 in KN/(m^2)
+DP=(P2-P1)/1000;//Increase in pressure in MN/(m^2)
+IE=Cv*(T2-T1);//Increase in internal energy in kJ/kg
+
+//OUTPUT
+mprintf('Increase in temperature is %3.0f K \n Increase in pressure is %3.2f MN/(m^2) \n Increase in internal energy is %3.0f kJ/kg',DT,DP,IE)
+
+
+
+
+
+//==============================END OF PROGRAM=================================
|