Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Reynolds number is a key parameter used to determine whether fluid flow will be laminar or turbulent. For fluid flow through a pipe,

 

The Reynolds number is a key parameter used to determine whether fluid flow will be laminar or turbulent. For fluid flow through a pipe, the Reynolds number is given by Re= (Vd)/v where Re is the Reynolds number (a dimensionless value), V is the velocity (m/s or ft/s) of the fluid, d is the diameter of the pipe (m or ft), and is the kinematic viscosity of the fluid (m/s or ft/s). The kinematic viscosity, r, is a measure of the fluid's resistance to flow and stress. Except when at extremely high pressures, a liquid fluid's kinematic viscosity is dependent on temperature and is independent of pressure. The following chart lists the kinematic vis- cosity of water at three different temperatures: Temperature (C) 5 D 20 50 T(C) 5 Using this information, write a Python program that asks the user for the velocity of the water flowing through a pipe (V), for the pipe's diameter (d), and to select the water's tem- perature (1) from 5C, 20 C, and 50C. Your program should then calculate the Reynolds number based on the input values. Test your program with the following data: Kinematic Viscosity (m/s) 1.52 x 10- 1.00 x 10-e 5.54 x 10-7 Input V(m/s) d(m) 3.5 0.001 20 50 0.9 Output Re 1.5 3.45 x 10 0.15 1.50 x 10 0.02 3.25 x 10 Finally, format your program to match the sample below. Your output should exactly match the sample output, character for character, including all white space and punctuation. Hint: The string for printing" is "\u00e, which is the Unicode value for this symbol. Also note that the last line of output in each example broke across two lines because it was too long for the terminal. Your output should not include this line break. User input in the sample has been highlighted in Pappy's Purple to distinguish it from the program's output, but your user input does not need to be colored. Save your program as fluid mechanics_login.py, where login is your Purdue login. Then submit it along with a screenshot showing a run of all 3 test cases. Terminal $ python fluid mechanics_login.py Enter the temperature in C as 5, 20, or 50: 5 Enter the velocity of water in the pipe (m/s): 3.5 Enter the pipe's diameter (m): 1.5 At 5.0C, the Reynolds number for flow at 3.5 m/s in a 1.5 m diameter pipe 1s 3.45e+06. $ python fluid mechanics_login.py Enter the temperature in C as 5, 20, or 50: 20 Enter the velocity of water in the pipe (m/s): 0.001 Enter the pipe's diameter (m): 0.15 At 28.8C, the Reynolds number for flow at 0.001 m/s in a 0.15 m diameter pipe is 1.50e+02.

Step by Step Solution

3.43 Rating (143 Votes )

There are 3 Steps involved in it

Step: 1

You can create a Python program to calculate the Reynolds number based on user input for temperature ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Physical Chemistry

Authors: Thomas Engel, Philip Reid

3rd edition

805338423, 080533842X, 978-0321812001

More Books

Students also viewed these Programming questions

Question

What is the function of an incremental refresh?

Answered: 1 week ago

Question

Consider the function f (x) = sin x/2, 1 Answered: 1 week ago

Answered: 1 week ago

Question

What factors might cause the interest rates to differ? Explain.

Answered: 1 week ago