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 /2705/CH5/EX5.26 | |
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 '2705/CH5/EX5.26')
-rwxr-xr-x | 2705/CH5/EX5.26/Ex5_26.sce | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/2705/CH5/EX5.26/Ex5_26.sce b/2705/CH5/EX5.26/Ex5_26.sce new file mode 100755 index 000000000..83f0cc59c --- /dev/null +++ b/2705/CH5/EX5.26/Ex5_26.sce @@ -0,0 +1,45 @@ +clear;
+clc;
+disp('Example 5.26');
+
+// aim : To determine
+// the volume of the pressure vessel and the volume of the gas before transfer
+
+// Given values
+
+P1 = 1400;// initial pressure,[kN/m^2]
+T1 = 273+85;// initial temperature,[K]
+
+P2 = 700;// final pressure,[kN/m^2]
+T2 = 273+60;// final temperature,[K]
+
+m = 2.7;// mass of the gas passes,[kg]
+cp = .88;// [kJ/kg]
+cv = .67;// [kJ/kg]
+
+// solution
+
+// steady flow equation is, u1+P1*V1+C1^2/2+Q=u2+P2*V2+C2^2/2+W [1],
+// given, there is no kinetic energy change and neglecting potential energy term
+W = 0;// no external work done
+// so final equation is,u1+P1*v1+Q=u2 [2]
+// also u2-u1=cv*(T2-T1)
+// hence Q=cv*(T2-T1)-P1*v1 [3]
+// and for unit mass P1*v1=R*T1=(cp-cv)*T1 [4]
+// so finally
+Q = cv*(T2-T1)-(cp-cv)*T1;// [kJ/kg]
+// so total heat transferred is
+Q = m*Q;// [kJ]
+
+// using eqn [4]
+v1 = (cp-cv)*T1/P1;// [m^3/kg]
+// Total volume is
+V1 = m*v1;// [m^3]
+
+// using ideal gas equation P1*V1/T1=P2*V2/T2
+V2 = P1*T2*V1/(P2*T1);// final volume,[m^3]
+
+mprintf('\n The volume of gas before transfer is = %f m^3\n',V1);
+mprintf('\n The volume of pressure vessel is = %f m^3\n',V2);
+
+// End
|