Direct numerical simulation by spectral methods are developed and used to s
tudy the instabilities in the Ekman and Bodewadt layers at the transition t
o the time-dependent regimes. The physical phenomena are characteristic of
rotating flows with walls. The geometrical cavities are elementary geometri
es that are relevant of turbine applications and that also refer to typical
configurations studied in fundamental investigations and in experiments. T
he three - dimensional Chebyshev - Fourier collocation method is based on a
projection scheme to solve the coupling between the velocity and the press
ure. The method devoted to annular domain is extended to fully cylindrical
domain involving the axis of rotation. A special development has been requi
red to deal with the singular behaviour of the coefficients when the radius
tends to zero. The investigation was carried out in two types of generic c
onfigurations that are the forced throughflow in a rotating cavity and the
confined flout driven by the differential rotation inside a rotor-stator ca
vity. Depending on the aspect ratio and on the Reynolds number, counter-rot
ating rolls can superimpose to the boundary layer flow near the disks under
the form of annular and spiral structures. The characteristic parameters o
f the perturbations (wavelength, frequency, phase velocity, inclination of
the spiral) are shown to be relevant of the types I and II instabilties in
rotating flows.