A model of the heliospheric magnetic field configuration