In fluid mechanics, the Reynolds number (Re) is a dimensionless quantity that is used to help predict similar flow patterns in different fluid flow situations. For example, Reynolds numbers can be computed for different velocities of fluid flow over a circular cylinder. Furthermore, this engineering application can demonstrate the construction and output of an array.
Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100) given the following formula:
Re = ()D*V*L) / Mu
where Re is the Reynolds number that is non dimensional (no units)
D is the density of air in slug/ ft3 V is the velocity of air in ft/ sec Lis the characteristic length in ft Mu is the viscosity of air in slug/ ft?sec
Additional data Density of air (D) = 2.33 × 10-3 slug/ ft3 Viscosity of Mu air = 3.8 × 10-7 slug/ ft?sec Velocity to vary from 100 to 1000 at increments of 100
Sample input and output (user input in RED): Input thediameter of cylinder aslength in ft: 0.025 = L I ndex
INDEX VELOCITY REYNOLDS NUMBER
1. 100.00 15328.95
2 200.00 30657.90
. 3
.
.
.
.
10. 1000.00 153289.48