Skip to content

PyTao

Tao is an open source general purpose program for charged particle and X-ray simulations in accelerators and storage rings. It is built on top of the Bmad toolkit (software library) which provides the needed computational routines needed to do simulations. Essentially you can think of Tao as a car and Bmad as the engine that powers the car. In fact Bmad powers a number of other simulation programs but that is getting outside of the scope of this manual. It is sometimes convenient to be able to run Tao via Python. For example, in an online control system environment.

PyTao is wrapper on top of Tao and allow users to access the Tao library via ctypes or pexpect.

Documentation for Bmad and Tao, as well as information for downloading the code if needed is given on the Bmad web site