optical simulations