A model for the wind of the M supergiant VX Sagittarii