diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3765/CH3/EX3.10/Ex3_10.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3765/CH3/EX3.10/Ex3_10.sce')
-rw-r--r-- | 3765/CH3/EX3.10/Ex3_10.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3765/CH3/EX3.10/Ex3_10.sce b/3765/CH3/EX3.10/Ex3_10.sce new file mode 100644 index 000000000..4becf3099 --- /dev/null +++ b/3765/CH3/EX3.10/Ex3_10.sce @@ -0,0 +1,23 @@ +clc +// Example 3.10.py +// In example 3.9, how much heat per unit mass must be added to choke the flow// + + +// Variable declaration from example 3.9 +To1 = 840 // upstream total temperature (in K) +M1 = 3.0 // upstream mach number +To1_by_Tostar = 0.6540 // To1/Tostar from Table A3 +cp = 1004.5 // specific heat at constant pressure for air (in J/Kg K) + +// Calculations +Tostar = To1 / To1_by_Tostar // Tostar = To1 * Tostar/To1 (in K) + +M2 = 1.0 // for choked flow +To2 = Tostar // since M2 = 1.0 + +q = cp * (To2 - To1) // required heat = cp(To2 - To1) (in J/kg) + + +// Result +printf("\n Heat require to choke the flow is %.2e J/kg", q) + |