International audienceAims. We explore the effects of varying the areal expansion rate and coronal heating function on the solar wind flow. Methods. We use a one-dimensional, time-dependent hydrodynamical code. The computational domain extends from near the photosphere, where nonreflecting boundary conditions are applied, to 30 , and includes a transition region where heat conduction and radiative losses dominate. Results. We confirm that the observed inverse relationship between asymptotic wind speed and expansion factor is obtained if the coronal heating rate is a function of the local magnetic field strength. We show that inflows can be generated by suddenly increasing the rate of flux-tube expansion and suggest that this process may be ...