The effect of an interplanetary magnetic field on the solar wind