subject
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.

ansver
Answers: 2

Another question on Chemistry

question
Chemistry, 22.06.2019 13:10
The last few miles of the marathon are the most difficult for heather, her hair plastered to her head, sweat clinging to her arms, and her legs already feeling as if they had nothing left, just dead weight. after grabbing a cup of ice water, she feels the ice cubes smash against her nose as she gulps some cool refreshment and keeps on running. in these last few miles, the breeze kicks up and she finally feels some coolness against her skin. drips of sweat, once clinging to her forehead, now spill down, and heather feels more pain as the sweat flows into her eyes.which of the following is the most likely reason why the ice struck heather’s nose when she took a drink? a) water can function as a solvent. b) water can store large amounts of heat. c) water can moderate temperatures through evaporative cooling. d) the density of water decreases when it freezes. e) water has a cohesive nature.sweat remained on heather’s forehead and arms because of the a) high salt content of sweat b) cohesive nature of water c) ability of water to moderate heat d) high evaporative cooling effect of water e) ability of water to act as a solvent
Answers: 1
question
Chemistry, 22.06.2019 17:30
To find the enthalpy of a reaction in the lab, you measured the of the reactants and the change during the reaction.
Answers: 1
question
Chemistry, 23.06.2019 02:00
The energy that powers a hurricane is derived from
Answers: 1
question
Chemistry, 23.06.2019 07:00
Determine the length of the object shown. 97.8 mm 97.80 mm 97 mm 98 mm
Answers: 1
You know the right answer?
Write a function to calculate the Reynolds number in fluid flow and determine whether the flow is la...
Questions
question
Mathematics, 08.10.2019 03:00
question
Computers and Technology, 08.10.2019 03:00
question
Mathematics, 08.10.2019 03:00
Questions on the website: 13722365