Simulation of ion transfer under conditions of natural convection by the finite difference method