summaryrefslogtreecommitdiff
path: root/2510/CH3
diff options
context:
space:
mode:
Diffstat (limited to '2510/CH3')
-rwxr-xr-x2510/CH3/EX3.11/Ex3_11.sce19
-rwxr-xr-x2510/CH3/EX3.12/Ex3_12.sce16
-rwxr-xr-x2510/CH3/EX3.2/Ex3_2.sce29
-rwxr-xr-x2510/CH3/EX3.3/Ex3_3.sce22
-rwxr-xr-x2510/CH3/EX3.4/Ex3_4.sce25
-rwxr-xr-x2510/CH3/EX3.5/Ex3_5.sce11
-rwxr-xr-x2510/CH3/EX3.6/Ex3_6.sce16
-rwxr-xr-x2510/CH3/EX3.7/Ex3_7.sce13
-rwxr-xr-x2510/CH3/EX3.8/Ex3_8.sce13
-rwxr-xr-x2510/CH3/EX3.9/Ex3_9.sce14
10 files changed, 178 insertions, 0 deletions
diff --git a/2510/CH3/EX3.11/Ex3_11.sce b/2510/CH3/EX3.11/Ex3_11.sce
new file mode 100755
index 000000000..59debe696
--- /dev/null
+++ b/2510/CH3/EX3.11/Ex3_11.sce
@@ -0,0 +1,19 @@
+//Variable declaration:
+D = 5 //Diameter of pipe (ft)
+V = 10 //Fluid velocity (ft/s)
+p = 50 //Fluid density (lb/ft^3)
+u = 0.65 //Fluid viscosity (lb/ft.s)
+F = 1.0/12.0 //Feet in an inch
+VCp = 6.72*10**-4 //Viscosity of centipoise (lb/ft.s)
+
+//Calculation:
+A = D*V*p*F/u/VCp //Reynolds Number
+
+//Result:
+if(A>2100) then
+ printf("The Reynolds number is :%.0f therefore, the flow is turbulent.",A)
+else
+ if(A<2100) then
+ printf("The Reynolds number is : %f therefore, the flow is not turbulent.",A)
+end
+end;
diff --git a/2510/CH3/EX3.12/Ex3_12.sce b/2510/CH3/EX3.12/Ex3_12.sce
new file mode 100755
index 000000000..b6522f3d2
--- /dev/null
+++ b/2510/CH3/EX3.12/Ex3_12.sce
@@ -0,0 +1,16 @@
+//Variable declaration:
+//For the problem at hand, take as a basis 1 kilogram of water and assume the potential energy to be zero at ground level conditions.
+z1 = 0 //Intial height from ground level (m)
+z2 = 10 //Final height from ground level (m)
+PE1 = 0 //Initial potential energy at z1 (J)
+m = 1 //Mass of water (kg)
+g = 9.8 //Gravitational acceleration (m/s^2)
+gc = 1 //Conversion factor
+
+//Calculations:
+PE2 = m*(g/gc)*z2 //Final potential energy at z2 (J)
+
+//Result:
+disp("The potential energy of water is :")
+disp(PE2)
+disp("J ")
diff --git a/2510/CH3/EX3.2/Ex3_2.sce b/2510/CH3/EX3.2/Ex3_2.sce
new file mode 100755
index 000000000..4f8751b90
--- /dev/null
+++ b/2510/CH3/EX3.2/Ex3_2.sce
@@ -0,0 +1,29 @@
+
+//Variable Declaration:
+Q1 = 8.03 //Years(part 1)
+D = 365 //Days in a year
+H = 24 //Hours in a day
+M = 60 //Minutes in an hour
+S = 60 //Seconds in a minute
+Q2 = 150 //Miles per hour(part 2)
+FM = 5280 //Feet in a mile
+YF = 1.0/3.0 //Yard in a feet
+Q3 = 100 //Meter per second square(part 3)
+Cmm = 100 //Centimeter in a meter
+FC = 1.0/30.48 //Feet in a centimeter
+SsMs = 60**2 //Second square in a minute square
+Q4 = 0.03 //Gram per centimeter cube (part 4)
+PG = 1.0/454.0 //Pound in a gram
+CF = (30.48)**3 //Centimeter in a feet
+
+//Calculation:
+A1 = Q1*D*H*M*S //Seconds (s)
+A2 = Q2*FM*YF //Yards per hour (yd/hr)
+A3 = Q3*Cmm*FC*SsMs //Feet per min square (ft/min^2)
+A4 = Q4*PG*CF //Pound per feet cube (lb/ft^3)
+
+//Results:
+printf("1. Seconds in %f year is: %f x 10**8 s",Q1,A1/10**8)
+printf("2. Yards per hour in %f miles per hour is: %f x 10**5 yd/h",Q2,A2/10**5)
+printf("3. Feets per minute square in %f meter per square is: %f x 10**6 ft/min^2",Q3,A3/10**6)
+printf("4. Pounds per feet cube in %f gram per centimeter cube is: %.0f lb/ft^3",Q4,A4)
diff --git a/2510/CH3/EX3.3/Ex3_3.sce b/2510/CH3/EX3.3/Ex3_3.sce
new file mode 100755
index 000000000..2eff7559d
--- /dev/null
+++ b/2510/CH3/EX3.3/Ex3_3.sce
@@ -0,0 +1,22 @@
+//Variable Declaration:
+Q1 = 32.2 //Gravitational acceleration (ft/s^2) (part 1)
+CF = 32.2 //Conversion factor (lb.ft/lbf.s^2)
+M = 100 //Mass (lb)
+SA = 3 //Surface area (in^2)
+FsIs = (1.0/12.0)**2 //Feet square in a inch square
+Q2 = 14.7 //Atmospheric pressure (psi) (part 2)
+GP = 35 //Gauge Pressure (psig)
+
+//Caculations:
+F = M*Q1/CF //Force (lbf)
+P = F/SA/FsIs //Pressure at the base (lbf/ft^2)
+Pa = GP+Q2 //Absolute pressure (psia)
+
+//Results:
+disp("1. Pressure at the base is:")
+disp(P)
+disp("lbf/ft^2")
+
+disp("2. Absolute pressure is:")
+disp(Pa)
+disp("psia")
diff --git a/2510/CH3/EX3.4/Ex3_4.sce b/2510/CH3/EX3.4/Ex3_4.sce
new file mode 100755
index 000000000..97904c66b
--- /dev/null
+++ b/2510/CH3/EX3.4/Ex3_4.sce
@@ -0,0 +1,25 @@
+//Variable Declaration:
+Q1 = 20.0 //Mass (lb) (part 1)
+MH = 1.008 //Molecular weight of H (lb/lbmol)
+MO = 15.999 //Molecular weight of O (lb/lbmol)
+Q2 = 454 //Gram in pound (part 2)
+Q3 = 6.023*10**23 //Avogadro nuber (part 3)
+
+//Calculations:
+Mol = 2*MH+MO //Molecular weight of water (lb/lbmol)
+A1 = Q1/Mol //Pound.moles of water (lbmol)
+A2 = Q1*Q2/Mol //Gram.moles of water (gmol)
+A3 = A2*Q3 //Molecules of water (molecules)
+
+//Results:
+disp("1. Pound.moles of water is:")
+disp(A1)
+disp("lbmol water")
+
+disp("2. Gram.moles of water is:")
+disp(A2)
+disp("gmol water")
+
+disp("3. Molecules of water is:")
+disp(A3/10**26)
+disp(" x 10**26 molecules")
diff --git a/2510/CH3/EX3.5/Ex3_5.sce b/2510/CH3/EX3.5/Ex3_5.sce
new file mode 100755
index 000000000..df5df16b0
--- /dev/null
+++ b/2510/CH3/EX3.5/Ex3_5.sce
@@ -0,0 +1,11 @@
+//Variable declaration:
+SG = 0.92 //Specific gavity of liquid, methanol
+DW = 62.4 //Density of reference substance, water (lb/ft^3)
+
+//Calculation:
+DM = SG*DW //Density of methanol (lb/ft^3)
+
+//Result:
+disp("Density of methanol is:")
+disp(DM)
+disp("lb/ft^3")
diff --git a/2510/CH3/EX3.6/Ex3_6.sce b/2510/CH3/EX3.6/Ex3_6.sce
new file mode 100755
index 000000000..4886b70c5
--- /dev/null
+++ b/2510/CH3/EX3.6/Ex3_6.sce
@@ -0,0 +1,16 @@
+//Variable declaration:
+SG = 0.8 //Specific Gravity
+AV = 0.02 //Absolute Viscosity (cP)
+cP = 1 //Viscosity of centipoise (cP)
+VcP = 6.72 * 10**-4 //Pound per feet.sec in a centipoise (lb/ft.s)
+pR = 62.43 //Reference density (lb/ft^3)
+
+//Calculations:
+u = AV*VcP/cP //Viscosity of gas (lb/ft.s)
+p = SG*pR //Density of gas (lb/ft^3)
+v = u/p //Kinematic viscosity of gas (ft^2/s)
+
+//Result:
+disp("Kinematic viscosity of gas is:")
+disp(v/10**-7)
+disp ("x 10**-7 ft^2/s")
diff --git a/2510/CH3/EX3.7/Ex3_7.sce b/2510/CH3/EX3.7/Ex3_7.sce
new file mode 100755
index 000000000..825f021aa
--- /dev/null
+++ b/2510/CH3/EX3.7/Ex3_7.sce
@@ -0,0 +1,13 @@
+//Variable declaration:
+X = 7.0 //Coordinate X of H2SO4
+Y = 24.8 //Coordinate Y of H2SO4
+S = 45 //Slope
+
+//Calculations:
+//From the figure C.1 we found the intersection of curves mu = 12cP
+mu = 12
+
+//Results:
+disp("Absolute viscosity of a 98% sulfuric acid solution at 45° C is :")
+disp(mu*10**-2)
+disp(" g/cm.s")
diff --git a/2510/CH3/EX3.8/Ex3_8.sce b/2510/CH3/EX3.8/Ex3_8.sce
new file mode 100755
index 000000000..cfc2faa33
--- /dev/null
+++ b/2510/CH3/EX3.8/Ex3_8.sce
@@ -0,0 +1,13 @@
+//Variable declaration:
+CpM = 0.61 //Heat capacity of methanol (cal/g.°C)
+G = 454 //Grams in a pound
+B = 1.0/252.0 //Btu in a calorie
+C = 1.0/1.8 //Degree celsius in a degree fahrenheit
+
+//Calculation:
+Cp = CpM*G*B*C //Heat capacity in English units (Btu/lb.°F)
+
+//Result:
+disp("Heat capacity in English units is: ")
+disp(Cp)
+disp(" Btu/lb.°F")
diff --git a/2510/CH3/EX3.9/Ex3_9.sce b/2510/CH3/EX3.9/Ex3_9.sce
new file mode 100755
index 000000000..5d7f698e0
--- /dev/null
+++ b/2510/CH3/EX3.9/Ex3_9.sce
@@ -0,0 +1,14 @@
+//Variable declaration:
+kM = 0.0512 //Thermal conductivity of methanol (cal/m.s°C)
+B = 1.0/252.0 //Btu in a calorie
+M = 0.3048 //Meters in a feet
+S = 3600 //Seconds in an hour
+C = 1.0/1.8 //Degree celsius in a degree fahrenheit
+
+//Calculation:
+k = kM*B*M*S*C //Thermal conductivity in English units (Btu/ft.h.°F)
+
+//Result:
+disp("Thermal coductivity in English units is:")
+disp(k)
+disp("Btu/ft.h.°F")