Azimuthal correlation function of D mesons with charged particles with different parton-level contributions from PYTHIA8 (left panel) and POWHEG+PYTHIA8 simulations (right panel) in pp collisions at $\s = 13$ TeV, for $2 <\ptass< 3$ \GeVc and $24 <\ptD< 36$ \GeVc.