We describe computational algorithms and computer programs which make it possible to simulate the propagation of high–power laser beams in the atmosphere as well as to assess the efficiency of application of different components of adaptive optical systems, namely, Hartmann wave–front sensors and flexible and segmented mirrors. The software developed may be used for the investigation of both the beam parameters and images formed through the atmosphere as well as for the design of adaptive optical systems.