Multifunctional flow computer
By designing a multifunctional traffic computer, including real-time acquisition and verification modules and redundant computing modules, the problem of inaccurate signal judgment in the existing technology is solved, and higher flow measurement accuracy and system reliability are achieved.
Patent Information
- Application Number
- CN202411400553.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-02-21
AI Technical Summary
Existing flow computers cannot accurately judge the accuracy of signals such as flow, temperature, and pressure when the acquisition channel fails, which affects the measurement accuracy and alarm function.
Design a multifunctional flow computer, including power module, display module, input module, output module and flow metering module, through the acquisition channel real-time verification module and redundant flow calculation module, judge the acquisition channel faults and generate warning information to ensure flow calculation accuracy.
It realizes accurate judgment and alarm of signals such as flow rate, temperature, and pressure, and improves the accuracy of flow rate measurement and the reliability of the system.
Smart Images

Figure CN119492422A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of flow computers, and in particular to a multifunctional flow computer. Background Art
[0002] A flow computer is a device used to measure and calculate the flow of fluids (such as gases, liquids, etc.). It is usually used in conjunction with flow meters (such as ultrasonic flow meters, mass flow meters, turbine flow meters, differential pressure flow meters, etc.), temperature transducers, pressure transducers, and component analyzers to form a metering system to accurately measure and process fluid flow. The main functions of a flow computer include: data acquisition, data processing, data output and communication, as well as data alarm and diagnosis, to ensure the long-term stability of the metering system (especially the custody transfer metering system). However, as people's requirements for the accuracy of custody transfer metering systems continue to increase, the functions of existing flow computers cannot meet the requirements well.
[0003] Existing flow computers usually only collect a single type of signal output by the flow meter or transmitter at the same time, without considering that once the collection channel fails, the accuracy of the flow, temperature, pressure and other signals of the fluid received from the flow meter and temperature / pressure transmitter will be impossible to judge, thereby affecting the subsequent measurement accuracy alarm function.
[0004] Therefore, it is necessary to design a flow computer that can improve the accuracy of fluid flow measurement and data processing to better meet user needs. Summary of the invention
[0005] In order to further improve the accuracy of fluid flow measurement and data processing, the present application provides a multifunctional flow computer.
[0006] In a first aspect, the present application provides a multifunctional flow computer, comprising: a power module, a display module, an input module, an output module, and a flow metering module; The power module is used to provide power supply for the flow computer; The display module is used to display the output of the output module; The input module is used to collect the output values of the flow meter, the temperature / pressure transmitter and the component analyzer in real time; wherein the output value of the flow meter includes the output value of the flow meter collected through the digital communication interface and the analog output interface of the flow meter, and the output value of the temperature / pressure transmitter includes the output value of the temperature / pressure transmitter collected through the digital communication interface and the analog output interface of the temperature / pressure transmitter; The flow metering module is connected to both the input module and the output module, and includes: a flow calculation and integration module and a collection channel real-time verification module; the flow calculation and integration module is used to perform flow calculation and integration according to the output values of the real-time collection flow meter, temperature / pressure transmitter and component analyzer; the collection channel real-time verification module is used to compare the output value of the flow meter collected through the digital communication interface and the analog output interface, if the difference between the two values is greater than the preset flow difference, then determine that at least one of the two collection channels corresponding to the output value of the collected flow meter is faulty and generate a fault warning message; used to compare the output value of the temperature / pressure transmitter collected through the digital communication interface and the analog output interface, if the difference between the two values is greater than the preset measurement difference, then determine that at least one of the two collection channels corresponding to the output value of the collected temperature / pressure transmitter is faulty and generate a fault warning message; The output module is used to output the flow calculation and integration results, acquisition channel fault and fault warning information output by the flow metering module to the display module or a third-party device that establishes communication with the flow computer.
[0007] By adopting the above solution, in addition to conventional flow calculation and cumulative flow integration, it also supports multiple acquisition channels to collect the output values of different types of flow meters and the output values of temperature / pressure transmitters. By comparison, it is determined whether there is a fault and an alarm is issued. The acquisition channel fault is discovered and reminded in time, and the accuracy of the flow, temperature, pressure and other signals output by the collected flow meter and temperature / pressure transmitter is determined to avoid affecting the subsequent measurement accuracy alarm function.
[0008] Preferably, it also includes: a redundant flow metering module and a flow metering module verification module; The redundant flow metering module, as a redundant design of the flow metering module, has the same function as the flow metering module; The flow metering module verification module is used to compare the output values obtained by flow calculation and integration using the flow calculation module and the redundant flow metering module respectively. If the difference in the output values of the two calculation modules is greater than the corresponding preset flow calculation difference or the preset flow integration difference, it is determined that at least one of the flow calculation module and the redundant flow metering module has a fault and a warning message is generated.
[0009] By adopting the above scheme, compared with the prior art in which the collected data is processed from the perspective of data processing itself, the entire calculation process does not take into account the situation where the flow computer itself fails in the calculation process, and it is impossible to ensure that the trade transfer is carried out normally and accurately; the present application carries out a redundant design for the flow calculation module, performs flow calculation or integrated value comparison, and once the data difference exceeds the corresponding preset difference, it is determined that at least one channel is faulty and a warning is issued, so as to realize timely detection of the failure of the flow calculation module in the flow computer, greatly improve the reliability of the flow computer, and ensure the accuracy of the flow calculation.
[0010] Preferably, the flow metering module further comprises: a flow meter online verification module; The flow meter online verification module is used to extract features from the output value of the flow meter currently collected and determine the type of the flow meter, the types of flow meters include: ultrasonic flow meter, mass flow meter; based on the type of the flow meter obtained by the judgment, the corresponding flow meter type online inspection method is matched, combined with the output value of the collected temperature / pressure transmitter and the output value of the component analyzer, the flow meter online inspection is completed according to the matching online inspection method, and the online inspection result of whether the current flow meter measurement result is accurate is output; The online inspection method for ultrasonic flowmeter matched with the ultrasonic flowmeter includes: judging whether the currently collected output value of the flowmeter and the currently collected output value of the temperature / pressure transmitter meet the online verification conditions; specifically including: if the size and stability of the flow measurement value output by the flowmeter, the size and stability of the temperature and pressure output by the temperature / pressure transmitter are all within the corresponding preset range, and the sound velocity deviation, maximum sound velocity difference, and sound velocity measurement repeatability calculated based on the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter, and the collected output value of the component analyzer meet the corresponding limit provisions, then the flowmeter measurement result is deemed to be accurate; The online inspection method for the ultrasonic flowmeter matched with the mass flowmeter includes: judging whether the currently collected output value of the flowmeter and the currently collected output value of the temperature / pressure transmitter meet the online verification conditions, specifically including: if the size and stability of the flow measurement value output by the flowmeter, the size and stability of the temperature and pressure output by the temperature / pressure transmitter are all within the corresponding preset range, and the density deviation, maximum density difference, and density measurement repeatability calculated based on the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter, and the collected output value of the component analyzer meet the corresponding limit provisions, then the flowmeter measurement result is deemed to be accurate.
[0011] By adopting the above scheme, compared with the prior art, the diagnostic functions of the flow computer and the primary instrument (flow meter, temperature / pressure transmitter, component analyzer) in the metering system are all realized through the remote diagnostic system, and it is impossible to make timely judgments on the accurate measurement of the primary instrument; and the diagnostic function in the existing flow computer does not have a differential diagnostic function, and it is impossible to perform targeted diagnosis on a specific type of primary instrument, and the measurement accuracy cannot be guaranteed; the present application performs online verification of the output value of the flow meter collected in real time and the output value of the temperature / pressure transmitter currently collected, and promptly verifies the measurement effect of the flow meter, and extracts and classifies the features of the signals collected by different types of flow meters, and sets corresponding online inspection methods, so as to complete the inspection of the measurement effect of the specific type of flow meter in a targeted manner and ensure the accuracy of the measurement results.
[0012] Preferably, it also includes: an encryption module; the encryption module includes: a data encryption and analysis module built into the flow computer and the host computer, which is used to encrypt and decrypt the data transmission between the flow computer and the host computer.
[0013] By adopting the above solution, compared with the existing technology, flow computers mostly use standard industrial communication protocols such as Modbus TCP / IP, Profibus, Profinet, etc. for data transmission, which are easy to be acquired or monitored by third-party devices. Once the data is tampered with, it will affect the accurate measurement of fluid flow; the present application has built-in data encryption and parsing modules in the flow computer and the upper device computer to ensure that the transmitted data is not maliciously tampered with, so as to prevent affecting the accuracy of flow measurement.
[0014] Preferably, the serial communication signal output by the flow meter is collected through the digital communication interface of the flow meter, and the frequency signal output by the flow meter is collected through the analog output interface of the flow meter; the HART communication signal output by the temperature / pressure transmitter is collected through the digital communication interface of the temperature / pressure transmitter, and the current signal output by the temperature / pressure transmitter is collected through the analog output interface of the temperature / pressure transmitter; The real-time verification module for acquisition channels is further used to compare the signal quality of the serial communication signal acquired through the digital communication interface of the flowmeter with the signal quality of the frequency signal acquired through the analog output interface of the flowmeter, and when it is determined that at least one of the two acquisition channels corresponding to the acquired output value of the flowmeter is faulty, determine that the acquisition channel corresponding to the signal with poor signal quality output by the acquired flowmeter is faulty; and is further used to compare the signal quality of the HART communication signal acquired through the digital communication interface of the temperature / pressure transmitter with the signal quality of the current signal acquired through the analog output interface of the temperature / pressure transmitter, and when it is determined that at least one of the two acquisition channels corresponding to the acquired output value of the temperature / pressure transmitter is faulty, determine that the acquisition channel corresponding to the signal with poor signal quality output by the acquired temperature / pressure transmitter is faulty.
[0015] By adopting the above solution, considering that the acquisition channel with low signal quality is more likely to fail, the quality of the signals collected by each acquisition channel is compared to ultimately determine which acquisition channel has a failure, so as to facilitate timely maintenance.
[0016] Preferably, it is also used for the real-time verification module of the acquisition channel, and is also used to determine whether at least one of the two acquisition channels corresponding to the output value of the collected flow meter is faulty, and when the signal quality of the serial communication signal collected through the digital communication interface of the flow meter is the same as the signal quality of the frequency signal collected through the analog output interface of the flow meter, according to the specific division type of the flow size of the current scene and the number of historical acquisition channel failures in different types of scenes, the acquisition channel with the largest number of historical acquisition channel failures in the same type of scene as the current scene is used as the faulty acquisition channel; wherein the division type of the flow size includes: high flow scene and low flow scene divided based on the comparison between the real-time collected flow measurement value and the preset flow value; It is also used to determine whether at least one of the two acquisition channels corresponding to the output value of the collected temperature / pressure transmitter is faulty, and when the signal quality of the HART communication signal collected through the digital communication interface of the temperature / pressure transmitter is the same as the signal quality of the current signal collected through the analog output interface of the temperature / pressure transmitter, according to the specific division type of temperature / pressure related to the current scene and the statistical number of historical acquisition channel failures in different types of scenes, the acquisition channel with the largest number of historical acquisition channel failures in the same type of scene as the current scene is used as the faulty acquisition channel; wherein the division types related to temperature magnitude include: high temperature scenes and low temperature scenes divided based on the comparison between the real-time collected temperature magnitude and the preset temperature magnitude; the division types related to pressure magnitude include: high pressure scenes and low pressure scenes divided based on the comparison between the real-time collected pressure magnitude and the preset pressure magnitude.
[0017] By adopting the above solution, considering that the quality of signals collected by different acquisition channels may be almost the same, combined with the experience of the number of historical failures of each channel in different types of scenarios, the acquisition channel that is more likely to fail in the current scenario is judged, thereby more accurately determining the specific faulty acquisition channel.
[0018] Preferably, multiple flow calculation and integration modules can be set up, and the flow calculation and integration modules can be divided into flow calculation and integration modules with different levels of computing resources according to the size of computing resources; the current scene is divided based on the size of the flow measurement value collected in real time, and is divided into scenes within different flow measurement value ranges; the flow calculation and integration module is selected based on the current scene after the division type; wherein, the scene within each flow measurement value range is matched with a flow calculation and integration module with the corresponding level of computing resources.
[0019] By adopting the above solution, flow calculation and integration modules of various computing resources are set up, and flow calculation and integration modules with high computing resources are provided for high-flow scenarios, so that high demands for real-time flow processing can also be met.
[0020] Preferably, the flow metering module and the redundant flow metering module are both provided with a data cache area, and when it is determined that at least one of the flow calculation module and the redundant flow metering module fails, the output value is stored in the corresponding data cache area respectively; when feedback of a specific faulty object is received, the output value of the non-faulty module is obtained from the data cache area of the non-faulty module as the normal flow calculation and integration result.
[0021] By adopting the above solution, in order to ensure that the flow calculation and integration results are stable and reliable, a data cache area is set to save all output flow calculation and integration results. When any flow calculation module fails, the correct output flow meter and integration results can still be obtained.
[0022] Preferably, the flow meter online verification module is also used to match the type of flow meter obtained based on the judgment to the corresponding type of flow meter online inspection model, input the currently collected output value of the flow meter, the currently collected output value of the temperature / pressure transmitter and the currently collected output value of the component analyzer into the corresponding type of flow meter online inspection model, and output an online inspection result of whether the flow meter measurement result is accurate; use the online inspection result obtained by the matching online inspection method to verify the online inspection result obtained by the matching online inspection model; if the online inspection result obtained by the matching online inspection model is different from the online inspection result obtained by the matching online inspection model, it is considered that the verification has failed and it is judged that the online inspection model may have a fault, and the online detection model is optimized and trained until the verification is successful; The ultrasonic flowmeter online inspection model matched with the ultrasonic flowmeter adopts a neural network model, the model input is the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter and the output value of the component analyzer, and the output is whether the flowmeter measurement result is accurate; specifically, it is generated by training the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical ultrasonic flowmeter measurement result is accurate, and the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical ultrasonic flowmeter measurement result is inaccurate; The mass flowmeter online inspection model matched with the mass flowmeter adopts a neural network model: the model input is the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter and the collected output value of the component analyzer, and the output is whether the flowmeter measurement result is accurate; specifically, it is generated by training the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical mass flowmeter measurement result is accurate, and the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical mass flowmeter measurement result is inaccurate.
[0023] By adopting the above technical solution, the online inspection results obtained by the matching-based online inspection method are used to verify the online inspection obtained by the matching-based online inspection model, so as to optimize the online inspection model designed based on deep learning.
[0024] Preferably, the encryption module is also used to periodically receive key update commands and new key data sent by the dynamic key management module in the external server, and return update results to the dynamic key management module in the external server.
[0025] By adopting the above solution and setting up dynamic key management, it is further ensured that the transmitted data is not maliciously tampered with, thereby preventing the accuracy of traffic metering from being affected.
[0026] In summary, this application has the following beneficial effects: Considering the entire process from the collection of flow-related parameters by the flow computer to the processing of flow parameters, the calculation of flow parameters and the uploading of flow parameters after processing and calculation, the collection channel verification module, redundant flow calculation module and flow meter online inspection module are designed to promptly discover possible faults to ensure the accuracy of the collection and calculation of fluid flow, temperature and pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a structural schematic diagram of the multifunctional flow computer described in a specific embodiment; Figure 2 It is a schematic diagram of encryption and decryption performed by the encryption module in the multifunctional flow computer in the specific embodiment. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0029] like Figure 1 As shown, an embodiment of the present application discloses a multifunctional flow computer, which specifically includes: a power module 1, a display module 2, an input module 3, a flow metering module 4, a redundant flow metering module 5, a flow metering module verification module 6, an output module 7 and an encryption module 8.
[0030] Specifically, the power module 1 is used to provide power supply for the entire flow computer.
[0031] The display module 2 includes a human-machine interface, a screen and a screen driving circuit, and is used to display the output of the flow computer, including: the collected flow parameters and the result values processed and calculated based on the collected flow parameters; it is also used to realize human-machine interaction content and parameter input.
[0032] The input module 3 is used to collect the output values of the flow meter, temperature transmitter, pressure transmitter and component analyzer in real time. Specifically, the output value of the flow meter includes: the output value of the flow meter collected through the digital communication interface of the flow meter (communication protocols include: Uniform protocol and MODBUS protocol) (such as the ultrasonic flow meter collects RS485 serial communication signals to represent the flow measurement value), the output value of the flow meter collected through the analog output interface of the flow meter (such as current or pulse / frequency signals to represent the flow measurement value); the output value of the temperature / pressure transmitter includes: the output value of the temperature / pressure transmitter collected through the digital communication interface of the temperature / pressure transmitter (communication protocols include: HART protocol or Modbus protocol) (such as HART communication signals to represent the temperature measurement value / pressure measurement value), the output value of the temperature / pressure transmitter collected through the analog output interface of the temperature / pressure transmitter (such as 4-20mA current signals or 0-5V voltage signals to represent the temperature measurement value / pressure measurement value); the output value of the component analyzer is the component content, etc.
[0033] The flow metering module 4 is in communication connection with the input module 3 , the output module 7 and the display module 2 ; it specifically comprises: a flow calculation and integration module 41 , a collection channel real-time verification module 42 and a flow meter online verification module 43 .
[0034] The flow calculation and integration module 41, as the core of the entire flow computer, is used to perform flow calculation and integration based on the output values of the real-time acquisition flow meter, temperature / pressure transmitter and component analyzer; including calculation of operating flow to standard flow, volume flow integration, mass flow integration, energy flow integration, etc.
[0035] Among them, the flow calculation and integration module 41 can be set in multiple numbers, and the flow calculation and integration module 41 can be divided into flow calculation and integration modules 41 with different levels of computing resources according to the size of computing resources; in this embodiment, the flow calculation and integration module will be divided into a flow calculation and integration module with high computing resources and a flow calculation and integration module with low computing resources according to the size of computing resources; the current scene is divided based on the size of the flow measurement value collected in real time, and is divided into scenes in different flow measurement value ranges; in this embodiment, the current scene is divided into high-flow scene and low-flow scene; the flow calculation and integration module is selected correspondingly based on the current scene after the division type; wherein, the scene in each flow measurement value range corresponds to the flow calculation and integration module matched with the corresponding level of computing resources; in this embodiment, if the current scene is a high-flow scene, the flow metering module with high computing resources is selected accordingly; if the current scene is a low-flow scene, the flow metering module with low computing resources is selected accordingly.
[0036] The real-time verification module 42 of the acquisition channel is used to compare the output value (real-time flow measurement value) of the flow meter acquired through the digital communication interface and the analog (frequency, current or voltage) output interface. If the difference between the two values is greater than the preset flow difference, it is determined that at least one of the two acquisition channels corresponding to the acquired output value of the flow meter is faulty and a fault warning message is generated; it is used to compare the output value (real-time temperature measurement value) of the temperature transmitter acquired through the digital communication interface and the analog (frequency, current or voltage) output interface. If the difference between the two values is greater than the preset temperature measurement difference, it is determined that at least one of the two acquisition channels corresponding to the acquired output value of the temperature transmitter is faulty and a fault warning message is generated; it is used to compare the output value (real-time pressure measurement value) of the pressure transmitter acquired through the digital communication interface and the analog (frequency, current or voltage) output interface. If the difference between the two values is greater than the preset pressure measurement difference, it is determined that at least one of the two acquisition channels corresponding to the acquired output value of the pressure transmitter is faulty and a fault warning message is generated.
[0037] Specifically, in order to determine which acquisition channel is faulty, to facilitate timely maintenance and to ensure the accuracy of the output values collected subsequently, the acquisition channel real-time verification module 42 is also used to compare the signal quality of the serial communication signal collected through the digital communication interface of the flowmeter with the signal quality of the frequency signal collected through the analog (frequency) output interface of the flowmeter, and when it is determined that at least one of the two acquisition channels corresponding to the output value of the collected flowmeter is faulty, determine that the acquisition channel corresponding to the signal with poor signal quality output by the collected flowmeter is faulty; and also used to compare the signal quality of the HART communication signal collected through the digital communication interface of the temperature / pressure transmitter with the signal quality of the current signal collected through the analog (current) output interface of the temperature / pressure transmitter, and when it is determined that at least one of the two acquisition channels corresponding to the output value of the collected temperature / pressure transmitter is faulty, determine that the acquisition channel corresponding to the signal with poor signal quality output by the collected temperature / pressure transmitter is faulty.
[0038] Among them, the judgment of signal quality can be based on weighted calculation of multiple evaluation indicators such as signal-to-noise ratio, signal stability (time domain stability and frequency domain stability), bit error rate, etc. to obtain a signal quality index value; or a single evaluation indicator can be used for calculation to obtain a signal quality index value; in this embodiment, the signal-to-noise ratio of the signal is used as the signal quality index value. If the comparison result of the signal quality index value is: the signal quality index value corresponding to the signal collected through the digital communication interface is less than the signal quality index value corresponding to the signal collected through the analog (frequency or current) interface, then the digital communication interface is determined to be faulty.
[0039] In addition, considering that the signal quality may not be able to determine the faulty acquisition channel, the acquisition channel failure is determined in combination with the current scene type and the historical acquisition channel failure frequency to ensure the accuracy of the output value collected subsequently. The acquisition channel real-time verification module 42 is also used for the acquisition channel real-time verification module, and is also used to determine that at least one of the two acquisition channels corresponding to the output value of the collected flow meter is faulty, and when the signal quality of the serial communication signal collected through the digital communication interface of the flow meter is the same as the signal quality of the frequency signal collected through the analog (frequency) output interface of the flow meter (the signal quality index value is equal), according to the specific division type of the current scene related to the flow size and the number of historical acquisition channel failures in different types of scenes, the acquisition channel with the largest number of historical acquisition channel failures in the same type of scene as the current scene is used as the faulty acquisition channel; wherein the division type related to the flow size includes: high flow scene and low flow scene divided based on the comparison of the real-time collected flow measurement value and the preset flow value, if the real-time collected flow measurement value is greater than the preset flow value, it is divided into a high flow scene, otherwise, it is a low flow scene; It is also used to determine whether at least one of the two acquisition channels corresponding to the output value of the collected temperature / pressure transmitter is faulty, and when the signal quality of the HART communication signal collected through the digital communication interface of the temperature / pressure transmitter is the same as the signal quality of the current signal collected through the analog (current) output interface of the temperature / pressure transmitter, according to the specific division type of temperature / pressure related to the current scene and the statistical number of historical acquisition channel failures in different types of scenes, the acquisition channel with the largest number of historical acquisition channel failures in the same type of scene as the current scene is used as the faulty acquisition channel; wherein the division type related to temperature magnitude includes: high temperature scene and low temperature scene divided based on the comparison between the real-time collected temperature magnitude and the preset temperature, if the real-time collected temperature magnitude is greater than the preset temperature, it is divided into a high temperature scene, otherwise, it is a low temperature scene; the division type related to pressure magnitude includes: high pressure scene and low pressure scene divided based on the comparison between the real-time collected pressure magnitude and the preset pressure, if the real-time collected pressure magnitude is greater than the preset pressure, it is divided into a high pressure scene, otherwise, it is a low pressure scene.
[0040] Among them, the number of historical collection channel failures adopts the number of failures of each collection channel in the period before the current time. For example: if the current scene division type is a high-flow scene, the number of failures of the analog (frequency) output interface of the flowmeter in the historical high-flow scene is large, and it is determined that the frequency output interface of the flowmeter is faulty; if the current scene division type is a low-flow scene, the number of failures of the digital communication interface of the flowmeter in the historical low-flow scene is large, and it is determined that the digital communication interface of the flowmeter is faulty; if the current scene division type is a high-temperature scene, the number of failures of the analog (current) input interface of the temperature transmitter in the historical high-temperature scene is large, and it is determined that the current input interface of the temperature transmitter is faulty.
[0041] Taking into account that different types of flow meters collect different signals and have different corresponding signal frequencies and other characteristics, feature extraction is performed on the output signals of the collected flow meters. Deep learning is used to determine the specific feature types of the extracted flow meters, so as to achieve targeted online inspection of different types of flow meters.
[0042] The flow meter online verification module 43 is used to extract features from the output value of the flow meter currently collected and determine the type of the flow meter, and the types of flow meters include: ultrasonic flow meter, mass flow meter; based on the type of flow meter obtained by judgment, the corresponding flow meter type online inspection method is matched, combined with the output value of the temperature / pressure transmitter currently collected and the output value of the component analyzer, the flow meter online inspection is completed according to the matching online inspection method, and the online inspection result of whether the current flow meter measurement result is accurate is output.
[0043] The specific matching and inspection process includes: the online inspection method of the ultrasonic flowmeter matched by the ultrasonic flowmeter includes: judging whether the currently collected output value of the flowmeter and the currently collected output value of the temperature / pressure transmitter meet the online verification conditions; specifically including: if the size and stability of the flow measurement value output by the flowmeter, the size and stability of the temperature and pressure output by the temperature / pressure transmitter are all within the corresponding preset range (such as: flow measurement value preset range, temperature measurement value preset range, flow measurement value stability preset index value, etc.), and the sound velocity deviation, maximum sound velocity difference, and measurement repeatability calculated based on the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter, and the collected output value of the component analyzer meet the corresponding restrictions, then the current flowmeter measurement result is deemed accurate; wherein, the specific process of calculating the sound velocity deviation, maximum sound velocity difference, and sound velocity measurement repeatability includes: According to the method of AGA Report No. 8 and AGA Report No. 10 for natural gas and other hydrocarbon gases, the theoretical sound velocity is calculated based on the collected composition, temperature and pressure data; the calculated theoretical sound velocity is compared with the average sound velocity measured by the flow meter, and the sound velocity deviation is calculated according to formula (1). At the same time, the measured sound velocity of each channel is recorded, and the maximum sound velocity difference is calculated according to formula (2). Repeat the above steps, measure continuously for no less than 3 times, and calculate the measurement repeatability according to formula (3). The sound velocity deviation, maximum sound velocity difference and sound velocity measurement repeatability shall comply with the sound velocity verification / inspection part of JJG_1030 "Ultrasonic Flowmeter Calibration Procedure" and the sound velocity deviation limit provisions of GB / T 30500 "Gas Ultrasonic Flowmeter Sound Velocity Inspection Method in Use".
[0044] (1) In the formula, It represents the deviation between the measured average sound speed and the calculated sound speed, %; Indicates the average sound velocity measured by the ultrasonic flowmeter, m / s; Indicates the sound velocity measured and calculated by the ultrasonic flowmeter, m / s; (2) In the formula, Indicates the maximum sound velocity difference measured by a single sound channel, m / s; Indicates the maximum sound velocity measured by a single sound channel, m / s; Indicates the minimum sound velocity measured by a single sound channel, m / s; (3) In the formula, Indicates the repeatability of sound velocity measurement, %; Represents the sound velocity deviation of the ith measurement, %; It represents the average value of sound velocity deviation measured n times, %; At the same time, during the inspection process, the flow computer reads the following diagnostic measurement data of the ultrasonic flow meter in real time and archives them: a. The instantaneous sound velocity value of each channel of the inspected flow meter; b. The average sound velocity value of each channel during the sampling time; c. The total average sound velocity value of the inspected flow meter during the sampling time; d. The transmission time of the downstream and upstream flow; e. The flow velocity value of each channel of the inspected flow meter; f. The average axial flow velocity through the flow meter; g. The molar percentage of the sample taken out by the sampler; h. The average value of the temperature and pressure signals in the pipeline during the sampling time. In the flow computer, the sound velocity inspection / verification of the ultrasonic flow meter will be executed in a loop as long as the fluid state is satisfied, and the length and cycle of each inspection / verification can be customized.
[0045] Normally, a gas mass flow meter system does not include a pressure measuring instrument. This application requires adding an instrument for real-time measurement of temperature, pressure and components to the gas mass flow meter system.
[0046] The online inspection method for ultrasonic flowmeters matched with mass flowmeters includes: judging whether the currently collected output value of the flowmeter and the currently collected output value of the temperature / pressure transmitter meet the online verification conditions, specifically including: if the size and stability of the flow measurement value output by the flowmeter, the size and stability of the temperature and pressure output by the temperature / pressure transmitter are all within the corresponding preset range, and the density deviation, maximum density difference, and density measurement repeatability calculated based on the collected density output value of the flowmeter, the collected output value of the temperature / pressure transmitter, and the collected output value of the component analyzer meet the corresponding limit value regulations, then the current flowmeter measurement result is deemed accurate. Among them, the specific process of calculating the density deviation, maximum density difference, and density measurement repeatability includes: According to the method of GB_T 11062, ISO6976 and AGA Report No. 8 for natural gas and other hydrocarbon gases, the theoretical density is calculated based on the collected component, temperature and pressure data; the calculated theoretical density is compared with the average density measured by the flow meter, and the density deviation is calculated according to formula (4). At the same time, the measured density of the flow meter during the sampling time is recorded once every second, and the maximum density difference is calculated according to formula (5). Repeat the above steps, measure continuously for no less than 3 times, and calculate the measurement repeatability according to formula (6). The density deviation, maximum density difference and repeatability should be less than the set density deviation limit. The calculation method of density deviation, maximum density difference and repeatability is as follows: (4) In the formula, It represents the deviation between the measured average density and the calculated density, %; Indicates the average density measured by the mass flow meter, ; Indicates that the mass flow meter measures the calculated density, ; (5) In the formula, Indicates density measurement repeatability, %; Represents the density deviation of the ith measurement, %; Represents the average value of density deviation measured n times, %; At the same time, during the inspection process, the flow computer reads the following diagnostic measurement data of the mass flow meter in real time and archives them: a. The average mass flow through the flow meter. b. The average density value of the flow meter during the sampling time; c. The molar percentage of natural gas; d. The average value of the temperature and pressure signals in the pipeline during the sampling time. In the flow computer, the density inspection / verification of the mass flow meter will be executed in a loop as long as the fluid state meets the requirements. The length and cycle of each inspection / verification can be customized.
[0047] Taking into account the general computational efficiency of a single online inspection scheme, a deep learning algorithm can be used to establish a dedicated online inspection model for each type of flow meter online inspection, and the accuracy of the online inspection model can be verified based on the calculation results of the online inspection scheme to obtain a more accurate online inspection model.
[0048] The flow meter online verification module 43 is also used to match the corresponding flow meter type online inspection model based on the type of flow meter obtained by judgment, input the currently collected output value of the flow meter, the currently collected output value of the temperature / pressure transmitter and the output value of the component analyzer into the corresponding flow meter type online inspection model, and output an online inspection result of whether the current flow meter measurement result is accurate; use the online inspection result obtained by the matching online inspection method to verify the online inspection obtained by the matching online inspection model. If the online inspection result obtained by the matching online inspection model is different from the online inspection result obtained by the matching online inspection model, it is considered that the verification has failed and it is judged that the online inspection model may have a fault, and the online detection model is optimized and trained until the verification is successful; the specific matching process and model construction optimization process include: The ultrasonic flowmeter online inspection model matched with the ultrasonic flowmeter adopts a neural network model, the model input is the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter and the output value of the component analyzer, and the output is whether the flowmeter measurement result is accurate; specifically, it is generated by training the collected output value of the ultrasonic flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical ultrasonic flowmeter measurement result is accurate, and the collected output value of the ultrasonic flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical ultrasonic flowmeter measurement result is inaccurate; the mass flowmeter online inspection model matched with the mass flowmeter adopts a neural network model: the model input is the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer, and the output is whether the flowmeter measurement result is accurate; specifically, it is generated by training the collected output value of the mass flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical mass flowmeter measurement result is accurate, and the collected output value of the mass flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical mass flowmeter measurement result is inaccurate.
[0049] In addition, in order to further optimize the online inspection models of various types of flow meters, the inputs of the online inspection models of various types of flow meters may also include the average measurement value, maximum measurement value and result value of repeatability calculation of the corresponding type of flow meter, etc. During the training process, the average measurement value, maximum measurement value and result value of repeatability calculation of the corresponding type of historical flow meter are also obtained as training data.
[0050] The redundant flow metering module 5, as a redundant design of the flow metering module, is the same as the flow metering module 5 and has the same functional modules; each flow calculation module has a corresponding redundant flow metering module, and there may be multiple corresponding redundant flow metering modules.
[0051] The flow metering module verification module 6 is used to compare the output values obtained by using the flow calculation module and the redundant flow metering module to perform flow calculation and integration respectively. If the difference in the output values of the two calculation modules is greater than the corresponding preset flow calculation or preset flow integration difference, that is, the difference in the output value of the flow calculation using the flow calculation module and the output value of the flow calculation using the redundant flow metering module is greater than the corresponding preset flow integration difference, or the difference in the output value of the flow integration using the flow calculation module and the output value of the flow integration using the redundant flow metering module is greater than the corresponding preset flow integration difference; then it is determined that at least one of the flow calculation module and the redundant flow metering module has a fault and generates a warning message. Among them, considering that the situation where the redundant flow calculation module fails at the same time is almost non-existent, the output values obtained by using the flow calculation module and the redundant flow metering module (different) to perform flow calculation and integration respectively can be compared multiple times. If the difference in the output values of the two calculation modules is greater than the corresponding preset flow calculation difference or the probability of the occurrence of the preset flow integration difference is greater than the preset probability, then it is determined that the current flow calculation module has a fault.
[0052] In order to ensure the accuracy of calculation and integration of flow measurement values, the flow metering module 5 and the redundant flow metering module 6 have exactly the same functions. Both the flow metering module and the redundant flow metering module are provided with a data cache area. When it is determined that at least one of the flow calculation module and the redundant flow metering module fails, the corresponding output value is stored in the corresponding data cache area respectively; when feedback of a specific faulty object is received, the output value of the non-faulty module is obtained from the data cache area of the non-faulty module as the normal flow calculation and integration result.
[0053] The output module 7 is used to output the output content of the flow metering module and the output content of the redundant flow metering module to the display module; wherein the output content of the flow metering module includes: the collected flow-related parameters, the flow calculation and integration results of the collected flow-related parameters, the collection channel failure and warning information, and the flow meter online inspection output results.
[0054] In order to further protect the multifunctional flow computer disclosed in the embodiment of the present application, the multifunctional flow computer also includes: an encryption module 8.
[0055] The encryption module 8 includes: a data encryption and analysis module built into the flow computer and the host computer, which is used to encrypt and decrypt data transmission between the flow computer and the host computer, and establish a communication connection between the host computer and the flow computer; the data encryption and analysis module built into the host computer is used to encrypt the data operation command sent to the flow computer, receive the uploaded data and decrypt it; the data encryption and analysis module built into the flow computer is used to receive the encrypted data operation command and decrypt it, make a data response according to the decrypted operation command, and encrypt the response data.
[0056] It is also used to periodically receive key update commands and new key data sent by the dynamic key management module in the external server, and return update results to the dynamic key management module in the external server.
[0057] By adopting the above arrangement, that is, using the encryption module 8, the data communication security between the flow computer and the host computer can be guaranteed; Figure 2 As shown, the secure communication process includes: the data operation command sent by the host computer to the flow computer is first encrypted by the data encryption and analysis module built into the host computer, the encrypted data operation command is transmitted to the flow computer, the flow computer receives the encrypted data and submits it to the data encryption and analysis module built into the flow computer for decryption, and then performs parameter modification or data response according to the decrypted operation command, the data after the response is first encrypted by the data encryption and analysis module built into the flow computer, the encrypted data is transmitted to the host computer, the host computer receives it and submits it to the data encryption and analysis module built into the host computer for decryption, and the target data can be obtained after the decryption is successful. The data encryption and analysis module built into the host computer and the flow computer uses a periodically updated dynamic key, and the dynamic key management module in the external server periodically sends a key update command and new key data to the host computer and the flow computer. After receiving the key update command, the host computer and the flow computer write the key data to the built-in data encryption and analysis module for key update and return the update result status.
[0058] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. A multifunctional flow computer, characterized in that: include: Power module, display module, input module, output module and flow metering module; The power module is used to provide power supply for the flow computer; The display module is used to display the output of the output module; The input module is used to collect the output values of the flow meter, the temperature / pressure transmitter and the component analyzer in real time; wherein the output value of the flow meter includes the output value of the flow meter collected through the digital communication interface and the analog output interface of the flow meter, and the output value of the temperature / pressure transmitter includes the output value of the temperature / pressure transmitter collected through the digital communication interface and the analog output interface of the temperature / pressure transmitter; The flow metering module is connected to both the input module and the output module, and includes: a flow calculation and integration module, and a collection channel real-time verification module; the flow calculation and integration module is used to perform flow calculation and integration according to the output values of the real-time collection flow meter, temperature / pressure transmitter and component analyzer; the collection channel real-time verification module is used to compare the output value of the flow meter collected through the digital communication interface and the analog output interface, if the difference between the two values is greater than the preset flow difference, then determine that at least one of the two collection channels corresponding to the output value of the collected flow meter is faulty and generate a fault warning message; used to compare the output value of the temperature / pressure transmitter collected through the digital communication interface and the analog output interface of the temperature / pressure transmitter, if the difference between the two values is greater than the preset measurement difference, then determine that at least one of the two collection channels corresponding to the output value of the collected temperature / pressure transmitter is faulty and generate a fault warning message; The output module is used to output the flow calculation and integration results, acquisition channel fault and fault warning information output by the flow metering module to the display module or a third-party device that establishes communication with the flow computer.
2. The multifunctional flow computer according to claim 1, characterized in that: Also includes: Redundant flow metering module, flow metering module verification module; The redundant flow metering module, as a redundant design of the flow metering module, has the same function as the flow metering module; The flow metering module verification module is used to compare the output values obtained by flow calculation and integration using the flow calculation module and the redundant flow metering module respectively. If the difference in the output values of the two calculation modules is greater than the corresponding preset flow calculation difference or the preset flow integration difference, it is determined that at least one of the flow calculation module and the redundant flow metering module has a fault and a warning message is generated.
3. The multifunctional flow computer according to claim 1, characterized in that: The flow metering module also includes: a flow meter online verification module; The flow meter online verification module is used to extract features from the output value of the flow meter currently collected and determine the type of the flow meter, the types of flow meters include: ultrasonic flow meter, mass flow meter; based on the type of the flow meter obtained by the judgment, the corresponding flow meter type online inspection method is matched, combined with the output value of the collected temperature / pressure transmitter and the output value of the component analyzer, the flow meter online inspection is completed according to the matching online inspection method, and the online inspection result of whether the current flow meter measurement result is accurate is output; The online inspection method for ultrasonic flowmeter matched with the ultrasonic flowmeter includes: judging whether the currently collected output value of the flowmeter and the currently collected output value of the temperature / pressure transmitter meet the online verification conditions; specifically including: if the size and stability of the flow measurement value output by the flowmeter, the size and stability of the temperature and pressure output by the temperature / pressure transmitter are all within the corresponding preset range, and the sound velocity deviation, maximum sound velocity difference, and sound velocity measurement repeatability calculated based on the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter, and the collected output value of the component analyzer meet the corresponding limit provisions, then the flowmeter measurement result is deemed to be accurate; The online inspection method for the ultrasonic flowmeter matched with the mass flowmeter includes: judging whether the currently collected output value of the flowmeter and the currently collected output value of the temperature / pressure transmitter meet the online verification conditions, specifically including: if the size and stability of the flow measurement value output by the flowmeter, the size and stability of the temperature and pressure output by the temperature / pressure transmitter are all within the corresponding preset range, and the density deviation, maximum density difference, and density measurement repeatability calculated based on the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter, and the collected output value of the component analyzer meet the corresponding limit provisions, then the flowmeter measurement result is deemed to be accurate.
4. The multifunctional flow computer according to claim 1, characterized in that: Also includes: Encryption module; The encryption module includes: a data encryption and analysis module built into the flow computer and the host computer, which is used to encrypt and decrypt the data transmission between the flow computer and the host computer.
5. The multifunctional flow computer according to claim 1, characterized in that: The serial communication signal output by the flowmeter is collected through the digital communication interface of the flowmeter, and the frequency signal output by the flowmeter is collected through the analog output interface of the flowmeter; the HART communication signal output by the temperature / pressure transmitter is collected through the digital communication interface of the temperature / pressure transmitter, and the current signal output by the temperature / pressure transmitter is collected through the analog output interface of the temperature / pressure transmitter; the real-time verification module of the acquisition channel is also used to compare the signal quality of the serial communication signal collected through the digital communication interface of the flowmeter with the signal quality of the frequency signal collected through the analog output interface of the flowmeter, and when it is determined that at least one of the two acquisition channels corresponding to the output value of the collected flowmeter is faulty, determine that the acquisition channel corresponding to the signal with poor signal quality output by the collected flowmeter is faulty; and compare the signal quality of the HART communication signal collected through the digital communication interface of the temperature / pressure transmitter with the signal quality of the current signal collected through the analog output interface of the temperature / pressure transmitter, and when it is determined that at least one of the two acquisition channels corresponding to the output value of the collected temperature / pressure transmitter is faulty, determine that the acquisition channel corresponding to the signal with poor signal quality output by the collected temperature / pressure transmitter is faulty.
6. The multifunctional flow computer according to claim 5, characterized in that: The real-time verification module for acquisition channels is also used to determine whether at least one of the two acquisition channels corresponding to the output value of the acquired flow meter is faulty, and when the signal quality of the serial communication signal acquired through the digital communication interface of the flow meter is the same as the signal quality of the frequency signal acquired through the analog output interface of the flow meter, the acquisition channel with the largest number of historical acquisition channel failures in the same type of scenario as the current scenario is used as the faulty acquisition channel according to the specific classification type of the flow size in the current scenario and the statistical number of historical acquisition channel failures in different types of scenarios; wherein the classification types related to the flow size include: high flow scenarios and low flow scenarios based on the comparison between the real-time acquired flow measurement value and the preset flow value; and is also used to determine whether the output value of the acquired temperature / pressure transmitter is When at least one of the two corresponding acquisition channels fails, and the signal quality of the HART communication signal collected through the digital communication interface of the temperature / pressure transmitter is the same as the signal quality of the current signal collected through the analog output interface of the temperature / pressure transmitter, according to the specific division type of temperature / pressure related to the current scenario and the statistical number of historical acquisition channel failures in different types of scenarios, the acquisition channel with the largest number of historical acquisition channel failures in the same type of scenario as the current scenario is used as the failed acquisition channel; wherein the division types related to temperature magnitude include: high temperature scenes and low temperature scenes divided based on the comparison between the real-time collected temperature magnitude and the preset temperature magnitude; the division types related to pressure magnitude include: high pressure scenes and low pressure scenes divided based on the comparison between the real-time collected pressure magnitude and the preset pressure magnitude.
7. The multifunctional flow computer according to claim 1, characterized in that: The flow calculation and integration modules can be multiple, and the flow calculation and integration modules can be divided into flow calculation and integration modules of different levels of computing resources according to the size of computing resources; Based on the real-time collected flow measurement values, the current scene is divided into scenes in different flow measurement value ranges; A flow calculation and integration module is selected based on the current scene after the classification; wherein, a scene within each flow measurement value range is matched with a flow calculation and integration module with a corresponding level of computing resources.
8. The multifunctional flow computer according to claim 2, characterized in that: The flow metering module and the redundant flow metering module are both provided with a data cache area. When it is determined that at least one of the flow calculation module and the redundant flow metering module fails, the output value is stored in the corresponding data cache area respectively; when feedback of the specific fault object is received, the output value of the non-faulty module is obtained from the data cache area of the non-faulty module as the normal flow calculation and integration result.
9. The multifunctional flow computer according to claim 1, characterized in that: The flow meter online verification module is further used to match the type of the flow meter obtained based on the judgment to the corresponding flow meter type online verification model, input the currently collected output value of the flow meter, the currently collected output value of the temperature / pressure transmitter and the currently collected output value of the component analyzer into the corresponding flow meter type online verification model, and output an online verification result of whether the flow meter measurement result is accurate; The online inspection result obtained by the online inspection method based on matching is used to verify the online inspection result obtained by the online inspection model based on matching. If the online inspection result obtained by the online inspection model based on matching is different from the online inspection result obtained by the online inspection model based on matching, it is considered that the verification has failed and it is judged that the online inspection model may have a fault. The online inspection model is optimized and trained until the verification is successful. The ultrasonic flowmeter online inspection model matched with the ultrasonic flowmeter adopts a neural network model, the model input is the collected output value of the flowmeter, the collected output value of the temperature / pressure transmitter and the output value of the component analyzer, and the output is whether the flowmeter measurement result is accurate; specifically, it is generated by training the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical ultrasonic flowmeter measurement result is accurate, and the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical ultrasonic flowmeter measurement result is inaccurate; the mass flowmeter online inspection model matched with the mass flowmeter adopts a neural network model: the model input is the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer, and the output is whether the flowmeter measurement result is accurate; specifically, it is generated by training the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical mass flowmeter measurement result is accurate, and the collected output value of the flowmeter, the output value of the temperature / pressure transmitter and the output value of the component analyzer when the historical mass flowmeter measurement result is inaccurate.
10. The multifunctional flow computer according to claim 1, characterized in that: The encryption module is also used to periodically receive the key update command and new key data sent by the dynamic key management module in the external server, and return the update result to the dynamic key management module in the external server.
Citation Information
Cited By
Flow metering method, system and device based on Internet of Things
CN119714454A
Energy metering system and method
CN121540202A