added methods for computing flow and visualising attenuation.