In this tutorial you will learn how to setup a particle tracing system to obtain the residence time distribution of flow in a T-channel. This method can essentially be applied in conjunction with any incompressible solver, like icoFoam, pisoFoam, pimpleFoam and etc.