summaryrefslogtreecommitdiff
path: root/551/CH8/EX8.6/6.sce
diff options
context:
space:
mode:
Diffstat (limited to '551/CH8/EX8.6/6.sce')
-rwxr-xr-x551/CH8/EX8.6/6.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/551/CH8/EX8.6/6.sce b/551/CH8/EX8.6/6.sce
new file mode 100755
index 000000000..44ad89359
--- /dev/null
+++ b/551/CH8/EX8.6/6.sce
@@ -0,0 +1,15 @@
+clc
+d=2.5; //m; diameter
+V1=4/3*%pi*(d/2)^3; //volume of each sphere
+T1=298; //K
+T2=298; //K
+m1=16; //kg
+m2=8; //kg
+V=2*V1; //total volume
+m=m1+m2;
+R=287; //kJ/kg K
+
+p=m*R*T1/V/10^5; //bar
+disp("pressure in the spheres when the system attains equilibrium=")
+disp(p)
+disp("bar") \ No newline at end of file