Oil-water interface detection system and method and storage medium
Through the combination of ultrasonic transmission and reception components and control components, the precise positioning of the oil-water interface is achieved, and the problem of insufficient intelligence in the existing technology is solved, the accuracy and automation of the oil-water interface detection are improved, and the oil storage and drainage are improved. Operational efficiency.
Patent Information
- Application Number
- CN202411524541.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-01-07
AI Technical Summary
In the prior art, the degree of intelligence of oil-water interface detection is insufficient, making it difficult to accurately determine the location of the oil-water interface, affecting the efficiency of oil-quality storage and drainage operations.
The method of combining ultrasonic transmission and reception components with control components is adopted to transmit ultrasonic waves and analyze the time point of reflected waves, calculate the actual sound speed and distance, accurately locate the oil-water interface, and calibrate it in combination with oil type information and water depth to achieve automated detection.
It improves the accuracy and automation of oil-water interface detection, simplifies the position determination of oil-water interface, and enhances the efficiency and accuracy of oil storage and drainage operations.
Smart Images

Figure CN119268801A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of oil-water interface detection, and in particular to an oil-water interface detection system, method and storage medium. Background Art
[0002] In the production and storage of oil products, water is inevitably mixed into the oil storage tank, so the water in the storage tank needs to be drained. In order to avoid the oil being drained out by water, the position of the oil-water interface in the storage tank needs to be clearly identified.
[0003] In the related art, the intelligent level of oil-water interface detection is insufficient. 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 an oil-water interface detection system, method and storage medium.
[0005] The oil-water interface detection method according to the first aspect of the present application is used in an oil-water interface detection system, and the oil-water interface detection system includes:
[0006] A tank body is formed with a receiving cavity;
[0007] An ultrasonic transceiver assembly is disposed at the top of the accommodating chamber, the ultrasonic transceiver assembly is spaced apart from the liquid surface in the accommodating chamber, and is used to transmit ultrasonic waves to the bottom of the accommodating chamber and receive reflected ultrasonic waves;
[0008] A control component is electrically connected to the ultrasonic transceiver assembly, and the control component is configured to: determine the position of the oil-water interface in the accommodating cavity according to the transceiver data of the ultrasonic transceiver assembly;
[0009] The oil-water interface detection method comprises:
[0010] Determining the actual speed of sound based on the transceiver data of the ultrasonic transceiver component;
[0011] The position of the oil-water interface is determined based on the distance between the ultrasonic transceiver assembly and the bottom of the accommodating chamber, the actual sound speed and the standard sound speed.
[0012] According to one embodiment of the present application, the oil-water interface detection method further includes:
[0013] Acquire a first reflected wave and a second reflected wave sequentially received by the ultrasonic transceiver component after the ultrasonic wave is emitted;
[0014] Determining the distance between the ultrasonic transceiver component and the oil surface based on the time point when the ultrasonic transceiver component receives the first reflected wave;
[0015] Determining the distance between the oil surface and the water surface based on the time point when the ultrasonic transceiver component receives the second reflected wave;
[0016] The position of the oil-water interface is determined based on the standard distance, the distance between the ultrasonic transceiver assembly and the oil surface, and the distance between the oil surface and the water surface.
[0017] According to one embodiment of the present application, the oil-water interface detection method further includes:
[0018] Acquiring information on the type of oil in the containing cavity;
[0019] The thickness of the oil in the accommodating chamber is determined based on the type information, the time point when the ultrasonic component receives the first reflected wave, and the time point when the ultrasonic component receives the second reflected wave.
[0020] According to one embodiment of the present application, the oil-water interface detection method further includes:
[0021] Acquire a first reflected wave, a second reflected wave, and a third reflected wave received in sequence by the ultrasonic transceiver component after the ultrasonic wave is emitted;
[0022] The depth of water in the accommodating chamber is determined based on the time point at which the ultrasonic component receives the second reflected wave and the time point at which the third reflected wave is received.
[0023] According to one embodiment of the present application, the oil-water interface detection method further includes:
[0024] The depth of water in the containing chamber is calibrated according to the standard distance, the distance between the ultrasonic transceiver assembly and the oil surface, and the thickness of the oil.
[0025] The oil-water interface detection device according to the second aspect of the present application is used in an oil-water interface detection system, and the oil-water interface detection system includes:
[0026] A tank body is formed with a receiving cavity;
[0027] An ultrasonic transceiver assembly is disposed at the top of the accommodating chamber, the ultrasonic transceiver assembly is spaced apart from the liquid surface in the accommodating chamber, and is used to transmit ultrasonic waves to the bottom of the accommodating chamber and receive reflected ultrasonic waves;
[0028] A control component is electrically connected to the ultrasonic transceiver assembly, and the control component is configured to: determine the position of the oil-water interface in the accommodating cavity according to the transceiver data of the ultrasonic transceiver assembly;
[0029] The oil-water interface detection device comprises:
[0030] A determination module, used to determine the actual sound speed based on the transceiver data of the ultrasonic transceiver component;
[0031] The control module is used to determine the position of the oil-water interface based on the distance between the ultrasonic transceiver assembly and the bottom of the accommodating chamber, the actual sound speed and the standard sound speed.
[0032] According to the oil-water interface detection system of the third aspect of the present application, the system includes:
[0033] A tank body is formed with a receiving cavity;
[0034] An ultrasonic transceiver assembly is disposed at the top of the accommodating chamber, the ultrasonic transceiver assembly is spaced apart from the liquid surface in the accommodating chamber, and is used to transmit ultrasonic waves to the bottom of the accommodating chamber and receive reflected ultrasonic waves;
[0035] A control component is electrically connected to the ultrasonic transceiver assembly, and is configured to determine the position of the oil-water interface in the accommodating cavity according to the transceiver data of the ultrasonic transceiver assembly.
[0036] According to the electronic device of the third aspect embodiment 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 oil-water interface detection method when executing the computer program.
[0037] According to the non-transitory computer-readable storage medium of the fourth aspect of the present application, the non-transitory computer-readable storage medium includes a computer program, and when the computer program is executed by the processor, the above-mentioned oil-water interface detection method is implemented.
[0038] According to the computer program product of the fifth 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 oil-water interface detection method is implemented.
[0039] 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
[0040] 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.
[0041] Figure 1It is a schematic diagram of the flow of the oil-water interface detection method provided by the present invention;
[0042] Figure 2 It is a structural schematic diagram of the oil-water interface detection device provided by the present invention;
[0043] Figure 3 is a schematic diagram of the structure of an electronic device provided by the present invention;
[0044] Figure 4 is the standardized formula provided by the present invention;
[0045] Figure 5 It is a structural schematic diagram of the oil-water interface detection system provided by the present invention. DETAILED DESCRIPTION
[0046] 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.
[0047] The embodiments of the present application provide an embodiment of the oil-water interface detection method. It should be noted that although the logical order is shown in the flow chart, under certain data, the steps shown or described can be completed in an order different from that here.
[0048] Before introducing the oil-water interface detection method of the embodiment of the present application, the application scenario of the oil-water interface detection method is first explained. The oil-water interface detection method of the present application can be directly applied to the oil-water interface detection system, and can also be applied to smart terminals such as smart phones, tablets and computers, and can also be applied to servers. The present application does not make any special limitations here, as long as it can carry and implement the oil-water interface detection method of the present application.
[0049] The following description will be given by applying the oil-water interface detection method to the server side, but it should be understood that the oil-water interface detection method is not limited to being applied only to the server side.
[0050] Combine the following Figures 1 to 5 The oil-water interface detection system, method and storage medium of the present application are described.
[0051] According to the embodiment of the first aspect of the present application, Figure 1 and Figure 5 As shown, the oil-water interface detection method is used in an oil-water interface detection system, and the oil-water interface detection system includes:
[0052] The tank body 1 is formed with a receiving cavity 11;
[0053] 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.
[0054] The control component is electrically connected to the ultrasonic transceiver assembly 2, and the control component 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;
[0055] Oil-water interface detection methods include:
[0056] Step 101, determining the actual sound speed based on the receiving and transmitting data of the ultrasonic transceiver component 2;
[0057] Step 102, determining the position of the oil-water interface based on the distance between the ultrasonic transceiver assembly 2 and the bottom of the accommodating cavity 11, the actual sound velocity and the standard sound velocity;
[0058] According to the oil-water interface detection 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 emits 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 the water.
[0059] 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.
[0060] In one embodiment of the present application, the oil-water interface detection method further includes:
[0061] 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;
[0062] 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;
[0063] 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;
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] In one embodiment of the present application, the oil-water interface detection method further includes:
[0070] Obtaining information about the type of oil in the containing chamber 11;
[0071] 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.
[0072] 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.
[0073] 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.
[0074] In one embodiment of the present application, the oil-water interface detection method further includes:
[0075] 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;
[0076] 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.
[0077] 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.
[0078] 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.
[0079] In one embodiment of the present application, the oil-water interface detection method further includes:
[0080] 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.
[0081] 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.
[0082] 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.
[0083] In one embodiment of the present application, after the step of determining the position of the oil-water interface, the oil-water interface detection method further comprises:
[0084] 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.
[0085] 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.
[0086] 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.
[0087] 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.
[0088] 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:
[0089] Select several groups of data from historical production data as training sets;
[0090] Determine the input layer and output layer of the deep learning model, where the input layer is the liquid level of tank 1, the
[0091] 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;
[0092] Use the standardization formula to standardize each feature value and target value in the training set;
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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 :
[0097] Among them, x′ iis 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.
[0098] In some examples, the oil-water interface detection method further includes:
[0099] Control to enter self-diagnosis mode: based on the transmission and reception time of the first reflected wave and the second reflected wave;
[0100] 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 oil-water interface detection system is normal.
[0101] According to the embodiment of the second aspect of the present application, the oil-water interface detection device and the oil-water interface detection method correspond to each other. Figure 2 As shown, the oil-water interface detection device is used in the oil-water interface detection method, and the oil-water interface detection device includes:
[0102] The tank body 1 is formed with a receiving cavity 11;
[0103] 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.
[0104] The control component is electrically connected to the ultrasonic transceiver assembly 2, and the control component 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;
[0105] The oil-water interface detection device includes:
[0106] A determination module 201, for determining an actual sound speed based on the transceiver data of the ultrasonic transceiver component 2;
[0107] The control module 202 is used to 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 speed and the standard sound speed.
[0108] According to an embodiment of the third aspect of the present application, Figure 5 As shown, the oil-water interface detection system comprises:
[0109] The tank body 1 is formed with a receiving cavity 11;
[0110] 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.
[0111] 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 .
[0112] According to the oil-water 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 the water.
[0113] The ultrasonic transceiver assembly 2 is spaced apart from the liquid surface, and will not be affected by the oil layer 3. The ultrasonic transceiver assembly 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 oil-water interface detection system.
[0114] 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.
[0115] 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.
[0116] For example, the system may store historical data, such as self-diagnosis results.
[0117] 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.
[0118] 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.
[0119] In one embodiment of the present application, Figure 5 As shown, the oil-water 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.
[0120] 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.
[0121] 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.
[0122] 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.
[0123] In one embodiment of the present application, the oil-water 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 .
[0124] 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.
[0125] 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.
[0126] According to an embodiment of the fourth aspect of the present application, Figure 3As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the oil-water interface detection method, which includes:
[0127] Determine the actual speed of sound based on the data received and sent by the ultrasonic transceiver component 2;
[0128] The position of the oil-water interface is determined 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.
[0129] 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.
[0130] 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 oil-water interface detection method provided by the above methods, the method comprising:
[0131] Determine the actual speed of sound based on the data received and sent by the ultrasonic transceiver component 2;
[0132] The position of the oil-water interface is determined 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.
[0133] 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, the method for detecting an oil-water interface provided above is implemented. The method includes:
[0134] Determine the actual speed of sound based on the data received and sent by the ultrasonic transceiver component 2;
[0135] The position of the oil-water interface is determined 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.
[0136] 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.
[0137] 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.
[0138] 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. An oil-water interface detection method, used in an oil-water interface detection system, characterized in that: The oil-water interface detection system comprises: A tank body is formed with a receiving cavity; An ultrasonic transceiver assembly is disposed at the top of the accommodating chamber, the ultrasonic transceiver assembly is spaced apart from the liquid surface in the accommodating chamber, and is used to transmit ultrasonic waves to the bottom of the accommodating chamber and receive reflected ultrasonic waves; A control component is electrically connected to the ultrasonic transceiver assembly, and the control component is configured to: determine the position of the oil-water interface in the accommodating cavity according to the transceiver data of the ultrasonic transceiver assembly; The oil-water interface detection method comprises: Determining the actual speed of sound based on the transceiver data of the ultrasonic transceiver component; The position of the oil-water interface is determined based on the distance between the ultrasonic transceiver assembly and the bottom of the accommodating chamber, the actual sound speed and the standard sound speed.
2. The oil-water interface detection method according to claim 1, characterized in that: The oil-water interface detection method further comprises: Acquire a first reflected wave and a second reflected wave sequentially received by the ultrasonic transceiver component after the ultrasonic wave is emitted; Determining the distance between the ultrasonic transceiver component and the oil surface based on the time point when the ultrasonic transceiver component receives the first reflected wave; Determining the distance between the oil surface and the water surface based on the time point when the ultrasonic transceiver component receives the second reflected wave; The position of the oil-water interface is determined based on the standard distance, the distance between the ultrasonic transceiver assembly and the oil surface, and the distance between the oil surface and the water surface.
3. The oil-water interface detection method according to claim 2, characterized in that: The oil-water interface detection method further comprises: Acquiring information on the type of oil in the containing cavity; The thickness of the oil in the accommodating chamber is determined based on the type information, the time point when the ultrasonic component receives the first reflected wave, and the time point when the ultrasonic component receives the second reflected wave.
4. An oil-water interface detection device, used in an oil-water interface detection system, characterized in that: The oil-water interface detection system comprises: A tank body is formed with a receiving cavity; An ultrasonic transceiver assembly is disposed at the top of the accommodating chamber, the ultrasonic transceiver assembly is spaced apart from the liquid surface in the accommodating chamber, and is used to transmit ultrasonic waves to the bottom of the accommodating chamber and receive reflected ultrasonic waves; A control component is electrically connected to the ultrasonic transceiver assembly, and the control component is configured to: determine the position of the oil-water interface in the accommodating cavity according to the transceiver data of the ultrasonic transceiver assembly; The oil-water interface detection device comprises: A determination module, used to determine the actual sound speed based on the transceiver data of the ultrasonic transceiver component; The control module is used to determine the position of the oil-water interface based on the distance between the ultrasonic transceiver assembly and the bottom of the accommodating chamber, the actual sound speed and the standard sound speed.
5. An oil-water interface detection system, characterized in that: include: A tank body is formed with a receiving cavity; An ultrasonic transceiver assembly is disposed at the top of the accommodating chamber, the ultrasonic transceiver assembly is spaced apart from the liquid surface in the accommodating chamber, and is used to transmit ultrasonic waves to the bottom of the accommodating chamber and receive reflected ultrasonic waves; A control component is electrically connected to the ultrasonic transceiver assembly, and is configured to determine the position of the oil-water interface in the accommodating cavity according to the transceiver data of the ultrasonic transceiver assembly.
6. 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 oil-water interface detection method according to any one of claims 1 to 3 is implemented.
7. 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 oil-water interface detection method according to any one of claims 1 to 3 is implemented.
Citation Information
Cited By
A produced water tank oil-water interface measuring device
CN224873146U