Understanding the details of the internal flow processes in screw compressors and expanders is very important for their efficient and robust design. Computational fluid dynamics (CFD) provides full access to a modeled three dimensional flow field and its variation in time. However, the application of CFD to screw compressors and expanders can be difficult because of the complicated geometries involved and the need to supply the computational grid on which the modeled equations are solved over a large number of time steps. While the majority of previous research on CFD applications to screw machines features inventive techniques for generating meshes that adequately resolve the flows in the small clearances, an alternate approach is demonstrated in this work. The screw expander SE 51.2 from TU Dortmund University is analyzed here through a CFD model which generates the grid automatically based on a modified Cartesian cut-cell approach. The grid is then adaptively refined based on local gradients of velocity and temperature. At each time step, the grid is regenerated based on the geometry motion. As opposed to resolving the flow in the clearances, a model is applied so that the cells in the clearance can remain relatively large. The detailed measurements of the screw expander are used to validate the model. The operating conditions investigated include the expansion of dry air at a four-to-one pressure ratio for four different rotational speeds. The measured internal chamber pressures are compared to the results from the model, as are the average mass flow rate, indicated power, and outlet temperature. A coupled thermal-fluid approach is used to model the rotor temperatures and corresponding thermal deformation of the rotors and housing. In this approach, the fluid and solid temperatures are solved together; to deal with the problem of the disparate time scales between the fluid and solid heat transfer, the solids are periodically solved to steady state using heat transfer coefficients and near-wall temperatures computed from an energy conserving averaging over several cycles. The effects of the various leakage flow paths in the model, including the rotor-to-rotor, rotor-tip-to-housing, and bearing leakage are demonstrated and quantified. Finally, simulation and experimental results are compared in terms of different rotor-tip-to-housing clearance heights. The model considering the appropriate thermal deformation of the rotors is shown to yield the best agreement with the measurements, however there is work remaining to reduce the model calculation time, especially at low rotational speeds.