Radiative Transfer Modeling of the Accretion Flow onto a Star-forming Core in W51