diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /172/CH2 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '172/CH2')
-rwxr-xr-x | 172/CH2/EX2.1/ex1.sce | 8 | ||||
-rwxr-xr-x | 172/CH2/EX2.2/ex2.sce | 22 | ||||
-rwxr-xr-x | 172/CH2/EX2.3/ex3.sce | 14 | ||||
-rwxr-xr-x | 172/CH2/EX2.4/ex4.sce | 9 | ||||
-rwxr-xr-x | 172/CH2/EX2.5/ex5.sce | 12 | ||||
-rwxr-xr-x | 172/CH2/EX2.6/ex6.sce | 16 | ||||
-rwxr-xr-x | 172/CH2/EX2.7/ex7.sce | 15 |
7 files changed, 96 insertions, 0 deletions
diff --git a/172/CH2/EX2.1/ex1.sce b/172/CH2/EX2.1/ex1.sce new file mode 100755 index 000000000..c6f730a04 --- /dev/null +++ b/172/CH2/EX2.1/ex1.sce @@ -0,0 +1,8 @@ +//example 1
+//weight of a person
+clear
+clc
+m=1 //kg
+g=9.75 //acc.due to gravity in m/s^2
+F=m*g //weight of 1 kg mass in N
+printf("\n hence,weight of person is F = %.3f N. \n",F)
\ No newline at end of file diff --git a/172/CH2/EX2.2/ex2.sce b/172/CH2/EX2.2/ex2.sce new file mode 100755 index 000000000..a41434acc --- /dev/null +++ b/172/CH2/EX2.2/ex2.sce @@ -0,0 +1,22 @@ +//example 2
+//average volume and density
+clear
+clc
+Vliq=0.2 //volume of liquid in m^3
+dliq=997 //density of liquid in kg/m^3
+Vstone=0.12 //volume of stone in m^3
+Vsand=0.15 //volume of sand in m^3
+Vair=0.53 //vo;ume of air in m^3
+mliq=Vliq*dliq //mass of liquid in kg
+dstone=2750 //density of stone in kg/m^3
+dsand=1500 //density of sand in kg/m^3
+mstone=Vstone*dstone //volume of stone in m^3
+msand=Vsand*dsand //volume of sand in m^3
+Vtot=1 //total volume in m^3
+dair=1.1 //density of air in kg/m^3
+mair=Vair*dair //mass of air
+mtot=mair+msand+mliq+mstone //total mass in kg
+v=Vtot/mtot //specific volume in m^3/kg
+d=1/v //overall density in kg/m^3
+printf("\n hence,average specific volume is v=%.6f m^3/kg. \n",v )
+printf("\n and overall density is d=%.0f kg/m^3. \n",d)
\ No newline at end of file diff --git a/172/CH2/EX2.3/ex3.sce b/172/CH2/EX2.3/ex3.sce new file mode 100755 index 000000000..5f17aadba --- /dev/null +++ b/172/CH2/EX2.3/ex3.sce @@ -0,0 +1,14 @@ +//example 3
+//calculating the required force
+clear
+clc
+Dcyl=0.1 //cylinder diameter in m
+Drod=0.01 //rod diameter in m
+Acyl=%pi*Dcyl^2/4 //cross sectional area of cylinder in m^2
+Arod=%pi*Drod^2/4 //cross sectional area of rod in m^2
+Pcyl=250000 //inside hydaulic pressure in Pa
+Po=101000 //outside atmospheric pressure in kPa
+g=9.81 //acc. due to gravity in m/s^2
+mp=25 //mass of (rod+piston) in kg
+F=Pcyl*Acyl-Po*(Acyl-Arod)-mp*g //the force that rod can push within the upward direction in N
+printf("\n hence,the force that rod can push within the upward direction is F = %.3f N. \n",F)
\ No newline at end of file diff --git a/172/CH2/EX2.4/ex4.sce b/172/CH2/EX2.4/ex4.sce new file mode 100755 index 000000000..6e4c3266e --- /dev/null +++ b/172/CH2/EX2.4/ex4.sce @@ -0,0 +1,9 @@ +//example 4
+//Calculating atmospheric pressure
+clear
+clc
+dm=13534 //density of mercury in kg/m^3
+H=0.750 //height difference between two columns in metres
+g=9.80665 //acc. due to gravity in m/s^2
+Patm=dm*H*g/1000 //atmospheric pressure in kPa
+printf("\n hence, atmospheric pressure is Patm = %.2f kPa. \n",Patm)
\ No newline at end of file diff --git a/172/CH2/EX2.5/ex5.sce b/172/CH2/EX2.5/ex5.sce new file mode 100755 index 000000000..4688e7a4c --- /dev/null +++ b/172/CH2/EX2.5/ex5.sce @@ -0,0 +1,12 @@ +//example 5
+//pressure inside vessel
+clear
+clc
+dm=13590 //density of mercury in kg/m^3
+H=0.24 //height difference between two columns in metres
+g=9.80665 //acc. due to gravity in m/s^2
+dP=dm*H*g //pressure difference in Pa
+Patm=13590*0.750*9.80665 //Atmospheric Pressure in Pa
+Pvessel=dP+Patm //Absolute Pressure inside vessel in Pa
+Pvessel=Pvessel/101325//Absolute Pressure inside vessel in atm
+printf("\n hence, the absolute pressure inside vessel is Pvessel = %.3f atm. \n",Pvessel)
\ No newline at end of file diff --git a/172/CH2/EX2.6/ex6.sce b/172/CH2/EX2.6/ex6.sce new file mode 100755 index 000000000..3d74b243c --- /dev/null +++ b/172/CH2/EX2.6/ex6.sce @@ -0,0 +1,16 @@ +//example 6
+//calculating pressure
+clear
+clc
+dg=750 //density of gaasoline in kg/m^3
+dR=1206 //density of R-134a in kg/m^3
+H=7.5 //height of storage tank in metres
+g=9.807 //acc. due to gravity in m/s^2
+dP1=dg*g*H/1000 //in kPa
+Ptop1=101 //atmospheric pressure in kPa
+P1=dP1+Ptop1
+disp('hence,pressure at the bottom of storage tank if fluid is gasoline is 156.2 kPa')
+dP2=dR*g*H/1000 //in kPa
+Ptop2=1000 //top surface pressure in kPa
+P2=dP2+Ptop2
+printf("\n hence, pressure at the bottom of storage tank if liquid is R-134a is P2 = %.0f kPa. \n",P2)
\ No newline at end of file diff --git a/172/CH2/EX2.7/ex7.sce b/172/CH2/EX2.7/ex7.sce new file mode 100755 index 000000000..d3681adae --- /dev/null +++ b/172/CH2/EX2.7/ex7.sce @@ -0,0 +1,15 @@ +//example 6
+//calculating balancing force
+clear
+clc
+Po=100//Outside atmospheric pressure in kPa
+F1=25 //net force on the smallest piston in kN
+A1=0.01 //cross sectional area of lower piston in m^2
+P1=Po+F1/A1 //fluid pressure in kPa
+d=900 //density of fluid in kg/m^3
+g=9.81 //acc. due to gravity in m/s^2
+H=6 //height of second piston in comparison to first one in m
+P2=P1-d*g*H/1000 //pressure at higher elevation on piston 2 in kPa
+A2=0.05 // cross sectional area of higher piston in m^3
+F2=(P2-Po)*A2 //balancing force on second piston in kN
+printf("\n hence, balancing force on second larger piston is F2 = %.1f N. \n",F2)
\ No newline at end of file |