summaryrefslogtreecommitdiff
path: root/2090/CH4/EX4.7/Chapter4_Example7.sce
diff options
context:
space:
mode:
Diffstat (limited to '2090/CH4/EX4.7/Chapter4_Example7.sce')
-rwxr-xr-x2090/CH4/EX4.7/Chapter4_Example7.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2090/CH4/EX4.7/Chapter4_Example7.sce b/2090/CH4/EX4.7/Chapter4_Example7.sce
new file mode 100755
index 000000000..7f0cde4dd
--- /dev/null
+++ b/2090/CH4/EX4.7/Chapter4_Example7.sce
@@ -0,0 +1,16 @@
+clc
+clear
+//Input data
+f=0.03;//The residual fraction of an engine
+e=1.2;//The equivalence ratio
+
+//Calculations
+F=0.0795;//Fuel/air ratio for corresponding equivalence ratio
+T=1+F;//Total mass in kg
+fa=1-f;//Fresh air in kg
+ff=F*(fa);//Fresh fuel in kg
+ra=f;//Air in residual in kg
+rf=ra*F;//Fuel in residual in kg
+
+//Output
+printf('Fresh air = %3.2f kg \n Fresh fuel = %3.6f kg \n Air in residual = %3.2f kg \n Fuel in residual = %3.6f kg ',fa,ff,ra,rf)