A device approach to propagation in nonlinear photonics crystal