how to calculate diffusion coefficients in different positions?

Dear all,
I want to calculate diffusion coefficients of molecular in different areas or at a particular positionhow can I do it
For exampleI want to calculate diffusion coefficients of this model in different positions from top to bottom.I don not know how to realize the problem?

thanks
User-added image