This paper presents a case study in using the CODE V optical design software to model an astronomical adaptive system end to end. Such models can be useful in predicting system performance and in garnering a better understanding of the process of adaptive correction. Described in this paper is the model itself and the custom macros that are extensively used throughout to measure the wavefront aberration; drive the adaptive system and collect the resulting data. Of special interest is the algorithm used to create the turbulence screen. The turbulence created by this sine wave summation algorithm is in keeping with Kolmogorov statistics that are commonly used to describe atmospheric turbulence at astronomical sites.