summaryrefslogtreecommitdiff
path: root/647/CH1/EX1.11
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /647/CH1/EX1.11
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 '647/CH1/EX1.11')
-rwxr-xr-x647/CH1/EX1.11/Example1_11.sce40
1 files changed, 40 insertions, 0 deletions
diff --git a/647/CH1/EX1.11/Example1_11.sce b/647/CH1/EX1.11/Example1_11.sce
new file mode 100755
index 000000000..e1bef5e98
--- /dev/null
+++ b/647/CH1/EX1.11/Example1_11.sce
@@ -0,0 +1,40 @@
+clear;
+clc;
+
+// Example: 1.11
+// Page: 13
+
+printf("Example: 1.11 - Page: 13\n\n");
+
+//*****Data*****//
+dia = 0.3;// [m]
+m = 100;// [kg]
+P_atm = 1.013*10^5;// [N/square m]
+g = 9.792;// [m/square s]
+//**************//
+
+Area = (%pi/4)*dia^2;// [square m]
+//Solution (a)(i)
+// Force exerted by the atmosphere:
+F_atm = P_atm*Area;// [N]
+// Force exerted by piston & metal block:
+F_mass = m*g;// [N]
+// Total force acting upon the gas:
+F = F_atm + F_mass;// [N]
+printf("Total Force eacting upon the gas is %.1f N\n",F);
+
+// Solution (a)(ii)
+Pressure = F/Area;// [N/square m]
+printf("Pressure exerted is %.3f kPa\n\n",Pressure/1000);
+
+// Solution (b)
+// The gas expands on application of heat, the volume of the gas goes on increasing and the piston moves upward.
+Z = 0.5;// [m]
+// Work done due to expansion of gas:
+W = F*Z;// [J]
+printf("Work due to expansion by the gas is %.3f kJ\n\n",W/1000);
+
+// Solution (c)
+// Change in potential energy of piston and weight after expansion process:
+Ep = m*g*Z;// [J]
+printf("Change in Potential Energy is %.1f J\n",Ep); \ No newline at end of file