Chemistry
Chemistry, 14.02.2020 16:45, angie249

Write a function to calculate the Reynolds number in fluid flow and determine whether the flow is laminar, urbulent, or in the transition between the two.
The Reynolds number is defined as:

oB9wkF9BAXd1zElFTkSuQmCC

where r = density of the fluid; V = velocity; L = length scale of the problem (e. g. diameter of a pipe or chord width of an airfoil); m = dynamic viscosity

For purposes of this problem, the Reynolds number is used to classify flow (roughly) as follows:

Reynolds Number Type of Flow

Re < 1,000 Laminar

Re > 10,000 Turbulent

Otherwise Transition

The function specification is as follows:

Input arguments (all SCALARS) Output arguments

density, r (kg/m3) Reynolds number, Re (dimensionless) - SCALAR

velocity, V (m/s) Flow type, a string ("Laminar", "Turbulent", or

length, L (m) "Transition")

viscosity, m (kg/m-s) NOTE: the flow type should be a string ("Laminar")

not a char array (‘Laminar’)

Note: an alternative way to write the function is to pass the arguments as vectors, not scalars, and have the function return array outputs. This is acceptable, but it may not pass the provided checker.

B. In your script file, use the function that you defined in problem 1 to determine the Reynolds number and flow type for the following sets of parameters:

Test Case

Density, r

Length, L

Velocity, V

Viscosity, m

1

1.2

0.05

5

3.5x10-5

2

0.01

1

100

1.7x10-5

3

1.29

0.01

2

3x10-5

For each test case, print a message to the command window in the format:

For test case n, the Reynolds number is X, and the flow type is Z.

where X is the calculated value, and Z is "laminar", "turbulent", or "transition". For full credit, you must use a loop to iterate over the rows of the matrix, and store the results in a numerical array, Re, and a string array, flow_type.

Note: If you wrote the function as specified, with scalar inputs & outputs, you will need a loop in your main script to call the function on each test case. If you used the alternative approach of designing the function with array inputs & outputs, you will only have to call the function once.

answer
Answers: 2

Other questions on the subject: Chemistry

image
Chemistry, 22.06.2019 05:00, mahhvelousg97
You mix the pks of succinic acid are 4.21 and 5.64. how many gramsa graduate student at sdsu wants to measure the activity of a particular enzyme at ph 4.0. to buffer her reaction, she will use a buffer system based on one of the acids listed below, which acid is most appropriate for the experiment? of monosodium succinate (fw = 140 g/mol) and disodium succinate (fw = 162 g/mol) must be added to 1 l of water to produce a solution with a ph 5.28 and a total solute concentration of 100 mm? (assume the total volume remains 1 liter, answer in grams monosodium succinate, grams disodium succinate, respectively.) volumes of 0.05 m nah2po4 and 0.05 m na2hpo4 (pk's for phosphoric acid are 2.15, 6.82 and 12.38). which of the following best describes the resulting solution?
Answers: 2
image
Chemistry, 22.06.2019 15:00, Jalyn6883
Answer explain why it is not possible to deduce a complete order of reactivity.
Answers: 3
image
Chemistry, 23.06.2019 01:00, birdman2540
Which of the following is in the lanthanide family? a) uranium b) promethium c) silver d) gold
Answers: 2
image
Chemistry, 23.06.2019 03:30, antoinetteee03
Name atleast 3 type of energy associated with the microwave
Answers: 1
Do you know the correct answer?
Write a function to calculate the Reynolds number in fluid flow and determine whether the flow is la...

Questions in other subjects:

Konu
Mathematics, 28.03.2021 05:50
Konu
Mathematics, 28.03.2021 05:50