Simulations of black holes in compactified spacetimes