Carbon accounting method and device, storage medium and computer equipment
By constructing a binary tree topology structure and data query response table, combining historical data and steam demand parameter forecasts, and adjusting steam output parameters step by step, the problem of large errors in carbon accounting on the long-distance user side was solved, and accurate carbon accounting for complex steam pipeline networks was achieved.
Patent Information
- Application Number
- CN202410439853.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2025-10-21
AI Technical Summary
Existing carbon accounting methods have large errors on the long-distance user side and cannot accurately consider the friction resistance, local resistance in the pipe, and heat conduction and condensation during steam flow.
By obtaining user-side location information, building a binary tree topology structure, setting up a data query response table, and predicting steam demand parameters based on historical data, carbon accounting is performed by combining the predicted values of steam demand parameters with the binary tree topology structure. Taking into account the friction resistance in the pipe and the hydraulic and thermal characteristics of steam, the steam output parameters are adjusted step by step to improve accuracy.
It achieves accurate carbon accounting for complex steam pipeline networks and improves the accuracy of carbon accounting results for long-distance users.
Smart Images

Figure CN120822967A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of environmental protection and energy-saving technology, and in particular to a carbon accounting method and device, a storage medium, and a computer device. Background Art
[0002] As the number of users demanding steam continues to increase, energy stations need to accurately calculate carbon demand before delivering steam to ensure that the output steam volume meets the steam needs of each user. Since energy stations need to transport steam to users through steam pipes, steam pipes constitute the main body of the steam network.
[0003] Currently, carbon accounting methods used by energy stations only account for short-distance users. Longer-distance users are subject to a wide range of external factors. For example, when steam flows through a pipeline, it experiences frictional and localized resistance within the pipe, as well as heat conduction and condensation during the steam flow, which can lead to pressure and temperature losses during transportation. These factors can lead to significant deviations in existing carbon accounting methods for long-distance users. Summary of the Invention
[0004] In view of this, the present invention provides a carbon accounting method and device, a storage medium, and a computer device, the main purpose of which is to solve the problem of large errors in existing carbon accounting processing methods for long-distance users.
[0005] According to one aspect of the present invention, a carbon accounting method is provided, comprising:
[0006] Acquire location information of each user side, and determine the position relationship between each user side and the energy station based on the location information;
[0007] Constructing a binary tree topology structure based on the positional relationship, and setting a corresponding data query response table in a database based on the binary tree topology structure; the data query response table stores historical data of each of the user-side nodes;
[0008] Predicting the steam demand parameters of the user side based on the historical data to obtain predicted values of the steam demand parameters corresponding to each of the user sides;
[0009] Carbon accounting processing is performed based on the steam demand parameter prediction value and the binary tree topology structure to obtain a carbon accounting result of the energy station.
[0010] Furthermore, constructing a binary tree topology structure based on the position relationship includes:
[0011] determining a steam main pipeline transmission path based on the positional relationship;
[0012] Determine the node level of each user side on the steam main pipeline transmission path in the binary tree topology structure based on the steam transmission direction; and determine the node level of the remaining user sides in the binary tree topology structure based on the position relationship;
[0013] The binary tree topology is constructed based on the node hierarchy of each user-side node, with the energy station node as the root node.
[0014] Furthermore, the setting of a corresponding data query response table in the database based on the binary tree topology structure includes:
[0015] Determine the table structure of the data query response table based on the binary tree topology structure using a parent ID inheritance relationship; or,
[0016] The table structure of the data query response table is determined based on the binary tree topology structure by adopting a left-right value encoding method.
[0017] Furthermore, the predicting process of the steam demand parameters of the user side based on the historical data to obtain the predicted values of the steam demand parameters corresponding to each of the user sides includes:
[0018] Obtaining historical steam demand parameters corresponding to each time period from the historical data of the user side to be analyzed, the historical steam demand parameters including temperature, outlet pressure and flow rate;
[0019] The prediction model is used to perform prediction processing on the historical steam demand parameters corresponding to each time period to obtain the predicted values of the steam demand parameters of the user side to be analyzed in each time period.
[0020] Furthermore, before the steam demand forecast value and the binary tree topology structure are subjected to carbon accounting processing, the method further includes:
[0021] Obtaining the inlet pressure and outlet pressure of the user side to be analyzed from the historical data;
[0022] A functional relationship fitting is performed based on the inlet pressure and the outlet pressure to obtain an inlet and outlet steam pressure relationship function corresponding to the user side to be analyzed.
[0023] Furthermore, the carbon accounting processing is performed based on the steam demand parameter prediction value and the binary tree topology structure to obtain the carbon accounting result of the energy station, including:
[0024] Determine all target user sides on the path to be calculated, and obtain steam demand parameter prediction values corresponding to the target user sides;
[0025] Determining a target node level of the target user side in the binary tree topology structure, and adjusting the steam output parameters of each node step by step in ascending order of the target node level until the steam output parameters of the energy station are obtained;
[0026] Carbon accounting is performed based on the steam output parameters of the energy station to obtain a carbon accounting result.
[0027] Furthermore, the step of adjusting the steam output parameters of each node in ascending order of the target node level includes:
[0028] Obtaining an inlet and outlet steam pressure relationship function corresponding to the target user side, and an outlet pressure prediction value corresponding to the target user side;
[0029] Determining an inlet pressure prediction value corresponding to the target user side based on the inlet and outlet steam pressure relationship function and the outlet pressure prediction value;
[0030] The inlet pressure of each node is adjusted based on the inlet pressure prediction value in the order of the target node level from low to high until the steam output pressure of the energy station is obtained.
[0031] According to another aspect of the present invention, a carbon accounting device is provided, comprising:
[0032] A location determination module, configured to obtain location information of each user side and determine a location relationship between each user side and the energy station based on the location information;
[0033] A data setting module, configured to construct a binary tree topology structure based on the positional relationship, and to set a corresponding data query response table in a database based on the binary tree topology structure; the data query response table stores historical data of each of the user-side nodes;
[0034] A prediction module, configured to perform prediction processing on the steam demand parameters of the user side based on the historical data, and obtain a predicted value of the steam demand parameter corresponding to each of the user sides;
[0035] The carbon accounting module is used to perform carbon accounting processing based on the steam demand parameter prediction value and the binary tree topology structure to obtain the carbon accounting result of the energy station.
[0036] Furthermore, the data setting module includes a tree structure building unit and a table structure setting unit;
[0037] The tree structure building unit is used to:
[0038] determining a steam main pipeline transmission path based on the positional relationship;
[0039] Determine the node level of each user side on the steam main pipeline transmission path in the binary tree topology structure based on the steam transmission direction; and determine the node level of the remaining user sides in the binary tree topology structure based on the position relationship;
[0040] The binary tree topology is constructed based on the node hierarchy of each user-side node, with the energy station node as the root node.
[0041] Furthermore, the table structure setting unit is used to:
[0042] Determine the table structure of the data query response table based on the binary tree topology structure using a parent ID inheritance relationship; or,
[0043] The table structure of the data query response table is determined based on the binary tree topology structure by adopting a left-right value encoding method.
[0044] Furthermore, the prediction module is also used to:
[0045] Obtaining historical steam demand parameters corresponding to each time period from the historical data of the user side to be analyzed, the historical steam demand parameters including temperature, outlet pressure and flow rate;
[0046] The prediction model is used to perform prediction processing on the historical steam demand parameters corresponding to each time period to obtain the predicted values of the steam demand parameters of the user side to be analyzed in each time period.
[0047] Furthermore, the device further includes a function fitting module, which is used to:
[0048] Obtaining the inlet pressure and outlet pressure of the user side to be analyzed from the historical data;
[0049] A functional relationship fitting is performed based on the inlet pressure and the outlet pressure to obtain an inlet and outlet steam pressure relationship function corresponding to the user side to be analyzed.
[0050] Furthermore, the carbon accounting module is also used to:
[0051] Determine all target user sides on the path to be calculated, and obtain steam demand parameter prediction values corresponding to the target user sides;
[0052] Determining a target node level of the target user side in the binary tree topology structure, and adjusting the steam output parameters of each node step by step in ascending order of the target node level until the steam output parameters of the energy station are obtained;
[0053] Carbon accounting is performed based on the steam output parameters of the energy station to obtain a carbon accounting result.
[0054] Furthermore, the carbon accounting module is also used to:
[0055] Obtaining an inlet and outlet steam pressure relationship function corresponding to the target user side, and an outlet pressure prediction value corresponding to the target user side;
[0056] Determining an inlet pressure prediction value corresponding to the target user side based on the inlet and outlet steam pressure relationship function and the outlet pressure prediction value;
[0057] The inlet pressure of each node is adjusted based on the inlet pressure prediction value in the order of the target node level from low to high until the steam output pressure of the energy station is obtained.
[0058] According to another aspect of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the above-mentioned carbon accounting method.
[0059] According to another aspect of the present invention, a computer device is provided, comprising a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;
[0060] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned carbon accounting method.
[0061] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:
[0062] The present invention provides a carbon accounting method and apparatus, storage medium, and computer equipment. Compared with the prior art, the present invention obtains the location information of each user side and determines the positional relationship between each user side and the energy station based on the location information; constructs a binary tree topology structure based on the positional relationship, and sets a corresponding data query response table in the database based on the binary tree topology structure; the data query response table stores the historical data of each user side node; predicts the steam demand parameters of the user side based on the historical data to obtain the steam demand parameter prediction value corresponding to each user side; performs carbon accounting based on the steam demand parameter prediction value and the binary tree topology structure to obtain the carbon accounting result of the energy station, thereby realizing carbon accounting processing for steam pipe networks with complex structures. The present invention improves the accuracy of carbon accounting results under complex structures by taking into account the friction resistance, local resistance, and hydraulic and thermal characteristics of steam in the pipe.
[0063] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0065] Figure 1 A schematic diagram of a carbon accounting method according to an embodiment of the present invention is shown;
[0066] Figure 2 A schematic diagram showing a process flow of another carbon accounting method provided by an embodiment of the present invention is shown;
[0067] Figure 3 A schematic diagram showing a process flow of another carbon accounting method provided by an embodiment of the present invention is shown;
[0068] Figure 4 A schematic diagram of a process flow of another carbon accounting method provided by an embodiment of the present invention is shown;
[0069] Figure 5 A schematic structural diagram of a carbon accounting device provided by an embodiment of the present invention is shown;
[0070] Figure 6 A schematic structural diagram of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0071] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0072] The embodiment of the present invention provides a carbon accounting method, such as Figure 1 As shown, the method includes:
[0073] 101. Acquire location information of each user side, and determine a location relationship between each user side and an energy station based on the location information;
[0074] In an embodiment of the present invention, the current execution end obtains location information of each user side. The location information represents the user's geographic location, such as the user's address and the latitude and longitude information of the user's location, which is not specifically limited in this embodiment of the present invention. Based on the location information, the current execution end determines the positional relationship between each user side and the energy station, such as the orientation relationship between the user side and the energy station, the distance between the user side and the energy station, etc., which is not specifically limited in this embodiment of the present invention.
[0075] 102. Construct a binary tree topology structure based on the position relationship, and set a corresponding data query response table in a database based on the binary tree topology structure; the data query response table stores historical data of each of the user-side nodes;
[0076] In an embodiment of the present invention, the current execution end constructs a binary tree topology structure based on the position relationship. Among them, the binary tree topology structure is an important type of tree structure, which refers to an ordered tree in which the degree of the nodes in the tree is not greater than 2. In an embodiment of the present invention, the energy station and each user side are abstracted into each node in the binary tree to construct a binary tree topology structure. The current execution end sets a corresponding data query response table in the database based on the binary tree topology structure to store the historical data of each user side node. The historical data of the user side node may include data such as steam temperature, flow rate, pressure, etc. on the user side, which is not specifically limited in the embodiment of the present invention.
[0077] 103. Predicting the steam demand parameters of the user side based on the historical data to obtain predicted values of the steam demand parameters corresponding to each of the user sides;
[0078] In an embodiment of the present invention, the current execution end predicts and processes the steam demand parameters of the user side based on historical data. For example, the historical steam demand parameters corresponding to each time period are obtained from the historical data of the user side to be analyzed, where the historical steam demand parameters include temperature, outlet pressure, and flow rate. A prediction model is used to predict and process the historical steam demand parameters corresponding to each time period to obtain the predicted values of the steam demand parameters of the user side to be analyzed in each time period. The prediction model is used to represent a type of mathematical model used for prediction analysis, including regression prediction models, gray prediction models, neural network prediction models, etc., and is not specifically limited in the embodiment of the present invention.
[0079] 104. Perform carbon accounting processing based on the steam demand parameter prediction value and the binary tree topology structure to obtain a carbon accounting result of the energy station.
[0080] In an embodiment of the present invention, the current execution end performs carbon accounting processing based on the predicted value of steam demand and the binary tree topology to obtain the carbon accounting result of the energy station. It should be noted that when performing carbon accounting, it is necessary to work backwards from the user side to the energy station side, and to calculate step by step to determine the parameter requirements that the steam in each section of the pipeline must meet. In addition, in an embodiment of the present invention, the above-mentioned topology and the parameter requirements that the steam in each section of the pipeline must meet can also be used to set the pipeline, such as setting the inner diameter, outer diameter, wall thickness, friction resistance, etc. of the pipeline, which is not specifically limited in the embodiment of the present invention.
[0081] Furthermore, as a refinement and extension of the above embodiment, in order to facilitate data management and accounting for each user side, another carbon accounting method is provided, such as Figure 2 As shown, the steps of constructing a binary tree topology structure based on the position relationship include:
[0082] 201. Determine a steam main pipeline transmission path based on the positional relationship;
[0083] In this embodiment of the present invention, the current execution end determines the steam main pipeline transmission path based on the positional relationship. The steam main pipeline transmission path is the main path starting from the energy station and passing through some user-side nodes, without any branching structure. It should be noted that the main pipelines can be hierarchically processed within the main pipeline transmission path, and the pipeline specifications of each level can be set as needed. This is not specifically limited in this embodiment of the present invention.
[0084] 202. Determine the node level of each user side on the steam main pipeline transmission path in a binary tree topology structure based on the steam transmission direction; and determine the node level of the remaining user sides in the binary tree topology structure based on the position relationship;
[0085] 203. Taking the energy station node as the root node, construct the binary tree topology structure based on the node hierarchy of each user-side node.
[0086] In an embodiment of the present invention, the current execution end determines the node level of each user side on the steam main pipeline transmission path in the binary tree topology structure based on the steam transmission direction. For example, if the main pipeline passes through three user sides in the transmission direction, which are recorded as user side A, user side B and user side C, then the node level of user side A in the binary tree topology structure is the first level, the node level of user side B in the binary tree topology structure is the second level, and the node level of user side C in the binary tree topology structure is the third level, etc. This embodiment of the present invention does not make specific limitations. At the same time, the current execution end also determines the node levels of the remaining user sides in the binary tree topology structure based on the position relationship. For example, if the position of user side D among the remaining user sides is close to user side A, then user side D can be another leaf node of the first level. If the position of user side E among the remaining user sides is close to user side B, then user side E can be another leaf node of the second level, etc. This embodiment of the present invention does not make specific limitations. After determining the node hierarchy for all user-side nodes, the current execution end uses the energy station node as the root node and constructs a binary tree topology based on the node hierarchy of each user-side node. During steam network construction, since the locations of the energy station and users are already determined, and the pipeline path is also fixed, there is little room for creative design. Therefore, the length of each pipeline segment and the branch connection points are also determined. This means that the pipeline path diagram can be simplified into a pipeline topology diagram.
[0087] Furthermore, as a refinement and extension of the above embodiment, another carbon accounting method is provided to quickly obtain data related to each user side. The steps of setting a corresponding data query response table in the database based on the binary tree topology structure include:
[0088] Determine the table structure of the data query response table based on the binary tree topology structure using a parent ID inheritance relationship; or,
[0089] The table structure of the data query response table is determined based on the binary tree topology structure by adopting a left-right value encoding method.
[0090] In an embodiment of the present invention, the current execution end uses the parent ID inheritance relationship to determine the table structure of the data query response table based on the binary tree topology structure, wherein the parent ID inheritance relationship directly records the inheritance relationship between the nodes in the binary tree topology structure. For example, when setting the response table of the second-level node, it is necessary to inherit the ID of the response table of the first-level node as the parent ID, and then generate its own ID based on the parent ID. It should be noted that since the parent ID inheritance relationship is used to determine the table structure of the data query response table, frequent recursive operations are required when performing data queries, which affects the efficiency of the query. In the case of a large binary tree topology structure, it can be optimized with the help of a cache mechanism, and the Tree information can be loaded into the memory for processing to avoid the performance overhead of direct database IO operations.
[0091] In addition to the aforementioned table structure determination methods, the current execution end can also determine the data query response table structure using left-value encoding based on a binary tree topology. This left-value encoding method not only eliminates recursion while enabling unlimited grouping, but also relies on integer comparisons for highly efficient query conditions.
[0092] Furthermore, as a refinement and extension of the above-mentioned specific implementation methods, in order to consider the influence of the friction resistance, local resistance and hydrothermal characteristics of steam on the inlet and outlet pressures of the steam network and avoid the carbon accounting error introduced by the pressure difference, another carbon accounting method is provided, such as Figure 3 As shown, before the step of performing carbon accounting processing based on the steam demand forecast value and the binary tree topology structure, the method further includes:
[0093] 301. Obtain the inlet pressure and outlet pressure of the user side to be analyzed from the historical data;
[0094] 302. Perform functional relationship fitting based on the inlet pressure and the outlet pressure to obtain an inlet and outlet steam pressure relationship function corresponding to the user side to be analyzed.
[0095] In an embodiment of the present invention, the current execution end obtains the inlet pressure and outlet pressure of the user side to be analyzed from historical data, and performs functional relationship fitting processing based on multiple sets of historical data of inlet pressure and outlet pressure to obtain the inlet and outlet steam pressure relationship function corresponding to the user side to be analyzed.
[0096] It should be noted that in addition to the above-mentioned functional relationship fitting, the inlet pressure, outlet pressure and pipeline length, pipeline internal friction coefficient, pipeline diameter, pipe wall thickness, inlet temperature, outlet temperature and other data can also be combined for analysis to train a prediction model for predicting the inlet pressure for subsequent carbon accounting processing. The embodiments of the present invention do not make specific limitations.
[0097] Furthermore, as a refinement and extension of the above embodiment, another carbon accounting method is provided, such as Figure 4 As shown, the steps of performing carbon accounting processing based on the steam demand parameter prediction value and the binary tree topology structure to obtain the carbon accounting result of the energy station include:
[0098] 401. Determine all target user sides on the path to be calculated, and obtain steam demand parameter prediction values corresponding to the target user sides;
[0099] 402. Determine the target node level of the target user side in the binary tree topology structure, and adjust the steam output parameters of each node step by step in ascending order of the target node level until the steam output parameters of the energy station are obtained;
[0100] 403. Perform carbon accounting based on the steam output parameters of the energy station to obtain a carbon accounting result.
[0101] In an embodiment of the present invention, the current execution end determines all target user sides on the path to be calculated based on the calculation requirements, and obtains the predicted values of steam demand parameters corresponding to the target user sides, such as temperature, outlet pressure and flow rate, etc., which are not specifically limited in the embodiment of the present invention. The current execution end determines the target node level of the target user side in the binary tree topology, and adjusts the steam output parameters of each node step by step according to the target node level from low to high. When making specific adjustments, it is necessary to first obtain the inlet and outlet steam pressure relationship function corresponding to the target user side, and the outlet pressure prediction value corresponding to the target user side; based on the inlet and outlet steam pressure relationship function and the outlet pressure prediction value, determine the inlet pressure prediction value corresponding to the target user side; then, adjust the inlet pressure of each node based on the inlet pressure prediction value according to the target node level from low to high, until the steam output pressure of the energy station is obtained. Finally, the current execution end performs carbon accounting based on the steam output parameters of the energy station to obtain the carbon accounting results.
[0102] It should be noted that because the current execution end works backward from the user side to the energy station side to determine the steam parameter requirements for each pipeline segment, this derivation direction is opposite to the construction of the binary tree topology. The binary tree topology is constructed by starting from the root node and then determining the leaf nodes layer by layer. Furthermore, the current execution end can also select pipeline specifications based on the steam parameter requirements of each pipeline segment, which is not specifically limited in this embodiment of the present invention.
[0103] The embodiment of the present invention provides a carbon accounting method. Compared with the existing technology, the present invention obtains the location information of each user side and determines the positional relationship between each user side and the energy station based on the location information; constructs a binary tree topology structure based on the positional relationship, and sets a corresponding data query response table in the database based on the binary tree topology structure; the data query response table stores the historical data of each user side node; predicts the steam demand parameters of the user side based on the historical data to obtain the steam demand parameter prediction value corresponding to each user side; performs carbon accounting based on the steam demand parameter prediction value and the binary tree topology structure to obtain the carbon accounting result of the energy station, thereby realizing carbon accounting processing for steam pipe networks with complex structures. The present invention improves the accuracy of carbon accounting results under complex structures by taking into account the friction resistance, local resistance and hydraulic and thermal characteristics of steam in the pipe.
[0104] As the above Figure 1The embodiment of the present invention provides a carbon accounting device, such as Figure 5 As shown, the device includes:
[0105] A location determination module 51 is configured to obtain location information of each user side and determine a location relationship between each user side and the energy station based on the location information;
[0106] A data setting module 52 is configured to construct a binary tree topology structure based on the positional relationship, and to set a corresponding data query response table in the database based on the binary tree topology structure; the data query response table stores historical data of each of the user-side nodes;
[0107] A prediction module 53 is configured to perform prediction processing on the steam demand parameters of the user side based on the historical data to obtain a predicted value of the steam demand parameter corresponding to each of the user sides;
[0108] The carbon accounting module 54 is configured to perform carbon accounting processing based on the steam demand parameter prediction value and the binary tree topology structure to obtain a carbon accounting result of the energy station.
[0109] Furthermore, the data setting module 52 includes a tree structure building unit and a table structure setting unit;
[0110] The tree structure building unit is used to:
[0111] determining a steam main pipeline transmission path based on the positional relationship;
[0112] Determine the node level of each user side on the steam main pipeline transmission path in the binary tree topology structure based on the steam transmission direction; and determine the node level of the remaining user sides in the binary tree topology structure based on the position relationship;
[0113] The binary tree topology is constructed based on the node hierarchy of each user-side node, with the energy station node as the root node.
[0114] Furthermore, the table structure setting unit is used to:
[0115] Determine the table structure of the data query response table based on the binary tree topology structure using a parent ID inheritance relationship; or,
[0116] The table structure of the data query response table is determined based on the binary tree topology structure by adopting a left-right value encoding method.
[0117] Furthermore, the prediction module 53 is further configured to:
[0118] Obtaining historical steam demand parameters corresponding to each time period from the historical data of the user side to be analyzed, the historical steam demand parameters including temperature, outlet pressure and flow rate;
[0119] The prediction model is used to perform prediction processing on the historical steam demand parameters corresponding to each time period to obtain the predicted values of the steam demand parameters of the user side to be analyzed in each time period.
[0120] Furthermore, the device further includes a function fitting module, which is used to:
[0121] Obtaining the inlet pressure and outlet pressure of the user side to be analyzed from the historical data;
[0122] A functional relationship fitting is performed based on the inlet pressure and the outlet pressure to obtain an inlet and outlet steam pressure relationship function corresponding to the user side to be analyzed.
[0123] Furthermore, the carbon accounting module 54 is also used to:
[0124] Determine all target user sides on the path to be calculated, and obtain steam demand parameter prediction values corresponding to the target user sides;
[0125] Determining a target node level of the target user side in the binary tree topology structure, and adjusting the steam output parameters of each node step by step in ascending order of the target node level until the steam output parameters of the energy station are obtained;
[0126] Carbon accounting is performed based on the steam output parameters of the energy station to obtain a carbon accounting result.
[0127] Furthermore, the carbon accounting module 54 is also used to:
[0128] Obtaining an inlet and outlet steam pressure relationship function corresponding to the target user side, and an outlet pressure prediction value corresponding to the target user side;
[0129] Determining an inlet pressure prediction value corresponding to the target user side based on the inlet and outlet steam pressure relationship function and the outlet pressure prediction value;
[0130] The inlet pressure of each node is adjusted based on the inlet pressure prediction value in the order of the target node level from low to high until the steam output pressure of the energy station is obtained.
[0131] The embodiment of the present invention provides a carbon accounting device. Compared with the prior art, the present invention obtains the location information of each user side and determines the positional relationship between each user side and the energy station based on the location information; constructs a binary tree topology structure based on the positional relationship, and sets a corresponding data query response table in the database based on the binary tree topology structure; the data query response table stores the historical data of each user side node; predicts the steam demand parameters of the user side based on the historical data to obtain the steam demand parameter prediction value corresponding to each user side; performs carbon accounting based on the steam demand parameter prediction value and the binary tree topology structure to obtain the carbon accounting result of the energy station, thereby realizing carbon accounting processing for steam pipe networks with complex structures. The present invention improves the accuracy of carbon accounting results under complex structures by taking into account the friction resistance, local resistance and hydraulic and thermal characteristics of steam in the pipe.
[0132] According to one embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer-executable instruction can execute the carbon accounting method in any of the above method embodiments.
[0133] Figure 6 A schematic structural diagram of a computer device provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computer device.
[0134] like Figure 6 As shown, the computer device may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .
[0135] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .
[0136] The communication interface 604 is used to communicate with other devices such as clients or other servers.
[0137] The processor 602 is configured to execute the program 610 , and specifically to execute the relevant steps of the above-mentioned carbon accounting method.
[0138] Specifically, the program 610 may include program codes, which include computer operation instructions.
[0139] Processor 602 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included in a computer device may be of the same type, such as one or more CPUs, or may be of different types, such as one or more CPUs and one or more ASICs.
[0140] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0141] The program 610 may be specifically configured to enable the processor 602 to perform the following operations:
[0142] Acquire location information of each user side, and determine the position relationship between each user side and the energy station based on the location information;
[0143] Constructing a binary tree topology structure based on the positional relationship, and setting a corresponding data query response table in a database based on the binary tree topology structure; the data query response table stores historical data of each of the user-side nodes;
[0144] Predicting the steam demand parameters of the user side based on the historical data to obtain predicted values of the steam demand parameters corresponding to each of the user sides;
[0145] Carbon accounting processing is performed based on the steam demand parameter prediction value and the binary tree topology structure to obtain a carbon accounting result of the energy station.
[0146] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, centralized on a single computing device, or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computing device, which can then be stored in a storage device and executed by the computing device. In some cases, the steps shown or described can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0147] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A carbon accounting method, characterized in that: include: Acquire location information of each user side, and determine the position relationship between each user side and the energy station based on the location information; Constructing a binary tree topology structure based on the positional relationship, and setting a corresponding data query response table in a database based on the binary tree topology structure; The data query response table stores historical data of each of the user-side nodes; Predicting the steam demand parameters of the user side based on the historical data to obtain predicted values of the steam demand parameters corresponding to each of the user sides; Carbon accounting processing is performed based on the steam demand parameter prediction value and the binary tree topology structure to obtain a carbon accounting result of the energy station.
2. The method according to claim 1, characterized in that The constructing of a binary tree topology structure based on the position relationship includes: determining a steam main pipeline transmission path based on the positional relationship; Determine the node level of each user side on the steam main pipeline transmission path in the binary tree topology structure based on the steam transmission direction; and determine the node level of the remaining user sides in the binary tree topology structure based on the position relationship; The binary tree topology is constructed based on the node hierarchy of each user-side node, with the energy station node as the root node.
3. The method according to claim 1, characterized in that The setting of a corresponding data query response table in the database based on the binary tree topology structure includes: Determine the table structure of the data query response table based on the binary tree topology structure using a parent ID inheritance relationship; or, The table structure of the data query response table is determined based on the binary tree topology structure by adopting a left-right value encoding method.
4. The method according to claim 1, wherein The step of predicting the steam demand parameters of the user side based on the historical data to obtain the predicted values of the steam demand parameters corresponding to each user side includes: Obtaining historical steam demand parameters corresponding to each time period from the historical data of the user side to be analyzed, the historical steam demand parameters including temperature, outlet pressure and flow rate; The prediction model is used to perform prediction processing on the historical steam demand parameters corresponding to each time period to obtain the predicted values of the steam demand parameters of the user side to be analyzed in each time period.
5. The method according to claim 1, wherein Before performing carbon accounting processing based on the steam demand forecast value and the binary tree topology structure, the method further includes: Obtaining the inlet pressure and outlet pressure of the user side to be analyzed from the historical data; A functional relationship fitting is performed based on the inlet pressure and the outlet pressure to obtain an inlet and outlet steam pressure relationship function corresponding to the user side to be analyzed.
6. The method according to claim 5, characterized in that The carbon accounting process is performed based on the steam demand parameter prediction value and the binary tree topology structure to obtain the carbon accounting result of the energy station, including: Determine all target user sides on the path to be calculated, and obtain steam demand parameter prediction values corresponding to the target user sides; Determining a target node level of the target user side in the binary tree topology structure, and adjusting the steam output parameters of each node step by step in ascending order of the target node level until the steam output parameters of the energy station are obtained; Carbon accounting is performed based on the steam output parameters of the energy station to obtain a carbon accounting result.
7. The method according to claim 6, characterized in that The step of adjusting the steam output parameters of each node in descending order of the target node level includes: Obtaining an inlet and outlet steam pressure relationship function corresponding to the target user side, and an outlet pressure prediction value corresponding to the target user side; Determining an inlet pressure prediction value corresponding to the target user side based on the inlet and outlet steam pressure relationship function and the outlet pressure prediction value; The inlet pressure of each node is adjusted based on the inlet pressure prediction value in the order of the target node level from low to high until the steam output pressure of the energy station is obtained.
8. A carbon accounting device, characterized in that: include: A location determination module, configured to obtain location information of each user side and determine a location relationship between each user side and the energy station based on the location information; A data setting module, configured to construct a binary tree topology structure based on the positional relationship, and to set a corresponding data query response table in a database based on the binary tree topology structure; the data query response table stores historical data of each of the user-side nodes; A prediction module, configured to perform prediction processing on the steam demand parameters of the user side based on the historical data, and obtain a predicted value of the steam demand parameter corresponding to each of the user sides; The carbon accounting module is used to perform carbon accounting processing based on the steam demand parameter prediction value and the binary tree topology structure to obtain the carbon accounting result of the energy station.
9. A storage medium storing at least one executable instruction, wherein the executable instruction executes an operation corresponding to the carbon accounting method according to any one of claims 1 to 7.
10. A computer device comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the carbon accounting method according to any one of claims 1 to 7.