This specifies that when the first particle passes z = 5cm, the mesh will be contracted to cover the region from z = 2cm to z = 5.5cm. Thereafter, each time a particle advances by one longitudinal mesh spacing, the grid will be translated that same distance in the +z direction.
The boundary conditions are changed to Neumann on the upper, right, and left boundaries and Dirichlet on the lower boundary.
where <zMin> and <zMax> are the minimum and maximum longitudinal coordinates for the original problem mesh, and <z0> is <zMax>-5 * Δz, where Δz is the mesh spacing.