Diffusion phenomenon in the hyperbolic and parabolic regimes