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 --- 2969/CH10/EX10.3/Ex10_3.sce | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 2969/CH10/EX10.3/Ex10_3.sce (limited to '2969/CH10/EX10.3') diff --git a/2969/CH10/EX10.3/Ex10_3.sce b/2969/CH10/EX10.3/Ex10_3.sce new file mode 100755 index 000000000..4f4047596 --- /dev/null +++ b/2969/CH10/EX10.3/Ex10_3.sce @@ -0,0 +1,27 @@ +clc +clear +//DATA GIVEN +T1=20+273; //temperature in K +p1=1; //pressure in bar +p2=10; //pressure in bar +Cv=0.718; //in kJ/kgK + +//law of compression, pV^1.2=C +n=1.2; +R=0.287; //in kJ/kgK + +//(T2/T1)=(p2/p1)^((n-1)/n); +T2=T1*(p2/p1)^((n-1)/n); //temp. T2 in K +m=1; +W=(n)/(n-1)*m*R*T1*[(p2/p1)^((n-1)/n)-1]; //work done per kg of air (kJ/kg of air) + +//By the First Law of Thermodynamics +//heat transferred during compression, Q=W+DU +//Q=(p1V1-p2V2)/(n-1)+Cv(T2-T1) +//Q=(T2-T1)*[Cv-R/(n-1)] +Q=(T2-T1)*[Cv-R/(n-1)]; + +printf(' (i) The Temperature at the end of compression is: %3.0f K or %3.0f deg. celsius. \n',T2,(T2-273)); +printf(' (ii) The Work done during compression per kg of air is: %3.2f kJ/kg of air. \n',W); +printf(' The Heat transferred during compression per kg of air is: %2.2f kJ/kg of air. \n',Q); +printf(' (Negative sign indicates heat REJECTION.) \n'); -- cgit