We have numerically investigated the dynamics of a long Josephson junction (flux-flow oscillator) biased by a DC current in the presence of magnetic field. The study is performed in the frame of the modified sine-Gordon model, which includes the surface losses, RC-load at both FFO ends and the self-pumping effect. In our model the dumping parameter depends both on the spatial coordinate and the amplitude of the AC voltage. In order to find the DC FFO voltage the damping parameter has to be calculated by successive approximations and time integration of the perturbed sine-Gordon equation. The modified model, which accounts for the presence of the superconducting gap, gives better qualitative agreement with experimental results compare to the conventional sine-Gordon model. (c) 2006 Elsevier B.V. All rights reserved.