On squeezing and flow of energy for nonlinear wave equations