diff options
Diffstat (limited to '2144/CH2/EX2.18/exa_2_18.sce')
-rwxr-xr-x | 2144/CH2/EX2.18/exa_2_18.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2144/CH2/EX2.18/exa_2_18.sce b/2144/CH2/EX2.18/exa_2_18.sce new file mode 100755 index 000000000..a29c0684e --- /dev/null +++ b/2144/CH2/EX2.18/exa_2_18.sce @@ -0,0 +1,18 @@ +// Example 2.18
+clc;
+clear;
+close;
+// Given data
+Cv= 0.718;// in kJ/kgK
+R= 0.278;// in kJ/kgK
+T1= 15+273;// in K
+T2= 135+273;// in K
+m= 2;// mass in kg
+V1= 0.7;// in m^3
+Q= m*Cv*(T2-T1);// in kJ
+disp(Q,"Heat supplied to gas in kJ is : ")
+// Formula P1*V1= m*R*T1
+P1= m*R*T1/V1;// in kN/m^2 absolute
+// From P1/T1= P2/T2
+P2= P1*T2/T1;// in kN/m^2
+disp(P2,"The final pressure in kN/m^2 is : ")
|