They use custom software for that, with many more parameters (elevation, wind etc.) than any public game.
It might actually be based on a game engine. But such simulator won't ever be releasaed to the public anyway...