Gyrokinetic and extended-MHD simulations of a flow shear stabilized Z-pinch experiment