  A Linearized Boltzmann Transport (LBT) model coupled with hydrodynamical
background is established to describe the evolution of jet shower partons and
medium excitations in high energy heavy-ion collisions. We extend the LBT model
to include both elastic and inelastic processes for light and heavy partons in
the quark-gluon plasma. A hybrid model of fragmentation and coalescence is
developed for the hadronization of heavy quarks. Within this framework, we
investigate how heavy flavor observables depend on various ingredients, such as
different energy loss and hadronization mechanisms, the momentum and
temperature dependences of the transport coefficients, and the radial flow of
the expanding fireball. Our model calculations show good descriptions of the
$D$ meson suppression and elliptic flow observed at the LHC and RHIC. The
prediction for the Pb-Pb collisions at $\sqrt{s_\mathrm{NN}}$=5.02~TeV is
provided.
