Generalized models and the impacts of population density on COVID-19 transmission