A theory of dust comets. I. Model and equations