summaryrefslogtreecommitdiff
path: root/896/CH4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /896/CH4
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 '896/CH4')
-rwxr-xr-x896/CH4/EX4.1/1.sce10
-rwxr-xr-x896/CH4/EX4.2/2.sce7
-rwxr-xr-x896/CH4/EX4.3/3.sce9
-rwxr-xr-x896/CH4/EX4.4/4.sce9
-rwxr-xr-x896/CH4/EX4.5/5.sce12
-rwxr-xr-x896/CH4/EX4.6/6.sce12
6 files changed, 59 insertions, 0 deletions
diff --git a/896/CH4/EX4.1/1.sce b/896/CH4/EX4.1/1.sce
new file mode 100755
index 000000000..b2174a494
--- /dev/null
+++ b/896/CH4/EX4.1/1.sce
@@ -0,0 +1,10 @@
+clc
+//Example 4.1
+//calculate change in pot. energy per unit mass and total change in pot. energy
+g=9.81;//m/s^2 acc. due to gravity
+dh=23;//m change in height
+dpe=g*dh//m^2/s^2 change in pot energy per unit mass
+printf("change in pot. energy per unit mass is %f m^2/s^2\n",dpe);
+m=10;//kg
+dPE=m*dpe//kgm^2/s^2 or J change in pot. energy
+printf("The total change in potential energy is %f J",dPE); \ No newline at end of file
diff --git a/896/CH4/EX4.2/2.sce b/896/CH4/EX4.2/2.sce
new file mode 100755
index 000000000..5945827fd
--- /dev/null
+++ b/896/CH4/EX4.2/2.sce
@@ -0,0 +1,7 @@
+clc
+//Example 4.2
+//calculate the kinetic energy of bullet
+m=0.01;//lbm mass of bullet
+v=2000;//ft/s
+KE=(m*v^2/2)*(1.356/32.2)//J
+printf("the kinetic energy of bullet is %f J",KE); \ No newline at end of file
diff --git a/896/CH4/EX4.3/3.sce b/896/CH4/EX4.3/3.sce
new file mode 100755
index 000000000..3c1a93c4b
--- /dev/null
+++ b/896/CH4/EX4.3/3.sce
@@ -0,0 +1,9 @@
+clc
+//Example 4.3
+//Calculate the kinetic energy of bullet fired from a airplane
+v_bp=2000;//ft/s vel of bullet wrt plane
+v_p=-1990;//ft/s
+v_b=v_bp+v_p//ft/s vel of bullet wrt ground
+m=0.01;//lbm
+KE=(m*v_b^2/2)*(1.356/32.2)//J
+printf("the kinetic energy of bullet fired from a airplane is %f J",KE); \ No newline at end of file
diff --git a/896/CH4/EX4.4/4.sce b/896/CH4/EX4.4/4.sce
new file mode 100755
index 000000000..8ba14230b
--- /dev/null
+++ b/896/CH4/EX4.4/4.sce
@@ -0,0 +1,9 @@
+clc
+//Example 4.4
+//calculate the change in internal energy of the system
+p=14.7;//lbf/in^2 atmospheric pressure
+dV=1;//ft^3 change in volume
+dW=p*dV*(144/778)//Btu work done
+dQ=-42;//Btu heat removed from the system
+dU=dQ-dW//Btu change in internal energy of the system
+printf("the change in internal energy of the system is %f Btu",dU); \ No newline at end of file
diff --git a/896/CH4/EX4.5/5.sce b/896/CH4/EX4.5/5.sce
new file mode 100755
index 000000000..ef4627474
--- /dev/null
+++ b/896/CH4/EX4.5/5.sce
@@ -0,0 +1,12 @@
+clc
+//Example 4.5
+//calculate the work done
+//work done=change in pot. energy + change in kinetic energy considering steady flow and adiabatic conditions
+v_in=3;//m/s
+v_out=10;//m/s
+dke=(v_in^2-v_out^2)/2;//m^2/s^2
+g=9.81;//m/s^2
+dh=15;//m change in height in inlet and outlet
+dpe=g*dh;//m^2/s^2
+W=dpe+dke//J/kg
+printf("The work done is %f J/Kg",W); \ No newline at end of file
diff --git a/896/CH4/EX4.6/6.sce b/896/CH4/EX4.6/6.sce
new file mode 100755
index 000000000..6b1af4478
--- /dev/null
+++ b/896/CH4/EX4.6/6.sce
@@ -0,0 +1,12 @@
+clc
+//Example 4.6
+//calculate the mass consumed in a nuclear reactor per unit time
+//let D=d/dt
+DQ=-13*10^8;//J/s
+DW=7*10^8;//J/s
+//Dm=(DQ-DW)/c^2 where c is velocity of light sice E=mc^2
+c=3*10^8;//m/s
+c1=3;//velocity of light without power
+pow=8//power of 10 in speed of light
+Dm=(DW-DQ)/c/c1//kg/s
+printf("the mass consumed in a nuclear reactor per unit time is %f * 10^(-%d) kg/s",Dm,pow); \ No newline at end of file