Clustered microbial communities are omnipresent in the food industry, e.g., as colonies of microbial pathogens in/on food media or as biofilms on food processing surfaces. These clustered communities are often characterized by metabolic differentiation among their constituting cells as a result of heterogeneous environmental conditions in the cellular surroundings. This paper focuses on the role of metabolic differentiation due to oxygen gradients in the development of Escherichia coli cell communities, whereby low local oxygen concentrations lead to cellular secretion of weak acid products. For this reason, a metabolic model has been developed for the facultative anaerobe E. coli covering the range of aerobic, microaerobic, and anaerobic environmental conditions. This metabolic model is expressed as a multiparametric programming problem, in which the influence of low extracellular pH values and the presence of undissociated acid cell products in the environment has been taken into account. Furthermore, the developed metabolic model is incorporated in MICRODIMS, an in-house developed individual-based modeling framework to simulate microbial colony and biofilm dynamics. Two case studies have been elaborated using the MICRODIMS simulator: (i) biofilm growth on a substratum surface and (ii) submerged colony growth in a semi-solid mixed food product. In the first case study, the acidification of the biofilm environment and the emergence of typical biofilm morphologies have been observed, such as the mushroom-shaped structure of mature biofilms and the formation of cellular chains at the exterior surface of the biofilm. The simulations show that these morphological phenomena are respectively dependent on the initial affinity of pioneer cells for the substratum surface and the cell detachment process at the outer surface of the biofilm. In the second case study, a no-growth zone emerges in the colony center due to a local decline of the environmental pH. As a result, cellular growth in the submerged colony is limited to the colony periphery, implying a linear increase of the colony radius over time. MICRODIMS has been successfully used to reproduce complex dynamics of clustered microbial communities.