This paper adopts numerical simulation method,selects diesel as fuel,and optimizes the design of the combustion chamber of the downhole steam generator,with a working pressure of 21 MPa.The re-sults show that as the swirling angle of the air increases,the uniformity of the combustion chamber outlet temperature and combustion efficiency gradually decrease.The high-temperature jet formed by the pre-combustion chamber constriction structure is conducive to improving the stability of the flame.The changes in the diameter of the pre-combustion chamber inlet and the contraction diameter directly affect the gas flow rate and the length of the high-temperature jet in the pre-combustion chamber.When the diameter of the inlet is greater than 6 mm,the combustion inside the pre-combustion chamber deterio-rates and the flame spreads towards the air chamber.The stepped wall structure obstructs the airflow and helps the flame stay upstream of the combustion chamber.