System and method for detecting oil content of drilling fluid

By designing a drilling fluid oil content detection system that includes water inlet, injection, measurement, control and sampling units, the problem of using toxic chemical reagents and low detection efficiency of existing detection methods is solved, and real-time, continuous, accurate and safe drilling fluid oil content detection is achieved.

CN119901698APending Publication Date: 2025-04-29CHINA OILFIELD SERVICES LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510108916.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-23
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

The existing drilling fluid oil content detection methods require the use of toxic chemical reagents, which threatens the safety of the detectors and the environment, and has low detection efficiency.

Method used

A drilling fluid oil content detection system is designed, including a water inlet unit, a sample inlet unit, a measurement unit, a control unit and a sampling unit. Through the mixing of clean water and drilling fluid samples and the detection of turbidity and oil content sensors, the drilling fluid oil content is generated in real time, and the liquid is automatically discharged through the sampling unit.

Benefits of technology

Real-time and continuous detection of the oil content of the drilling fluid is achieved, detection efficiency and accuracy are improved, manual intervention is reduced, detection cost is reduced, and toxic chemical reagents are not used, which improves the safety and environmental protection of the detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119901698A_ABST
    Figure CN119901698A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a system and a method for detecting the oil content of drilling fluid. Wherein a water inlet unit in the system conveys clear water to a measuring container and sends a clear water flow signal; the sampling unit is used for conveying a drilling fluid sample to the measuring container and sending a sample flow signal; the turbidity sensor sends a liquid turbidity signal, and the oil content sensor sends a liquid oil content signal; the control unit generates the oil content of the drilling fluid according to the clear water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal, and sends a first stock layout instruction of a first stock layout flow to the stock layout unit; the sample discharging unit discharges liquid in the measuring container through the first sample discharging channel at a first sample discharging flow. According to the scheme, the oil content of the drilling fluid can be continuously measured in real time, and the detection efficiency of the oil content of the drilling fluid is improved; the detection precision of the oil content of the drilling fluid can be improved; manual intervention is not needed in the detection process, labor cost is reduced, and detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of exploration technology, and in particular to a system and method for detecting oil content in drilling fluid. Background Art

[0002] The oil content of drilling fluid refers to the percentage of oil in the drilling fluid to the total volume or mass of the drilling fluid. The oil content of drilling fluid is an important indicator for evaluating the performance of drilling fluid. It is of great significance to the safety of drilling operations, environmental protection, and the maintenance of the performance of the drilling fluid itself.

[0003] At present, the infrared measurement method is usually used to detect the oil content of drilling fluid. However, this detection method requires the use of toxic chemical reagents such as carbon tetrachloride and tetrachloroethylene, which threatens the safety of detection personnel and the environment; and this detection method requires complex operations such as extraction and chromatography, and the detection efficiency is low. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a drilling fluid oil content detection system and method that overcome the above problems or at least partially solve the above problems.

[0005] According to a first aspect of an embodiment of the present invention, a drilling fluid oil content detection system is provided, comprising: a water inlet unit, a sample inlet unit, a measuring unit, a control unit and a sample discharge unit; wherein the measuring unit comprises a measuring container, a turbidity sensor and an oil content sensor;

[0006] The measuring container is mechanically connected to the water inlet unit, the sample injection unit, the turbidity sensor, the oil content sensor and the sample arrangement unit respectively; the control unit is communicatively connected to the water inlet unit, the sample injection unit, the turbidity sensor, the oil content sensor and the sample arrangement unit respectively;

[0007] The water inlet unit is used to deliver clean water to the measuring container and send a clean water flow signal to the control unit;

[0008] The sampling unit is used to transport the drilling fluid sample to the measuring container and send a sample flow signal to the control unit;

[0009] The turbidity sensor is used to detect the turbidity of the liquid in the measuring container and send the liquid turbidity signal to the control unit;

[0010] The oil content sensor is used to detect the oil content of the liquid in the measuring container and send the liquid oil content signal to the control unit;

[0011] The control unit is used to generate the oil content of the drilling fluid according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal; and when it is determined that the liquid level of the current measuring container reaches a first height according to the clean water flow signal and the sample flow signal, determine the first sample discharge flow according to the clean water flow signal and the sample flow signal, and send a first sample discharge instruction of the first sample discharge flow to the sample discharge unit;

[0012] The sample discharge unit is used for discharging the liquid in the measuring container at a first sample discharge flow rate through a first sample discharge channel according to a first sample discharge instruction of a first sample discharge flow rate.

[0013] In an optional implementation, the control unit is specifically configured to:

[0014] Obtaining a pre-generated mapping curve of calibration ratio and turbidity;

[0015] generating an oil content correction value according to the mapping curve, the liquid turbidity signal and the liquid oil content signal;

[0016] The oil content of the drilling fluid is generated according to the oil content correction value, the clean water flow signal, and the sample flow signal.

[0017] In an optional embodiment, the system further comprises: a cleaning unit;

[0018] The cleaning unit is used to add cleaning agent to the measuring container according to the start instruction sent by the control unit.

[0019] In an optional embodiment, the cleaning unit includes: an auxiliary material box, an auxiliary material pump, an auxiliary material flow meter, and a one-way valve.

[0020] In an optional embodiment, the sample row unit includes a first sample row channel and a second sample row channel, the first sample row channel includes a first sample row valve and a first sample row pump, and the second sample row channel includes a second sample row valve and a second sample row pump;

[0021] Wherein, the first sample row channel is higher than the bottom of the measuring container, and the second sample row channel is lower than the bottom of the measuring container.

[0022] In an optional embodiment, the system further comprises: an overflow unit;

[0023] The overflow unit is mechanically connected to the measuring container and is used to discharge liquid from the overflow unit when the liquid level in the measuring container exceeds a second height.

[0024] In an optional embodiment, the water inlet unit includes: a water inlet pump, a clean water flow meter and a one-way valve;

[0025] The sample injection unit comprises: a sample injection pump and a sample flow meter;

[0026] The measuring container comprises: a mixer, a measuring tank and a stirrer.

[0027] According to a second aspect of an embodiment of the present application, a method for detecting oil content in drilling fluid is provided. The method is performed based on the above-mentioned system for detecting oil content in drilling fluid, and the method includes:

[0028] The control unit sends an opening instruction to the water inlet unit and the sample injection unit;

[0029] The water inlet unit inputs clean water into the measuring container according to the opening instruction, and sends a clean water flow signal to the control unit; the sample injection unit inputs the drilling fluid sample into the measuring container according to the opening instruction, and sends a sample flow signal to the control unit;

[0030] When the control unit determines that the liquid level of the current measuring container reaches a first height according to the clean water flow rate signal and the sample flow rate signal, it determines a first sample discharge flow rate according to the clean water flow rate signal and the sample flow rate signal, and sends a first sample discharge instruction of the first sample discharge flow rate to the sample discharge unit. The sample discharge unit discharges the liquid in the measuring container at the first sample discharge flow rate through the first sample discharge channel according to the first sample discharge instruction of the first sample discharge flow rate.

[0031] The turbidity sensor transmits a liquid turbidity signal to the control unit, and the oil content sensor transmits a liquid oil content signal to the control unit;

[0032] The control unit generates the oil content of the drilling fluid according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal.

[0033] In an optional embodiment, the method further includes:

[0034] When the control unit determines that the continuous duration of the current detection mode exceeds the first time length, the control unit sends a stop instruction to the water inlet unit and the sample injection unit to close the water inlet unit and the sample injection unit;

[0035] After waiting for a second time period, the control unit sends a closing instruction to the sample arrangement unit to close the first sample arrangement channel;

[0036] The control unit sends an opening instruction to the water inlet unit to open the water inlet unit, and after waiting for a third time period, sends a closing instruction to the water inlet unit to close the water inlet unit;

[0037] The control unit sends an opening instruction to the cleaning unit to turn on the cleaning unit, and after waiting for a fourth time period, sends a closing instruction to the cleaning unit to turn off the cleaning unit;

[0038] The control unit sends a second sample arrangement instruction to the sample arrangement unit after waiting for a fifth time period so that the sample arrangement unit opens a second sample arrangement channel, and sends a closing instruction to the sample arrangement unit after waiting for a sixth time period so as to close the second sample arrangement channel.

[0039] In an optional implementation, the first duration is obtained in the following manner:

[0040] In the detection mode, the continuous duration reaches T i , enter the i-th clean water verification mode with a duration of △T; wherein, in the effective working stage of the clean water verification mode, the sample injection unit is closed, the water inlet unit is opened, the first sample row channel is opened, and the second sample row channel is closed, and T i+1 >T i ;

[0041] Get in T i The first sensor value of and the second sensor value of the effective working stage of the i-th clean water calibration mode;

[0042] According to T i The first sensor value and the corresponding second sensor value are used to calculate T i The corresponding sensor error;

[0043] According to each T i The corresponding sensor error generates a mapping function of the sensor error and the operating time, and the first time duration is determined according to the mapping function and the error threshold.

[0044] According to the drilling fluid oil content detection system and method provided by the embodiment of the present invention, the water inlet unit in the system transports clean water to the measuring container and sends a clean water flow signal; the sampling unit transports the drilling fluid sample to the measuring container and sends a sample flow signal; the turbidity sensor sends a liquid turbidity signal, and the oil content sensor sends a liquid oil content signal; the control unit generates the drilling fluid oil content according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal, and sends a first sampling instruction of a first sampling flow rate to the sampling unit; the sampling unit discharges the liquid in the measuring container through the first sampling channel at the first sampling flow rate. This solution can measure the drilling fluid oil content in real time and continuously, improve the detection efficiency of the drilling fluid oil content; and can improve the detection accuracy of the drilling fluid oil content; and the detection process does not require manual intervention, reducing labor costs and improving detection efficiency.

[0045] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation method of the embodiment of the present invention is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0047] Figure 1 A schematic structural diagram of a drilling fluid oil content detection system provided in Embodiment 1 of the present invention is shown;

[0048] Figure 2 A schematic diagram of the structure of a drilling fluid oil content detection system provided in the second embodiment of the present invention is shown;

[0049] Figure 3 A schematic diagram of the structure of a drilling fluid oil content detection system provided by Embodiment 3 of the present invention is shown;

[0050] Figure 4 A schematic flow chart of a method for detecting oil content in drilling fluid provided in a fourth embodiment of the present invention is shown;

[0051] Figure 5 A schematic flow chart of a method for detecting oil content in drilling fluid provided in Embodiment 5 of the present invention is shown;

[0052] Figure 6 A schematic flow chart of a first duration determination method provided in Embodiment 6 of the present invention is shown. DETAILED DESCRIPTION

[0053] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0054] Embodiment 1

[0055] Figure 1 A schematic structural diagram of a drilling fluid oil content detection system provided in Embodiment 1 of the present invention is shown.

[0056] like Figure 1 As shown, the drilling fluid oil content detection system includes: a water inlet unit 10, a sample injection unit 20, a measurement unit 30, a control unit 40, and a sample discharge unit 50. The measurement unit 30 includes a measurement container 31, a turbidity sensor 32, and an oil content sensor 33.

[0057] The measuring container 31 is mechanically connected to the water inlet unit 10, the sample injection unit 20, the turbidity sensor 32, the oil content sensor 33, and the sample arrangement unit 50; the control unit 40 is communicatively connected to the water inlet unit 10, the sample injection unit 20, the turbidity sensor 32, the oil content sensor 33, and the sample arrangement unit 50. The mechanical connection may be a mechanical connection such as a pipeline, and the communication connection may be a communication connection such as a wired or wireless connection.

[0058] Specifically, the water inlet unit 10 is connected to a clean water source, and delivers clean water to the measuring container 31 through a mechanical connection such as a pipe between the water inlet unit 10 and the measuring container 31. The water inlet unit 10 also monitors the clean water flow rate of the clean water delivered to the measuring container, and sends a clean water flow rate signal to the control unit 40 through a communication connection with the control unit 40. Moreover, the water inlet unit 10 can also receive and execute relevant instructions of the control unit 40, for example, the water inlet unit 10 can enter an open state according to an open instruction sent by the control unit 40, enter a closed state according to a close instruction, and adjust the clean water flow rate according to a flow adjustment instruction, etc.

[0059] The sampling unit 20 is connected to a drilling fluid sample source, for example, a mud pool of an offshore drilling platform. The sampling unit 20 delivers the drilling fluid sample to the measuring container 31 through a mechanical connection such as a pipeline between the sampling unit 20 and the measuring container 31. In addition, the sampling unit 20 also monitors the sample flow rate of the drilling fluid sample delivered to the measuring container, and sends a sample flow rate signal to the control unit 40 through a communication connection with the control unit 40. In addition, the sampling unit 20 can also receive and execute relevant instructions of the control unit 40, for example, the sampling unit 20 can enter an open state according to an open instruction sent by the control unit 40, enter a closed state according to a close instruction, and adjust the sample flow rate according to a flow adjustment instruction.

[0060] The measuring container 31 in the measuring unit 30 is used to carry liquid input into the measuring container 31 , such as a mixture of clean water and a drilling fluid sample.

[0061] The turbidity sensor 32 in the measuring unit 30 is in contact with the liquid in the measuring container 31, and is used to detect the turbidity of the liquid in the measuring container 31, and send the liquid turbidity signal to the control unit 40. Among them, the turbidity sensor 32 mainly measures the concentration of suspended particles in the liquid based on the principle of light scattering and light absorption. When light passes through the liquid containing suspended particles, part of the light will be scattered by the particles, and the other part of the light will be absorbed by the particles. Thus, by measuring the intensity change of the scattered light or the transmitted light, the turbidity of the liquid can be determined. The embodiment of the present application does not limit the specific model of the turbidity sensor 32.

[0062] The oil content sensor 33 in the measuring unit 30 is in contact with the liquid in the measuring container 31, and is used to detect the oil content of the liquid in the measuring container 31, and send the liquid oil content signal to the control unit 40. Among them, the oil content sensor 33 can adopt a fluorescent oil content sensor, etc. The oil content sensor 33 can detect the fluorescence intensity of the mixed liquid of clean water and the sample, and calculate the liquid oil content of the current mixed liquid according to the fluorescence intensity. For example, an ultraviolet fluorescence oil content sensor can be used. Since oil and its aromatic hydrocarbon compounds and conjugated double bond compounds emit fluorescence after absorbing ultraviolet light, the ultraviolet light source in the fluorescent oil content sensor emits ultraviolet light of a specific wavelength, which is irradiated on the oil molecules in the sample to be measured. The oil molecules are excited to produce fluorescence, and the intensity of the fluorescence is proportional to the concentration of the oil molecules. By detecting the intensity of the fluorescence, the concentration of oil in the water body can be quantitatively analyzed. In short, the specific type and model of the oil content sensor 33 are not limited in the embodiment of the present application. It should be understood here that although the oil content sensor 33 can obtain the liquid oil content, the liquid oil content cannot accurately reflect the oil content of the actual drilling fluid sample. Therefore, the present application accurately obtains the drilling fluid oil content through subsequent other operations.

[0063] The control unit 40 is used to generate the oil content of the drilling fluid according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal. The control unit 40 can be a chip, a logic processor and the like.

[0064] In an optional embodiment, a pre-generated mapping curve of the correction ratio and turbidity is obtained; an oil content correction value is generated based on the mapping curve, the liquid turbidity signal, and the liquid oil content signal; and the drilling fluid oil content is generated based on the oil content correction value, the clean water flow signal, and the sample flow signal.

[0065] Specifically, the actual oil content of the mixture of clean water and drilling fluid at different turbidities and the oil content detected by the oil content sensor are generated in advance, and the correction ratios corresponding to the different turbidities are obtained according to the actual oil content and the detected oil content corresponding to the different turbidities. For example, the correction ratio can be obtained according to (actual oil content-detected oil content) / actual oil content. A mapping curve of the correction ratio and turbidity is generated according to the correction ratio corresponding to the different turbidities, and the mapping curve records the correction ratios corresponding to the different turbidities.

[0066] Further, the correction ratio of the liquid turbidity signal corresponding to the turbidity can be determined according to the mapping curve. The oil content correction value can be obtained according to the correction ratio and the liquid oil content corresponding to the liquid oil content signal. For example, the oil content correction value can be calculated by the following formula 1:

[0067]

[0068] Among them, t woilIndicates the turbidity value corresponding to the liquid turbidity signal; f(t woil ) represents the correction ratio at the turbidity value corresponding to the liquid turbidity signal in the mapping curve; p woil Indicates the liquid oil content corresponding to the liquid oil content signal; p woil_j Indicates the oil content correction value.

[0069] The drilling fluid oil content is generated according to the oil content correction value, the clean water flow signal, and the sample flow signal by combining formula 2:

[0070]

[0071] Among them, p poil Indicates the oil content of drilling fluid; p woil_j Indicates the oil content correction value; Q vwat Indicates the volume flow value corresponding to the clean water flow signal; Q vsmp Indicates the volume flow value corresponding to the sample flow signal; ρ smp Indicates the density of drilling fluid.

[0072] Furthermore, the control unit 40 also determines that when the liquid level of the current measuring container reaches a first height according to the clean water flow rate signal and the sample flow rate signal, the first sample discharge flow rate is determined according to the clean water flow rate signal and the sample flow rate signal, and a first sample discharge instruction of the first sample discharge flow rate is sent to the sample discharge unit. Specifically, the control unit 40 can determine the clean water flow rate according to the clean water flow rate signal, and can determine the sample flow rate according to the sample flow rate signal, and then can calculate the current liquid level of the measuring container in real time according to the clean water flow rate, the sample flow rate and the size of the measuring container 31, and when it is calculated that the current liquid level reaches the first height, it is determined that the sample discharge unit needs to be turned on. Specifically, the first sample discharge flow rate is determined according to the clean water flow rate signal and the sample flow rate signal, for example, the sum of the clean water flow rate and the sample flow rate is used as the first sample discharge flow rate, and the first sample discharge instruction of the first sample discharge flow rate is sent to the sample discharge unit.

[0073] The sample discharging unit 50 and the measuring container 31 can be connected by a pipeline. The sample discharging unit 50 discharges the liquid in the measuring container at the first sample discharging flow rate through the first sample discharging channel according to the first sample discharging instruction of the first sample discharging flow rate. The first sample discharging instruction instructs the sample discharging unit 50 to open the first sample discharging channel, and the sample discharging flow rate of the first sample discharging channel is the first sample discharging flow rate. Since the first sample discharging flow rate is determined according to the clean water flow rate signal and the sample flow rate signal, the liquid inlet flow rate and the liquid discharge flow rate of the measuring container 31 are relatively in a balanced state, so that the liquid level height of the measuring container 31 during the measurement process will be maintained near the first height, ensuring the real-time nature of the detected drilling fluid oil content.

[0074] It can be seen that the drilling fluid oil content detection system provided in the embodiment of the present application can measure the drilling fluid oil content in real time and continuously, thereby improving the detection efficiency of the drilling fluid oil content; moreover, generating the drilling fluid oil content according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal can improve the detection accuracy of the drilling fluid oil content; and the drilling fluid oil content detection system has a simple structure, low cost, and a safe and environmentally friendly detection process, and is suitable for large-scale application and implementation; in addition, the drilling fluid oil content detection system does not require manual intervention during the detection process, thereby reducing labor costs and improving detection efficiency.

[0075] Embodiment 2

[0076] Figure 2 A schematic structural diagram of a drilling fluid oil content detection system provided in Embodiment 2 of the present invention is shown.

[0077] like Figure 2 As shown, based on the drilling fluid oil content detection system provided in the first embodiment, the drilling fluid oil content detection system further includes: a cleaning unit 60 and an overflow unit 70 .

[0078] The cleaning unit 60 may or may not be mechanically connected to the measuring container 31, and the cleaning unit 60 is in communication connection with the control unit 40. The cleaning unit 60 is usually in a normally closed state. After receiving the opening instruction from the control unit 40, the cleaning unit 60 adds a cleaning agent to the measuring container 31, thereby cleaning the measuring container 31. The embodiment of the present application does not limit the specific type of the cleaning agent, for example, the cleaning agent may be sodium dodecyl sulfate, which has little effect on the test.

[0079] The overflow unit 70 is mechanically connected to the measuring container 31, and is used to discharge liquid from the overflow unit when the liquid level in the measuring container 31 exceeds the second height. Specifically, in order to ensure the safety of the system, an overflow unit 70 is provided on one side of the measuring container 31, and the overflow unit 70 can be provided for a corresponding pipeline, which is provided near the second height of the measuring container 31. When the liquid level in the measuring container 31 reaches the second height, the liquid exceeding the second height will flow out of the measuring container 31 through the overflow unit 70, thereby ensuring the safety of the measuring container 31. In addition, the overflow unit 70 can balance the atmospheric pressure inside and outside the measuring unit 30, thereby reducing the working pressure of the pump.

[0080] It can be seen that the drilling fluid oil content detection system provided in the embodiment of the present application can clean the measuring container by adding a cleaning agent to the measuring container through the cleaning unit, thereby ensuring the accuracy of subsequent drilling fluid oil content detection; the overflow unit can ensure the safety of the system and improve the stability of the system.

[0081] Embodiment 3

[0082] Figure 3 FIG. 2 shows a schematic diagram of a drilling fluid oil content detection system provided by Embodiment 3 of the present invention. Figure 3 As shown, in order to facilitate accurate understanding of the mechanical structure in the system of the embodiment of the present application, the control unit of the drilling fluid oil content detection system in the embodiment of the present application and its corresponding communication connection are not shown.

[0083] The water inlet unit 10 includes: a water inlet pump 11, a clean water flow meter 12 and a one-way valve 13. The water inlet pump 11 is used to pump clean water from a clean water source, and the water inlet pump 11 can be connected to the control unit 40 for communication, so as to start the water inlet pump according to the start instruction sent by the control unit 40, stop the water inlet pump according to the close instruction, and adjust the water inlet flow of the water inlet pump according to the flow adjustment instruction. The water inlet pump can be a peristaltic pump, a diaphragm pump, etc. with good cleanliness and flow adjustment capability. The clean water flow meter 12 is used to detect the clean water flow, and the clean water flow meter 12 is connected to the control unit 40 for communication, and is used to feed back the clean water flow signal to the control unit 40; the one-way valve 13 is used to prevent the clean water from flowing back and ensure the safety of the system.

[0084] The sampling unit 20 includes: a sampling pump 21 and a sample flow meter 22. The sampling pump 21 is used to pump drilling fluid samples. In order to avoid the sample from contacting too many components in the pump and contaminating the sample to be tested, the sampling pump 21 can be a peristaltic pump, a diaphragm pump, etc. with an independent pumping chamber and flow regulation capability. The sampling pump 21 can be connected to the control unit 40 for communication, so as to start the sampling pump according to the start instruction sent by the control unit 40, stop the sampling pump according to the shutdown instruction, and adjust the sampling flow of the sampling pump according to the flow regulation instruction; the sample flow meter 22 is used to detect the sample flow, and the sample flow meter 22 is connected to the control unit 40 for communication, and is used to feed back the sample flow signal to the control unit 40.

[0085] The measuring container 31 includes: a mixer 311, a measuring tank 312 and an agitator 313. The mixer 311 is connected to the output ends of the water inlet unit 10 and the sample injection unit 20, and is used to pre-mix clean water and drilling fluid samples. The mixer 311 can be a static mixer or a dynamic mixer. The output end of the mixer 311 can be close to the bottom of the measuring tank 312, so as to reduce the generation of bubbles and improve the uniformity of the liquid. The measuring tank 312 is connected to the output end of the mixer 311, and is used to receive the liquid transported from the mixer 311. The agitator 313 is used to stir the liquid in the measuring tank 312 to improve the uniformity of the liquid and enhance the detection accuracy.

[0086] The sample discharging unit 50 includes a first sample discharging channel and a second sample discharging channel. The first sample discharging channel includes a first sample discharging valve 51 and a first sample discharging pump 53, and the second sample discharging channel includes a second sample discharging valve 52 and a second sample discharging pump 54. The first sample discharging channel is higher than the bottom of the measuring container (usually the measuring tank 312), and the second sample discharging channel is lower than the bottom of the measuring container (usually the measuring tank 312). When the sample discharging unit 50 receives the first sample discharging instruction sent by the control unit 40, the first sample discharging channel is opened, that is, the first sample discharging valve 51 and the first sample discharging pump 53 are started, so that the liquid in the measuring tank 312 is discharged through the first sample discharging channel; when the sample discharging unit 50 receives the second sample discharging instruction sent by the control unit 40, the second sample discharging channel is opened, that is, the second sample discharging valve 52 and the second sample discharging pump 54 are started, so that the liquid in the measuring tank 312 is discharged through the second sample discharging channel.

[0087] The cleaning unit 60 includes: an auxiliary material box 61, an auxiliary material pump 62, an auxiliary material flow meter 63, and a one-way valve 64. Among them, the auxiliary material box 61 carries a cleaning agent, and the auxiliary material pump 62 can pump the cleaning agent in the auxiliary material box 61. It can use a peristaltic pump, a diaphragm pump, or other pumping elements with good cleanliness and flow regulation capabilities; the auxiliary material flow meter 63 is used to detect the flow of the cleaning agent, and the one-way valve is used to prevent the cleaning agent from flowing back. The auxiliary material pump 62 is connected to the control unit 40. After receiving the start instruction of the control unit 40, the auxiliary material pump 62 pumps a certain amount of cleaning agent into the pipeline, and then puts it into the measuring tank 312. The cleaning agent delivery port of the cleaning unit 60 does not contact the four walls of the measuring tank 312 and the agitator 313, so as to avoid the cleaning agent from adhering to the measuring unit 30. Among them, the cleaning agent uses sodium dodecyl sulfate, which has a slight effect on the test, so that the mass ratio of sodium dodecyl sulfate in the liquid in the measuring tank 312 is in the range of 7.5% to 15%.

[0088] It can be seen that the drilling fluid oil content detection system provided in the embodiment of the present application, the sampling unit includes a first sampling channel and a second sampling channel, so that it can adapt to different sampling scenarios; and the cleaning unit and the water inlet unit include corresponding one-way valves to prevent the backflow of cleaning agent and clean water, thereby ensuring the accuracy of detection and the safety of the system.

[0089] Embodiment 4

[0090] Figure 4 The flowchart of a method for detecting oil content in drilling fluid provided by the fourth embodiment of the present invention is shown. The method for detecting oil content in drilling fluid provided by the embodiment of the present application is executed based on the drilling fluid oil content detection system in any of the above embodiments.

[0091] like Figure 4 As shown, the method comprises the following steps:

[0092] Step S401: The control unit sends an opening instruction to the water inlet unit and the sample injection unit.

[0093] The drilling fluid oil content detection system of the embodiment of the present application includes a detection mode and a cleaning mode. In the detection mode, the drilling fluid oil content can be detected in real time, and in the cleaning mode, the measuring container can be cleaned.

[0094] After the detection mode is started, the control unit 40 sends an opening instruction to the water inlet unit 10 and the sample injection unit 20 .

[0095] Step S402, the water inlet unit inputs clean water into the measuring container according to the start instruction and sends a clean water flow signal to the control unit; the sample injection unit inputs the drilling fluid sample into the measuring container according to the start instruction and sends a sample flow signal to the control unit.

[0096] After receiving the start-up instruction, the water inlet unit 10 enters the start-up state, thereby inputting clean water into the measuring container 31 . At the same time, the water inlet unit 10 also transmits a clean water flow signal to the control unit 40 .

[0097] Correspondingly, the sample injection unit 20 enters a start-up state after receiving the start-up instruction, thereby injecting the drilling fluid sample into the measuring container 31 . The sample injection unit 20 also transmits a sample flow signal to the control unit 40 .

[0098] Clean water and drilling fluid samples are mixed in the measuring container to dilute the drilling fluid sample, thereby facilitating the detection of turbidity and oil content of the mixed fluid.

[0099] Step S403, when the control unit determines that the liquid level of the current measuring container reaches a first height according to the clean water flow signal and the sample flow signal, it determines a first sample discharge flow according to the clean water flow signal and the sample flow signal, and sends a first sample discharge instruction of the first sample discharge flow to the sample discharge unit.

[0100] After the clean water and drilling fluid samples are injected into the measuring container 31, the liquid level of the measuring container 31 will continue to rise. The control unit determines the clean water flow rate according to the clean water flow rate signal, determines the sample flow rate according to the sample flow rate signal, and calculates the current liquid level of the measuring container by combining the clean water flow rate, the sample flow rate and the size of the measuring container 31. When the current liquid level of the measuring container reaches the first height, a first sample discharge instruction is generated.

[0101] Furthermore, the control unit 40 determines a first sample flow rate according to the clean water flow rate signal and the sample flow rate signal, for example, the first sample flow rate=clean water flow rate+sample flow rate, and sends a first sample instruction of the first sample flow rate to the sample unit 50 .

[0102] Step S404: the sample discharge unit discharges the liquid in the measuring container at a first sample discharge flow rate through a first sample discharge channel according to a first sample discharge instruction of a first sample discharge flow rate.

[0103] The sample discharge unit 50 starts the first sample discharge channel according to the first sample discharge instruction of the first sample discharge flow rate, discharges the liquid from the measuring container through the first sample discharge channel, and the sample discharge flow rate is the first sample discharge flow rate. Since the sample discharge flow rate = the clean water flow rate + the sample flow rate, the liquid level in the measuring container 31 will be maintained at the first height.

[0104] In step S405, the turbidity sensor transmits a liquid turbidity signal to the control unit, and the oil content sensor transmits a liquid oil content signal to the control unit.

[0105] The turbidity sensor 32 and the oil content sensor 33 are arranged in the measuring container 31, and the measuring ends of the turbidity sensor 32 and the oil content sensor 33 are arranged at a height lower than the first height in the measuring container 31, so that the liquid in the measuring container 31 can submerge the turbidity sensor 32 and the oil content sensor 33, and the turbidity sensor 32 and the oil content sensor 33 can accurately measure the turbidity and oil content of the liquid.

[0106] Step S406: the control unit generates the oil content of the drilling fluid according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal.

[0107] The specific calculation process can refer to the description in other embodiments and will not be repeated here.

[0108] It can be seen that the drilling fluid oil content detection method provided in the embodiment of the present application can measure the drilling fluid oil content in real time and continuously, thereby improving the detection efficiency of the drilling fluid oil content; moreover, generating the drilling fluid oil content according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal can improve the detection accuracy of the drilling fluid oil content; and the detection process does not require human intervention, thereby reducing labor costs and improving detection efficiency.

[0109] Embodiment 5

[0110] Figure 5 The flowchart of a method for detecting oil content in drilling fluid provided in the fifth embodiment of the present invention is shown. The method for detecting oil content in drilling fluid provided in the embodiment of the present application is executed based on the system for detecting oil content in drilling fluid in the third embodiment.

[0111] like Figure 5 As shown, the method comprises the following steps:

[0112] Step S501: the control unit 40 determines a first duration.

[0113] The drilling fluid oil content detection system includes a detection mode and a cleaning mode. The first duration is the longest duration of the detection mode, that is, the cleaning mode is entered when the detection mode duration reaches the first duration. The first duration can be set to a fixed value or can be set to a fixed value. Figure 6 The steps shown determine:

[0114] S5011, determine whether the continuous duration of the detection mode reaches T i ; If so, execute step S5012.

[0115] In this embodiment, whenever the continuous duration of the detection mode reaches a corresponding time threshold, the clean water verification mode is entered. The corresponding time threshold for entering the clean water verification mode is different each time. i It represents the time threshold corresponding to the i-th time of entering the clean water verification mode. For example, in the initial state, the system is in the detection mode, and it is about to enter the first clean water verification mode, so in this case, the time threshold corresponding to the continuous duration of the current detection mode is T1; if it is currently in the detection mode and has entered the clean water verification mode for 3 times, it is about to enter the fourth clean water verification mode, so in this case, the time threshold corresponding to the continuous duration of the current detection mode is T4.

[0116] Furthermore, T i+1 >T i , so the time threshold corresponding to the i+1th clean water verification mode is greater than the time threshold corresponding to the ith clean water verification mode. For example, the detection mode continuously lasts for T1 to enter the first clean water verification mode, the detection mode continuously lasts for T2 to enter the second clean water verification mode, and ... accordingly, the detection mode continuously lasts for T i Entering the i-th clean water calibration mode, T1 can be 1 hour, T2 can be 2 hours, T i It can be i hours.

[0117] If the detection mode continues for a period of time up to T i , then execute step S5012; if the continuous duration of the detection mode does not reach T i , then continue to monitor the continuous duration of the detection mode.

[0118] S5012, entering the i-th clean water calibration mode with a duration of △T.

[0119] The duration of each clean water calibration mode is equal to or close to ΔT. The clean water calibration mode can be divided into a start phase, an effective working phase, and an end phase.

[0120] At the start stage, the water inlet unit 10 and the sample injection unit 20 are both closed, and the first sample discharge channel is opened, so that the liquid in the measuring container 31 in the detection mode is discharged through the first sample discharge valve 51 and the first sample discharge pump 53. After the liquid in the measuring container 31 is completely discharged, the water inlet unit 10 is opened and the first sample discharge channel is closed, so that clean water is injected into the measuring container 31, and the effective working stage is entered when the clean water level in the measuring container 31 reaches the third height.

[0121] In the effective working stage, the sample injection unit 20 is closed, the water inlet unit 10 is opened, the first sample discharge channel is opened, and the second sample discharge channel is closed. And the clean water flow rate of the water inlet unit 10 is the same as or close to the sample discharge flow rate of the first sample discharge channel, so that the liquid level in the measuring container 31 is maintained near the third height in the effective working stage. After the effective working stage lasts for a certain period of time, it enters the end stage.

[0122] In the end stage, the water inlet unit 10 and the sample injection unit 20 are both closed, the first sample discharge channel is opened and the second sample discharge channel is closed, so that the liquid in the measuring container 31 is discharged through the first sample discharge channel.

[0123] S5013, obtain the i The first sensor value and the second sensor value in the effective working phase of the i-th clean water verification mode.

[0124] Taking the start time of this round of detection mode as the initial time 0, at time T i Enter the i-th clean water verification mode from the detection mode at time T. i The sensor value of the sensor is taken as the first sensor value, and the first sensor value includes the sensor value at time T i The liquid turbidity value of the turbidity sensor (referred to as the first turbidity value in this embodiment) and / or the liquid oil content value of the oil content sensor (referred to as the first oil content value in this embodiment).

[0125] In addition, the sensor value during the effective working stage of the i-th clean water verification mode is obtained as the second sensor value, and the second sensor value includes the liquid turbidity value of the turbidity sensor during the effective working stage of the i-th clean water verification mode (referred to as the second turbidity value in this embodiment) and / or the liquid oil content value of the oil content sensor (referred to as the second oil content value in this embodiment).

[0126] S5014, according to T i The first sensor value and the corresponding second sensor value are used to calculate T i The corresponding sensor error.

[0127] According to T iThe first sensor value of and the second sensor value of the effective working stage of the i-th clean water verification mode generate T i The corresponding sensor error. For example, calculate T i The ratio of the corresponding second turbidity value to the first turbidity value (the ratio is referred to as the first ratio), calculate T i The corresponding ratio of the second oil content value to the first oil content value (the ratio is referred to as the second ratio for short), and T is generated according to the weighted sum of the first ratio and the second ratio. i The corresponding sensor error. As the duration of the detection mode increases, the residual sample in the measuring container will also increase. Therefore, T i The larger it is, the larger the corresponding sensor error is.

[0128] S5015, determine whether i reaches n; if so, execute S5016; if not, execute S5017.

[0129] n is a threshold value that can be set flexibly. If i=n, ​​it indicates that the number of sensor errors currently collected has met the requirement, and thus the process proceeds to S5016 to determine the first duration; if i<n, it indicates that the number of sensor errors currently collected has not met the requirement, and thus the process proceeds to S5017 to perform the next sensor error acquisition process.

[0130] S5016, according to each T i The corresponding sensor error generates a mapping function of the sensor error and the operating time, and the first time duration is determined according to the mapping function and the error threshold.

[0131] By implementing steps S5011-S5015, T1, T2, ..., T i …、T n-1 、T n The corresponding sensor error is obtained, thereby obtaining n data points, and the i-th data point is (T i , T i The corresponding sensor error) is obtained by fitting the n data points using a preset fitting algorithm to obtain a corresponding fitting function, which is a mapping function of the sensor error and the running time. An error threshold is set, and the running time corresponding to the error threshold is determined according to the mapping function, and the running time is taken as the first time length.

[0132] S5017, i+1.

[0133] If i<n, indicating that the number of sensor errors currently collected has not yet met the requirement, i is incremented by 1 and S5011 is continued.

[0134] Step S502, entering detection mode.

[0135] Step S503, start the water inlet pump 11 and the sample inlet pump 21.

[0136] After entering the detection mode, the control unit 40 sends a start instruction to the water inlet pump 11 and the sample injection pump 21, so that the water inlet pump 11 and the sample injection pump 21 are started, the water inlet pump 11 inputs clean water into the measuring container 31, and the sample injection pump 21 inputs the drilling fluid sample into the measuring container 31.

[0137] At the same time, the clean water flow meter 12 feeds back a clean water flow signal to the control unit 40 , and the sample flow meter 22 feeds back a sample flow signal to the control unit 40 .

[0138] Step S504 , opening the first sample row valve 51 and the first sample row pump 53 .

[0139] When the control unit 40 determines that the liquid level in the measuring tank 312 reaches the first height, it determines the first sample discharge flow rate according to the clean water flow rate signal and the sample flow rate signal, and sends the first sample discharge instruction of the first sample discharge flow rate to the sample discharge unit 50, thereby opening the first sample discharge valve 51 and the first sample discharge pump 53, and the liquid in the measuring tank 312 is discharged through the first sample discharge valve 51 and the first sample discharge pump 53. And in the subsequent detection mode, the liquid level in the measuring tank 312 is maintained near the first height.

[0140] In step S505 , the turbidity sensor 32 sends a liquid turbidity signal to the control unit 40 and the oil content sensor 33 sends a liquid oil content signal to the control unit 40 .

[0141] In the detection mode, the turbidity sensor 32 and the oil content sensor 33 work and feed back the liquid turbidity signal and the liquid oil content signal to the control unit 40 .

[0142] Step S506: the control unit 40 generates the oil content of the drilling fluid.

[0143] The control unit 40 generates the oil content of the drilling fluid according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal, thereby realizing real-time detection of the oil content.

[0144] Step S507, determining whether the continuous duration of the detection mode exceeds the first duration; if so, executing step S508; if not, executing step S505.

[0145] If the detection mode continues for less than the first time period, the detection mode continues, the turbidity sensor 32 sends the liquid turbidity signal to the control unit 40, and the oil content sensor 33 sends the liquid oil content signal to the control unit 40, and the control unit 40 continuously generates the drilling fluid oil content.

[0146] If the detection mode continues for more than the first time period, the cleaning mode is entered.

[0147] Step S508, entering cleaning mode.

[0148] Step S509, turn off the water inlet pump 11 and the sample inlet pump 21,

[0149] After entering the cleaning mode, the control unit 40 sends a stop command to the water inlet unit 10 and the sample injection unit 20, thereby shutting down the water inlet unit 10 and the sample injection unit 20. Specifically, the water inlet pump 11 and the sample injection pump 21 are shut down, the water inlet unit 10 stops inputting clean water into the measuring container 31, and the sample injection unit 20 stops inputting drilling fluid samples into the measuring container 31. At this time, since the first sample discharge valve 51 and the first sample discharge pump 53 of the sample discharge unit 50 are still in the open state, the liquid in the measuring container 31 will continue to decrease.

[0150] Step S510 , closing the first sample row valve 51 and the first sample row pump 53 .

[0151] After waiting for the second time, the control unit 40 determines that the liquid in the measuring container 31 is completely drained, and then sends a closing instruction to the sample discharge unit 50 to close the first sample discharge channel, that is, close the first sample discharge valve 51 and the first sample discharge pump 53. At this time, the first sample discharge channel and the second sample discharge channel of the sample discharge unit 50 are both in a closed state. The second time can be calculated by the control unit 40 according to the sample discharge flow rate of the first sample discharge channel.

[0152] Step S511, start the water inlet pump 11, and then turn off the water inlet pump 11 after a corresponding period of time.

[0153] The control unit 40 sends an opening instruction to the water inlet unit 10 to turn on the water inlet unit 10, that is, to start the water inlet pump 11, so that the water inlet unit 10 injects clean water into the measuring container 31. After waiting for the third time period, the control unit 40 determines that the liquid level in the measuring container 31 meets the cleaning requirements, and then sends a closing instruction to the water inlet unit 10 to turn off the water inlet unit 10, that is, to turn off the water inlet pump 11, so as to inject a certain amount of clean water into the measuring container 31. The third time period can be calculated by the control unit 40 according to the clean water flow rate.

[0154] Step S512, starting the auxiliary material pump 62, and then shutting down the auxiliary material pump 62 after a corresponding period of time.

[0155] The control unit 40 sends an opening instruction to the cleaning unit 60 to open the cleaning unit 60, that is, to start the auxiliary material pump 62, so that the cleaning agent is transported from the auxiliary material box 61 to the measuring container 31, and the agitator 313 in the measuring container 31 stops stirring for a corresponding period of time.

[0156] After waiting for the fourth time period, the control unit 40 sends a shutdown command to the cleaning unit 60 to shut down the cleaning unit 60, that is, shut down the auxiliary material pump 62, thereby stopping the addition of cleaning agent to the measuring container 31, so that a certain amount of cleaning agent is added to the measuring container 31, and is evenly mixed with clean water through the stirring of the stirrer 313. The fourth time period can be determined by the control unit 40 according to the cleaning agent flow rate of the cleaning unit.

[0157] Step S513, opening the second sample discharge valve 52 and the second sample discharge pump 54, and then closing the second sample discharge valve 52 and the second sample discharge pump 54 after a corresponding period of time.

[0158] After waiting for the fifth time period, the control unit 40 sends a second sample discharging instruction to the sample discharging unit 50, so that the sample discharging unit 50 opens the second sample discharging channel, that is, opens the second sample discharging valve 52 and the second sample discharging pump 54, so that the liquid in the measuring container 31 is discharged through the second sample discharging valve 52 and the second sample discharging pump 54. Since the second sample discharging valve 52 and the second sample discharging pump 54 are lower than the bottom of the measuring container 31, the sediment and the like deposited in the measuring container 31 can be discharged through the second sample discharging channel, thereby improving the cleaning effect. Among them, the specific value of the fifth time period is not limited in this application.

[0159] After waiting for the sixth time period, the control unit 40 determines that the liquid in the current measuring container 31 has been completely drained, and sends a closing instruction to the sample discharge unit 50 to close the second sample discharge channel, that is, to close the second sample discharge valve 52 and the second sample discharge pump 54. The cleaning process ends here. The sixth time period can be determined by the control unit 40 according to the sample discharge flow rate of the second sample discharge channel.

[0160] Step S514, determine whether to continue measuring; if so, execute step S502; if not, end.

[0161] If the measurement needs to be continued, step S502 is executed to switch to the detection mode; if the measurement does not need to be continued, the method ends.

[0162] It can be seen that the drilling fluid oil content detection method provided in the embodiment of the present application can be cleaned after the detection mode continues for a certain period of time, thereby ensuring the subsequent detection accuracy of the drilling fluid oil content.

[0163] It should be noted that, in the present invention, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not represent any actual relationship or order between the entities or operations.

[0164] The illustrations provided by the present invention are only used to schematically illustrate the basic concept of the present invention. The illustrations only show the components related to the present invention rather than being drawn according to the number, shape and size of the components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0165] The "connection" in the present invention includes both direct connection and indirect connection, such as connection through some active devices, passive devices or electrically conductive media; it may also include connection through other active devices or passive devices on the basis of achieving the same or similar functional purposes as is well known to those skilled in the art, such as connection through circuits or components such as switches and follower circuits.

[0166] The description and application of the present invention here are illustrative, and it is not intended to limit the scope of the present invention to the above-mentioned embodiments. The effects or advantages involved in the embodiments may not be embodied in the embodiments due to interference from various factors, and the description of the effects or advantages is not used to limit the embodiments. The deformation and change of the embodiments disclosed here are possible, and the replacement of the embodiments and the various equivalent parts are well known to those of ordinary skill in the art. It should be clear to those skilled in the art that the present invention can be implemented in other forms, structures, arrangements, proportions, and with other components, materials and parts without departing from the spirit or essential features of the present invention. Other deformations and changes can be made to the embodiments disclosed here without departing from the scope and spirit of the present invention.

Claims

1. A drilling fluid oil content detection system, characterized in that: include: A water inlet unit, a sample injection unit, a measuring unit, a control unit and a sample discharge unit; wherein the measuring unit comprises a measuring container, a turbidity sensor and an oil content sensor; The measuring container is mechanically connected to the water inlet unit, the sample injection unit, the turbidity sensor, the oil content sensor and the sample arrangement unit respectively; the control unit is communicatively connected to the water inlet unit, the sample injection unit, the turbidity sensor, the oil content sensor and the sample arrangement unit respectively; The water inlet unit is used to deliver clean water to the measuring container and send a clean water flow signal to the control unit; The sampling unit is used to transport the drilling fluid sample to the measuring container and send a sample flow signal to the control unit; The turbidity sensor is used to detect the turbidity of the liquid in the measuring container and send the liquid turbidity signal to the control unit; The oil content sensor is used to detect the oil content of the liquid in the measuring container and send the liquid oil content signal to the control unit; The control unit is used to generate the oil content of the drilling fluid according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal; and when it is determined that the liquid level of the current measuring container reaches a first height according to the clean water flow signal and the sample flow signal, determine the first sample discharge flow according to the clean water flow signal and the sample flow signal, and send a first sample discharge instruction of the first sample discharge flow to the sample discharge unit; The sample discharge unit is used for discharging the liquid in the measuring container at a first sample discharge flow rate through a first sample discharge channel according to a first sample discharge instruction of a first sample discharge flow rate.

2. The drilling fluid oil content detection system according to claim 1, characterized in that: The control unit is specifically used for: Obtaining a pre-generated mapping curve of calibration ratio and turbidity; generating an oil content correction value according to the mapping curve, the liquid turbidity signal and the liquid oil content signal; The oil content of the drilling fluid is generated according to the oil content correction value, the clean water flow signal, and the sample flow signal.

3. The drilling fluid oil content detection system according to claim 1, characterized in that: The system further comprises: a cleaning unit; The cleaning unit is used to add cleaning agent to the measuring container according to the start instruction sent by the control unit.

4. The drilling fluid oil content detection system according to claim 3, characterized in that: The cleaning unit comprises: an auxiliary material box, an auxiliary material pump, an auxiliary material flow meter, and a one-way valve.

5. The drilling fluid oil content detection system according to claim 3, characterized in that: The sample row unit comprises a first sample row channel and a second sample row channel, the first sample row channel comprises a first sample row valve and a first sample row pump, and the second sample row channel comprises a second sample row valve and a second sample row pump; Wherein, the first sample row channel is higher than the bottom of the measuring container, and the second sample row channel is lower than the bottom of the measuring container.

6. The drilling fluid oil content detection system according to any one of claims 1 to 5, characterized in that: The system further comprises: an overflow unit; The overflow unit is mechanically connected to the measuring container and is used to discharge liquid from the overflow unit when the liquid level in the measuring container exceeds a second height.

7. The drilling fluid oil content detection system according to any one of claims 1 to 5, characterized in that: The water inlet unit includes: a water inlet pump, a clean water flow meter and a one-way valve; The sample injection unit comprises: a sample injection pump and a sample flow meter; The measuring container comprises: a mixer, a measuring tank and a stirrer.

8. A method for detecting oil content in drilling fluid, characterized in that: The method is performed based on the drilling fluid oil content detection system according to any one of claims 1 to 7, and the method comprises: The control unit sends an opening instruction to the water inlet unit and the sample injection unit; The water inlet unit inputs clean water into the measuring container according to the opening instruction, and sends a clean water flow signal to the control unit; the sample injection unit inputs the drilling fluid sample into the measuring container according to the opening instruction, and sends a sample flow signal to the control unit; When the control unit determines that the liquid level of the current measuring container reaches a first height according to the clean water flow rate signal and the sample flow rate signal, it determines a first sample discharge flow rate according to the clean water flow rate signal and the sample flow rate signal, and sends a first sample discharge instruction of the first sample discharge flow rate to the sample discharge unit. The sample discharge unit discharges the liquid in the measuring container at the first sample discharge flow rate through the first sample discharge channel according to the first sample discharge instruction of the first sample discharge flow rate. The turbidity sensor transmits a liquid turbidity signal to the control unit, and the oil content sensor transmits a liquid oil content signal to the control unit; The control unit generates the oil content of the drilling fluid according to the clean water flow signal, the sample flow signal, the liquid turbidity signal and the liquid oil content signal.

9. The method for detecting oil content in drilling fluid according to claim 8, characterized in that: The method further comprises: When the control unit determines that the continuous duration of the current detection mode exceeds the first time length, the control unit sends a stop instruction to the water inlet unit and the sample injection unit to close the water inlet unit and the sample injection unit; After waiting for a second time period, the control unit sends a closing instruction to the sample arrangement unit to close the first sample arrangement channel; The control unit sends an opening instruction to the water inlet unit to open the water inlet unit, and after waiting for a third time period, sends a closing instruction to the water inlet unit to close the water inlet unit; The control unit sends an opening instruction to the cleaning unit to turn on the cleaning unit, and after waiting for a fourth time period, sends a closing instruction to the cleaning unit to turn off the cleaning unit; The control unit sends a second sample arrangement instruction to the sample arrangement unit after waiting for a fifth time period so that the sample arrangement unit opens the second sample arrangement channel, and sends a closing instruction to the sample arrangement unit after waiting for a sixth time period so as to close the second sample arrangement channel.

10. The method for detecting oil content in drilling fluid according to claim 9, characterized in that: The first duration is obtained in the following manner: In the detection mode, the continuous duration reaches T i , enter the i-th clean water verification mode with a duration of △T; wherein, in the effective working stage of the clean water verification mode, the sample injection unit is closed, the water inlet unit is opened, the first sample row channel is opened, and the second sample row channel is closed, and T i+1 >T i ; Get in T i The first sensor value of and the second sensor value of the effective working stage of the i-th clean water calibration mode; According to T i The first sensor value and the corresponding second sensor value are used to calculate T i The corresponding sensor error; According to each T i The corresponding sensor error generates a mapping function of the sensor error and the operating time, and the first time duration is determined according to the mapping function and the error threshold.