A dynamic window analysis method, system, and device for the liquid inlet and outlet status of a storage tank.

By dynamically adjusting the time and liquid level window size of the storage tank, the problems of real-time performance and accuracy in monitoring the liquid inlet and outlet status of the storage tank were solved, enabling timely detection of leaks and flow rate alarms, and improving the safety of storage tank operation.

CN115861232BActive Publication Date: 2026-05-26SUPCON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUPCON TECH CO LTD
Filing Date
2022-12-01
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In existing technologies, the real-time performance and accuracy of monitoring the liquid inlet and outlet status of storage tanks are relatively low. In particular, leaks cannot be detected in time in the event of micro-leakage, making it difficult to detect and eliminate safety hazards in a timely manner.

Method used

The dynamic window analysis method is adopted. By calculating the time and liquid level offset in each analysis cycle, the size of the time window and liquid level window is dynamically adjusted. The window size is updated in real time according to the liquid inlet and outlet status of the storage tank to improve the real-time performance and accuracy of monitoring, and an alarm is triggered when the flow rate exceeds the preset value.

Benefits of technology

It enables real-time and accurate monitoring of the liquid inlet and outlet status of storage tanks, allowing for timely detection of leaks, improving operational safety, and providing reliable operational references.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115861232B_ABST
    Figure CN115861232B_ABST
Patent Text Reader

Abstract

This invention relates to a dynamic window analysis method, system, and device for the liquid inflow and outflow status of a storage tank. The analysis method includes: S10, calculating a time offset and a level offset based on the current time and tank level, and based on the time and tank level at the time of the last snapshot; S20, comparing the time offset with the current time window size and the level offset with the current level window size to determine the current liquid inflow and outflow status of the storage tank; S30, updating the time window size and level window size based on the liquid inflow and outflow status and according to a dynamic window adjustment strategy; and taking a snapshot of the current time point and the tank level. The dynamic window adjustment strategy includes multiple liquid inflow and outflow statuses of the storage tank, and the time window size and level window size corresponding to each liquid inflow and outflow status. The method of this invention can accurately determine the liquid inflow and outflow status of a storage tank, and further obtain the tank's flow rate, velocity, and leakage information, providing an operational reference for the safe operation of the tank farm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of liquid chemical storage technology, and in particular to a dynamic window analysis method, system and equipment for the liquid inlet and outlet status of a storage tank. Background Technology

[0002] Storage tanks are large-scale material storage facilities. In petrochemical and warehousing enterprises, storage tanks are typically used to store liquid chemical raw materials, intermediate raw materials, and finished products, while also undertaking tasks such as receiving, distributing, blending, settling, and dehydrating these liquid materials. Their designed volume is typically around 1000 m³. 3 Up to 100,000m 3 The inflow and outflow rates vary depending on the tank's capacity and throughput. During receiving and disbursement operations, the inflow and outflow rates of the storage tank are typically in the tens of cubic meters per second. 3 / h to several thousand m 3 The flow rate varies, and operators need to monitor the inlet and outlet liquid status of the storage tank in real time to perform corresponding safe operations. However, due to the high cost of flow meters and the pressure loss they cause, current design specifications generally do not recommend directly installing flow meters at the inlet and outlet of the storage tank. In this situation, operators cannot accurately obtain the actual inlet and outlet flow rates of the storage tank, and the accuracy and real-time performance of data estimated manually cannot be guaranteed. Especially when the storage tank is in a state of micro-leakage, the leakage and spillage of liquid materials in the storage tank, as well as the cross-contamination between storage tanks, cannot be detected in time, posing a safety hazard to the tank area.

[0003] To address the above situation, existing technologies typically use level gauges to periodically scan the liquid level in storage tanks, determining the inflow and outflow status of the tank by monitoring the level difference. The scanning cycle is a fixed time interval, and to reduce numerical fluctuations caused by level gauge detection errors, this time interval is usually set to several minutes. The above technology has the following drawbacks:

[0004] (1) The real-time performance is not high, and it cannot reflect the operating status of the storage tank during liquid inflow and outflow in a timely manner. When the operator first starts the liquid inflow and outflow operation by manipulating the corresponding liquid pump and valve of the storage tank, it is necessary to observe the liquid inflow and outflow status of the storage tank in real time to determine whether the liquid pump and valve have entered the normal working state. Under the timed scanning mode of the existing technology, the operator needs to wait at least one scanning cycle to obtain the liquid level change in the storage tank. Therefore, it is impossible to identify whether the liquid pump and valve are working normally in a timely manner.

[0005] (2) The flow rate under micro-leakage cannot be accurately obtained, making leak monitoring impossible. When the storage tank is not in operation, i.e., when it is stationary, potential internal leaks in pipelines and valves, or valves not closing properly, can easily lead to liquid leakage, commonly known as liquid runoff or cross-contamination, causing a slight drop in the tank's liquid level. Because the level gauge itself is easily affected by noise interference and has a short time interval between scan cycles, it cannot detect slight changes in liquid level caused by leaks in a timely and accurate manner. Therefore, leaks in the storage tank are often not detected effectively and promptly, resulting in the failure to detect and eliminate the aforementioned hidden dangers in a timely manner. Summary of the Invention

[0006] (a) Technical problems to be solved

[0007] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a dynamic window analysis method, system and device for the liquid inlet and outlet status of storage tanks, which solves the technical problem of low real-time performance and accuracy of monitoring the liquid inlet and outlet status of storage tanks under the fixed scanning cycle mode in the prior art.

[0008] (II) Technical Solution

[0009] To achieve the above objectives, the main technical solutions adopted by the present invention include:

[0010] In a first aspect, embodiments of the present invention provide a dynamic window analysis method for the liquid inlet and outlet status of a storage tank, wherein a dynamic window analysis process is executed in each analysis cycle, the dynamic window analysis process including:

[0011] S10. Based on the current time and the current liquid level in the storage tank, and based on the time and liquid level in the storage tank at the time of the last snapshot, calculate the time offset and liquid level offset.

[0012] S20. Compare the time offset with the current time window size and the liquid level offset with the current liquid level window size respectively. Based on the comparison results, determine the current liquid inlet and outlet status of the storage tank.

[0013] S30. Based on the liquid inflow / outflow status, update the time window size and liquid level window size according to a pre-defined dynamic window adjustment strategy; and take a snapshot of the current time point and the liquid level of the storage tank.

[0014] The dynamic window adjustment strategy includes multiple liquid inlet / outlet states of the storage tank, and the time window size and liquid level window size corresponding to each liquid inlet / outlet state.

[0015] The analysis method proposed in this invention, after determining the current liquid inflow / outflow status of the storage tank each time, updates the time window size and liquid level window size based on the liquid inflow / outflow status and according to a pre-defined dynamic window adjustment strategy. This allows the method to determine the liquid inflow / outflow status of the storage tank based on the new time window size and liquid level window size when performing dynamic window analysis in the next analysis cycle. Based on the above, the analysis method provided by this invention can update the time window size and liquid level window size in a timely manner based on the liquid inflow / outflow status of the storage tank. This allows for analysis based on the corresponding reasonable time window size and liquid level window size for each liquid inflow / outflow status of the storage tank, thereby accurately determining the liquid inflow / outflow status of the storage tank, improving the real-time performance and accuracy of monitoring the liquid inflow / outflow status of the storage tank, and ultimately providing a reliable reference for the operator's safe operation.

[0016] Optionally, the liquid inlet / outlet states include: receiving / discharging state, static state, and leakage state.

[0017] Optionally, the time window size includes a first time window size and a second time window size, wherein the first time window size is smaller than the second time window size;

[0018] S20 includes:

[0019] S201. Determine if the liquid level offset is greater than the current liquid level window size.

[0020] If not, proceed with the static state determination process;

[0021] If so, execute S202;

[0022] S202. Determine if the time offset is less than the current first time window size.

[0023] If so, determine the liquid inlet / outlet status of the storage tank as a receipt / payment status;

[0024] If not, execute the leak status determination process.

[0025] Optionally, the receipt and payment status includes: liquid receipt status and liquid payment status;

[0026] When the liquid inlet / outlet status of the storage tank is determined to be in a receiving / paying state, step S202 further includes:

[0027] Determine whether the liquid level offset is greater than 0.

[0028] If so, determine the liquid inlet / outlet status of the storage tank as the liquid collection status;

[0029] If not, the liquid inlet / outlet status of the storage tank is determined to be a discharge status.

[0030] Optionally, in S201, the static state determination process includes:

[0031] Determine whether the time offset is not less than the current second time window size.

[0032] If so, determine that the liquid inlet and outlet state of the storage tank is static, and jump to S30;

[0033] If not, terminate the dynamic window analysis process within the current analysis cycle.

[0034] Optionally, the leakage state includes an external leakage state and an internal leakage state;

[0035] In S202, the leakage status determination process includes:

[0036] M1. Determine whether the time offset is less than the current second time window size.

[0037] If so, determine that the liquid inlet / outlet status of the storage tank is in a leaking state, and execute M2;

[0038] If not, the liquid inlet and outlet state of the storage tank is determined to be static.

[0039] M2. Determine whether the liquid level offset is greater than 0.

[0040] If so, the liquid inlet and outlet status of the storage tank is determined to be an external leakage state;

[0041] If not, the liquid inlet and outlet status of the storage tank is determined to be an internal leakage state.

[0042] Optionally, when the liquid inlet / outlet status of the storage tank is determined to be either a receiving / discharging state or a leakage state, the analysis method further includes: performing a flow rate monitoring process, the flow rate monitoring process including:

[0043] A1. Calculate the liquid level change rate k based on the liquid level offset between the current liquid level and the liquid level at the time of the last snapshot; and determine the cross-sectional area S of the storage tank based on the current liquid level.

[0044] A2. Calculate the flow rate Q based on the liquid level change rate and the cross-sectional area according to formula (1); the formula (1) is: Q = kS (1);

[0045] A3. According to formula (2), calculate the flow velocity v based on the flow rate Q and the pipe diameter R of the inlet or outlet of the storage tank; the formula (2) is:

[0046]

[0047] A4. Determine whether the flow rate v is greater than a preset value. If so, trigger an overspeed alarm signal.

[0048] Secondly, embodiments of the present invention provide a dynamic window analysis system for the input and output flow rates of a storage tank, comprising:

[0049] The acquisition module is used to acquire the current time and the current liquid level of the storage tank; and to calculate the time offset and liquid level offset based on the time and liquid level of the storage tank at the time of the last snapshot.

[0050] The determination module is used to compare the time offset with the current time window size and the liquid level offset with the current liquid level window size, and determine the current liquid inlet and outlet status of the storage tank based on the comparison results.

[0051] An update module is used to update the time window size and liquid level window size based on the liquid inlet and outlet status of the storage tank and according to a pre-defined dynamic window adjustment strategy. The dynamic window adjustment strategy includes multiple liquid inlet and outlet statuses of the storage tank, and the time window size and liquid level window size corresponding to each liquid inlet and outlet status.

[0052] The snapshot module is used to take a snapshot of the current time and the liquid level of the storage tank after each determination module determines the current liquid inlet and outlet status of the storage tank;

[0053] The display module is used to display the liquid inlet and outlet status of the storage tank.

[0054] Optionally, the analysis system further includes:

[0055] The flow rate monitoring module is used to calculate the liquid level change rate based on the liquid level at two adjacent snapshot time points, determine the cross-sectional area of ​​the storage tank based on the current liquid level, calculate the flow rate based on the liquid level change rate and the cross-sectional area, and calculate the flow rate based on the flow rate and the pipe diameter of the inlet or outlet of the storage tank.

[0056] The flow rate monitoring module is also used to determine whether the flow rate is greater than a preset value; if so, it triggers an overspeed alarm signal.

[0057] The display module is also used to display the flow rate and flow rate alarm signal of the storage tank.

[0058] Thirdly, embodiments of the present invention provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, it implements the steps of the dynamic window analysis method for the liquid inlet and outlet status of a storage tank as described in the first aspect.

[0059] (III) Beneficial Effects

[0060] In the analysis method proposed in this embodiment of the invention, after determining the current liquid inflow / outflow status of the storage tank each time, the time window size and liquid level window size are updated based on the liquid inflow / outflow status and according to a pre-defined dynamic window adjustment strategy. This allows the method to determine the liquid inflow / outflow status of the storage tank based on the new time window size and liquid level window size when performing the dynamic window analysis process in the next analysis cycle. Based on the above, the analysis method provided by this embodiment of the invention can update the time window size and liquid level window size in a timely manner based on the liquid inflow / outflow status of the storage tank. This allows for analysis based on the corresponding reasonable time window size and liquid level window size under each liquid inflow / outflow status of the storage tank, thereby accurately determining the liquid inflow / outflow status of the storage tank, improving the real-time performance and accuracy of monitoring the liquid inflow / outflow status of the storage tank, and ultimately providing a reliable reference for the operator's safe operation.

[0061] In the embodiments provided by the present invention, in addition to determining the liquid inlet and outlet status of the storage tank, the inlet and outlet flow rates and velocities of the storage tank are calculated based on the liquid level change rate of the storage tank, and an alarm is triggered when the flow rate exceeds a preset value, so as to further improve the safety of the storage tank operation. Attached Figure Description

[0062] Figure 1 This is a flowchart illustrating the dynamic window analysis process in a dynamic window analysis method for the liquid inlet and outlet status of a storage tank provided in this embodiment.

[0063] Figure 2 This is a schematic diagram of a dynamic window adjustment strategy provided in the embodiment;

[0064] Figure 3 This is a flowchart illustrating the dynamic window analysis process provided in the embodiment;

[0065] Figure 4 This is a schematic diagram of a display screen provided in the embodiment. Detailed Implementation

[0066] To better explain and facilitate understanding of the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0067] The dynamic window analysis method, system, and device provided in this invention are essentially designed to address the different liquid level change characteristics of storage tanks under different liquid inflow and outflow states over different time periods. They employ a dynamic window adjustment strategy, setting time windows and liquid level windows of different sizes to adjust the sensitivity to the rate of liquid level change based on the liquid inflow and outflow states of the storage tank. This allows for the perception of liquid level changes under different liquid inflow and outflow states, enabling real-time determination of the liquid inflow and outflow rates and timely detection of leaks, providing accurate references for safe operation by the operator.

[0068] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present invention can be understood more clearly and thoroughly, and that the scope of the present invention can be fully conveyed to those skilled in the art.

[0069] Example 1

[0070] This embodiment provides a dynamic window analysis method for the liquid inflow and outflow status of a storage tank. This method can be implemented on any electronic device, specifically a computer. The analysis method executes a dynamic window analysis process within each analysis cycle. Figure 1 As shown, the dynamic window analysis process includes:

[0071] S10. Based on the current time and the current liquid level in the storage tank, and based on the time and liquid level in the storage tank at the time of the last snapshot, calculate the time offset and liquid level offset.

[0072] S20. Compare the time offset with the current time window size and the liquid level offset with the current liquid level window size respectively. Based on the comparison results, determine the current liquid inlet and outlet status of the storage tank.

[0073] Specifically, the liquid inlet / outlet states include: receiving / discharging state, static state, and leakage state.

[0074] S30. Based on the liquid inflow / outflow status, update the time window size and liquid level window size according to a pre-defined dynamic window adjustment strategy; and take a snapshot of the current time point and the liquid level of the storage tank.

[0075] The dynamic window adjustment strategy includes multiple liquid inlet / outlet states of the storage tank, and the time window size and liquid level window size corresponding to each liquid inlet / outlet state.

[0076] The aforementioned dynamic window adjustment strategy is designed to address the liquid level change characteristics of the storage tank under different inflow and outflow states and over different time periods. Specifically, under inflow and outflow states, the liquid level in the storage tank will change significantly within a short period of time, requiring a shorter time window to improve the real-time monitoring of liquid level changes. Under leakage states, the liquid level in the storage tank will change only slightly over a long period of time, requiring a longer time window and a shorter liquid level change window to improve the detection rate of tank leaks.

[0077] In the above dynamic window adjustment strategy, the specific values ​​of the liquid level window size and the time window size are set according to specific process environment parameters such as the cross-sectional area of ​​the storage tank, the working efficiency of the liquid pump, and the error range of the liquid level gauge.

[0078] like Figure 2 As shown, in a preferred embodiment of this example, the liquid level window size corresponding to the receiving / paying state is set to 5mm, and the time window size is set to 6min. By reducing the time window size and increasing the liquid level window size, the rapid liquid level change rate under receiving / paying conditions is adapted to improve the real-time performance of monitoring the tank's inflow and outflow status during these conditions. The liquid level window size corresponding to the static state is set to 3mm, and the time window size is set to 30min. By extending the time window size and reducing the liquid level window size, the detection rate of potential leaks in the tank under static conditions is improved, and misjudgments caused by the error range of the level gauge itself are suppressed. The liquid level window size and time window size corresponding to the leaking state are the same as those corresponding to the static state to ensure the accuracy of the monitored leak flow rate value. Figure 2 In this context, T represents time, L represents liquid level, and w represents window size.

[0079] In each analysis cycle, when either the time offset or the liquid level offset exceeds the aforementioned window size, the dynamic window analysis process will reassess the inflow and outflow status of the tank and dynamically adjust the time window size and liquid level window size according to the dynamic window adjustment strategy based on the inflow and outflow status, thereby ensuring the real-time performance and accuracy of this analysis method. Without loss of generality, the aforementioned analysis cycle is much shorter than the time window size.

[0080] The analysis method proposed in this invention, after determining the current liquid inflow / outflow status of the storage tank each time, updates the time window size and liquid level window size based on the liquid inflow / outflow status and according to a pre-defined dynamic window adjustment strategy. This allows the method to determine the liquid inflow / outflow status of the storage tank based on the new time window size and liquid level window size when performing dynamic window analysis in the next analysis cycle. Based on the above, the analysis method provided by this invention can update the time window size and liquid level window size in a timely manner based on the liquid inflow / outflow status of the storage tank. This allows for analysis based on the corresponding reasonable time window size and liquid level window size for each liquid inflow / outflow status of the storage tank, thereby accurately determining the liquid inflow / outflow status of the storage tank, improving the real-time performance and accuracy of monitoring the liquid inflow / outflow status of the storage tank, and ultimately providing a reliable reference for the operator's safe operation.

[0081] Example 2

[0082] To better understand the dynamic window analysis process in Example 1, this example provides a detailed explanation of the specific steps.

[0083] like Figure 3 As shown, the dynamic window analysis process includes:

[0084] S10. Based on the current time and the current liquid level in the storage tank, and based on the time and liquid level in the storage tank at the time of the last snapshot, calculate the time offset and liquid level offset.

[0085] S20. Compare the time offset with the current time window size and the liquid level offset with the current liquid level window size respectively. Based on the comparison results, determine the current liquid inlet and outlet status of the storage tank.

[0086] Specifically, the time window size includes a first time window size and a second time window size, with the first time window size being smaller than the second time window size. In practice, the first time window size is used to determine the payment / receipt status, while the second time window size is used to determine the leakage status; therefore, the first time window size is smaller than the second time window size.

[0087] The liquid inflow / outflow states include: receiving / discharging state, static state, and leakage state. Furthermore,

[0088] The receiving and disbursement status includes: liquid receiving status and liquid disbursement status. The liquid receiving status indicates that the storage tank is receiving liquid material, and the liquid disbursement status indicates that the storage tank is disbursing liquid material.

[0089] The leakage states include: external leakage state and internal leakage state. The external leakage state refers to the leakage of liquid material from other locations to the current storage tank, and the internal leakage state refers to the leakage of liquid material from the current storage tank to other locations.

[0090] S20 includes the following sub-steps:

[0091] S201. Determine if the liquid level offset is greater than the current liquid level window size.

[0092] If so, it indicates a significant change in liquid level, and the process will switch to S202.

[0093] If not, proceed to S204 to execute the static state determination process.

[0094] S202. Determine if the time offset is less than the current first time window size.

[0095] If so, it indicates a significant change in the liquid level change rate, and the process jumps to S203;

[0096] If not, proceed to S205 to execute the leak status determination process.

[0097] S203. Determine whether the liquid level offset is greater than 0.

[0098] If so, determine that the liquid inlet / outlet state of the storage tank is the liquid receiving state, and jump to S30;

[0099] If not, determine that the liquid inlet / outlet status of the storage tank is a liquid discharge status, and jump to S30.

[0100] S204, Static state determination process: Determine whether the time offset is not less than the current second time window size.

[0101] If so, it means that the liquid level has not changed significantly over a long period of time, and the liquid inlet and outlet of the storage tank is determined to be in a static state, and the process jumps to S30.

[0102] If not, it means that the current data is insufficient to determine the state of inflow and outflow of liquid, and subsequent data support is needed, thus ending the dynamic window analysis process within the current analysis cycle.

[0103] S205, Leakage Status Determination Process, including two sub-steps M1 and M2:

[0104] M1. Determine whether the time offset is less than the current second time window size.

[0105] If so, determine that the liquid inlet / outlet status of the storage tank is in a leaking state, and execute M2;

[0106] If not, determine that the liquid inlet and outlet state of the storage tank is static and jump to S30;

[0107] M2. Determine whether the liquid level offset is greater than 0.

[0108] If so, determine that the liquid inlet / outlet status of the storage tank is an external leakage state, and jump to S30;

[0109] If not, determine that the liquid inlet / outlet status of the storage tank is an internal leakage state, and jump to S30.

[0110] S30. Based on the liquid inflow / outflow status, update the time window size and liquid level window size according to a pre-defined dynamic window adjustment strategy; and take a snapshot of the current time point and the liquid level of the storage tank.

[0111] The dynamic window adjustment strategy includes multiple liquid inlet / outlet states of the storage tank, and the time window size and liquid level window size corresponding to each liquid inlet / outlet state.

[0112] In a preferred embodiment of this example, the dynamic window analysis process further includes step S40, which is used to calculate the flow rate based on the liquid level change rate of the storage tank when the storage tank is in a non-static state, and to trigger an overspeed alarm signal when the flow rate exceeds a preset value, so as to warn of the safety risks caused by static electricity generated at high flow rates.

[0113] Specifically, S40 includes:

[0114] S40. Determine whether the liquid inlet / outlet state of the storage tank is static.

[0115] If so, terminate the dynamic window analysis process within the current analysis cycle;

[0116] If not, execute the flow rate monitoring process. The flow rate monitoring process includes the following sub-steps:

[0117] A1. Calculate the liquid level change rate k based on the liquid level offset between the current liquid level and the liquid level at the time of the last snapshot; and determine the cross-sectional area S of the storage tank based on the current liquid level.

[0118] Specifically, the liquid level change rate k is the ratio of the liquid level offset to the time offset.

[0119] It should be noted that storage tanks for storing liquid materials are usually standard cylindrical or spherical. Therefore, for a specific storage tank, when its liquid level is known, the corresponding cross-sectional area can be deduced from the shape of the tank. This is existing technology and will not be elaborated here.

[0120] A2. Calculate the flow rate Q based on the liquid level change rate and the cross-sectional area according to formula (1); the formula (1) is: Q = kS (1).

[0121] A3. According to formula (2), calculate the flow velocity v based on the flow rate Q and the pipe diameter R of the inlet or outlet of the storage tank; the formula (2) is:

[0122]

[0123] A4. Determine whether the flow velocity v is greater than a preset value.

[0124] If not, terminate the dynamic window analysis process within the current analysis cycle.

[0125] If so, trigger an overspeed alarm signal and terminate the dynamic window analysis process within the current analysis cycle.

[0126] Based on the above dynamic window analysis process, the analysis method provided by the embodiments of the present invention can dynamically analyze the liquid level changes of the storage tank according to the time window size and the liquid level window size. Compared with the existing monitoring methods with fixed scanning cycle mode, it has better flexibility and higher accuracy.

[0127] Example 3

[0128] This embodiment provides a dynamic window analysis system for the input and output flow of a storage tank, including an acquisition module, a judgment module, an update module, a snapshot module, a display module, and a flow rate monitoring module.

[0129] Specifically:

[0130] The acquisition module is used to acquire the current time and the current liquid level of the storage tank; and to calculate the time offset and liquid level offset based on the time and liquid level of the last snapshot.

[0131] The determination module is used to compare the time offset with the current time window size and the liquid level offset with the current liquid level window size, and determine the current liquid inlet and outlet status of the storage tank based on the comparison results.

[0132] An update module is used to update the time window size and liquid level window size based on the liquid inflow and outflow status of the storage tank and according to a pre-defined dynamic window adjustment strategy. The dynamic window adjustment strategy includes multiple liquid inflow and outflow statuses of the storage tank, and the time window size and liquid level window size corresponding to each liquid inflow and outflow status.

[0133] The snapshot module is used to take a snapshot of the current time and the liquid level of the storage tank after each determination module determines the current liquid inlet and outlet status of the storage tank.

[0134] The flow rate monitoring module is used to calculate the liquid level change rate based on the liquid level at two adjacent snapshot time points, determine the cross-sectional area of ​​the storage tank based on the current liquid level, calculate the flow rate based on the liquid level change rate and the cross-sectional area, and calculate the flow velocity based on the flow rate and the pipe diameter of the inlet or outlet of the storage tank.

[0135] The flow rate monitoring module is also used to determine whether the flow rate is greater than a preset value. If so, it triggers an overspeed alarm signal.

[0136] The display module is used to display the liquid inlet and outlet status of the storage tank; and to display the flow rate and flow rate alarm signal of the storage tank.

[0137] Specifically, the display module includes, for example: Figure 4 The display screen shown displays information such as liquid level, inflow and outflow rate, and inflow and outflow velocity of multiple storage tanks in a table format. In order to help operators understand the overall situation of the storage tanks, the display screen can also further display information such as the name of the liquid medium stored in the storage tank, the nominal volume of the storage tank, the total mass, the apparent volume, the amount that can be paid, and the amount that can be received.

[0138] More specifically, the liquid level, inlet / outlet status, inlet / outlet flow rate, and inlet / outlet flow velocity of the storage tank can be represented by text, symbols, colors, and flashing status in the corresponding positions of the above table. For example, the inlet / outlet status of the storage tank is displayed by the text in the tank status column: "Inlet" indicates that the corresponding storage tank is in the inlet / outlet status, "Outlet" indicates that the corresponding storage tank is in the outlet / outlet status, "External Leakage" indicates that the corresponding storage tank is in the external leakage status, and "Internal Leakage" indicates that the corresponding storage tank is in the internal leakage status. As another example, the overspeed alarm signal is indicated by the corresponding flow velocity number turning yellow and flashing.

[0139] This embodiment also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the dynamic window analysis method for the liquid inlet and outlet status of the storage tank as described in Embodiment 1 or 2.

[0140] Since the systems / devices described in the above embodiments of the present invention are systems / devices used to implement the methods of the above embodiments of the present invention, those skilled in the art can understand the specific structure and modifications of the systems / devices based on the methods described in the above embodiments of the present invention, and therefore will not be repeated here. All systems / devices used in the methods of the above embodiments of the present invention fall within the scope of protection of the present invention.

[0141] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0142] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions.

[0143] It should be noted that any reference numerals placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In claims that enumerate several means, several of these means may be embodied by the same hardware. The use of the terms first, second, third, etc., is merely for convenience of expression and does not indicate any order. These terms can be understood as part of the component names.

[0144] Furthermore, it should be noted that in the description of this specification, the terms "one embodiment," "some embodiments," "embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Furthermore, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0145] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the claims should be interpreted to include both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0146] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, then this invention should also include these modifications and variations.

Claims

1. A dynamic window analysis method for the liquid inlet and outlet status of a storage tank, characterized in that, A dynamic window analysis process is executed within each analysis cycle, the dynamic window analysis process including: S10. Based on the current time and the current liquid level in the storage tank, and based on the time and liquid level in the storage tank at the time of the last snapshot, calculate the time offset and liquid level offset. S20. Compare the time offset with the current time window size and the liquid level offset with the current liquid level window size respectively. Based on the comparison results, determine the current liquid inlet and outlet status of the storage tank. S30. Based on the liquid inflow / outflow status, update the time window size and liquid level window size according to the pre-defined correspondence between the liquid inflow / outflow status and the time window size and liquid level window size; and take a snapshot of the current time point and the liquid level of the storage tank.

2. The analytical method according to claim 1, characterized in that, The liquid inlet / outlet states include: receiving / paying state, static state, and leakage state.

3. The analytical method according to claim 2, characterized in that, The time window size includes a first time window size and a second time window size, and the first time window size is smaller than the second time window size; S20 includes: S201. Determine if the liquid level offset is greater than the current liquid level window size. If not, proceed with the static state determination process; If so, execute S202; S202. Determine if the time offset is less than the current first time window size. If so, determine the liquid inlet / outlet status of the storage tank as a receipt / payment status; If not, execute the leak status determination process.

4. The analytical method according to claim 3, characterized in that, The receipt and payment status includes: liquid receipt status and liquid payment status; When the liquid inlet / outlet status of the storage tank is determined to be in a receiving / paying state, step S202 further includes: Determine whether the liquid level offset is greater than 0. If so, determine the liquid inlet / outlet status of the storage tank as the liquid collection status; If not, the liquid inlet / outlet status of the storage tank is determined to be a discharge status.

5. The analytical method according to claim 3, characterized in that, In S201, the static state determination process includes: Determine whether the time offset is not less than the current second time window size. If so, determine that the liquid inlet and outlet state of the storage tank is static, and jump to S30; If not, terminate the dynamic window analysis process within the current analysis cycle.

6. The analytical method according to claim 3, characterized in that, The leakage status includes external leakage status and internal leakage status; In S202, the leakage status determination process includes: M1. Determine whether the time offset is less than the current second time window size. If so, determine that the liquid inlet / outlet status of the storage tank is in a leaking state, and execute M2; If not, the liquid inlet and outlet state of the storage tank is determined to be static. M2. Determine whether the liquid level offset is greater than 0. If so, the liquid inlet and outlet status of the storage tank is determined to be an external leakage state; If not, the liquid inlet and outlet status of the storage tank is determined to be an internal leakage state.

7. The analytical method according to any one of claims 1 to 6, characterized in that, When the liquid inlet / outlet status of the storage tank is determined to be either a receiving / discharging state or a leakage state, the analysis method further includes: executing a flow rate monitoring process, wherein the flow rate monitoring process includes: A1. Calculate the liquid level change rate k based on the liquid level offset between the current liquid level and the liquid level at the time of the last snapshot; and determine the cross-sectional area S of the storage tank based on the current liquid level. A2. Calculate the flow rate Q based on the liquid level change rate and the cross-sectional area according to formula (1); formula (1) is: (1); A3. According to formula (2), calculate the flow velocity v based on the flow rate Q and the pipe diameter R of the inlet or outlet of the storage tank; the formula (2) is: (2); A4. Determine whether the flow rate v is greater than a preset value. If so, trigger an overspeed alarm signal.

8. A dynamic window analysis system for input and output flow rates of a storage tank, characterized in that, include: The acquisition module is used to acquire the current time and the current liquid level in the storage tank. In addition, based on the time of the last snapshot and the liquid level in the tank, calculate the time offset and the liquid level offset; The determination module is used to compare the time offset with the current time window size and the liquid level offset with the current liquid level window size, and determine the current liquid inlet and outlet status of the storage tank based on the comparison results. The update module is used to update the time window size and liquid level window size based on the liquid inflow and outflow status of the storage tank, according to the pre-defined correspondence between the liquid inflow and outflow status and the time window size and liquid level window size. The snapshot module is used to take a snapshot of the current time and the liquid level of the storage tank after each determination module determines the current liquid inlet and outlet status of the storage tank; The display module is used to display the liquid inlet and outlet status of the storage tank.

9. The analysis system according to claim 8, characterized in that, The analysis system also includes: The flow rate monitoring module is used to calculate the liquid level change rate based on the liquid level at two adjacent snapshot time points, determine the cross-sectional area of ​​the storage tank based on the current liquid level, calculate the flow rate based on the liquid level change rate and the cross-sectional area, and calculate the flow rate based on the flow rate and the pipe diameter of the inlet or outlet of the storage tank. The flow rate monitoring module is also used to determine whether the flow rate is greater than a preset value; if so, it triggers an overspeed alarm signal. The display module is also used to display the flow rate and flow rate alarm signal of the storage tank.

10. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the dynamic window analysis method for the liquid inlet and outlet status of a storage tank as described in any one of claims 1 to 7.