A mathematical model of a solar chimney