A computational fluid dynamics model is used to predict the mesostructure formed by the successive deposition of parallel strands in material extrusion additive manufacturing. The numerical model simulates the extrusion of the material onto the substrate. The model takes into account the effect of the presence of the previously extruded material on the shape of the subsequently deposited strands. The simulated mesostructures are compared to optical micrographs of the mesostructures of 3D-printed samples, and the predictions agree well with the experiments. In addition, the influence of the layer thickness, the strand-to-strand distance, and the deposition configuration (with aligned or skewed layers) on the formation of the mesostructure is investigated. The simulations provide detailed information about the porosity, the inter-and intra-layer bond line densities, and the surface roughness of the mesostructures, which potentially can be used in a model-based slicing software.