Dust driven mass loss from carbon stars as a function of stellar parameters - I. A grid of solar-metallicity wind models