Mathematical modelling and simulations of the ion transport through confined geometries