Liquid interface detection system, control method and device and storage medium
Through the ultrasonic probe assembly and control components combined with electronic water valves and combustible gas detectors, the automation and accuracy of liquid interface detection is achieved, and the problems of low measurement stability and efficiency in the prior art are solved, which improves the safety of detection and accuracy.
Patent Information
- Application Number
- CN202411527743.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-01-10
AI Technical Summary
The existing liquid interface detection technology has measurement stability problems in high viscosity or corrosive environments, and the manual observation method is inefficient, making it difficult to accurately judge the location of the liquid interface.
Ultrasonic probe assembly and control components are used to determine the liquid interface position through the difference in ultrasonic propagation speed, and automated control is achieved in combination with electronic water valves and combustible gas detectors to ensure accurate drainage.
It improves the accuracy and automation of liquid interface detection, reduces manual intervention, and enhances detection stability and safety in high-risk environments.
Smart Images

Figure CN119290111A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of liquid interface detection technology, and in particular to a liquid interface detection system, a control method, a device and a storage medium. Background Art
[0002] In petrochemical and fine chemical enterprises, some storage tanks contain several immiscible liquids. To ensure process requirements, the different layers of liquid in the tank must be discharged separately. In the past, manual observation was mainly used. A bypass visual window was set on the tank. When the interface in the tank reached the specified position, the person would go to the tank side to open the discharge valve and monitor the whole process.
[0003] Or use the principles of conductivity, resonance, etc. to measure the liquid concentration density, and use the difference in concentration density to determine the position of the liquid interface. For viscous, corrosive or high-pressure environments, the service life and stability of concentration density measurement will be greatly affected. Summary of the invention
[0004] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes a liquid interface detection system, a control method, a device and a storage medium.
[0005] According to the first aspect of the present application, the liquid interface detection system includes:
[0006] A tank body is formed with a receiving cavity;
[0007] An ultrasonic probe assembly is arranged on the outer wall of the tank body to avoid contact with the solution in the containing chamber, the ultrasonic probe assembly includes at least two ultrasonic probes, at least two of the ultrasonic probes are arranged in sequence along the height direction of the tank body, and the ultrasonic probes are used to transmit ultrasonic waves and receive reflected ultrasonic waves;
[0008] A control component is electrically connected to the ultrasonic probe, and is configured to determine the water surface position in the accommodating chamber according to the receiving and sending data of at least two ultrasonic probes and a standard value.
[0009] According to one embodiment of the present application, the standard value is the propagation speed of ultrasound in water, the ultrasonic probe assembly includes three ultrasonic probes, and the heights of different ultrasonic probes are different. The control component is used to determine the water surface position in the accommodating cavity based on the receiving and transmitting data of the three ultrasonic probes.
[0010] According to one embodiment of the present application, the liquid interface detection system further includes a drain pipe and a water valve, wherein the drain pipe is connected to the bottom of the accommodating chamber, the drain pipe is connected to the water valve, and the water valve is used to control the on and off of the drain pipe.
[0011] According to an embodiment of the present application, the water valve is an electronic water valve, the water valve is electrically connected to the control component, and the control component is configured to control the opening and closing of the water valve according to the water surface position in the accommodating chamber.
[0012] According to one embodiment of the present application, the liquid interface detection system further includes a combustible gas detection component, the water inlet of the drain pipe is connected to the accommodating cavity, and the combustible gas detection component is arranged above the water outlet of the drain pipe.
[0013] According to an embodiment of the present application, the combustible gas detection component is electrically connected to the control component, and the control component is configured to control the opening and closing of the water valve according to the detection data of the combustible gas detection component.
[0014] According to the control method of the second aspect of the present application, applied to the liquid interface detection system as described above, the control method includes:
[0015] Acquiring the receiving and sending data of at least two of the ultrasonic probes;
[0016] Determining the ultrasonic propagation speed of at least two ultrasonic probes based on the received and transmitted data of at least two ultrasonic probes;
[0017] The position of the water surface in the accommodating chamber is determined based on the ultrasonic propagation speeds and standard values of at least two of the ultrasonic probes.
[0018] A control device according to an embodiment of the third aspect of the present application includes:
[0019] An acquisition module, used for acquiring the transmission and reception data of at least two of the ultrasonic probes;
[0020] A determination module, configured to determine the ultrasonic wave propagation speeds of at least two of the ultrasonic probes based on the transceiver data of at least two of the ultrasonic probes;
[0021] The control module is used to determine the water surface position in the accommodating chamber based on the ultrasonic propagation speed and standard value of at least two ultrasonic probes.
[0022] According to an electronic device of the fourth aspect of the present application, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the above-mentioned control method when executing the computer program.
[0023] According to the non-transitory computer-readable storage medium of the fifth aspect embodiment of the present application, the non-transitory computer-readable storage medium includes a computer program, and the computer program implements the above-mentioned control method when executed by the processor.
[0024] According to the computer program product of the sixth aspect of the present application, the computer program product includes a computer program, and when the computer program is executed by the processor, the above-mentioned control method is implemented.
[0025] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 This is one of the structural schematic diagrams of the liquid interface detection system provided by the present invention;
[0028] Figure 2 This is the second structural schematic diagram of the liquid interface detection system provided by the present invention;
[0029] Figure 3 It is a flow chart of the control method provided by the present invention;
[0030] Figure 4 is the standardized formula provided by the present invention;
[0031] Figure 5 It is a structural schematic diagram of the control device provided by the present invention;
[0032] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] The following description will be given by applying the control method to the server side, but it should be understood that the control method is not limited to being applied only to the server side.
[0035] Combine the following Figures 1 to 6The liquid interface detection system, control method, device and storage medium of the present application are described.
[0036] According to the embodiment of the first aspect of the present application, Figure 1 and Figure 2 As shown, the liquid interface detection system includes:
[0037] The tank body 1 is formed with a receiving cavity 11;
[0038] The ultrasonic probe assembly 6 is arranged on the outer wall of the tank body 1 to avoid contact with the solution in the containing chamber. The ultrasonic probe assembly 6 includes at least two ultrasonic probes 61. The at least two ultrasonic probes 61 are arranged in sequence along the height direction of the tank body 1. The ultrasonic probes 61 are used to transmit ultrasonic waves and receive reflected ultrasonic waves.
[0039] The control component is electrically connected to the ultrasonic probe 61 , and is configured to determine the water surface position in the accommodating chamber 11 according to the receiving and transmitting data of at least two ultrasonic probes 61 and standard values.
[0040] According to the liquid interface detection system of the embodiment of the present application, the propagation time of the ultrasonic wave can be determined according to the time points when the ultrasonic probe 61 emits and receives the ultrasonic wave. The specifications of the tank body 1 are known, that is, the propagation distance of the ultrasonic wave emitted by the ultrasonic probe 61 is known, and then the propagation speed of the ultrasonic wave corresponding to each ultrasonic probe 61 can be determined.
[0041] The propagation speed of ultrasound in water is known, and the propagation speed of ultrasound in water can be used as a standard value. Then, the ultrasonic propagation speed corresponding to each ultrasonic probe 61 is compared with the standard value. When the difference between the ultrasonic propagation speed corresponding to the ultrasonic probe 61 and the standard value is less than or equal to the preset value, it means that the ultrasonic probe 61 is flush with or below the water surface. When the difference between the ultrasonic propagation speed corresponding to the ultrasonic probe 61 and the standard value is greater than the preset value, it means that the ultrasonic probe 61 is above the water surface.
[0042] The present application arranges at least two ultrasonic probes 61 in sequence along the height direction of the tank body 1, and then according to the difference between the ultrasonic propagation speed corresponding to the at least two ultrasonic probes 61 and the standard value, the water surface position in the accommodating cavity 11 can be determined, thereby realizing intelligent detection of the water surface position.
[0043] That is to say, the ultrasonic probe emits a beam of ultrasonic signal, which passes through a liquid of a certain concentration and transmits a fixed distance. By measuring the transmission time from the emission to the reception of the ultrasonic signal and the known probe spacing, the sound speed of the ultrasonic wave in the medium can be calculated. By comparing the sound speeds at three positions, the interface position of the medium can be determined.
[0044] Specifically, the ultrasonic probe emits a beam of ultrasonic signal, which passes through a liquid of a certain concentration and transmits a fixed length (L), then reaches the ultrasonic reflective surface on the opposite side and reflects, and then reaches the ultrasonic probe again. In this process, the ultrasonic signal is transmitted twice the probe spacing distance. By measuring the transmission time from the ultrasonic signal to the reception and the known probe spacing, the sound speed of the ultrasonic wave in the medium can be calculated.
[0045] Specifically, it is assumed that the transmission time of the ultrasonic signal from the left probe to the right probe is t1, and the transmission time from the right probe to the left probe is t2.
[0046] At the same time, it is assumed that the flow (disturbance) velocity component of the measured liquid in the sensor axis is v L , from left to right. Under these assumptions, the acoustic representation of the transit time is as follows:
[0047]
[0048] The transmission time ttr of the ultrasonic signal in the measured medium is:
[0049]
[0050] because have to
[0051]
[0052] The following sound speed formula is obtained:
[0053]
[0054] Where: vels--------------the speed of sound of ultrasonic signal in the medium
[0055] ttr----------------The transmission time of the ultrasonic signal in the measured medium
[0056] L-----------------The distance from the inner wall of the tank to the reflecting surface at the installation location of the ultrasonic probe.
[0057] In some embodiments, Figure 1 As shown, the standard value is the propagation speed of ultrasonic waves in water. The ultrasonic probe assembly 6 includes three ultrasonic probes 61 . Different ultrasonic probes 61 have different heights. The control component is used to determine the water surface position in the accommodating cavity 11 based on the receiving and sending data of the three ultrasonic probes 61 .
[0058] It can be understood that the three ultrasonic probes 61 are arranged in sequence along the height direction of the tank body 1. For the convenience of description, the three ultrasonic probes 61 are named as the first ultrasonic probe 61, the second ultrasonic probe 61 and the third ultrasonic probe 61 in order from high to low.
[0059] The three ultrasonic probes 61 can all send and receive ultrasonic waves, and thus the ultrasonic propagation velocities corresponding to the three ultrasonic probes 61 can be obtained. Then, the ultrasonic propagation velocities corresponding to the first ultrasonic probe 61, the ultrasonic propagation velocities corresponding to the second ultrasonic probe 61, and the ultrasonic propagation velocities corresponding to the third ultrasonic probe 61 are respectively compared with the standard values to determine whether the difference between the ultrasonic propagation velocity corresponding to the first ultrasonic probe 61 and the standard value is greater than a preset value, whether the difference between the ultrasonic propagation velocity corresponding to the second ultrasonic probe 61 and the standard value is greater than a preset value, and whether the difference between the ultrasonic propagation velocity corresponding to the third ultrasonic probe 61 and the standard value is greater than a preset value, and thus the water surface position can be determined.
[0060] Specifically, when the difference between the ultrasonic propagation velocity corresponding to the first ultrasonic probe 61 and the standard value is greater than the preset value, the difference between the ultrasonic propagation velocity corresponding to the second ultrasonic probe 61 and the standard value is greater than the preset value, and the difference between the ultrasonic propagation velocity corresponding to the third ultrasonic probe 61 and the standard value is greater than the preset value, it means that the water level is lower than the third ultrasonic probe 61, that is, the tank is in a water-free state.
[0061] When the difference between the ultrasonic propagation velocity corresponding to the first ultrasonic probe 61 and the standard value is greater than the preset value, the difference between the ultrasonic propagation velocity corresponding to the second ultrasonic probe 61 and the standard value is greater than the preset value, and the difference between the ultrasonic propagation velocity corresponding to the third ultrasonic probe 61 and the standard value is less than or equal to the preset value, it means that the water surface position is flush with or higher than the third ultrasonic probe 61, and at the same time, the water surface position is lower than the second ultrasonic probe 61, that is, the tank is in a low water level state.
[0062] When the difference between the ultrasonic propagation velocity corresponding to the first ultrasonic probe 61 and the standard value is greater than the preset value, the difference between the ultrasonic propagation velocity corresponding to the second ultrasonic probe 61 and the standard value is less than or equal to the preset value, and the difference between the ultrasonic propagation velocity corresponding to the third ultrasonic probe 61 and the standard value is less than or equal to the preset value, it means that the water surface position is flush with or higher than the second ultrasonic probe 61, and at the same time, the water surface position is lower than the first ultrasonic probe 61, that is, it is in the water level state in the tank.
[0063] When the difference between the ultrasonic propagation velocity corresponding to the first ultrasonic probe 61 and the standard value is less than or equal to the preset value, the difference between the ultrasonic propagation velocity corresponding to the second ultrasonic probe 61 and the standard value is less than or equal to the preset value, and the difference between the ultrasonic propagation velocity corresponding to the third ultrasonic probe 61 and the standard value is less than or equal to the preset value, it means that the water surface position is flush with or higher than the first ultrasonic probe 61, that is, the tank is in a high water level state.
[0064] In some embodiments, Figure 1 As shown, the liquid interface detection system also includes a drain pipe 7 and a water valve 8. The drain pipe 7 is connected to the bottom of the accommodating chamber 11. The drain pipe 7 is connected to the water valve 8. The water valve 8 is used to control the on and off of the drain pipe 7.
[0065] It can be understood that the drain pipe 7 is connected to the bottom of the accommodating chamber 11. When drainage is required, the drain pipe 7 is controlled to be in a conducting state by the water valve 8, and the water in the accommodating chamber 11 can be discharged through the drain pipe 7. When drainage is not required, the drain pipe 7 is controlled to be in a disconnected state by the water valve 8, and the liquid in the accommodating chamber 11 cannot be discharged through the drain pipe 7.
[0066] In some embodiments, the water valve 8 is an electronic water valve, and the water valve 8 is electrically connected to a control component, and the control component is configured to control the opening and closing of the water valve 8 according to the water surface position in the accommodating chamber 11 .
[0067] It is understandable that the control component can control the automatic opening and closing of the water valve 8 according to the water surface position in the accommodating chamber 11. Specifically, when the control component determines that the water surface position is still flush with or higher than the ultrasonic probe 61 with the lowest height, the control component controls the water valve 8 to remain open, and when the control component determines that the water surface position is lower than the ultrasonic probe 61 with the lowest height, the control component controls the water valve 8 to close to prevent the oil in the accommodating chamber 11 from being discharged.
[0068] In some embodiments, Figure 1 As shown, the liquid interface detection system also includes a combustible gas detection component 9. The water inlet of the drain pipe 7 is connected to the accommodating cavity 11. The combustible gas detection component 9 is arranged above the water outlet of the drain pipe 7.
[0069] It is understandable that when the combustible gas detection element 9 detects combustible gas and determines that the combustible gas exceeds the standard, the water valve is closed. Then, the opening and closing of the water valve 8 can be controlled according to the detection result of the combustible gas detection element 9.
[0070] In some embodiments, the combustible gas detection component 9 is electrically connected to the control component, and the control component is configured to control the opening and closing of the water valve 8 according to the detection data of the combustible gas detection component 9.
[0071] It is understandable that the control component can determine whether the combustible gas at the water outlet of the drain pipe 7 exceeds the standard based on the detection data of the combustible gas detection element 9. When it is determined that the combustible gas exceeds the standard, the control component controls the water valve 8 to close, and when it is determined that the combustible gas does not exceed the standard, the control component controls the water valve 8 to remain open.
[0072] In some embodiments, Figure 1 As shown, the liquid interface detection system further includes a temperature detection component 10, which is used to detect the temperature in the accommodating cavity 11, and the temperature detection component 10 is electrically connected to the control component.
[0073] It is understandable that different temperatures will cause the density of the medium to change, which in turn causes the propagation speed of the ultrasonic wave in the medium to change. Generally speaking, the higher the temperature, the faster the propagation speed of the ultrasonic wave. In this embodiment, the temperature of the liquid in the accommodating chamber 11 is detected by the temperature detection element 10 to accurately determine the propagation speed of the ultrasonic wave in the liquid in the accommodating chamber 11, so as to accurately determine the position of the water surface.
[0074] When the liquid in the tank 1 is oil and water, the ultrasonic transceiver assembly 2 can be used to determine the position of the oil-water interface. At this time, the position of the oil-water interface determined by the ultrasonic transceiver assembly 2 can be cross-checked with the water surface position determined by the ultrasonic probe assembly 6 to ensure the high accuracy of the detection result and avoid mis-discharge of oil. Specifically:
[0075] like Figure 2 As shown, the liquid interface detection system comprises:
[0076] The tank body 1 is formed with a receiving cavity 11;
[0077] The ultrasonic transceiver assembly 2 is disposed at the top of the accommodating chamber 11. The ultrasonic transceiver assembly 2 is spaced apart from the liquid surface in the accommodating chamber 11. The ultrasonic transceiver assembly 2 is used to transmit ultrasonic waves to the bottom of the accommodating chamber 11 and receive reflected ultrasonic waves.
[0078] The control component is electrically connected to the ultrasonic transceiver assembly 2 , and is configured to determine the position of the oil-water interface in the accommodating cavity 11 according to the transceiver data of the ultrasonic transceiver assembly 2 .
[0079] According to the liquid interface detection system of the present application, the control component controls the ultrasonic transceiver assembly 2 to transmit ultrasonic waves to the bottom of the accommodating chamber 11. The ultrasonic waves will be reflected when propagating to the interface between the gas and the oil layer 3, the interface between the oil layer 3 and the water layer 4, and the bottom of the accommodating chamber 11, so that the ultrasonic transceiver assembly 2 can receive the reflected ultrasonic waves. The control component can determine the propagation duration of the ultrasonic wave according to the time points when the ultrasonic transceiver assembly 2 emits and receives the ultrasonic wave. Combined with the distance between the ultrasonic transceiver assembly 2 and the bottom of the accommodating chamber 11, the actual propagation speed of the ultrasonic wave can be determined, and the propagation speed of the ultrasonic wave in the oil layer 3 and the water layer 4 is known. Combined with the distance between the ultrasonic transceiver assembly 2 and the bottom of the accommodating chamber 11, it can be determined at what position the propagation speed of the ultrasonic wave becomes the propagation speed in water.
[0080] The ultrasonic transceiver component 2 is spaced apart from the liquid surface, and will not be affected by the oil layer 3. The ultrasonic transceiver component 2 does not need to be provided with a sealing structure to prevent oil from penetrating into the interior, thereby simplifying the structure of the liquid interface detection system.
[0081] For example, when the distance between the ultrasonic transceiver assembly 2 and the oil surface is small and negligible, it is assumed that the propagation speed of the ultrasonic wave in the oil layer 3 is 6v, the propagation speed of the ultrasonic wave in the water layer 4 is 10v, the distance between the ultrasonic transceiver assembly 2 and the bottom of the accommodating chamber 11 is 10L, and the actual propagation speed is 8V. Assuming that the oil-water interface is located at xL, that is, the ultrasonic wave first travels a distance of xL at a speed of 6v, and then travels a distance of (10-x)L at a speed of 10V, and the average speed of the whole process is 8v, xL / 6v+(10-x)L / 10v=10L / 8v, after calculation, it can be known that the oil-water interface is located at the position of 3.75L.
[0082] When the distance between the ultrasonic transceiver assembly 2 and the oil surface is large, the distance detection component can be used to detect the distance between the ultrasonic transceiver assembly 2 and the oil surface to determine the distance between the oil surface and the bottom of the container, and then the position of the oil-water interface can be determined.
[0083] For example, the system may store historical data, such as self-diagnosis results.
[0084] Exemplarily, the system also has a redundant design. For example, the system includes at least two ultrasonic transceiver components, and the detection results of the two ultrasonic transceiver components can verify each other.
[0085] In the embodiment of the present application, there may be a distance detector to detect the distance between the ultrasonic transceiver assembly 2 and the oil surface, or a telescopic device to drive the ultrasonic transceiver assembly 2 to the oil surface.
[0086] In one embodiment of the present application, Figure 2As shown, the liquid interface detection system also includes a temperature sensor 5, which is arranged in the accommodating chamber 11. The temperature sensor 5 is used to detect the temperature of the liquid in the accommodating chamber 11. The temperature sensor 5 is electrically connected to the control component, and the control component is configured to determine the position of the oil-water interface based on the receiving and transmitting data of the ultrasonic transceiver component 2 and the detection data of the temperature sensor 5.
[0087] It is understandable that different temperatures will cause the density of the medium to change, which in turn causes the propagation speed of the ultrasonic wave in the medium to change. Generally speaking, the higher the temperature, the faster the propagation speed of the ultrasonic wave. In this embodiment, the temperature sensor 5 detects the temperature of the liquid in the accommodating chamber 11 to accurately determine the propagation speed of the ultrasonic wave in the liquid in the accommodating chamber 11, so as to accurately determine the position of the oil-water interface.
[0088] In one embodiment of the present application, the temperature sensor 5 is disposed at the bottom of the receiving chamber 11 so that the temperature sensor 5 is located in the water in the receiving container.
[0089] It is understandable that the temperature sensor 5 is arranged at the bottom of the accommodating chamber 11, and the solution at the bottom of the accommodating chamber 11 is water, that is, the temperature sensor 5 is arranged in water, which can prevent the temperature sensor 5 from being contaminated by oil and affecting its accuracy.
[0090] In one embodiment of the present application, the liquid interface detection system further includes a sampling detection component, which is disposed on the upper portion of the side wall of the accommodating chamber 11 and is used to detect the type of liquid at the upper portion of the accommodating chamber 11 .
[0091] It is understandable that by detecting the type of oil in the accommodating cavity 11 through the sampling detection component, the propagation speed of the ultrasonic wave in the oil layer 3 can be accurately known according to the type of oil, so that the position of the oil-water interface can be accurately determined.
[0092] It is understandable that when the control component determines that the liquid at the upper position of the accommodating chamber 11 is water according to the detection data of the sampling detection component, the control component controls the tank body 1 to directly drain the water. When the control component determines that the liquid at the upper position of the accommodating chamber 11 is oil according to the detection data of the sampling detection component, the position of the oil-water interface is first determined, and then the tank body 1 is controlled to drain the water according to the position of the oil-water interface.
[0093] According to an embodiment of the second aspect of the present application, Figure 3 As shown, the control method includes:
[0094] Step 101, obtaining the receiving and sending data of at least two ultrasonic probes 61;
[0095] Step 102, determining the ultrasonic propagation speed of at least two ultrasonic probes 61 based on the received and transmitted data of at least two ultrasonic probes 61;
[0096] Step 103 : Determine the water surface position in the accommodating cavity 11 based on the ultrasonic wave propagation speeds and standard values of at least two ultrasonic probes 61 .
[0097] According to the control method of the embodiment of the present application, the transceiver data of at least two ultrasonic probes 61 are obtained, and the transceiver data include the time points when the ultrasonic probe 61 sends and receives ultrasonic waves. Then, based on the transceiver data of at least two ultrasonic probes 61, the ultrasonic propagation velocities of the at least two ultrasonic probes 61 are determined. Then, the ultrasonic propagation velocities of the at least two ultrasonic probes 61 are compared with the standard value to determine whether there is an ultrasonic probe 61 whose ultrasonic propagation velocity and the standard value have a difference less than or equal to a preset value. If so, it means that the ultrasonic probe 61 is flush with or below the water surface, and the water surface position in the accommodating cavity 11 can be determined.
[0098] In some embodiments, the ultrasonic probe 61 can rotate relative to the tank body 1;
[0099] Before the step of acquiring the transceiver data of at least two ultrasonic probes 61, the control method further includes:
[0100] Controlling the rotation of the ultrasonic probe 61;
[0101] Obtaining the tilt angle of the ultrasonic probe 61;
[0102] The step of determining the water surface position in the accommodating chamber 11 based on the ultrasonic propagation speed and the standard value of at least two ultrasonic probes 61 includes:
[0103] The water surface position in the accommodating chamber 11 is determined based on the tilt angle, the ultrasonic wave propagation speed of at least two ultrasonic probes 61 and the standard value.
[0104] It can be understood that by controlling the rotation of the ultrasonic probe 61 so that the ultrasonic probe 61 is tilted, the detection line of the ultrasonic probe 61 is an oblique line, that is, the detection range of the ultrasonic probe 61 is the area corresponding to the oblique line. For example, the ultrasonic probe 61 is at the first position of the tank body 1, and the ultrasonic wave emitted by the ultrasonic probe 61 reaches the second position of the tank body 1, then the detection area of the ultrasonic probe 61 is the area between the first position and the second position.
[0105] When there is water in the detection area, or the height of the water exceeds the threshold, the difference between the ultrasonic propagation velocity corresponding to the ultrasonic probe 61 and the standard value will be less than or equal to the preset value, and when there is no water in the detection area, or the height of the water is less than the threshold, the difference between the ultrasonic propagation velocity corresponding to the ultrasonic probe 61 and the standard value will be greater than the preset value. Then, based on the tilt angle, the ultrasonic propagation velocities of at least two ultrasonic probes 61, and the standard value, the water surface position in the accommodating cavity 11 is determined.
[0106] It can be understood that the ultrasonic probe 61 can be continuously controlled to rotate to change the detection area of the ultrasonic probe 61, so that one ultrasonic probe 61 can detect different areas.
[0107] In some embodiments, the at least two ultrasonic probes 61 include a first ultrasonic probe 61 and a second ultrasonic probe 61 , the first ultrasonic probe 61 can rotate relative to the tank body 1 , and the second ultrasonic probe 61 can move up and down relative to the tank body 1 ;
[0108] Before the step of acquiring the transceiver data of at least two ultrasonic probes 61, the control method further includes:
[0109] Controlling the first ultrasonic probe 61 to rotate;
[0110] Acquire the rotation angle of the first ultrasonic probe 61;
[0111] The step of determining the water surface position in the accommodating chamber 11 based on the ultrasonic propagation speed and the standard value of at least two ultrasonic probes 61 includes:
[0112] Determine the interval position of the water surface in the accommodating chamber 11 based on the rotation angle, the ultrasonic propagation speed of the first ultrasonic probe 61 and the standard value;
[0113] Based on the interval position of the water surface in the accommodating chamber 11, the second ultrasonic probe 61 is controlled to move within the interval position;
[0114] Based on the ultrasonic wave propagation velocity of the second ultrasonic probe 61 and the standard value, the water surface position in the accommodating chamber 11 is determined.
[0115] It can be understood that the first ultrasonic probe 61 is used to perform regional detection first, and when it is determined that water exists in a certain area, the area is determined as an interval position. Then the second ultrasonic probe 61 is controlled to move to the interval position, and the second ultrasonic probe 61 is used to accurately detect the interval position to accurately determine the water surface position.
[0116] It can be understood that when the second ultrasonic probe 61 does not detect water at the current position, the second ultrasonic probe 61 is controlled to continue moving until water is detected.
[0117] Based on the above application of the ultrasonic transceiver component 2, the control method may further include:
[0118] Determine the actual speed of sound based on the data received and sent by the ultrasonic transceiver component 2;
[0119] Determine the position of the oil-water interface based on the distance between the ultrasonic transceiver assembly 2 and the bottom of the accommodating chamber 11, the actual sound velocity and the standard sound velocity;
[0120] According to the control method of the embodiment of the present application, the propagation duration of the ultrasonic wave can be determined according to the time point when the ultrasonic transceiver component 2 sends and receives the ultrasonic wave. In combination with the distance between the ultrasonic transceiver component 2 and the bottom of the accommodating chamber 11, the actual sound velocity of the ultrasonic wave can be determined. The propagation velocity of the ultrasonic wave in the oil layer 3 and the water layer 4 is known, and in combination with the distance between the ultrasonic transceiver component 2 and the bottom of the accommodating chamber 11, it can be determined at what position the propagation velocity of the ultrasonic wave becomes the propagation velocity in water.
[0121] It is understandable that the ultrasonic wave will be reflected when it propagates to the interface between the gas and the oil layer 3, the interface between the oil layer 3 and the water layer 4, and the bottom of the accommodating chamber 11, so that the ultrasonic wave can be received by the ultrasonic wave transceiver component 2. That is, after the ultrasonic wave is emitted by the ultrasonic wave transceiver component 2, when the reflected wave is received for the third time, the time from the start of emission to the reception of the third reflected wave is determined as the total propagation time of the ultrasonic wave, and then the time taken for the ultrasonic wave to travel from the ultrasonic wave transceiver component 2 to the bottom of the accommodating chamber 11 can be determined.
[0122] In one embodiment of the present application, the control method further includes:
[0123] Acquire the first reflected wave and the second reflected wave received in sequence by the ultrasonic transceiver component 2 after starting to emit the ultrasonic wave;
[0124] Determine the distance between the ultrasonic transceiver component 2 and the oil surface based on the time point when the ultrasonic transceiver component 2 receives the first reflected wave;
[0125] Determine the distance between the oil surface and the water surface based on the time point when the ultrasonic transceiver component 2 receives the second reflected wave;
[0126] The position of the oil-water interface is determined based on the standard distance, the distance between the ultrasonic transceiver assembly 2 and the oil surface, and the distance between the oil surface and the water surface.
[0127] It can be understood that after the ultrasonic transceiver component 2 emits the ultrasonic wave, the ultrasonic wave will be reflected when it encounters the interface between the gas and the oil layer 3, generating a first reflected wave. The ultrasonic transceiver component 2 can receive the first reflected wave, and according to the time point when the ultrasonic transceiver component 2 starts to emit the ultrasonic wave and the time point when the ultrasonic transceiver component 2 receives the first reflected wave, the time taken for the ultrasonic wave to be transmitted from the ultrasonic transceiver component 2 to the interface between the gas and the oil layer 3 can be determined, and then the distance between the ultrasonic transceiver component 2 and the oil surface can be determined.
[0128] When the ultrasonic wave encounters the oil surface, in addition to being reflected, it will continue to propagate along the original propagation direction. When the ultrasonic wave is transmitted to the water surface, the ultrasonic wave will be reflected again to generate a second reflected wave. The ultrasonic transceiver component 2 can receive the second reflected wave. According to the time point when the ultrasonic transceiver component 2 starts to emit the ultrasonic wave and the time point when the ultrasonic transceiver component 2 receives the second reflected wave, the time taken for the ultrasonic wave to be transmitted from the ultrasonic transceiver component 2 to the water surface can be determined, and then the distance between the ultrasonic transceiver component 2 and the water surface can be determined.
[0129] The standard distance refers to the distance between the ultrasonic transceiver assembly 2 and the bottom of the accommodating chamber 11. Further, based on the standard distance, the distance between the ultrasonic transceiver assembly 2 and the oil surface, and the distance between the oil surface and the water surface, the distance between the oil-water interface and the bottom of the container can be determined, that is, the position of the oil-water interface can be determined.
[0130] It is understandable that the oil surface refers to the upper surface of the oil layer 3, that is, the side of the oil layer 3 close to the ultrasonic transceiver assembly 2. The water surface refers to the upper surface of the water layer 4, that is, the side of the water layer 4 close to the oil layer 3.
[0131] In one embodiment of the present application, the control method further includes:
[0132] Obtaining information about the type of oil in the containing chamber 11;
[0133] The thickness of the oil in the accommodating chamber 11 is determined based on the type information, the time point at which the ultrasonic component receives the first reflected wave, and the time point at which the ultrasonic component receives the second reflected wave.
[0134] It is understandable that, according to the type information of the oil in the accommodating cavity 11, the propagation speed of the ultrasonic wave in the oil layer 3 of the accommodating cavity 11 can be determined. According to the time point when the ultrasonic transceiver component 2 receives the first reflected wave and the second reflected wave, the propagation time of the ultrasonic wave in the oil layer 3 can be determined. Furthermore, according to the type information, the time point when the ultrasonic component receives the first reflected wave and the time point when the second reflected wave is received, the thickness of the oil in the accommodating cavity 11 can be determined, and the automatic detection of the thickness of the oil layer 3 can be realized.
[0135] Exemplarily, the type of oil in the accommodating chamber 11 may be sampled and tested by a sampling and testing component, and then the type information of the oil in the accommodating chamber 11 may be determined by acquiring the test data of the sampling and testing component.
[0136] In one embodiment of the present application, the control method further includes:
[0137] Obtaining the first reflected wave, the second reflected wave and the third reflected wave received in sequence by the ultrasonic transceiver component 2 after starting to emit the ultrasonic wave;
[0138] The depth of the water in the accommodating chamber 11 is determined based on the time point at which the ultrasonic component receives the second reflected wave and the time point at which the ultrasonic component receives the third reflected wave.
[0139] It can be understood that after the ultrasonic transceiver component 2 emits an ultrasonic wave, the ultrasonic wave will reach the oil surface, the water surface and the bottom of the accommodating chamber 11, and the ultrasonic wave will be reflected when reaching the oil surface, the water surface and the bottom of the accommodating chamber 11, that is, the ultrasonic wave will generate a first reflected wave when it reaches the oil surface, the second reflected wave when it reaches the water surface, and the third reflected wave when it reaches the bottom of the accommodating chamber 11, and the first reflected wave, the second reflected wave and the third reflected wave will all propagate to the ultrasonic transceiver component 2 and be received by the ultrasonic transceiver component 2.
[0140] According to the time point when the ultrasonic component receives the second reflected wave and the time point when the ultrasonic component receives the third reflected wave, the propagation time of the ultrasonic wave in the water layer 4 can be determined. Combined with the propagation speed of the ultrasonic wave in the water, the depth of the water in the container can be determined, thereby realizing automatic detection of the water depth, so as to facilitate the subsequent control of the drainage operation of the tank body 1 according to the water depth.
[0141] In one embodiment of the present application, the control method further includes:
[0142] The depth of water in the accommodating chamber 11 is calibrated according to the standard distance, the distance between the ultrasonic transceiver assembly 2 and the oil surface, and the thickness of the oil.
[0143] It is understandable that the standard distance refers to the distance between the ultrasonic transceiver assembly 2 and the bottom of the accommodating chamber 11, and this distance is known and fixed. Then, according to the time points when the ultrasonic transceiver assembly 2 receives the first reflected wave, the second reflected wave, and the third reflected wave, the distance between the ultrasonic transceiver assembly 2 and the oil surface, the thickness of the oil layer 3, and the depth of the water can be calculated. Theoretically, the sum of the distance between the ultrasonic transceiver assembly 2 and the oil surface, the thickness of the oil layer 3, and the depth of the water will be equal to the standard distance. If they are not equal, calibration can be performed.
[0144] Specifically, a new distance between the ultrasonic transceiver component 2 and the oil surface, the thickness of the oil layer 3, and the depth of the water can be re-determined according to the ratio of the distance between the ultrasonic transceiver component 2 and the oil surface, the thickness of the oil layer 3, and the depth of the water, as well as the standard distance, so as to calibrate the depth of water in the accommodating chamber 11 and obtain a more accurate position of the oil-water interface.
[0145] In one embodiment of the present application, after the step of determining the position of the oil-water interface, the control method further comprises:
[0146] Acquire several groups of historical production data of the tank body 1, wherein the historical production data at least includes the liquid level of the storage tank, the temperature and pressure in the tank body 1, the height of the oil-water interface, the standing time of the tank body 1, and the density, water content, temperature and viscosity of the crude oil.
[0147] In this embodiment, historical production data can be recorded manually and manually imported into a database for storage. By acquiring several groups of historical production data and conducting learning and training on the several groups of historical production data, the establishment of a deep learning model can be achieved. In addition, the historical production data in the database can be updated in real time to improve the accuracy of subsequent model establishment.
[0148] Taking several groups of data in the historical production data as training sets, a deep learning model is established based on the training sets between the height of the oil-water interface and the liquid level of tank 1, the temperature and pressure in tank 1, the standing time of tank 1, and the density, water content, temperature and viscosity of crude oil to obtain an oil-water interface height calculation model.
[0149] In this embodiment, the training set is used to establish a deep learning model, and the test set is used to evaluate the deep learning model, so as to generate an oil-water interface height calculation model with higher calculation accuracy and more accurate results. Preferably, the number of training sets accounts for 80% of the total number of samples. By establishing the oil-water interface height calculation model, the model can be directly used to calculate the height of the oil-water interface, thereby replacing the method of using an automatic water cutting device or manually guided water cutting to achieve water cutting operations in the prior art. Moreover, the model is established through a large amount of historical production data, with higher accuracy, and the calculation results are closer to the actual values.
[0150] In the preferred embodiment, please refer to Figure 2 , using several groups of data in the historical production data as training sets, establishing a deep learning model between the height of the oil-water interface and the liquid level of the tank 1, the temperature and pressure in the tank 1, the standing time of the tank 1, and the density, water content, temperature and viscosity of the crude oil according to the training sets, so as to obtain the steps of the oil-water interface height calculation model specifically including:
[0151] Select several groups of data from historical production data as training sets;
[0152] Determine the input layer and output layer of the deep learning model, where the input layer is the liquid level of tank 1, the
[0153] The output layer is the height of the oil-water interface, the temperature and pressure of the tank 1, the standing time of the tank 1, and the density, water content, temperature and viscosity of the crude oil;
[0154] Use the standardization formula to standardize each feature value and target value in the training set;
[0155] According to the characteristic values and target values of the standardized training set, the height of the oil-water interface and the tank body 1 are established.
[0156] A deep learning model is built between the liquid level, the temperature and pressure in the tank 1, the standing time of the tank 1, and the density, water content, temperature and viscosity of the crude oil to obtain a calculation model for the oil-water interface height.
[0157] In this embodiment, some samples are first selected as training sets, and then the input and output of the model are determined. The deep learning model includes an input layer, a hidden layer and an output layer. The data of the input layer is calculated by the hidden layer and then output to the output layer, so that the target value can be obtained by inputting the characteristic value. The hidden layer includes several autoencoders. The characteristic values in the present invention are the liquid level of the tank body 1, the temperature and pressure inside the tank body 1, the standing time of the tank body 1, and the density, water content, temperature and viscosity of the crude oil. The target value is the height of the oil-water interface. In order to facilitate the establishment of the model, it is necessary to first standardize each characteristic value and target value in the training set, and the standardized formula can be directly used to implement the standardized processing.
[0158] Specifically, for a column of data x1, x2, x3, x n (where x is a characteristic value, x represents any one of the standing time of tank 1, the liquid level, temperature, pressure of tank 1, density, water content, temperature, and viscosity of crude oil; and x is a target value, x represents the height of the oil-water interface). The standardized formula is as follows: Figure 4 :
[0159] Among them, xi is the value after data standardization, n is the number of samples (for eigenvalues, n is), is the mean value of the data in this column, and s is the standard deviation of the data in this column.
[0160] In some examples, the control method further includes:
[0161] Control to enter self-diagnosis mode: based on the transmission and reception time of the first reflected wave and the second reflected wave;
[0162] Based on the transmission and reception of the first reflected wave and the second reflected wave, it is determined whether the operation status of the liquid interface detection system is normal.
[0163] According to the embodiment of the third aspect of the present application, the control device and the control method correspond to each other. Figure 5 As shown, the control device includes:
[0164] An acquisition module 201 is used to acquire the transmission and reception data of at least two ultrasonic probes 61;
[0165] A determination module 202, configured to determine the ultrasonic propagation speed of at least two ultrasonic probes 61 based on the transceiver data of at least two ultrasonic probes 61;
[0166] The control module 203 is used to determine the water surface position in the accommodation chamber based on the ultrasonic propagation speed and standard value of at least two ultrasonic probes 61.
[0167] According to an embodiment of the fourth aspect of the present application, Figure 6 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the control method, which includes:
[0168] Acquire the transceiver data of at least two ultrasonic probes 61;
[0169] Determine the ultrasonic propagation speed of the at least two ultrasonic probes 61 based on the transceiver data of the at least two ultrasonic probes 61;
[0170] Based on the ultrasonic wave propagation speeds and standard values of at least two ultrasonic probes 61 , the water surface position in the accommodating chamber 11 is determined.
[0171] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0172] On the other hand, the present application also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the control method provided by the above methods, the method includes:
[0173] Acquire the transceiver data of at least two ultrasonic probes 61;
[0174] Determine the ultrasonic propagation speed of the at least two ultrasonic probes 61 based on the transceiver data of the at least two ultrasonic probes 61;
[0175] Based on the ultrasonic wave propagation speeds and standard values of at least two ultrasonic probes 61 , the water surface position in the accommodating chamber 11 is determined.
[0176] According to an embodiment of the fifth aspect of the present application, the present application also includes a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is implemented to perform the above-mentioned control methods, and the method includes:
[0177] Acquire the transceiver data of at least two ultrasonic probes 61;
[0178] Determine the ultrasonic propagation speed of the at least two ultrasonic probes 61 based on the transceiver data of the at least two ultrasonic probes 61;
[0179] Based on the ultrasonic wave propagation speeds and standard values of at least two ultrasonic probes 61 , the water surface position in the accommodating chamber 11 is determined.
[0180] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0181] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0182] Finally, it should be noted that the above implementation modes are only used to illustrate the present application, rather than to limit the present application. Although the present application is described in detail with reference to the embodiments, a person skilled in the art should understand that various combinations, modifications or equivalent substitutions of the technical solutions of the present application do not depart from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.
Claims
1. A liquid interface detection system, characterized in that: include: A tank body is formed with a receiving cavity; An ultrasonic probe assembly is arranged on the outer wall of the tank body to avoid contact with the solution in the containing chamber, the ultrasonic probe assembly includes at least two ultrasonic probes, at least two of the ultrasonic probes are arranged in sequence along the height direction of the tank body, and the ultrasonic probes are used to transmit ultrasonic waves and receive reflected ultrasonic waves; A control component is electrically connected to the ultrasonic probe, and is configured to determine the water surface position in the accommodating chamber according to the receiving and sending data of at least two ultrasonic probes and a standard value.
2. The liquid interface detection system according to claim 1, characterized in that: The standard value is the propagation speed of ultrasound in water. The ultrasonic probe assembly includes three ultrasonic probes. Different ultrasonic probes have different heights. The control component is used to determine the water surface position in the accommodating cavity based on the receiving and sending data of the three ultrasonic probes.
3. The liquid interface detection system according to claim 1 or 2, characterized in that: The liquid interface detection system also includes a drain pipe and a water valve. The drain pipe is communicated with the bottom of the accommodating cavity. The drain pipe is connected to the water valve. The water valve is used to control the on and off of the drain pipe.
4. The liquid interface detection system according to claim 3, characterized in that: The water valve is an electronic water valve, and the water valve is electrically connected to the control component. The control component is configured to control the opening and closing of the water valve according to the water surface position in the accommodating chamber.
5. The liquid interface detection system according to claim 3, characterized in that: The liquid interface detection system also includes a combustible gas detection component. The water inlet of the drain pipe is connected to the accommodating cavity, and the combustible gas detection component is arranged above the water outlet of the drain pipe.
6. The liquid interface detection system according to claim 5, characterized in that: The combustible gas detection component is electrically connected to the control component, and the control component is configured to control the opening and closing of the water valve according to the detection data of the combustible gas detection component.
7. A control method, characterized in that: Applied to the liquid interface detection system according to any one of claims 1 to 6, the control method comprises: Acquiring the receiving and sending data of at least two of the ultrasonic probes; Determining the ultrasonic propagation speed of at least two ultrasonic probes based on the received and transmitted data of at least two ultrasonic probes; The position of the water surface in the accommodating chamber is determined based on the ultrasonic propagation speeds and standard values of at least two of the ultrasonic probes.
8. A control device, characterized in that: include: An acquisition module, used for acquiring the transmission and reception data of at least two of the ultrasonic probes; A determination module, configured to determine the ultrasonic wave propagation speeds of at least two of the ultrasonic probes based on the transceiver data of at least two of the ultrasonic probes; The control module is used to determine the water surface position in the accommodating chamber based on the ultrasonic propagation speed and standard value of at least two ultrasonic probes.
9. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the control method of claim 7 is implemented.
10. A non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium comprising a computer program, characterized in that: When the computer program is executed by a processor, the control method of claim 7 is implemented.