Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)
Engineering Fundamentals: An Introduction to Engineering (MindTap Course List)
5th Edition
ISBN: 9781305084766
Author: Saeed Moaveni
Publisher: Cengage Learning
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: An Introduction to Engineering (MindTap Course List), 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
In the accompanying diagram, spring A is a linear spring and spring B is a hard spring, with characteristics that are described by the relationship F = kxn . Determine the stiffness coefficient k for each spring. What is the exponent n for the hard spring? In your own words, also explain the relationship between the spring force and the deflection for the hard spring and how it differs from the behavior of the linear spring.
Show the complete solution and the necessary graphs/diagrams. Use 2 decimal places in the final answer. A particle moves that is defined by the parametric equations given below (where x and y are in meters, and t is in seconds). Compute the angular velocity (rad/s) at t = 2 seconds.
5.) The figure shows a metal hanging by a thin wire from a floating wood block. The wood block has a specific gravity Sb =0.25,  a square base of 80 mm x 80 mm and height of 15 mm. The metal has a volume of 8000 mm^3. Using a unit weight of water 9800 N/m^3 and g=9.80 m/s^2., find the mass of metal in grams. Write your answer in two decimal places. fluid mechanics
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
Recommended textbooks for you
Text book image
Engineering Fundamentals: An Introduction to Engi...
Civil Engineering
ISBN:9781305084766
Author:Saeed Moaveni
Publisher:Cengage Learning