...
The user inputs the maximum turbidity (used to determine the alum dose concentration), the desired flow rate of alum (converted to liters/day), and the diameter of tubing, which is used to determine the area of tubing. The inner diameters of available tubing can be found on McMaster-Carr: http://www.mcmaster.com/#tubing/=bdk5q3
.
The head loss in the tube was determined using the equations for major and minor losses. The equations used in these calculations were found in online AguaClara notes and in Frank M. White's Fluid Mechanics (6th Edition).
Next, we work backwards to determine the necessary head loss through the alum doser to achieve the previously defined flow rate. The file uses the user defined dimensions for the alum doser and the head loss calculated from these dimensions to determine the head loss through the system. The equations utilized come from head loss calculations for a "hole in the bucket" situation.
...

