Refactor phase averaging function to use nondimensional coefficients