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/CH2/EX2.18 | |
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/CH2/EX2.18')
-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 : ")
|