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 /1913/CH2/EX2.14 | |
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 '1913/CH2/EX2.14')
-rwxr-xr-x | 1913/CH2/EX2.14/ex14.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1913/CH2/EX2.14/ex14.sce b/1913/CH2/EX2.14/ex14.sce new file mode 100755 index 000000000..af989227d --- /dev/null +++ b/1913/CH2/EX2.14/ex14.sce @@ -0,0 +1,21 @@ +clc
+clear
+P1=100;//Pressure at Inlet in kPa
+P2=500;//Pressure at Exit in kPa
+V1=0.6;//Specific volume at Inlet in m^3/kg
+V2=0.15;//Specific volume at Exit in m^3/kg
+U1=50;//Specific internal energy at inlet in kJ/kg
+U2=125;//Specific internal energy at Exit in kJ/kg
+C1=8;//Velocity of air at Inlet in m/s
+C2=4;//Velocity of air at Exit in m/s
+m=5;//Mass flow rate of air in kg/s
+Q=-45;//Heat rejected to cooling water in kW
+Z=0;//Change in potential energy is neglected in m
+g=9.81;//Gravitational constant in m/s^2
+
+//Calculations
+P=m*(((C1^2-C2^2)/(2*1000))+(g*Z)+(U1-U2)+(P1*V1-P2*V2))+Q;//Power required to drive the compressor in kW
+P1=-P;//Power required to drive the compressor in kW
+
+//Output
+printf('The power required to drive the compressor P = %3.2f kW ',P1)
|