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 --- 2015/CH5/EX5.5/5_5.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 2015/CH5/EX5.5/5_5.sce (limited to '2015/CH5/EX5.5') diff --git a/2015/CH5/EX5.5/5_5.sce b/2015/CH5/EX5.5/5_5.sce new file mode 100755 index 000000000..1bb97e14b --- /dev/null +++ b/2015/CH5/EX5.5/5_5.sce @@ -0,0 +1,25 @@ + +clc +//initialisation of variables +clear +t1=593 //temparature in k +p2=1.05 //pressure in bar +p1=7 //pressure in bar +cp=1.005 +p3=3.696 //pressure in bar +r=0.287 //kj/kgk +a=6.25*10^-4 +g= 32.2 //ft/sec^2 +R= 8.314 +//CALCULATIONS +t2=t1*(p2/p1)^((g-1)/g) +c2=44.72*(cp*(t1-t2))^(0.5) +rho2=p2*100/(r*t2) +m2=rho2*c2*a +t3=t1*(p3/p1)^((g-1)/g) +c3=44.72*(cp*(t1-t3))^(0.5) +rho3=p3*100/(R*t3) +a3=m2/(rho3*c3) +//RESULTS +printf('exit velocity and mass flow rate are %2fm/s and %2fkg/s',c2,m2) +printf('\nthroat area is %2fm*m',a3) -- cgit