add front_positions and exact_phi functions for 1D