We investigate the features arising from hydrodynamic effects in graphene and phosphorene devices with finite heat sources, using ab initio calculations and solving the phonon Boltzmann transport equation through energy-based deviational Monte Carlo methods. We explain the mechanisms that create those hydrodynamic features, showing that boundary scattering and geometry are determinant factors, and that the length scales at which they can appear depend solely on the ability of intrinsic scattering to randomize the heat flux. We relate this latter point to the non-local lengths and mean free paths, additionally providing an insight into how the scattering operator must be treated to obtain a proper description of the hydrodynamic behavior.