Currently it has become important for the development of metamaterials and nanotechnology to obtain regular self-assembled structures. One such structure is porous anodic alumina film that consists of hexagonally packed cylindrical pores. In this work we consider the anodization process, our model takes into account the influence of layers of aluminum and electrolyte on the rate of growth of aluminum oxide, as well as the effect of surface diffusion. In present work we consider those effects. And as a result of our model we obtain the minimum distance between centers of alumina pores in the beginning of anodizing process.