How to simulate water quality with leakage and without leakage

Hi
I need procedure for simulation water quality with leakage and without leakages and also for different wall decay coefficient can we get changes in residual chlorine concentration .