Models of the cometary coma in which abundances are calculated for various heliocentric distances