  We assume that the initial hydrodynamic environment is a Quark Gluon Plasma
(QGP) phase where merely u and d quarks are considered when adding a magnetic
field. When considering the chiral magnetic effect in relativistic heavy ion
collisions, an anomalous current will be formed in the QGP environment. The
chiral magnetic current formed by these u and d quarks has an impact on the
heavy quarkonium. By using fluid/gravity duality, the metric with anomalous
flow is established by using fluid/gravity duality, so as to introduce the
magnetic field effect into the corresponding metric. And then we use heavy
quarkonium as a probe to study phase transition, and utilize the effective
string tension of the heavy quarkonium to study phase transition by AdS/QCD
theory. The characteristics of reporting inverse magnetic catalysis for the
confinement-deconfinement transition with anomalous flow are in qualitative
agreement with lattice QCD findings. The heavy-quarkonium asymptotic entropy
distributions with different magnetic field around the
confinement-deconfinement transition temperature are given in the paper.
