From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 647/CH1/EX1.11/Example1_11.sce | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 647/CH1/EX1.11/Example1_11.sce (limited to '647/CH1/EX1.11') 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 -- cgit