Abstract Self-oscillating nozzles have gained wide popularity due to their ability to generate powerful impact forces, long-range projection, and concentrated, stable jets in applications such as water-jet drilling and rust removal. However, the nozzle’s efficient operation relies heavily on specific structural designs and operational parameters, which necessitates further indepth research. By studying the characteristics of self-excited oscillating pulse cavitation jet within the nozzle cavity structure. Analyzing the evolution characteristics of internal flow field. Solving optimization problems in a targeted manner. The purpose of this study is to reveal the resonance principle behind the self-excited oscillation of nozzle. It also explores the regularities of the effects that the cavity diameter has on jet performance, ultimately seeking to find the optimal configuration of nozzle structure and operating conditions.