© 2021 The AuthorThe strong Coulomb field created in ultrarelativistic heavy ion collisions is expected to produce a rapidity-dependent difference (Δv2) in the second Fourier coefficient of the azimuthal distribution (elliptic flow, v2) between D0 (u‾c) and D‾0 (uc‾) mesons. Motivated by the search for evidence of this field, the CMS detector at the LHC is used to perform the first measurement of Δv2. The rapidity-averaged value is found to be 〈Δv2〉=0.001±0.001(stat)±0.003(syst) in PbPb collisions at sNN=5.02TeV. In addition, the influence of the collision geometry is explored by measuring the D0 and D‾0mesons v2 and triangular flow coefficient (v3) as functions of rapidity, transverse momentum (pT), and event centrality (a measure of the overlap of the two Pb nuclei). A clear centrality dependence of prompt D0 meson v2 values is observed, while the v3 is largely independent of centrality. These trends are consistent with expectations of flow driven by the initial-state geometry.