Harmonic generation with a chi2 material