In this report, a required aperiodically poled structure is designed, where two quasi-phase-matched conditions of optical
parametric oscillator and frequency difference are required to be satisfied simultaneously. By numerical simulation, we
analyze the effects of crystal structure, the cavity parameter of optical parametric oscillator, and terahertz absorption
coefficient on terahertz generation. And, the terahertz wave is generated via cascaded processes, which is of great
interest in fundamental and applied sciences, and is a great demand for many applications in spectroscopy, sensing,
communication, medial diagnoses and biomedical imaging. In addition, the design method for poled ferroelectric crystal
is universal and applicable to many other fields, particularly in those processes where multiple quasi-phase-matched
conditions are required to be satisfied simultaneously.