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
What are the biggest challenges estimators' face during the quantity takeoff and pricing phases?
Question IV (30%): A 22 m thick normally consolidated clay layer has a load of 150 kPa applied to it over a large areal extent. The clay layer is located below a 3.5 m thick granular fill (p= 1.8 Mg/m³). A dense sandy gravel is found below the clay. The groundwater table is located at the top of the clay layer, and the submerged density of the clay soil is 0.95 Mg/m³. Consolidation tests performed on 2.20 cm thick doubly drained samples indicate the time for 50% consolidation completed as t50 = 10.5 min for a load increment close to that of the loaded clay layer. Compute the effective stress in the clay layer at a depth of 16 m below the ground surface 3.5 years after the application of the load.
13-3. Use the moment-distribution method to determine the moment at each joint of the symmetric bridge frame. Supports at F and E are fixed and B and C are fixed connected. Use Table 13-2. The modulus of elasticity is constant and the members are each 0.25 m thick. The haunches are parabolic. *13-4. Solve Prob. 13-3 using the slope-deflection equations. 13 0.5 m 1 m 64 kN/m D BC 1.5 m 2.25 m 2 m 6.25 m -0.5 m E -7.5 m -10 m- -7.5 m. Probs. 13-3/4
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