pybeam Python optical simulation code There are two main types of object, a beam and an element. Create a beam and an element. The element can then be applied to the beam.