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 /2144/CH3/EX3.7/ex3_7.sce | |
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 '2144/CH3/EX3.7/ex3_7.sce')
-rwxr-xr-x | 2144/CH3/EX3.7/ex3_7.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2144/CH3/EX3.7/ex3_7.sce b/2144/CH3/EX3.7/ex3_7.sce new file mode 100755 index 000000000..714a0776e --- /dev/null +++ b/2144/CH3/EX3.7/ex3_7.sce @@ -0,0 +1,19 @@ +// Exa 3.7
+clc;
+clear;
+close;
+// Given data
+W = 89.947;// in kJ
+T1 = 240;// in degree C
+T1=T1+273;// in K
+T2 = 115;// in degree C
+T2=T2+273;// in K
+C_v = W/(T1-T2);// in kJ/kg-K
+disp(C_v,"The value of Cv in kJ/kg-K is");
+V1 = 1;// in m^3 (assumed)
+V2 = 2*V1;// in m^3
+// (T1/T2) = (V2/V1)^(Gamma - 1)
+Gamma=log10(T1/T2)/log10(V2/V1)+1;
+Gamma = 1.4;
+C_p = Gamma * C_v;// in kJ/kg-K
+disp(C_p,"The value Cp in kJ/kg-K is");
|