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 /2126/CH8/EX8.3.33/8_3_33.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 '2126/CH8/EX8.3.33/8_3_33.sce')
-rwxr-xr-x | 2126/CH8/EX8.3.33/8_3_33.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2126/CH8/EX8.3.33/8_3_33.sce b/2126/CH8/EX8.3.33/8_3_33.sce new file mode 100755 index 000000000..2a67fe6be --- /dev/null +++ b/2126/CH8/EX8.3.33/8_3_33.sce @@ -0,0 +1,17 @@ +clc
+clear
+
+//Input data
+Mi=2.2 //Inlet Mach number
+T=100+273 //Temperature in K
+Cp=1005 //Specific heat capacity at constnat pressure in J/kg-K
+
+//Calculation
+t1=0.508 //Temperature ratio (To/Tot) from isentropic gas tables @Mi
+To=T/t1 //Stagnation Temperature in K
+t2=0.756 //Temperature ratio (To/Tot) from Rayleigh gas tables @Mi
+Tot=To/t2 //Critical stagnation temperature in K
+q=Cp*(Tot-To)*10^-3 //Maximum amount of heat transfer in kJ/kg
+
+//Output
+printf('Maximum amount of heat transfer is %3.4f kJ/kg',q)
|