| With the expansion of oil field exploration and development,the safety of oil well control has become increasingly important.Real-time and accurate monitoring of the dynamic status of the wellbore liquid level can effectively prevent the chain reaction of catastrophic accidents such as blowouts.However,existing wellbore liquid level monitoring technologies have problems such as low measurement accuracy,susceptibility to noise interference,and inability to achieve grouting closed-loop control,especially for drilling and oil testing operations.Therefore,this study aims to research a drilling and oil testing liquid level monitoring system to achieve continuous measurement of the wellbore liquid level and automatic control of the grouting pump,in order to prevent underground accidents such as well leaks and well surges.This study focuses on the liquid level monitoring during the process of lowering the oil pipe in drilling and oil testing.By summarizing the causes and hazards of well surges and well leaks,analyzing existing liquid level monitoring methods,the study determined the echo method for monitoring the liquid level and proposed a gas component analysis-based liquid level depth calculation method.After clarifying the functional requirements of the system,the overall scheme of the drilling and oil testing liquid level monitoring system was designed,and the system was built using a wellhead monitor and an upper computer.In addition,by using the variational mode decomposition algorithm to denoise and identify the feature values of the original liquid level echo signal,the system can measure the liquid level depth and control the grouting function.The wellhead monitor is developed based on the ARM GD32 microprocessor,which can generate measurement sound waves,collect and store signals,control the grouting pump and sound-light alarm,and communicate with the upper computer.The upper computer client software is implemented using Python language,and the GUI interface is developed using the high-performance Qt library,which can communicate,parse and denoise data,calculate and determine the liquid level position,and send commands to the wellhead monitor.Finally,the drilling and oil testing liquid level monitoring system was tested and applied in the field,and the effect was analyzed.The results showed that the system has small errors,and the error between the measured liquid level value and the automatic measured liquid level depth value of the coupling method liquid level monitor is less than 2%.The system can perform liquid level monitoring in high noise environments and form a closed-loop control with grouting,providing security for well control safety.The system meets the requirements of oil fields and has application value in oil well development. |