Text this: Mathematical simulation of contaminant flow in the square reservoir