Three years into head coach Brian Barnes’s tenure, Duke swimming and diving seems to have discovered the recipe to success.