ported advection generate process