Analytical and cellular automaton approach to a generalized SEIR model for infection spread in an open crowded space