The Reynolds number is a key parameter used to determine whether fluid flow will be laminar...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 5°C, 20 °C, and 50°C. 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.0°C, 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.8°C, the Reynolds number for flow at 0.001 m/s in a 0.15 m diameter pipe is 1.50e+02. 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 5°C, 20 °C, and 50°C. 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.0°C, 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.8°C, the Reynolds number for flow at 0.001 m/s in a 0.15 m diameter pipe is 1.50e+02.
Expert Answer:
Answer rating: 100% (QA)
You can create a Python program to calculate the Reynolds number based on user input for temperature ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Principles of Community Engagement "Principles of Engagement, Second Edition" The fourth principle discusses "community empowerment". What does this term mean to you? Why is "empowerment" an...
-
Sure, let's go step by step: **(1) Open a general ledger account for each account in the chart of accounts:** Here's a simplified representation: ``` ASSETS 101 Cash in Bank 105 Accounts...
-
The Reynolds number is a dimensionless group defined for a fluid flowing in a pipe as Re = Dup/ where D is pipe diameter, u is fluid velocity, p is fluid density, and is fluid viscosity. When the...
-
Given the functions f(x) = 2x and g(x) = x 1) Find the points of intersection of the curves and plot the graphs of the functions. 2) Determine the area bounded by the curves in the interval [-1,3] 3)...
-
Pin P is attached to the collar shown; the motion of the pin is guided by a slot cut in rod BD and by the collar that slides on rod AE. Knowing that at the instant considered the rods rotate...
-
A cone-shaped paper drinking cup (like the kind used at water fountains) has a radius R and a height H. If the water height in the cup is h, the water volume is given by Suppose that the cups...
-
Use the control variate method of Exercise 13 to determine the value of a 5 -month Asian call option on a stock with \(S_{0}=\$ 62, \sigma=20 \%\), and \(r=10 \%\) and a strike price of \(\$ 60\)....
-
With five production facilities, the company produces cardboard boxes, plastic and steel drums, aluminum bottles, and absorbent pouches and bags. Companies using their products ship everything from...
-
How do cultural nuances impact collaborative efforts in multinational corporations? Explain with example
-
You have just been hired as a management trainee by Cravat Sales Company, a nationwide distributor of a designer's silk ties. The company has an exclusive franchise on the distribution of the ties,...
-
brownsville novelty store prepared the following budget information for the month of may sales are budgeted at $372,000 all sales are on account and a provision for bad debts is made for each month...
-
On July 1, 2023, LIN Inc. issued a five-year, 10% bond of $400,000 for the discount price of $343,811. Interest is to be paid semi-annually on June 30 and December 31. The company's year end is July...
-
In 2022 Green, Inc., had gross receipts from sales of $500,000, dividends of $100,000 from a domestic corporation in which Green, Inc., owned 50% of the stock, and operating expenses of $800,000....
-
Cream Co has two foreign branches who income is earned through active business operations, IE the income is not passive. High Tax Branch earned 6 million of taxable income and paid 1.8 million in...
-
Capital controls can affect the correlation between the movement of stock markets in different countries. What is an example of a capital control?
-
James sold a piece of land he owned to a corporation in which he is the sole shareholder using the provisions of ITA 85(1). The land is capital property, the ACB is $ 59 comma 800$59,800, and it had...
-
In your experiment, you used spectrophotometry to measurephotosynthetic activity. Explain the relationship between theabsorbance of a sample and photosynthetic activity.
-
7. FALSE DILEMMA 8. GANDWAGON Definition: Fallacy example: How to revise argument: Definition: Fallacy example: How to revise argument:
-
Consider the function f (x) = sin x/2, 1 < x < 1 and f (x) = 1, x 1, f (x) = 1, x 1. Graph f(x) = df/dx, and d 2 f/dx 2 over the interval 2 < x < 2. Which if any of these functions is continuous...
-
Reactions involving hydroxyl radical (OH) are extremely important in atmospheric chemistry. The reaction of hydroxyl radical with molecular hydrogen is as follows: OH (g) + H 2 (g) H 2 O(g) + H ...
-
You are at a carnival and are considering playing the dart game described in Example Problem 29.12; however, you are confident of your dart-throwing skills such that the probability of hitting the...
-
This exercise considers the data described in the Section 13.2.2 ratemaking classification example using data in Table 13.3 Table 13.3 . a. Fit a gamma regression model using a log-link function with...
-
This exercise considers data from the Medical Expenditure Panel Survey (MEPS) described in Exercise 1.1 and Section 11.4. Our dependent variable consists of the number of outpatient (COUNTOP) visits....
-
Verify that the Tweedie distribution is a member of the linear exponential family of distributions by checking equation (13.9). In particular, provide an expression for \(S(y, \phi)\) (note that...
Study smarter with the SolutionInn App