ENGINEERING FUNDAMENTALS
ENGINEERING FUNDAMENTALS
6th Edition
ISBN: 9781337705011
Author: MOAVENI
Publisher: CENGAGE L
bartleby

Concept explainers

Question
Book Icon
Chapter 15, Problem 2P
To determine

Use MATLAB to create a Table and plot the relationship between height of the water above ground in the water tower and water pressure in pipeline at the base of the tower and also find the height of the water tower when the pressure 80psi is created.

Expert Solution & Answer
Check Mark

Answer to Problem 2P

The height of the water tower is approximately just below 190ft when the pressure 80psi is created.

Explanation of Solution

Given info:

The relationship between the pressure and height is given by,

P=ρgh (1)

Here,

P is the water pressure at the base of water in lbft2,

ρ is the density of water in slugsft3,

g is the acceleration due to gravity in fts2,

h is the altitude in ft.

ρ=1.94slugsft3g=32.2fts2

Calculation:

The steps to create the table and plot which shows the relationship between height and pressure in MATLAB are as follows,

  • Generate a range of values for the height by an increment of 10ft to find the pressure at different height.
  • Use the values of density and acceleration gravity in equation (1) to find the value of pressure.
  • To find the value of pressure in lbin2 divide the equation (1) by 144.
  • To print the value of pressure at the 2 decimal digit use “format bank” command.
  • Print the value of pressure for the range of height from 0to200ft by an increment of 10ft.

In the MATLAB script editor type the code as follows and save with a name of “unitconversion” as .m file, then execute the code to create the table and plot between height and pressure,

h=0:5:200;

P=(1.94)*(32.2)*(1/144)*h;

format bank

fprintf('\n-------------------------------------')

fprintf('\n\t\th(ft)\t\t\tP(lb/in^2)')

fprintf('\n--------------------------------------\n')

disp([h', P'])

fprintf('----------------------------------------')

plot(h,p)

xlabel('Height (m) ')

ylabel('Pressure (lb/in^2) ')

In the MATLAB command window the result will be displayed as follows,

-------------------------------------

h(ft)P(lb/in^2)

--------------------------------------

             0             0

          5.00          2.17

         10.00          4.34

         15.00          6.51

         20.00          8.68

         25.00         10.85

         30.00         13.01

         35.00         15.18

         40.00         17.35

         45.00         19.52

         50.00         21.69

         55.00         23.86

         60.00         26.03

         65.00         28.20

         70.00         30.37

         75.00         32.54

         80.00         34.70

         85.00         36.87

         90.00         39.04

         95.00         41.21

        100.00         43.38

        105.00         45.55

        110.00         47.72

        115.00         49.89

        120.00         52.06

        125.00         54.23

        130.00         56.39

        135.00         58.56

        140.00         60.73

        145.00         62.90

        150.00         65.07

        155.00         67.24

        160.00         69.41

        165.00         71.58

        170.00         73.75

        175.00         75.92

        180.00         78.08

        185.00         80.25

        190.00         82.42

        195.00         84.59

        200.00         86.76

----------------------------------------

And the plot will displays as shown in below Figure 1,

ENGINEERING FUNDAMENTALS, Chapter 15, Problem 2P

From the output of the MATLAB, the height of the water tower is approximately just below 190ft when the pressure 80psi(1lbin2=1psi) is created.

Conclusion:

Thus, the relationship between height of the water above ground in the water tower and water pressure in pipeline at the base of the tower is shown by creating a Table in MATLAB and the height of the water tower is approximately just below 190ft when the pressure 80psi is created.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
5. A liquid flows through an orifice located in the side of a tank as shown in the Figure below. A commonly used equation for determining the volume rate of flow, Q, through the orifice is Q = 0.61A/2gh where A is the area of the orifice, g is the acceleration of gravity, and h is the height of the liquid above the orifice. Investigate the dimensional homogeneity of this formula.
Question 4: 14 m The tank in a water tower has the geometry shown in the figure (the lower part is a cylinder and the upper part is an inverted frustum of a cone). Inside the tank there is a float that indi- cates the level of the water. Write a MATLAB program that determines the volume of the 19 m water in the tank from the position (height h) of the float. The program asks the user to enter a value of h in m, and as output displays the vol- ume of the water in m³. h diameter 25 m Question 5: The following data points are given. Determine a function w=f(t) (t is the independent variable; w is the dependent variable) that best fits the data. 5.0 4.5 4.0 3.0 3.5 0.5 t 2.0 0.0 2.5 1.5 1.0 3.15 3.70 0.73 0.96 1.21 1.49 1.83 2.41 6.00 4.83 W please solve question 4 diameter 46 m Y. 0.64
In a laboratory experiment, a two‐fluid differential manometer is used to measure the pressure drop for a flowing process fluid, a silicone oil that is immiscible with water, as shown in Figure 2. Determine the pressure drop between Points A and B if h1 = 500 mm, h2 = 190 mm, and h3 = 275 mm. The densities of the process fluid and water are 1060 kg/m3 and 1000 kg/m3 respectively.
Knowledge Booster
Background pattern image
Civil Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, civil-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Engineering Fundamentals: An Introduction to Engi...
Civil Engineering
ISBN:9781305084766
Author:Saeed Moaveni
Publisher:Cengage Learning