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.
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, () in kg/m3
Fluid Viscosity, () in Pa-s
Roughness Parameter, () in mm
Take note that Re is the Reynolds number and its formula is:
Given the units above, it should be unitless because Pa-s is equal to
However, the unit of Roughness Parameter () 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:
0.9 1 7 -4log 27 + D Re 11 Re Aad kg m - S 0.9 1 7 -4log .27 D(1000) + PDVStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started