Analysis of the formation of ordered dust-grain structures in a thermal plasma