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.11/1_11.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2063/CH1/EX1.11/1_11.sce (limited to '2063/CH1/EX1.11/1_11.sce') diff --git a/2063/CH1/EX1.11/1_11.sce b/2063/CH1/EX1.11/1_11.sce new file mode 100755 index 000000000..9ad53085d --- /dev/null +++ b/2063/CH1/EX1.11/1_11.sce @@ -0,0 +1,16 @@ +clc +clear +//Input data +r=1.4;//Air standard ratio +p1=1.25;//Cut off ratio 1 +p2=1.50;//Cut off ratio 2 +p3=2.00;//Cut off ratio 3 +rc=16;//Compression ratio + +//Calculations +n1=(1-((1/rc^(r-1)*(p1^r-1)/(r*(p1-1)))))*100;//Thermal efficiency of the diesel cycle for cut off ratio 1.25 +n2=(1-((1/rc^(r-1)*(p2^r-1)/(r*(p2-1)))))*100;//Thermal efficiency of the diesel cycle for cut off ratio 1.50 +n3=(1-((1/rc^(r-1)*(p3^r-1)/(r*(p3-1)))))*100;//Thermal efficiency of the diesel cycle for cut off ratio 2.00 + +//Output +printf('(a)Thermal efficiency when cut off ratio is 1.25 is %3.2f percent\n (b)Thermal efficiency when cut off ratio is 1.50 is %3.0f percent\n (c)Thermal efficiency when cut off ratio is 2.00 is %3.1f percent\n',n1,n2,n3) -- cgit