Cosmological simulations from the cosmic web to supermassive black holes