Non equilibrium dynamical phenomena in inhomogeneous solids