summaryrefslogtreecommitdiff
path: root/779/CH11/EX11.6/11_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /779/CH11/EX11.6/11_6.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 '779/CH11/EX11.6/11_6.sce')
-rwxr-xr-x779/CH11/EX11.6/11_6.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/779/CH11/EX11.6/11_6.sce b/779/CH11/EX11.6/11_6.sce
new file mode 100755
index 000000000..3a4fa20ec
--- /dev/null
+++ b/779/CH11/EX11.6/11_6.sce
@@ -0,0 +1,18 @@
+R = 8.314;
+N1 = 0.5e-03; N2 = 0.75e-03; // Mole number of system 1 and 2 in kg/mol
+T1 = 200; T2 = 300;
+V = 0.02;
+Tf = ((N1*T1)+(N2*T2))/(N1+N2); // Final temperature
+Uf1 = (3/2)*R*N1*Tf;
+Uf2 = (3/2)*R*N2*Tf;
+Pf = (R*Tf*(N1+N2))/V;
+Vf1 = (R*N1*Tf)/Pf;
+Vf2 = V - Vf1;
+disp("System 1")
+disp("m3",Vf1,"Volume is")
+disp("kJ",Uf1,"Energy is")
+disp("System 2")
+disp("m3",Vf2,"Volume is")
+disp("kJ",Uf2,"Energy is")
+disp("K",Tf,"Final temperature is")
+disp("kPa",Pf,"Final Pressure is") \ No newline at end of file