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 --- 611/CH5/EX5.6/Chap5_Ex6_R1.sce | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 611/CH5/EX5.6/Chap5_Ex6_R1.sce (limited to '611/CH5/EX5.6') diff --git a/611/CH5/EX5.6/Chap5_Ex6_R1.sce b/611/CH5/EX5.6/Chap5_Ex6_R1.sce new file mode 100755 index 000000000..de77a7240 --- /dev/null +++ b/611/CH5/EX5.6/Chap5_Ex6_R1.sce @@ -0,0 +1,29 @@ +// Y.V.C.Rao ,1997.Chemical Engineering Thermodynamics.Universities Press,Hyderabad,India. + +//Chapter-5,Example 6,Page 169 +//Title: Inventor and the claim +//================================================================================================================ +clear +clc + +//INPUT +T1=800;//temperature of reservoir 1 in K +T2=400;//temperature of reservoir 2 in K +Q1=1000;//energy absorbed from reservoir maintained at T1 in kJ +Q2=400;//energy absorbed from reservoir maintained at T2 in kJ +W=1000;//work delivered by the heat engine in kJ +T3=300;//temperature of the sink in K + +//CALCULATION +Q3=(Q1+Q2)-W;//calculation of the energy rejected to the sink using the first law of thermodynamics in kJ +clausius_inequality=(Q1/T1)+(Q2/T2)-(Q3/T3);//application of the second law of thermodynamics in the form of the Clausius inequality using Eq.(5.28) + +//OUTPUT +mprintf("\n The LHS of the Clausius inequality=%0.4f \n",clausius_inequality); +if clausius_inequality<0 | clausius_inequality==0 then + mprintf("\n The given process does not violate the second law of thermodynamics, therefore the claim is correct\n"); +else + mprintf("\n This is a violation of the second law of thermodynamics, and hence the claim cannot be justified\n"); +end + +//===============================================END OF PROGRAM=================================================== -- cgit