Q1/ The pressure drop in pascals (Pa) for a fluid flowing in a pipe with a sudden decrease in diameter can be determined based on the loss of head equation given below: 院-小 坚[A2 h, = 2g LA1 (1) Area A, (2) V, (2) Area A (1) Area A, Where: V2 is the velocity in position 2 (m/s), g: is acceleration due to gravity = 9.81 m/s?, A1 and A2 are the cross-sectional areas of the tube in position 1 and 2 respectively. A = Where: d is the diameter (m). Write a program in a script file that calculates the head loss. When the script file is executed, it requests the user to input the velocity (V2) in m/s and values of diameters (di and d2). The program displays the inputted value of v followed by a table with the values of diameters in the first and second columns and the corresponding values of h, in the third column.

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question
Q1/ The pressure drop in pascals (Pa) for a fluid flowing in a pipe with a sudden decrease in diameter
can be determined based on the loss of head equation given below:
经[A2
%3D
2g LA,
(1)
Area A,
(2)
V.
(2)
Area A
(1)
Area A
Where: V2 is the velocity in position 2 (m/s), g: is acceleration due to gravity 9.81 m/s, A, and
A2 are the cross-sectional areas of the tube in position 1 and 2 respectively.
%3D
A =
d²
Where: d is the diameter (m). Write a program in a script file that calculates the head loss. When the
script file is executed, it requests the user to input the velocity (V2) in m/s and values of diameters
(di and d2). The program displays the inputted value of v followed by a table with the values of
diameters in the first and second columns and the corresponding values of h, in the third column.
Transcribed Image Text:Q1/ The pressure drop in pascals (Pa) for a fluid flowing in a pipe with a sudden decrease in diameter can be determined based on the loss of head equation given below: 经[A2 %3D 2g LA, (1) Area A, (2) V. (2) Area A (1) Area A Where: V2 is the velocity in position 2 (m/s), g: is acceleration due to gravity 9.81 m/s, A, and A2 are the cross-sectional areas of the tube in position 1 and 2 respectively. %3D A = d² Where: d is the diameter (m). Write a program in a script file that calculates the head loss. When the script file is executed, it requests the user to input the velocity (V2) in m/s and values of diameters (di and d2). The program displays the inputted value of v followed by a table with the values of diameters in the first and second columns and the corresponding values of h, in the third column.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Available Energy
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY