Scaling Fixed Field Accelerators: Theory And Modelling Of Horizontal- And Vertical-Excursion Accelerators