Beam dynamics framework incorporating acceleration to define the minimum aperture in two focusing schemes for proton radiotherapy linac | Synapse