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 --- 443/CH20/EX20.4/20_4.sce | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 443/CH20/EX20.4/20_4.sce (limited to '443/CH20/EX20.4') diff --git a/443/CH20/EX20.4/20_4.sce b/443/CH20/EX20.4/20_4.sce new file mode 100755 index 000000000..68d9ccf78 --- /dev/null +++ b/443/CH20/EX20.4/20_4.sce @@ -0,0 +1,22 @@ +pathname=get_absolute_file_path('20_4.sce') +filename=pathname+filesep()+'20_4_data.sci' +exec(filename) +//Question 20.4 +//psc (in kg/m3) +psc=ep/(r*t) +//Mass of air (in kg/cycle) +ma=nsc*V*psc +//Scavanging ratio Rsc +Rsc=(cf/(s*V*psc)) +//Trapping efficiency ntr +ntr=nsc/Rsc +//Brake power (in kW) +bp=((ma*CV*nbth*s*far)/60) +//the bsfc (in kg/kWh) +bsfc=(cf*60*far/(bp)) +//Short circuting (in kg/h) +sc=(cf*(1-ntr)*(60*far)) +printf("\n\nRESULTS\n\n") +printf("\nbrake power: %f\n",bp) +printf("\nthe bsfc %f\n",bsfc) +printf("\nShort Circuting %f\n",sc) \ No newline at end of file -- cgit