Q2/ Suppose you have crude oil flows through an annulus between two horizontal pipes with the same center, if the velocity distribution vx and the average velocity Vavg are expressed by: ΔΡ V₁ = Rr²+ R₁² In (R₂/R₁) ()] In 4μL R₂ ΔΡ R³-R² Vavg R} + R² - 8μL In (R₂/R₁) Where AP: is the pressure drop through the annulus, μ: is the fluid viscosity, L: is the pipe length, R₁ and R₂: are the inside radius of inner and outer pipes, respectively. Write a program in a script file that calculates the velocity distribution and the average velocity. When the script file is executed, it requests the user to input AP, µ, L, R₁ and R₂ where r has many values between R₁ and R₂. The program displays the inputted values and the calculated average velocity (using fprintf) followed by a table with the values r in the first column and the corresponding values of the velocity distribution in the second 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
Q2/ Suppose you have crude oil flows through an annulus between two horizontal
pipes with the same center, if the velocity distribution v, and the average velocity Vavg
are expressed by:
ΔΡ
Rr²+
R²
In (R₂/R₁)
(¹)
In
4μL
ΔΡ
Vavg
=
R₁ + R₂
R - R
In (R₂/R₁
8µL
Where AP: is the pressure drop through the annulus, μ: is the fluid viscosity, L: is the
pipe length, R₁ and R₂: are the inside radius of inner and outer pipes, respectively.
Write a program in a script file that calculates the velocity distribution and the average
velocity. When the script file is executed, it requests the user to input AP, μ, L, R₁ and
R₂ where r has many values between R₁ and R₂. The program displays the inputted
values and the calculated average velocity (using fprintf) followed by a table with the
values r in the first column and the corresponding values of the velocity distribution in
the second column.
Transcribed Image Text:Q2/ Suppose you have crude oil flows through an annulus between two horizontal pipes with the same center, if the velocity distribution v, and the average velocity Vavg are expressed by: ΔΡ Rr²+ R² In (R₂/R₁) (¹) In 4μL ΔΡ Vavg = R₁ + R₂ R - R In (R₂/R₁ 8µL Where AP: is the pressure drop through the annulus, μ: is the fluid viscosity, L: is the pipe length, R₁ and R₂: are the inside radius of inner and outer pipes, respectively. Write a program in a script file that calculates the velocity distribution and the average velocity. When the script file is executed, it requests the user to input AP, μ, L, R₁ and R₂ where r has many values between R₁ and R₂. The program displays the inputted values and the calculated average velocity (using fprintf) followed by a table with the values r in the first column and the corresponding values of the velocity distribution in the second column.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fluid Dynamics
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