AbstractMulti-cycle direct numerical simulations (DNS) of a laboratory-scale engine at technically relevant engine speeds (1500 and 2500 rpm) are performed to investigate the transient velocity and thermal boundary layers (BL) as well as the wall heat flux during the compression stroke under motored operation. The time-varying wall-bounded flow is characterized by a large-scale tumble vortex, which generates vortical structures as the flow rolls off the cylinder wall. The bulk flow is found to strongly affect the development of the BL profiles, especially at higher engine speeds. As a result, the large-scale flow structures lead to alternating pressure gradients near the wall, invalidating the flow equilibrium assumptions used in typical wall modeling approaches. The thickness of the velocity BL and of the viscous sublayer was found to scale inversely with engine speed and crank angle. The thermal BL thickness also scales inversely with engine speed but increases with in-cylinder temperature. In contrast, thermal displacement thickness, which is sometimes used as a proxy for thermal BL thickness, was found to decrease with increasing temperature in the bulk. Examination of the heat flux distribution revealed areas of increased heat flux, particularly at places characterized by strong flow directed towards the wall. In addition, significant cyclic variations in the surface-averaged wall heat flux were observed for both engine speeds. An analysis of the cyclic tumble ratio revealed that the cycles with lower tumble ratio values near top dead center (TDC), indicative of an earlier tumble breakdown, also exhibit higher surface averaged wall heat fluxes. These findings extend previous numerical and experimental results for the evolution of BL structure during the compression stroke and serve as an important step for future engine simulations under realistic operating conditions.