Simulating environments of Mars and the Moon