summaryrefslogtreecommitdiff
path: root/1967/CH18/EX18.7/18_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1967/CH18/EX18.7/18_7.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1967/CH18/EX18.7/18_7.sce')
-rwxr-xr-x1967/CH18/EX18.7/18_7.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/1967/CH18/EX18.7/18_7.sce b/1967/CH18/EX18.7/18_7.sce
new file mode 100755
index 000000000..9499a9f8c
--- /dev/null
+++ b/1967/CH18/EX18.7/18_7.sce
@@ -0,0 +1,27 @@
+clc
+//initialisation of variables
+clear
+n1= 2 //moles
+n2= 100 //moles
+Cp1= 17.9 //cal deg^-1 mole^-1
+Cp2= 21.78 //cal deg^-1 mole^-1
+T1= 30 //C
+T2= 25 //C
+L1= 5780 //cal
+L2= 5410 //cal
+h= 5620 //cal mole^-1
+n3= 3 //moles
+Cp3= 16.55 //cal deg^-1 mole^-1
+//CALCULATIONS
+Cp= n2*Cp1+n1*Cp2
+Q= (T2-T1)*Cp
+Q1= (n1*L1+L2)
+Q2= n3*h
+dQ= Q2-Q1
+dH= Q+dQ
+HC= 300*Cp1+n3*Cp3
+t= -dH/HC
+Tf= T2+t
+//RESULTS
+printf ('Increase in temperature = %.2f deg',t)
+printf ('\n Final temperature = %.1f deg',Tf)