The formation of pores in anodic aluminium oxide films is treated with a model equation. The model treats the oxide layer as a thin viscous liquid in two dimensions. Surface tension on the top boundary, electrostriction due to the external electric field and mass flow through the bottom boundary due to oxide formation are all included. Viscous flow is treated with the creeping flow assumption. The model equation is solved numerically using a Fourier spectral method in space and Adams–Bashforth/Adams–Moulton methods in time. Initial conditions include sinusoidal shapes as well as random shapes. The results show that pores form at the trough of the initial sinusoidal shape. Random shapes get smoothed before forming pore structures with spacing different than predicted by linear theory.