Files belonging to the open access publication: A.S. Haase, et al., Why bumpy is better: The role of the dissipation distribution in slip flow over a bubble mattress. Phys. Rev. Fluids 1, 54101 (2016). Description of COMSOL Multiphysics 5.0 model: BMviscousdissipation_dimless.mph COMSOL model to simulate the flow and viscous dissipation rate profile over a periodic bubble mattress with different aspect ratios a = H/L and porosities e = Lg/L. The (exported) results are provided in the directories comsol_sliplength_a_e and comsol_a2_e500. Description of the MATLAB codes: comsol_sliplength_a.m comsol_sliplength_e.m MATLAB codes to read the csv-files in the directory comsol_sliplength_a_e and plot the results, like slip length as function of protrusion angle, aspect ratio or porosity. VDimportcomsol.m MATLAB code to import the data from the csv-files in the directory comsol_a2_e500. The simulation results can be analysed with this code for the imported set of csv-files (e.g. bm_5deg.csv and bm_5deg_streamlines.csv; both files are required). VDanalysis.m MATLAB code to analyse the viscous dissipation distribution (and other physical properties) for various protrusion angles. This code requires VDimportcomsol.m. Description of files in directory Moffatt_solution: davis_lauga_slip_v7.m davis_lauga_slip_v7_sander.m These MATLAB files compute and analyze the Moffatt corner flow solution for various protrusion angles up to 30 deg. The file davis_lauga_slip_v7_sander.m allows the export of TikZ figures. Notes to the files: The MATLAB codes run under MATLAB 8.1.0.604 (R2013a). The MATLAB codes in the directory Moffatt_solution have been written for newer MATLAB versions. All MATLAB codes are annotated. The MATLAB codes call the code matlab2tikz.m for creating TikZ figures/files. Please comments these lines if you do not have this code available.