Study of the mechanism for solar wind formation