Matlab code for calculations in: Zhu, P., G. Manucharyan, A. F. Thompson, J. Goodman, and S. D. Vance (2017), The influence of meridional ice transport on Europa’s ocean stratification and heat content, Geophys. Res. Lett., 44, doi:10.1002/2017GL072996.