diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /551/CH4/EX4.29 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '551/CH4/EX4.29')
-rwxr-xr-x | 551/CH4/EX4.29/29.sce | 24 |
1 files changed, 24 insertions, 0 deletions
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 |