From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2063/CH1/EX1.12/1_12.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 2063/CH1/EX1.12/1_12.sce (limited to '2063/CH1/EX1.12/1_12.sce') diff --git a/2063/CH1/EX1.12/1_12.sce b/2063/CH1/EX1.12/1_12.sce new file mode 100755 index 000000000..e7970b5b8 --- /dev/null +++ b/2063/CH1/EX1.12/1_12.sce @@ -0,0 +1,12 @@ +clc +clear +r=15;//Compression ratio of a diesel engine +Q=5;//Heat supplied upto 5 percent of the stroke +r1=1.4;//Isentropic ratio + +//Calculations +p=1+(Q/100)*(r-1);//Cut off ratio +n=(1-((1/r^(r1-1)*(p^r1-1)/(r1*(p-1)))))*100;//Efficiency of diesel cycle in percent + +//Output +printf('Air standard efficiency of the diesel cycle is %3.2f percent',n) -- cgit