Mathematical analysis of the formation of periodic precipitations