Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In fluid mechanics, the Reynolds number (Re) is a dimensionless quantity that is

ID: 3557113 • Letter: I

Question

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

Explanation / Answer

#include <stdio.h>
#define DENSITY 0.00233
#define VISCOSITY 0.00000038

double calculate_reynolds_number(double velocity, double length) {
   double r_no = DENSITY * velocity * length / VISCOSITY;
   return r_no;
}

int main() {
   int i;
   double length;
   printf("Input the diameter of cylinder as length in ft: ");
   scanf("%lf", &length);
   printf("Index. Velocity Reynolds Number ");
   for(i = 1; i <= 10; ++i) {
       double velocity = 100 * i;
       printf("%d. %lf %.2lf ", i, velocity, calculate_reynolds_number(velocity, length));
   }
   return 0;
}