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 /1709/CH7/EX7.8 | |
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 '1709/CH7/EX7.8')
-rwxr-xr-x | 1709/CH7/EX7.8/7_8.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/1709/CH7/EX7.8/7_8.sce b/1709/CH7/EX7.8/7_8.sce new file mode 100755 index 000000000..5c48db17a --- /dev/null +++ b/1709/CH7/EX7.8/7_8.sce @@ -0,0 +1,24 @@ +clc
+//Initialization of variables
+P=1000 //psia
+T1=100 + 460 //R
+T2=800+460 //R
+//calculations
+pc=1070 //psia
+Tc=548 //R
+pr1=P/pc
+Tr1=T1/Tc
+Tr2=T2/Tc
+M=44
+disp("from fig 7.7")
+h1=4235.8 //B/lbm mol
+h2=11661 //B/lbm mol
+h2bar=3.5 //B/lbm mol
+h1bar=0.48 //B/lbm mol
+dhbar=Tc*(h2bar-h1bar) + h2-h1
+Q=dhbar/M
+cp=0.202 //B/lbm F
+Q2=cp*(T2-T1)
+Error=(Q-Q2)/Q
+//results
+printf("Error in calculation = %d percent",Error*100)
|