In the real environment, the pressure of high-pressure oil pipe is not always stable due to the process of oil in and out. We created a simulation experiment: to set the time for each opening of the one-way valve to change the pressure in the high-pressure tubing, ensuring that the pressure remains relatively stable under the initial pressure condition 100Mpa. By using the simulated conditions, we obtained the relationship between elastic modulus E and pressure P with high fitting degree, and deduced the relationship between pressure P and density temperature. Since the tubing size V is constant, we established the approximate dynamic balance model of fuel mass in high pressure tubing according to the mV mass. Since the opening time of the one-way valve is unknown, the simplified operation method is used to find the approximate solution and then the dichotomy method is used to find the results in this range. Our contribution is that we proposed a method to control the pressure steadily and rapidly in simulation. For each search result, the iterative method is used to obtain the mean pressure of the injection pipe after the pressure is stable, and the objective function is established to make the average pressure reach 150Mpa. Finally, we present the exact solution with MATLAB simulation.