Modelling rhythmic morphology in the surf zone