summaryrefslogtreecommitdiff
path: root/167/CH2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /167/CH2
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 '167/CH2')
-rwxr-xr-x167/CH2/EX2.1/ex1.sce13
-rwxr-xr-x167/CH2/EX2.10/ex10.sce11
-rwxr-xr-x167/CH2/EX2.11/ex11.sce9
-rwxr-xr-x167/CH2/EX2.12/ex12.sce10
-rwxr-xr-x167/CH2/EX2.13/ex13.sce11
-rwxr-xr-x167/CH2/EX2.15/ex15.sce13
-rwxr-xr-x167/CH2/EX2.16/ex16.sce18
-rwxr-xr-x167/CH2/EX2.17/ex17.sce15
-rwxr-xr-x167/CH2/EX2.18/ex18.sce11
-rwxr-xr-x167/CH2/EX2.19/ex19.sce12
-rwxr-xr-x167/CH2/EX2.2/ex2.sce13
-rwxr-xr-x167/CH2/EX2.7/ex7.sce9
-rwxr-xr-x167/CH2/EX2.8/ex8.sce11
-rwxr-xr-x167/CH2/EX2.9/ex9.sce11
14 files changed, 167 insertions, 0 deletions
diff --git a/167/CH2/EX2.1/ex1.sce b/167/CH2/EX2.1/ex1.sce
new file mode 100755
index 000000000..866f0fbca
--- /dev/null
+++ b/167/CH2/EX2.1/ex1.sce
@@ -0,0 +1,13 @@
+// example 1
+// general energy analysis
+clear
+clc
+d=0.75 //density of gasoline in kg/l
+v=5 //average consumption of gasoline by the car in litres/day
+h=44000 //heating value of gasoline in kJ/kg
+disp('daily consumption of fuel = c = d*v ')
+c=d*v //average consumption of gasoline in kg/day
+e=c*h //daily energy requirement of car in kJ/day
+E=0.1*6.73*10^10 //energy released by complete fussion of 0.1 kg of uranium in kJ
+x=E/e //no. of days for which E amount of energy can meet the energy requirements of car
+printf("\n Hence, the car will require refilling after = %.0f years. \n",x/365); \ No newline at end of file
diff --git a/167/CH2/EX2.10/ex10.sce b/167/CH2/EX2.10/ex10.sce
new file mode 100755
index 000000000..1dbdfb4a2
--- /dev/null
+++ b/167/CH2/EX2.10/ex10.sce
@@ -0,0 +1,11 @@
+//example 10
+// cooling of hot fluid in tank
+clear
+clc
+disp('suppose that there is no change in kinetic and potential energy ')
+u1=800 //initial internal energy in 800kJ
+win=100 //work done by paddle on system in kJ
+qout=500 //loss of energy from fluid
+disp('applying first law of thermodynamics ')
+u2=u1-qout+win //final internal energy in kJ
+printf("\n Hence,final internal energy of the fluid is = %.1f kJ. \n",u2); \ No newline at end of file
diff --git a/167/CH2/EX2.11/ex11.sce b/167/CH2/EX2.11/ex11.sce
new file mode 100755
index 000000000..7163b2b3c
--- /dev/null
+++ b/167/CH2/EX2.11/ex11.sce
@@ -0,0 +1,9 @@
+//example 11
+// acceleration of air by fan
+clear
+clc
+v=8 //discharge rate of air in m/s
+m=0.25 //mass flow rate in kg/s
+p=m*v^2/2 //actual power consumed in W
+P=20 //claimed power in W
+disp('since,two powers are not equal,this claim is not reasonable ') \ No newline at end of file
diff --git a/167/CH2/EX2.12/ex12.sce b/167/CH2/EX2.12/ex12.sce
new file mode 100755
index 000000000..f82be8d3a
--- /dev/null
+++ b/167/CH2/EX2.12/ex12.sce
@@ -0,0 +1,10 @@
+//example 12
+//heating effect of a fan
+clear
+clc
+t1=25 //initial temperature of room in C
+p=200 //power consumption of fan in watts
+a=30 //exposed surface area in m^2
+u=6 //in w/m^2
+t2=p/(u*a)+t1 //final temp. of room in C
+printf("\n Hence, the indoor air temperature when steady operating conditions are established is = %.1f C. \n",t2); \ No newline at end of file
diff --git a/167/CH2/EX2.13/ex13.sce b/167/CH2/EX2.13/ex13.sce
new file mode 100755
index 000000000..4863d7715
--- /dev/null
+++ b/167/CH2/EX2.13/ex13.sce
@@ -0,0 +1,11 @@
+//example 13
+// annual lighting cost of a classroom
+clear
+clc
+p=80 //power consumed by fluoroscent lamp in watt
+n=30 //no. of lamps used
+P=p*n/1000 //lighting power in kW
+t=250*12 //operating hours in a year
+E=P*t //lighting energy/year
+c=E*0.07 //cost of lighting a classroom for a year in dollars
+printf("\n Hence,annual energy cost of lighting for the classroom is = %.0f $/year. \n",c); \ No newline at end of file
diff --git a/167/CH2/EX2.15/ex15.sce b/167/CH2/EX2.15/ex15.sce
new file mode 100755
index 000000000..8ee85588c
--- /dev/null
+++ b/167/CH2/EX2.15/ex15.sce
@@ -0,0 +1,13 @@
+//example 15
+//cost of cooking with electric and gas charges
+clear
+clc
+e1=73 //efficiency of open burner for electric units
+e2=38 //efficiency of open burner for gas units
+E1=2 //Electrical energy input in 2kW
+q1=E1*e1/100 //actually utilised electrical energy in kWh
+c=0.09/0.73 //cost of utilised energy per kWh
+q2=q1/(e2/100) //energy input to a gas burner in kW
+c=(0.55/29.3)/(e2/100) //cost of utilised energy of gas burner
+printf("\n Hence,rate of energy consumption by the burner is = %.2f kW. \n",q2);
+printf("\n The cost of utilised energy is = $ %.3f /kWh. \n",c); \ No newline at end of file
diff --git a/167/CH2/EX2.16/ex16.sce b/167/CH2/EX2.16/ex16.sce
new file mode 100755
index 000000000..ff6004d57
--- /dev/null
+++ b/167/CH2/EX2.16/ex16.sce
@@ -0,0 +1,18 @@
+// example 16
+// performance of hydraulic turbine generator
+clear
+clc
+h=50 //depth of lake in metres
+m=5000 // mass flow rate of water in kg/s
+g=9.81 //acc. due to gravity in m/s^2
+disp('change in mechanical energy= ')
+e=g*h/1000 //change in mech. energy in kJ/kg
+E1=e*m //Rate at which mechanical energy is supplied to the turbine in kW
+E2=1862 //electric power generated in kW
+n1=E2/E1 //overall efficiency
+n2=0.95 //efficiency of generator
+n3=n1/n2 //efficiency of turbine
+W=n3*E1 //shaft power output in kW
+printf("\n Hence,overall efficiency of turbine generator is = %.2f. \n",n1);
+printf("\n The mechanical efficiency of the turbine is = %.2f. \n",n3);
+printf("\n The shaft power supplied by the turbine to the generator is =%.0f kW.\n",W) \ No newline at end of file
diff --git a/167/CH2/EX2.17/ex17.sce b/167/CH2/EX2.17/ex17.sce
new file mode 100755
index 000000000..f03cf072a
--- /dev/null
+++ b/167/CH2/EX2.17/ex17.sce
@@ -0,0 +1,15 @@
+//example 17
+//Cost Savings Associated with High-Efficiency motors
+clear
+clc
+n1=89 //efficiency of first motor
+n2=93.2 //efficiency of second motor
+c=0.08 //cost of electricity in $/kWh
+p=60*0.7457 //rated power in kW
+h=3500 //operating hours per year
+e=p*h*(1/(n1/100)-1/(n2/100)) //energy savings
+s=e*c //cost savings
+t=640/s //simple payback period in year
+printf("\n Hence,the amount of energy saved is = %.0f kWh/year. \n",e);
+printf("\n The money saved is =%.0f $/year. \n",s);
+printf("\n The payback period is=%.2f years.\n",t); \ No newline at end of file
diff --git a/167/CH2/EX2.18/ex18.sce b/167/CH2/EX2.18/ex18.sce
new file mode 100755
index 000000000..01de4c433
--- /dev/null
+++ b/167/CH2/EX2.18/ex18.sce
@@ -0,0 +1,11 @@
+//example 18
+//reducing air pollution by geothermal heating
+clear
+clc
+s=18*10^6 //quantity of natural gas that will be saved per year in therms
+nn=0.0047 //quantity of NOx in kg/therm
+nc=6.4 //quantity of CO2 in kg/therm
+sn=nn*s //NOx savings per year in kg/year
+sc=nc*s //CO2 savings per year in kg/year
+printf("\n Hence,geothermal system will save %.1f *10^4 kg NOx/year. \n",sn/10^4);
+printf("\n and = %.1f *10^8 kg CO2/year. \n",sc/10^8); \ No newline at end of file
diff --git a/167/CH2/EX2.19/ex19.sce b/167/CH2/EX2.19/ex19.sce
new file mode 100755
index 000000000..c57957787
--- /dev/null
+++ b/167/CH2/EX2.19/ex19.sce
@@ -0,0 +1,12 @@
+// example 19
+// heat transfer from a person
+clear
+clc
+T1=20 //room temperature in celsius
+T2=29 //body temperature of person in celsius
+a=1.6 //exposed surface area in m^2
+h=6 //convection heat transfer coefficient in W/m^2*C
+Qc=h*a*(T2-T1) //heat loss due convection in W
+Qr=0.95*5.67*10^-8*a*((T2+273)^4-(T1+273)^4) //heat loss due to radiation in W
+Q=Qc+Qr //net heat loss from the person in W
+printf("\n Hence,the total rate of heat transfer is =%.1f W. \n",Q) \ No newline at end of file
diff --git a/167/CH2/EX2.2/ex2.sce b/167/CH2/EX2.2/ex2.sce
new file mode 100755
index 000000000..d705ef687
--- /dev/null
+++ b/167/CH2/EX2.2/ex2.sce
@@ -0,0 +1,13 @@
+//example 2
+//analysis of wind energy
+clear
+clc
+v=8.5 //velocity of wind in m/s
+e=v^2/2 //wind energy per unit mass of air in j/kg
+m=10 //mass of wind to be considered in kg
+E=m*e //energy in joules of wind of mass m
+mf=1154 //mass flow rate in kg/s
+Ef=mf*e //wind energy in W for a mass flow rate of mf
+printf("\n Hence,wind energy per unit mass is = %.1f J/kg. \n",e);
+printf("\n The wind energy for a mass of 10 kg is = %.0f J. \n",E);
+printf("\n The wind energy for flow rate of 1154 kg/s is = %.1f kW. \n",Ef/1000); \ No newline at end of file
diff --git a/167/CH2/EX2.7/ex7.sce b/167/CH2/EX2.7/ex7.sce
new file mode 100755
index 000000000..da998c3b9
--- /dev/null
+++ b/167/CH2/EX2.7/ex7.sce
@@ -0,0 +1,9 @@
+// example 7
+// Power Transmission by the Shaft of a Car
+clear
+clc
+t=200 //torque applied in N.m
+rpm=4000 //revolutions per minute of shaft
+n=rpm/60 //revolutions per second of shaft
+w=2*%pi*n*t // shaft power in watts
+printf("\n Hence,power transmitted by the shaft of car is = %.1f kW. \n",w/1000); \ No newline at end of file
diff --git a/167/CH2/EX2.8/ex8.sce b/167/CH2/EX2.8/ex8.sce
new file mode 100755
index 000000000..4d1a72ca2
--- /dev/null
+++ b/167/CH2/EX2.8/ex8.sce
@@ -0,0 +1,11 @@
+// example 8
+// Power Needs of a Car to Climb a Hill
+clear
+clc
+m=1200 //mass of car in kg
+v1=90 //velocity of car in km/h
+v2=90*5/18 //velocity of car in m/s
+x=30 //slope of hill in degrees
+g=9.8 //acc. due to gravity in m/s^2
+w=m*g*v2*sin(%pi*30/180) //additional power to be delivered by engine in watts
+printf("\n Hence,additional power to be delivered by engine is = %.0f kW. \n",w/1000); \ No newline at end of file
diff --git a/167/CH2/EX2.9/ex9.sce b/167/CH2/EX2.9/ex9.sce
new file mode 100755
index 000000000..df96cf50b
--- /dev/null
+++ b/167/CH2/EX2.9/ex9.sce
@@ -0,0 +1,11 @@
+// example 9
+// power needs of a car to accelerate
+clear
+clc
+m=900 //mass ofcar in kg
+v1=0 //initial velocity of car
+v2=80*5/18 //final velocity of car in m/s
+t=20 //time in which the car has to reach its desired speed in seconds
+w=m*(v2^2-v1^2)/2 //work required to accomplish this task in joules
+p=w/t // power required in watts
+printf("\n Hence,power required to accelerate is = %.1f kW. \n",p/1000); \ No newline at end of file