diff options
Diffstat (limited to '1922/CH4/EX4.23.a/4_23a.sce')
-rwxr-xr-x | 1922/CH4/EX4.23.a/4_23a.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1922/CH4/EX4.23.a/4_23a.sce b/1922/CH4/EX4.23.a/4_23a.sce new file mode 100755 index 000000000..bf5be917a --- /dev/null +++ b/1922/CH4/EX4.23.a/4_23a.sce @@ -0,0 +1,15 @@ +clc
+clear
+//Initialization of variables
+sd=4.9269//kJ/kg/K
+sf=1.1453//kJ/kg/K
+sg=7.5320//kJ/kg/K
+hf=359.86//kJ/kg
+hg=2653.5//kJ/kg
+hd=2409.7//kJ/kg
+//calculations
+x=(sd-sg)/(sf-sg)
+he=x*hf+(1-x)*hg
+etar=(hd-he)/(hd-hf)
+//results
+printf("Thermal efficiency = %.4f",etar)
|