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 /172/CH5/EX5.9/ex9.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 '172/CH5/EX5.9/ex9.sce')
-rwxr-xr-x | 172/CH5/EX5.9/ex9.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/172/CH5/EX5.9/ex9.sce b/172/CH5/EX5.9/ex9.sce new file mode 100755 index 000000000..e8574c903 --- /dev/null +++ b/172/CH5/EX5.9/ex9.sce @@ -0,0 +1,14 @@ +//example 9
+//determining amount of heat transfer
+clear
+clc
+P=150 //pressure of nitrogen in cylinder in kPa
+V=0.1 //initial volume of cylinder in m^3
+T1=25 //initial temperature of nitrogen in celsius
+T2=150 //final tempareture of nitrogen in celsius
+R=0.2968 //in kJ/kg-K
+m=P*V/(R*(T1+273)) //mass of nitrogen in kg
+Cv=0.745 //constant volume specific heat for nitrogen in kJ/kg-K
+W=-20 //work done on nitrogen gas in kJ
+Q=m*Cv*(T2-T1)+W //heat transfer during the process in kJ
+printf("\n hence,the heat transfer for the above process is Q=%.1f kJ. \n", Q)
\ No newline at end of file |