diff options
Diffstat (limited to '3720/CH3')
-rw-r--r-- | 3720/CH3/EX3.1/Ex3_1.sce | 9 | ||||
-rw-r--r-- | 3720/CH3/EX3.10/Ex3_10.sce | 11 | ||||
-rw-r--r-- | 3720/CH3/EX3.11/Ex3_11.sce | 16 | ||||
-rw-r--r-- | 3720/CH3/EX3.12/Ex3_12.sce | 19 | ||||
-rw-r--r-- | 3720/CH3/EX3.13/Ex3_13.sce | 12 | ||||
-rw-r--r-- | 3720/CH3/EX3.2/Ex3_2.sce | 13 | ||||
-rw-r--r-- | 3720/CH3/EX3.3/Ex3_3.sce | 18 | ||||
-rw-r--r-- | 3720/CH3/EX3.4/Ex3_4.sce | 22 | ||||
-rw-r--r-- | 3720/CH3/EX3.5/Ex3_5.sce | 11 | ||||
-rw-r--r-- | 3720/CH3/EX3.6/Ex3_6.sce | 12 | ||||
-rw-r--r-- | 3720/CH3/EX3.7/Ex3_7.sce | 18 | ||||
-rw-r--r-- | 3720/CH3/EX3.8/Ex3_8.sce | 20 | ||||
-rw-r--r-- | 3720/CH3/EX3.9/Ex3_9.sce | 28 |
13 files changed, 209 insertions, 0 deletions
diff --git a/3720/CH3/EX3.1/Ex3_1.sce b/3720/CH3/EX3.1/Ex3_1.sce new file mode 100644 index 000000000..a801621b1 --- /dev/null +++ b/3720/CH3/EX3.1/Ex3_1.sce @@ -0,0 +1,9 @@ +// Example 3_1
+clc;clear;funcprot(0);
+// Given values
+P_atm=14.5; // The atmospheric pressure in psi
+P_vac=5.8; // The vacuum pressure in psi
+
+//Calculation
+P_abs=P_atm-P_vac;
+printf('The absolute pressure in the chamber,P_abs=%0.1f psi\n',P_abs);
diff --git a/3720/CH3/EX3.10/Ex3_10.sce b/3720/CH3/EX3.10/Ex3_10.sce new file mode 100644 index 000000000..b4d2bc524 --- /dev/null +++ b/3720/CH3/EX3.10/Ex3_10.sce @@ -0,0 +1,11 @@ +//Example 3_10
+clc;clear;funcprot(0);
+//Given values
+h_sub=0.1;// m
+rho_w=1000;// Density of water in kg/m^3
+R=0.005;// m
+
+// Calculation
+V_sub=%pi*R^2*h_sub;// m^3
+m=rho_w*V_sub;// kg
+printf('The mass of lead,m=%0.5f kg\n',m);
diff --git a/3720/CH3/EX3.11/Ex3_11.sce b/3720/CH3/EX3.11/Ex3_11.sce new file mode 100644 index 000000000..edfb30db7 --- /dev/null +++ b/3720/CH3/EX3.11/Ex3_11.sce @@ -0,0 +1,16 @@ +// Example 3_11
+clc;clear;funcprot(0);
+// Given values
+rho_sw=1025;// The density of sea water in kg/m^3
+rho_con=2300;// The density of concrete in kg/m^3
+g=9.81;// The acceleration due to gravity in m/s^2
+
+// Calculation (a)
+V=0.4*0.4*3; // Volume of the block in m^3;
+F_air=(rho_con*g*V)/1000;// kN
+printf('Tension in rope must be equal to the weight of the block,F_air=%0.1f kN\n',F_air);
+// Calculation (b)
+F_b=(rho_sw*g*V)/1000;// kN
+printf('Balance force F_b=%0.1f kN\n',F_b);
+F_water=F_air-F_b;// kN
+printf('Tension in rope when it is completely immersed in water,F_water=%0.1f kN\n',F_water);
diff --git a/3720/CH3/EX3.12/Ex3_12.sce b/3720/CH3/EX3.12/Ex3_12.sce new file mode 100644 index 000000000..ad64f4818 --- /dev/null +++ b/3720/CH3/EX3.12/Ex3_12.sce @@ -0,0 +1,19 @@ +//Example 3_12
+clc;clear;funcprot(0);
+// Given values
+dV=90-0;//Change in velocity in km/h
+dt=10;// s
+b_1=2;// m
+b_2=0.6// m;
+g=9.81;// m/s^2
+a_z=0;// m/s^2
+
+// Calculation
+a_x=(dV/dt)/3.6;// The acceleration of the truck in m/s^2
+theta=atand(a_x/(g+a_z));// degree
+// Case 1:
+gradZ_s1=(b_1/2)*tand(theta)*100;// cm
+printf('Case 1 :The long side is parallel to the direction of motion:Vertical rise,grad_Zs1=%0.1f cm\n' ,gradZ_s1);
+// Case 2:
+gradZ_s2=(b_2/2)*tand(theta)*100;// cm
+printf('Case 2 :The short side is parallel to the direction of motion:Vertical rise,grad_Zs2=%0.1f cm\n',gradZ_s2);
diff --git a/3720/CH3/EX3.13/Ex3_13.sce b/3720/CH3/EX3.13/Ex3_13.sce new file mode 100644 index 000000000..5077ef971 --- /dev/null +++ b/3720/CH3/EX3.13/Ex3_13.sce @@ -0,0 +1,12 @@ +// Example 3_13
+clc;clear;funcprot(0);
+// Given values
+h_0=0.5;// m
+Z_R=0.6;// m
+g=9.81;// m/s^2
+R=0.1;// m
+//Calculation
+omega=sqrt((4*g*(Z_R-h_0))/R^2);// rad/s
+printf('The maximum rotational speed of the container,omega=%0.1f rad/s \n',omega);
+n=(omega/(2*%pi))*60;// rpm
+printf('The rotational speed of the container expressed in terms of rpm,n=%0.0f rpm\n',n);
diff --git a/3720/CH3/EX3.2/Ex3_2.sce b/3720/CH3/EX3.2/Ex3_2.sce new file mode 100644 index 000000000..e9f02ecc9 --- /dev/null +++ b/3720/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,13 @@ +//Example 3_2
+clc;clear;funcprot(0);
+//Given values
+SG=0.85;// Specific gravity of manometer fluid
+h=0.55;// The manometer column height in m
+P_atm=96;// Local atmospheric pressure in kPa
+rho_w=1000;// The density of water in kg/m^3
+g=9.81;// The acceleration due to gravity in m/s^2
+
+//Calculation
+rho=SG*rho_w;// kg/m^3
+P=P_atm+(rho*g*h)/1000; // The pressure of the fluid in kPa
+printf('The absolute pressure with in the tank,P=%0.1f kPa\n',P);
diff --git a/3720/CH3/EX3.3/Ex3_3.sce b/3720/CH3/EX3.3/Ex3_3.sce new file mode 100644 index 000000000..2c6170e48 --- /dev/null +++ b/3720/CH3/EX3.3/Ex3_3.sce @@ -0,0 +1,18 @@ +// Example 3_3
+clc;clear;funcprot(0);
+// Constants used
+g=9.81;//The acceleration due to gravity in m/s^2
+
+// Given values
+h=1400;//m
+h_1=0.1;//m
+h_2=0.2;//m
+h_3=0.35;// respective heights in m
+P_atm=85.6; // The atmosphereic pressure in kPa;
+rho_w=1000;// kg/m^3
+rho_o=850;// kg/m^3
+rho_m=13600; // The density of water, mercury and oil in kg/m^3
+
+// Calculation
+P_1=P_atm+((rho_m*g*h_3)-(rho_w*g*h_1)-(rho_o*g*h_2))/1000;
+printf('The air pressure in the tank P_1=%0.0fkPa\n',P_1);
diff --git a/3720/CH3/EX3.4/Ex3_4.sce b/3720/CH3/EX3.4/Ex3_4.sce new file mode 100644 index 000000000..3ab5ed217 --- /dev/null +++ b/3720/CH3/EX3.4/Ex3_4.sce @@ -0,0 +1,22 @@ +// Example 3_4
+clc;clear;funcprot(0);
+// Constants used
+g=9.81;//The acceleration due to gravity in m/s^2
+
+// Given values
+h=1400;//m
+h_1=0.1;// m
+h_2=0.2;// m
+h_3=0.35;// respective heights in m
+P_atm=85.6*1000; // The atmospheric pressure in Pa;
+rho_w=1000;// kg/m^3
+rho_o=850;// kg/m^3
+rho_hg=13600; // The density of water,oil and mercury in kg/m^3
+
+//Calculation
+P_1r=(P_atm+((rho_hg*g*h_3)-(rho_w*g*h_1)-(rho_o*g*h_2)));// Modified equation
+P_1=P_1r/1000;// Pa to kPa
+printf('The air pressure in the tank P_1~=%0.0f kPa\n',P_1);
+rho_hg~=1030;// kg/m^3
+H_3=(P_atm-P_1r-(rho_w*g*h_1)-(rho_o*g*h_2))/(-rho_hg*g);
+printf('The height of the fluid column, h_3=%0.2f m\n',H_3);
diff --git a/3720/CH3/EX3.5/Ex3_5.sce b/3720/CH3/EX3.5/Ex3_5.sce new file mode 100644 index 000000000..20f4d420a --- /dev/null +++ b/3720/CH3/EX3.5/Ex3_5.sce @@ -0,0 +1,11 @@ +// Example 3_5
+clc;clear;funcprot(0);
+// Given values
+h=0.740;// m
+g=9.81;// The gravitational acceleration in m/s^2
+T=10;// degree celsius
+rho=13570;// The density of mercury in kg/m^3
+
+// Calculation
+P_atm=(rho*g*h)/1000;// 1kPa=1000 N/m^2
+printf('The atmospheric pressure,P_atm=%0.1f kPa\n',P_atm);
diff --git a/3720/CH3/EX3.6/Ex3_6.sce b/3720/CH3/EX3.6/Ex3_6.sce new file mode 100644 index 000000000..6ac46e077 --- /dev/null +++ b/3720/CH3/EX3.6/Ex3_6.sce @@ -0,0 +1,12 @@ +// Example 3_6
+clc;clear;funcprot(0);
+// Given values
+m=60;// Mass in kg
+A=0.04;// The Cross sectional area in m^2
+P_atm=.97;// Local atmospheric pressure in bar
+g=9.81;// The gravitational acceleration in m/s^2
+
+// Calculation
+//(a)
+P=P_atm+((m*g)/A)/10^5;// 1 bar=10^5 N/m^2
+printf('The gas pressure in the piston cylinder P=%0.2f bars\n',P);
diff --git a/3720/CH3/EX3.7/Ex3_7.sce b/3720/CH3/EX3.7/Ex3_7.sce new file mode 100644 index 000000000..c063b63b0 --- /dev/null +++ b/3720/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,18 @@ +//Example 3_7
+clc;clear;funcprot(0);
+//Constants used
+g=9.81;// The acceleration due to gravity in m/s^2
+
+//Given values
+rho_0=1040;// The density of brine in kg/m^3
+h_1=0.8;// m
+H=4;// m
+z_0=0;
+z_1=4;// z_0 & z_1 are limits of integration
+
+//Calculation
+P_1=rho_0*g*h_1/1000;// Standard pressure determination formula in kPa
+P_2=integrate('rho_0*g*(sqrt(1+(tan(3.14*z/4/H)^2)))','z',z_0,z_1);//integrant
+P_2=P_2/1000;// kPa
+P=P_1+P_2;
+printf('The gage pressure at the bottom of gradient zone P=%0.1fkPa\n',P);
diff --git a/3720/CH3/EX3.8/Ex3_8.sce b/3720/CH3/EX3.8/Ex3_8.sce new file mode 100644 index 000000000..7f8d9b715 --- /dev/null +++ b/3720/CH3/EX3.8/Ex3_8.sce @@ -0,0 +1,20 @@ +// Example 3_8
+clc;clear;funcprot(0);
+// Properties
+rho=1000;// The density of lake water through out
+g=9.81;//The acceleration due to gravity in m/s^2
+
+// Given values
+s=8;// m
+b=1.2;//m
+h_c=s+b/2; // m
+
+// Calculation
+P_ave=(rho*g*h_c)/1000;// kN/m^2
+printf('The average pressure on the door,P_ave=%0.1f kN/m^2\n',P_ave);
+A=1*1.2;// m^2
+F_r=P_ave*A;// kN
+printf('The resultant hydrostatic force on the door,F_r=%0.1f kN\n',F_r);
+y_p=s+b/2+((b^2)/(12*(s+b/2)));// m
+printf('The pressure center,y_p=%0.2f m\n',y_p);
+// The answer vary due to round off error
diff --git a/3720/CH3/EX3.9/Ex3_9.sce b/3720/CH3/EX3.9/Ex3_9.sce new file mode 100644 index 000000000..e5f18dc02 --- /dev/null +++ b/3720/CH3/EX3.9/Ex3_9.sce @@ -0,0 +1,28 @@ +//Example 3_9
+clc;clear;funcprot(0);
+// Properties
+rho=1000; // The density of water in kg/m^3
+g=9.81; // The acceleration due to gravity in m/s^2
+
+// Given values
+R=0.8;// Radius of solid cylinder in m
+h_bottom=5;// m
+A=0.8*1;// m^2
+s=4.2;
+h_c=s+R/2;// m
+
+// Calculation
+// (a)
+F_x=(rho*g*h_c*A)/1000;//kN
+printf('(a)Horizontal force on vertical surface F_x=%0.1f kN\n',F_x);
+F_y=(rho*g*h_bottom*A)/1000;// kN
+V=(R^2-(%pi*(R^2)/4))*1;// m^3
+W=(rho*g*V)/1000;// kN
+F_v=F_y-W;// kN
+F_r=sqrt(F_x^2+F_v^2);// kN
+theta=atand(F_v/F_x);// degree
+printf('The hydrostatic force acting on the cylinder,F_r=%0.1f kN\n',F_r);
+printf('The direction of the hydrostatic force acting on the cylindrical surface,theta=%0.1f degree\n',theta);
+//(b)
+W_cyl=F_r*sind(theta);// kN
+printf('(b)The weight of the cylinder per m length,W_cyl=%0.1f kN\n',W_cyl);
|