Modeling of diffusion processes