Question: Code the Colebrook formula below in Java. Required: Calculate and print out the fanning friction factor f. When running the program, the user will need

Code the Colebrook formula below in Java.

Code the Colebrook formula below in Java. Required: Calculate and print out

Required: Calculate and print out the fanning friction factor "f".

When running the program, the user will need to enter:

Diameter, (D) in m.

Fluid Velocity,(V) in m/s

Fluid Density, (the fanning friction factor "f". When running the program, the user will) in kg/m3

Fluid Viscosity, (need to enter: Diameter, (D) in m. Fluid Velocity,(V) in m/s Fluid) in Pa-s

Roughness Parameter, (Density, () in kg/m3 Fluid Viscosity, () in Pa-s Roughness Parameter, ()) in mm

Take note that Re is the Reynolds number and its formula is:

in mm Take note that Re is the Reynolds number and its

Given the units above, it should be unitless because Pa-s is equal to formula is: Given the units above, it should be unitless because Pa-s

However, the unit of Roughness Parameter (is equal to However, the unit of Roughness Parameter () is in) is in mm and will be divided in the equation by the Diameter, D which is in m. So we need to convert millimeters into meters. 1000mm= 1m. So we just need to divide it by 1000. But of course the user will enter the roughness parameter in mm.

Given all the things above, the fanning friction factor f will be unitless too.

The final expanded formula is now this:

mm and will be divided in the equation by the Diameter, D

0.9 1 7 -4log 27 + D Re 11 Re Aad kg m - S 0.9 1 7 -4log .27 D(1000) + PDV

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!