Write function flow that returns laminar flow velocity


Fluid following in a pipe flows in a smooth pattern, knows as laminar flow, or a turbulent pattern, know as turbulent flow. The velocity, V, that produces each type of flow in the pipe can be determined by using these formulas:
Vlaminar = (2100µ)/(pd)
Vturbulent =(4000µ)/(pd)
Vlaminar is the velocity of the fluid, in ft/sec, that produces a definite laminar flow.
Vturbulent is the velocity of the fluid, in ft/sec, that produces a definite turbulent flow.
µ is the fluid's viscosity in lbf-sec/ft2.
P is the fluid's density in slug/ft3.
d is the pipe's inside diameter in feet.

Using these formulas, write and test a C++ function named flow () that returns both the laminar flow velocity, Vlaminar, and turbulent flow velocity, Vturbulent, using reference parameters. The function should calculate these velocities for water, which has a viscosity, µ, of 1.9 × 105 lbf-sec/ft2 and a density, P, of 1.94 slug/ft3. The pipe diameter should be passed by value to the flow () function.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write function flow that returns laminar flow velocity
Reference No:- TGS0746762

Expected delivery within 24 Hours