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 --- 551/CH4/EX4.29/29.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 551/CH4/EX4.29/29.sce (limited to '551/CH4/EX4.29') diff --git a/551/CH4/EX4.29/29.sce b/551/CH4/EX4.29/29.sce new file mode 100755 index 000000000..c94f4d613 --- /dev/null +++ b/551/CH4/EX4.29/29.sce @@ -0,0 +1,24 @@ +clc +m=0.44; //kg +T1=453; //K +ratio=3; //ratio=V2/V1 +T2=288; //K +W_12=52.5; //kJ +y=log(T2/T1)/ log(1/ratio) + 1; +R=W_12*(y-1)/m/(T1-T2); +// We have got two equations +// cp-cv=R +// cp-y*cv=0 +M=[1,-1;1,-y]; +N=[R;0]; +X=inv(M)*N; +cp=X(1,1); +cv=X(2,1); +disp("cp=") +disp(cp) +disp("kJ/kg.K") + + +disp("cv=") +disp(cv) +disp("kJ/kg.K") \ No newline at end of file -- cgit