Generalized boundary conditions for the axial dispersion model