Domain engineering algorithm for practical and effective photon sources.

Domain engineering algorithm for practical and effective photon sources.