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 --- 32/CH7/EX7.16/7_16.sce | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 32/CH7/EX7.16/7_16.sce (limited to '32/CH7/EX7.16') diff --git a/32/CH7/EX7.16/7_16.sce b/32/CH7/EX7.16/7_16.sce new file mode 100755 index 000000000..6433aebb0 --- /dev/null +++ b/32/CH7/EX7.16/7_16.sce @@ -0,0 +1,25 @@ +//pathname=get_absolute_file_path('7.16.sce') +//filename=pathname+filesep()+'7.16-data.sci' +//exec(filename) +//Minimum temperature(in K): +Tmin=30+273 +//Maximum temperature(in K): +Tmax=700+273 +//Temperature of surroundings(in K): +T0=17+273 +//Rate at which engine receives heat(in kJ/min): +Q1=2*10^4 +//Measured output of the engine(in kW): +Wu=0.13*10^3 +//Efficiency: +nrev=1-Tmin/Tmax +//Availability or reversible work(in kJ/s): +Wrev=nrev*Q1/60 +//Rate of irreversibility(in kJ/s): +I=Wrev-Wu +//Second law efficiency: +n2=Wu/Wrev +printf("\nRESULT") +printf("\nAvailability = %f kJ/min",Wrev*60) +printf("\nRate of irreversibility = %f kW",I) +printf("\nSecond law efficiency = %f percent",n2*100) \ No newline at end of file -- cgit