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 /2774/CH5/EX5.6 | |
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 '2774/CH5/EX5.6')
-rwxr-xr-x | 2774/CH5/EX5.6/Ex5_6.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2774/CH5/EX5.6/Ex5_6.sce b/2774/CH5/EX5.6/Ex5_6.sce new file mode 100755 index 000000000..0b36e94ec --- /dev/null +++ b/2774/CH5/EX5.6/Ex5_6.sce @@ -0,0 +1,16 @@ +clc
+// initialization of variables
+T1=20+273 // initial temperature in kelvin
+P=200 // pressure in kPa
+V=2 //volume in m^3
+R=0.287 // gas constant for air
+W=720 // work done on air in kJ
+Cv=0.717 // specific heat at constant volume for air
+
+//solution
+m=(P*V)/(R*T1)// mass of air
+
+T2=T1+(W/(m*Cv))// final temperature in kelvin
+
+delS=m*Cv*log(T2/T1) // ENROPY CHANGE FOR CONSTANT VOLUME PROCESS
+printf(" The Entropy increase is %.3f kJ/K ",delS)
|