The document discusses using a variable frequency drive instead of a control valve to control the flow of chemicals in a water treatment process. By controlling the speed of an induction motor with a variable frequency drive based on inlet water flow, the chemical dosage flow can be precisely controlled to improve water treatment efficiency. Vector control is implemented to control the induction motor speed by measuring motor quantities, transforming currents to reference frames, and separately controlling the flux and torque producing current components.