A thermal-hydraulic node elevation checking method, system, device and storage medium
Patent Information
- Application Number
- CN202610926954.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-25
- Publication Date
- 2026-10-09
AI Technical Summary
用户在定义节点时一般只定义节点的标高变化,无法能够识别出环路
[0015]本公开实施例提供的技术方案与现有技术相比具有如下优点:
Smart Images

Figure CN122889453A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of nuclear reactor node verification technology, and in particular to a method, system, equipment and storage medium for checking the elevation of thermal-hydraulic nodes. Background Technology
[0002] In the research and design of nuclear reactors, thermal-hydraulic analysis and calculations are required. Thermal-hydraulic analysis divides the nuclear reactor system into multiple nodes (also known as control volumes). These nodes are connected by pipes to form open or closed loops. For closed loops, there may be multiple closed sub-loops.
[0003] Gravity pressure drop and other parameters are important components of thermal-hydraulic analysis. When a user-defined thermal-hydraulic system contains loops, the elevation of the loop nodes must be closed; otherwise, the calculated gravity pressure drop and other parameters will be incorrect. Users typically only define the elevation changes of nodes when defining them, and cannot identify loops. Therefore, existing technologies cannot identify loop information in thermal-hydraulic systems. Summary of the Invention
[0004] To address the aforementioned technical problems, this disclosure provides a method, system, equipment, and storage medium for checking the elevation of thermal-hydraulic nodes.
[0005] This disclosure provides a method for checking the elevation of thermal-hydraulic nodes, including: Obtain the processing identifiers of all nodes and all pipes of the thermal hydraulic system, set the status of the processing identifiers to unprocessed, and set the center elevation of all nodes to a preset initial value; Select any of the nodes as the current node, set the processing identifier of the current node to processed, and traverse all takeovers to determine whether the current takeover meets the preset conditions. If the current takeover meets the preset conditions, the center elevation of the node connected to the other end of the current takeover is updated according to the center elevation of the current node and the elevation change corresponding to the current takeover. The processing flags of the current takeover and the node connected to the other end of the current takeover are set to processed, and the acceptance information is output until all takeovers are traversed and the acceptance information of all nodes and all takeovers is obtained. If the current takeover does not meet the preset conditions, obtain any takeover that meets the preset conditions, set the node whose processing identifier is marked as processed connected by the takeover as the new current node, and traverse all takeovers to determine whether the current takeover meets the preset conditions, until the acceptance information of all nodes and all takeovers is obtained.
[0006] Further, after the steps of selecting any of the nodes as the current node, setting the processing identifier of the current node to "processed", traversing all takeovers, and determining whether the current takeover meets the preset conditions, the method further includes: Determine whether the nodes connected to the upstream and downstream ends of the current control are all control bodies whose processing identifier is "processed". If so, set the closure identifier to true; otherwise, set the closure identifier to false.
[0007] Further, when the closure flag is set to true, it includes: Determine the difference in elevation between the node surfaces connected upstream and downstream of the currently controlled node; When the absolute value of the difference is greater than the preset acceptance condition, output elevation unclosed information; When the absolute value of the difference is less than or equal to the preset acceptance condition, the elevation closure information is output.
[0008] Furthermore, it also includes: The surface elevation of the current node is determined based on the center elevation of the current node, the elevation change of the current pipe, and the connection direction between the current pipe and the current node.
[0009] Furthermore, it also includes: If the current takeover does not meet the preset conditions, and all the takeovers do not meet the preset conditions, then all the nodes are traversed to obtain the nodes whose processing identifier is not processed.
[0010] Further, if the current takeover does not meet the preset conditions, and all the takeovers do not meet the preset conditions, then all nodes are traversed to obtain the nodes whose processing identifier is unprocessed, including: If there is a node whose processing identifier is unprocessed, then set the node as the new current node, set the processing identifier of the new current node to processed, and traverse all the takeovers to determine whether the current takeover meets the preset conditions. If no node is marked as unprocessed, output the acceptance information for all nodes and all takeovers.
[0011] Furthermore, it also includes: Record the inspection paths for all takeovers and all nodes.
[0012] This disclosure also provides a system for checking the elevation of thermal-hydraulic nodes, including: The acquisition module is used to acquire the processing identifiers of all nodes and all pipes of the thermal hydraulic system, set the status of the processing identifiers to unprocessed, and set the center elevation of all nodes to a preset initial value. The judgment module is used to select any of the nodes as the current node, set the processing identifier of the current node to processed, and traverse all takeovers to determine whether the current takeover meets the preset conditions. The first acceptance module is used to update the center elevation of the node connected to the other end of the current receiver according to the center elevation of the current node and the elevation change corresponding to the current receiver if the current receiver meets the preset conditions, and set the processing flag of the current receiver and the node connected to the other end of the current receiver to be processed, and output acceptance information until all receivers are traversed and the acceptance information of all nodes and all receivers is obtained. The second acceptance module is used to obtain any receiver that meets the preset conditions if the current receiver does not meet the preset conditions, set the node whose processing is marked as processed by the receiver as the new current node, and traverse all receivers to determine whether the current receiver meets the preset conditions, until the acceptance information of all nodes and all receivers is obtained.
[0013] This disclosure also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the thermal-hydraulic node elevation checking method.
[0014] This disclosure also provides a computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of the thermal-hydraulic node elevation checking method.
[0015] The technical solution provided in this disclosure has the following advantages compared with the prior art: The system acquires the processing identifiers of all nodes and connections in the thermal hydraulic system, sets the status of these identifiers to "unprocessed," and sets the center elevation of all nodes to a preset initial value. It then selects any node as the current node, sets its processing identifier to "processed," and iterates through all connections, determining whether the current connection meets preset conditions. If the current connection meets the preset conditions, it updates the center elevation of the node connected to the other end of the current connection based on the current node's center elevation and the corresponding elevation change, sets the processing identifiers of the current connection and the node connected to the other end of the current connection to "processed," and outputs acceptance information. This process continues until all connections are traversed, obtaining acceptance information for all nodes and connections. If the current connection does not meet the preset conditions, it acquires any connection that meets the preset conditions, sets the node connected to that connection with the "processed" identifier as the new current node, and iterates through all connections, determining whether the current connection meets the preset conditions. This process continues until acceptance information for all nodes and connections is obtained, enabling the identification of loops in the thermal hydraulic system. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0017] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 A schematic diagram of the method for checking the elevation of thermal-hydraulic nodes provided in the embodiments of this disclosure; Figure 2 A schematic diagram of the thermal-hydraulic node elevation checking algorithm provided in the embodiments of this disclosure; Figure 3 A schematic diagram of a node system provided in an embodiment of this disclosure; Figure 4 A schematic diagram illustrating the process of the thermal-hydraulic node elevation checking algorithm provided in this embodiment of the disclosure; Figure 5 This is a schematic diagram of a thermal-hydraulic node elevation inspection system provided in an embodiment of this disclosure. Detailed Implementation
[0019] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0020] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0021] Figure 1 This is a schematic diagram of the method for checking the elevation of thermal-hydraulic nodes provided in the embodiments of this disclosure; as shown. Figure 1 As shown, a method for checking the elevation of a thermal-hydraulic joint includes: Step S1: Obtain the processing identifiers of all nodes and all pipes in the thermal hydraulic system, set the status of the processing identifiers to unprocessed, and set the center elevation of all nodes to a preset initial value. In this embodiment, the processing identifiers of all nodes (i.e., control bodies) and all takenovers are obtained and uniformly set to an unprocessed state. At the same time, the center elevation of all nodes is assigned a preset initial value (usually 0). From the perspective of algorithm implementation, a globally consistent calculation starting point is established, avoiding calculation deviations caused by historical data residues or inconsistent local initialization.
[0022] Specifically, in thermal-hydraulic systems, the elevation relationships between different nodes are propagated step-by-step through connecting pipes. If the initial states are not consistent, errors will accumulate during propagation, potentially distorting the closed-loop verification results. Therefore, by uniformly setting processing identifiers, the processing status of each node and connecting pipe during subsequent propagation can be clearly defined. Furthermore, uniformly setting the node center elevation as the initial value avoids the problem of relying solely on elevation data to run the algorithm, improving its applicability. This is not merely simple data initialization; it provides a fundamental guarantee for subsequent propagation calculations, closed-loop identification, and automatic switching between multiple systems, ensuring computational consistency and preventing error accumulation.
[0023] Step S2: Select any node as the current node, set the processing flag of the current node to processed, and traverse all takeovers to determine whether the current takeover meets the preset conditions. In this embodiment, step S2 is used to determine the starting point of algorithm propagation and initiate the elevation propagation process.
[0024] Specifically, by selecting any node from all nodes as the current node, setting the processing flag to processed, and traversing all takeovers with the current node as the center, it is determined whether each takeover meets the preset conditions.
[0025] Furthermore, in the process of traversing all takeovers and determining whether preset conditions are met, preset conditions may include constraints such as "takeover has not been processed" and "takeover is connected to the current node".
[0026] Through the above embodiments, constraints can ensure the uniqueness and orderliness of the propagation path, avoiding duplicate processing or invalid traversal. Simultaneously, they provide a foundation for subsequent loop closure identification. Specifically, when determining whether the takeover condition is met, the node processing status is implicitly and dynamically tracked, thus providing necessary information for subsequent identification of the loop closure condition of "both endpoints have been processed."
[0027] Step S3: If the current takeover meets the preset conditions, update the center elevation of the node connected to the other end of the current takeover according to the center elevation of the current node and the elevation change corresponding to the current takeover, set the processing flag of the current takeover and the node connected to the other end of the current takeover to be processed, and output the acceptance information until all takeovers are traversed and the acceptance information of all nodes and all takeovers is obtained. In this embodiment, step S3 is used to update the center elevation of the other end node of the takeover based on the center elevation of the current node and the elevation change of the current takeover, and at the same time set the processing flag of the takeover and its other end node to processed, and output the corresponding acceptance information until the traversal of all takeovers is completed.
[0028] The system derives the elevation of unknown nodes by using known nodes and changes in the elevation of the connecting pipes, thus solving for the overall system elevation without establishing a global system of equations. Furthermore, during the node elevation update process, calculations are performed based on the geometric relationships at both ends of the connecting pipe, ensuring the physical rationality of elevation propagation. When a connecting pipe meets specific conditions (e.g., both ends of the connecting pipe have been processed), it can be determined whether a closed loop is formed at the current connecting pipe location, and further compare whether the elevations on both sides are consistent, thereby verifying the elevation closure. This eliminates the need for a separate loop closure check after calculation, improving efficiency.
[0029] By updating the processing identifier in a timely manner through the above embodiments, it can be ensured that each takeover and node is processed only once, avoiding duplicate calculations and guaranteeing that the algorithm terminates within a finite number of steps. This achieves efficient elevation propagation calculation and real-time closed-loop verification during the propagation process.
[0030] Step S4: If the current takeover does not meet the preset conditions, obtain any takeover that meets the preset conditions, set the node whose processing mark of the takeover connection is processed as the new current node, and traverse all takeovers to determine whether the current takeover meets the preset conditions, until the acceptance information of all nodes and all takeovers is obtained.
[0031] In this embodiment, step S4 is used to find any receiver that meets the preset conditions among all receivers, set the processed node connected to the receiver as the new current node, and then re-traverse all receivers and continue to perform condition judgment and propagation calculation until the acceptance information of all nodes and receivers is obtained.
[0032] Specifically, during the propagation process, issues such as path interruptions or local inability to continue expansion may occur. For example, there may be no unprocessed takeovers around the current node, or multiple branches or even multiple independent subsystems exist in the system. In such cases, if node switching cannot be performed, the algorithm will be unable to continue execution, resulting in some nodes remaining unprocessed. By continuously switching the current node and repeating the traversal, the algorithm ensures that all nodes and takeovers are eventually processed, thus guaranteeing the integrity of the acceptance results. This enables the algorithm to continuously advance in complex topologies, avoids incomplete computation due to local interruptions, and ensures the completeness of the final output acceptance information.
[0033] In some possible implementations, after step S2, which involves selecting any node as the current node, setting the processing flag of the current node to processed, and traversing all takeovers to determine whether the current takeover meets the preset conditions, the method further includes: determining whether the upstream and downstream nodes connected to both ends of the current takeover are control bodies with the processing flag set to processed; if so, setting the closure flag to true; otherwise, setting the closure flag to false.
[0034] In this embodiment, a further determination of the processing status of the nodes at both ends of the current takeover is introduced, that is, to determine whether the upstream and downstream nodes connected by the current takeover are both in the processed state, and to set the closure flag as true or false accordingly.
[0035] Specifically, loop detection and elevation propagation in the graph structure are deeply coupled to identify closed loops. In thermal-hydraulic systems, loop identification is incorporated into the propagation process by utilizing the dynamic state variable of "whether a node has been processed." When both ends of a pipe have been processed, it indicates that the propagation path has returned, thus forming a closed loop, reducing implementation complexity. Furthermore, once a closed loop is formed during propagation, it can be identified immediately without waiting for the entire system to be traversed, facilitating early detection of potential problems. In addition, each pipe meeting the conditions is independently evaluated, allowing the identification of multiple closed sub-loops within the same system. This enables automatic identification of multi-closed-loop structures in complex systems, improving overall computational efficiency and response speed.
[0036] In some possible implementations, when the closure flag is set to true, the following steps are taken: determining the difference in elevation between the node surfaces connected to the upstream and downstream nodes of the current pipeline; outputting elevation unclosed information when the absolute value of the difference is greater than a preset acceptance condition; and outputting elevation closed information when the absolute value of the difference is less than or equal to a preset acceptance condition.
[0037] In this embodiment, when the closure indicator is determined to be true, the elevation closure verification is further performed, including calculating the elevation difference between the upstream and downstream nodes of the current pipe at the current pipe location, and comparing the absolute value of the difference with the preset acceptance conditions, thereby outputting information on whether the elevation is closed or not.
[0038] Specifically, in thermal-hydraulic systems, inconsistencies in elevation at closed-loop points can lead to errors in model parameter settings, unreasonable connection relationships, or data input deviations. If not detected promptly, this will directly affect the accuracy of subsequent calculations. By calculating the elevation difference at the moment of closed-loop identification, and promptly verifying any inconsistencies, the lag problem of modeling first and then uniformly verifying is avoided. Furthermore, an adjustable acceptance threshold (e.g., 0.001 meters) can identify both obvious errors and accept minor numerical errors, thus improving practicality. In addition, the verification results can directly serve as feedback on the user's modeling quality, providing users with intuitive and actionable verification results.
[0039] In some possible implementations, the method also includes: determining the surface elevation of the current node based on the center elevation of the current node, the elevation change of the current takeover, and the connection direction between the current takeover and the current node.
[0040] In this embodiment, during elevation propagation, the surface elevation of the current node at the connection point is determined by the center elevation of the current node, the elevation change of the current connection point, and the connection direction between the connection point and the node. This solves the key computational problem in elevation propagation: how to transition from the node's center elevation to the connection interface elevation.
[0041] Specifically, in a thermal-hydraulic system, a node represents a control volume with a certain spatial volume, while a pipe connects to a specific interface of the node. Therefore, elevation propagation cannot be simply transmitted directly between the centers of nodes; instead, it requires an elevation offset from the center to the interface. By using two parameters—the elevation change and the connection direction—the calculation results are made to conform to the actual geometric relationships. For example, when a pipe connects to the upper or lower part of a node, the corresponding surface elevation will be adjusted according to the direction, thus ensuring the rationality of the propagation results.
[0042] The above embodiments not only improve the accuracy of elevation propagation but also provide reliable data for subsequent closed-loop verification. Furthermore, they are applicable to node and pipe connection relationships with different structural forms without requiring special processing for specific structures.
[0043] In some possible implementations, it also includes: if the current takeover does not meet the preset conditions, and all takeovers do not meet the preset conditions, then traverse all nodes and obtain the nodes whose processing identifier is unprocessed.
[0044] In this embodiment, when the current takeover does not meet the preset conditions, and no takeover that meets the conditions is found after traversing all takeovers, all nodes are further traversed to obtain nodes marked as unprocessed. This addresses the potential extension termination problem during propagation, where there are no further propagation paths around the current node, but unprocessed portions still exist.
[0045] Specifically, in complex thermal-hydraulic systems, there are often multiple branching structures or independent subsystems. After completing a certain connected component, further expansion may be impossible, leading to the omission of some nodes. By rescanning nodes globally and finding unprocessed nodes as new propagation starting points, complete coverage of the entire system is achieved. The algorithm can automatically identify and switch to unprocessed regions to continue computation. Simultaneously, the algorithm's termination condition is explicitly defined: it only terminates when no unprocessed nodes remain, thus avoiding infinite loops or missed calculations.
[0046] The above embodiments avoid incomplete calculations due to path interruptions, ensuring the integrity of the final result.
[0047] In some possible implementations, if the current takeover does not meet the preset conditions, and all takeovers do not meet the preset conditions, then all nodes are traversed to obtain nodes with the processing mark as unprocessed. This includes: if there are nodes with the processing mark as unprocessed, then the node is set as the new current node, the processing mark of the new current node is set as processed, and all takeovers are traversed to determine whether the current takeover meets the preset conditions; if there are no nodes with the processing mark as unprocessed, then the acceptance information of all nodes and all takeovers is output.
[0048] In this embodiment, if there are nodes marked as unprocessed, they are set as the new current node and marked as processed. The takeover process is then re-enumerated, and the algorithm continues to determine if the preset conditions are met. If there are no unprocessed nodes, the acceptance information for all nodes and the takeover is output, and the algorithm terminates. The algorithm specifies the conditions under which propagation needs to be restarted and clarifies the final termination condition.
[0049] Specifically, by designating unprocessed nodes as the new current nodes, the algorithm can automatically switch between multiple independent subsystems, enabling the processing of each connected component one by one. This avoids the complexity of processing all nodes simultaneously, while also ensuring that each node can become a propagation source at some stage, thus ensuring that the elevation can be completely propagated within its subsystem. When all nodes are marked as processed, the entire system has been fully traversed, and the output acceptance information is the final result.
[0050] Through the above embodiments, since each node is processed only once when it is selected as the current node, duplicate calculations are effectively avoided.
[0051] Some possible implementations also include: recording the entire takeover and the inspection path of all nodes.
[0052] In this embodiment, a recording mechanism for all takeovers and node inspection paths is further introduced during the entire algorithm execution process. In each propagation, update, and closed-loop verification process, the nodes involved and the takeovers are recorded in the processing order to form a complete inspection path.
[0053] Specifically, when an elevation gap issue is detected, simply providing a result indicating whether the elevation is closed is insufficient for problem localization. Users also need to specify the path and loop in which the problem originated. By recording the propagation path, complete path information can be provided along with the output acceptance information. This not only helps in quickly locating errors but can also be used for subsequent debugging and optimization.
[0054] Figure 2 A schematic diagram of the thermal-hydraulic node elevation checking algorithm provided in the embodiments of this disclosure; like Figure 2 As shown, in some possible implementations, the data provided in this application is as follows: Step S101: Initialize all control bodies (nodes) and the processing identifiers of the takeover entities to unprocessed.
[0055] Step S102: Initialize the center elevation of all control volumes to 0.
[0056] Step S103: Select any control body as the current control body, denoted as control body iv, set its center elevation to 0, and set its processing identifier to processed.
[0057] Step S104: Iterate through all the controllers and execute the operation in step S105.
[0058] Step S105: For the traversed takeover, check whether two conditions are met simultaneously: (1) the takeover processing flag is unprocessed; (2) the takeover is connected to the current control body iv. If the conditions are met, proceed to step S106; otherwise, proceed to step S111.
[0059] Step S106: Check whether the upstream and downstream control entities of the control unit are both processed control entities. If the processing indicators of the upstream and downstream control entities of the control unit are both processed, set the variable isclosure to true; otherwise, set it to false.
[0060] Step S107: Based on the center elevation and elevation change of the upstream and downstream control bodies of the pipe, calculate the elevation of the two faces of the control body connected to the pipe, and then set the center elevation of the control body that is not the current control body in the upstream and downstream control bodies.
[0061] Step S108: Set the current control body iv to the other control body connected to the pipe (this control body is not the current control body before setting, and becomes the current control body after setting).
[0062] Step S109: Set the processing flag of the takeover and the current control body iv to processed.
[0063] Step S110: Check if isclosure is true. If true, it indicates that the system is closed at the connection point. Check the elevation difference between the two surfaces of the control body connected to the connection point. If the absolute value of the difference is greater than the acceptance criterion (usually set to 0.001 meters), output the elevation is not closed; otherwise, the elevation is closed at this point. After completion, return to step S104.
[0064] Step S111: Loop through all the controllers and execute the operation in step S112.
[0065] Step S112: For each traversed control unit, check if it meets the condition: the processing flag of either of the two upstream or downstream control units connected to the control unit is already processed. If it meets the condition, proceed to step S113; otherwise, proceed to step S114.
[0066] Step S113: Set the current control body iv to the control body whose process identifier is processed by the receiver, and then return to step S104.
[0067] Step S114: Traverse all control bodies and execute the operation in step S115.
[0068] Step S115: For each control body being traversed, check if it meets the condition: the control body's processing flag is "unprocessed". If it does, proceed to step S116; otherwise, end the algorithm.
[0069] Step S116: Set the current control body iv to this control body, and set its processing flag to processed, then return to step S104.
[0070] Figure 3 This is a schematic diagram of a node system provided in an embodiment of the present disclosure; as shown below. Figure 3 As shown, the example contains two independent thermal-hydraulic systems. One system is an open loop (i.e., without closed loops), and the other is a closed loop (with multiple closed sub-loops). There are a total of 10 control bodies and 10 connecting pipes. The control bodies are represented by "V + number 1~10", and the connecting pipes are represented by "J + number 1~10". Figure 4 This is a schematic diagram illustrating the process of the thermal-hydraulic node elevation checking algorithm provided in an embodiment of this disclosure; as shown below. Figure 4 As shown in the diagram (dashed lines represent unprocessed control bodies or connectors, solid lines represent processed control bodies or connectors, thick solid lines represent connectors at loop closures, and arrows point to the current control body), the detailed processing procedure is as follows: Figure 4Region 1 represents the initial state, where all control bodies and receivers are set to an unprocessed state, and the center elevation of all control bodies is set to 0.
[0071] Assuming V1 is selected as the starting control body (i.e., the current control body iv, iv→V1), its processing flag is set to processed, and its center elevation is set to 0, such as... Figure 4 As shown in region 2.
[0072] Iterate through all connectors, searching for a connector connected to V1 that has not yet been processed; let's assume connector J8 is found. Set J8 as processed. Since neither of the two control bodies connected to J8 is processed, set the isolation to false. Then, set the current control body iv to the other control body V3 of J8 (iv→V3) and set it as processed. Calculate the elevation of the V1 surface connected to J8 based on the center elevation and elevation change of V1; calculate the elevation of the V3 surface connected to J8 based on the center elevation and elevation change of V3; reset the center elevation of V3 to the elevation of the V1 surface connected to J8 and the elevation change of V3, using the elevation of the V1 surface connected to J8 and the elevation change of V3. Since the isolation is false, there is no need to check whether the elevations of the two surfaces connected to J8 are equal. Figure 4 As shown in region 3.
[0073] Iterate through all connectors, searching for a connector connected to V3 that has not yet been processed; let's assume the found connector is J3. Set J3 as processed. Since neither of the two controllers connected to J3 is processed, set the isolation to false. Then, set the current controller iv to the other controller V6 of J3 (iv→V6) and set it as processed. Calculate the elevation of the V3 surface connected to J3 based on the center elevation and elevation change of V3; calculate the elevation of the V6 surface connected to J3 based on the center elevation and elevation change of V6; reset the center elevation of V6 to the elevation of the V3 surface connected to J3 and the elevation change of V6 from the V6 surface connected to J3 to the center elevation of V6. Since the isolation is false, there is no need to check whether the elevations of the two surfaces connected to J3 are equal. Figure 4 As shown in region 4.
[0074] Iterate through all connectors, searching for a connector connected to V6 that has not yet been processed; let's assume connector J4 is found. Set J4 as processed. Since neither of the two control bodies connected to J4 is processed, set the isolation to false. Then, set the current control body iv to the other control body V2 of J4 (iv→V2) and set it as processed. Calculate the elevation of the V6 surface connected to J4 based on the center elevation and elevation change of V6; calculate the elevation of the V2 surface connected to J4 based on the center elevation and elevation change of V2; reset the center elevation of V2 to the elevation of the V6 surface connected to J4 and the elevation change of V2, based on the elevation of the V6 surface connected to J4 and the elevation change from the V2 surface connected to J4 to the center of V2. Since the isolation is false, there is no need to check whether the elevations of the two surfaces connected to J4 are equal. Figure 4 As shown in region 5.
[0075] Iterate through all connectors, searching for a connector connected to V2 that has not yet been processed. Assume the found connector is J9 (and it can only be J9). Set J9 as processed. Since both control bodies connected to J9 are processed, the isolation is set to true. Then, set the current control body iv to the other control body V1 of J9 (iv→V1) and set it as processed. Calculate the elevation of the V2 surface connected to J9 based on the center elevation and elevation change of V2; calculate the elevation of the V1 surface connected to J9 based on the center elevation and elevation change of V1; reset the center elevation of V1 to the elevation of the V2 surface connected to J9 and the elevation change of V1 based on the elevation of the V2 surface connected to J9 and the elevation change from the V1 surface connected to J9 to the center of V1. Since the isolation is true, check if the elevations of the two surfaces connected to J9 are equal. If the error is less than the acceptance criteria, it indicates that the elevation is closed; otherwise, the elevation is not closed, and output the relevant information. Figure 4 As shown in region 6.
[0076] Iterate through all connectors, searching for a connector connected to V1 that has not yet been processed. Assume the connector found is J6 (and it can only be J6). Set J6 as processed. Since the two control bodies connected to J6 are not both processed, set the isolation to false. Then, set the current control body iv to the other control body V7 of J6 (iv→V7) and set it as processed. Calculate the elevation of the V1 surface connected to J6 based on the center elevation and elevation change of V1; calculate the elevation of the V7 surface connected to J6 based on the center elevation and elevation change of V7; reset the center elevation of V7 to the elevation of the V1 surface connected to J6 and the elevation change of V7 from the V7 surface connected to J6 to the center elevation of V7. Since the isolation is false, there is no need to check if the elevations of the two surfaces connected to J6 are equal. Figure 4 As shown in region 7.
[0077] Iterate through all connectors, searching for a connector connected to V7 that has not yet been processed. Assume the connector found is J2 (and it can only be J2). Set J2 as processed. Since the two controllers connected to J2 are not both processed, set the isolation to false. Then, set the current controller iv to the other controller V5 of J2 (iv→V5) and set it as processed. Calculate the elevation of the V7 surface connected to J2 based on the center elevation and elevation change of V7; calculate the elevation of the V5 surface connected to J2 based on the center elevation and elevation change of V5; reset the center elevation of V5 to the elevation of the V7 surface connected to J2 and the elevation change of V5 from the V5 surface connected to J2 to the center elevation of V5. Since the isolation is false, there is no need to check if the elevations of the two surfaces connected to J2 are equal. Figure 4 As shown in region 8.
[0078] Iterate through all connectors, searching for a connector connected to V5 that has not yet been processed; let's assume the found connector is J10. Set J10 as processed. Since the two control bodies connected to J10 are not both processed, set the isolation to false. Then, set the current control body iv to the other control body V10 of J10 (iv→V10) and set it as processed. Calculate the elevation of the V5 surface connected to J10 based on the center elevation and elevation change of V5; calculate the elevation of the V10 surface connected to J10 based on the center elevation and elevation change of V10; reset the center elevation of V10 to the elevation of the V5 surface connected to J10 and the elevation change of V10. Since the isolation is false, there is no need to check whether the elevations of the two surfaces connected to J10 are equal. Figure 4 As shown in region 9.
[0079] Iterate through all controllers, searching for a controller connected to V10 that is not yet processed. In this example, there are no unprocessed controllers connected to V10. Iterate through all controllers again, searching for an unprocessed controller where either its upstream or downstream controller is a processed controller. Assume the found controller is J1 (and only J1). Since J1's upstream and downstream controllers V6 and V5 are both processed controllers, choose one of them as the current controller. Let's say we choose V6 (iv→V6) and set it as processed. Figure 4 As shown in region 10.
[0080] Iterate through all connectors, searching for a connector connected to V6 that has not yet been processed. Assume the found connector is J1 (and it can only be J1). Set J1 as processed. Since both control bodies connected to J1 are processed, the isolation is set to true. Then, set the current control body iv to the other control body V5 of J1 (iv→V5) and set it as processed. Calculate the elevation of the V6 surface connected to J1 based on the center elevation and elevation change of V6; calculate the elevation of the V5 surface connected to J1 based on the center elevation and elevation change of V5; reset the center elevation of V5 to the elevation of the V6 surface connected to J1 and the elevation change from the V5 surface connected to J1 to the center elevation of V5 based on the elevation of the V6 surface connected to J1 and the elevation change from the V5 surface connected to J1. Since the isolation is true, check if the elevations of the two surfaces connected to J1 are equal. If the error is less than the acceptance criteria, it indicates that the elevation is closed; otherwise, the elevation is not closed, and output the relevant information. Figure 4 As shown in region 11.
[0081] Iterate through all controllers, searching for a controller connected to V5 that has not yet been processed. There are no more controllers connected to V5 that have not yet been processed. Iterate through all controllers again, searching for an unprocessed controller whose upstream or downstream controller is a processed controller. No controllers meeting this requirement can be found. Iterate through all controllers, searching for an unprocessed controller. Assuming V9 is found, set the current controller to V9 (iv→V9) and set it to processed. For example... Figure 4 As shown in region 12.
[0082] Iterate through all connectors, searching for a connector connected to V9 that has not yet been processed; let's assume the found connector is J7. Set J7 as processed. Since neither of the two control bodies connected to J7 is processed, set the isolation to false. Then, set the current control body iv to the other control body V8 of J7 (iv→V8) and set it as processed. Calculate the elevation of the V9 surface connected to J7 based on the center elevation and elevation change of V9; calculate the elevation of the V8 surface connected to J7 based on the center elevation and elevation change of V8; reset the center elevation of V8 to the elevation of the V9 surface connected to J7 and the elevation change of V8 from the V8 surface connected to J7 to the center elevation of V8. Since the isolation is false, there is no need to check whether the elevations of the two surfaces connected to J7 are equal. Figure 4 As shown in region 13.
[0083] Iterate through all controllers, searching for a controller connected to V8 that is not yet processed. There are no more unprocessed controllers connected to V8. Iterate through all controllers again, searching for an unprocessed controller where either its upstream or downstream controller is a processed controller. Assume the found controller is J5 (and only J5). Since the processed controller connected to J5 is V9, set V9 as the current controller (iv→V9) and set it as processed. For example... Figure 4 As shown in region 14.
[0084] Iterate through all connectors, searching for a connector connected to V9 that has not yet been processed. Assume the connector found is J5 (and it can only be J5). Set J5 as processed. Since the two control bodies connected to J5 are not both processed, set the isolation to false. Then, set the current control body iv to the other control body V4 of J5 (iv→V4) and set it as processed. Calculate the elevation of the V9 surface connected to J5 based on the center elevation and elevation change of V9; calculate the elevation of the V4 surface connected to J5 based on the center elevation and elevation change of V4; reset the center elevation of V4 to the elevation of the V9 surface connected to J5 and the elevation change of V4, based on the elevation of the V9 surface connected to J5 and the elevation change from the V4 surface connected to J5 to the center of V4. Since the isolation is false, there is no need to check whether the elevations of the two surfaces connected to J5 are equal. Figure 4 As shown in region 15.
[0085] Iterate through all controllers, searching for a controller connected to V4 that has not yet been processed. There are no more controllers connected to V4 that have not yet been processed. Iterate through all controllers again, searching for an unprocessed controller whose upstream or downstream controller is either processed. No controller meeting this requirement can be found. Iterate through all controllers, searching for an unprocessed controller. No controller meeting this requirement can be found. The algorithm for this example ends here.
[0086] Figure 5 This is a schematic diagram of the thermal-hydraulic node elevation inspection system provided in the embodiments of this disclosure; as shown. Figure 5As shown, a thermal hydraulic node elevation inspection system includes: an acquisition module 401, used to acquire the processing identifiers of all thermal hydraulic nodes and all connecting pipes, set the status of the processing identifiers to unprocessed, and set the center elevation of all nodes to a preset initial value; a judgment module 402, used to select any node as the current node, set the processing identifier of the current node to processed, and traverse all connecting pipes to determine whether the current connecting pipe meets the preset conditions; a first acceptance module 403, used to, if the current connecting pipe meets the preset conditions, update the center elevation of the node connected to the other end of the current connecting pipe according to the center elevation of the current node and the elevation change corresponding to the current connecting pipe, set the processing identifiers of the current connecting pipe and the node connected to the other end of the current connecting pipe to processed, and output acceptance information, until all connecting pipes are traversed to obtain the acceptance information of all nodes and all connecting pipes; and a second acceptance module 404, used to, if the current connecting pipe does not meet the preset conditions, acquire any connecting pipe that meets the preset conditions, set the node connected to the connecting pipe with the processed identifier as the new current node, and traverse all connecting pipes to determine whether the current connecting pipe meets the preset conditions, until the acceptance information of all nodes and all connecting pipes is obtained.
[0087] In some possible implementations, after the judgment module 402, there is also a closure module (not shown in the figure), which is specifically used to: determine whether the upstream and downstream nodes connected to both ends of the current control are both control bodies whose processing identifier is processed; if so, the closure identifier is set to true; if not, the closure identifier is set to false.
[0088] In some possible implementations, the closure module (not shown in the figure) is specifically used to: determine the difference in elevation between the node surface and the upstream and downstream connections of the current pipe when the closure flag is set to true; output elevation unclosed information when the absolute value of the difference is greater than the preset acceptance condition; and output elevation closed information when the absolute value of the difference is less than or equal to the preset acceptance condition.
[0089] In some possible implementations, the determining module (not shown in the figure) is specifically used to: determine the surface elevation of the current node based on the center elevation of the current node, the elevation change of the current pipe, and the connection direction between the current pipe and the current node.
[0090] In some possible implementations, the traversal module (not shown in the figure) includes a traversal submodule (not shown in the figure) used to traverse all nodes and obtain nodes marked as unprocessed if the current takeover does not meet the preset conditions and all takeovers do not meet the preset conditions.
[0091] In some possible implementations, the submodules (not shown in the figure) are traversed, specifically for: if there are nodes marked as unprocessed, then the node is set as the new current node, the processing mark of the new current node is set as processed, and all takeovers are traversed to determine whether the current takeover meets the preset conditions; if there are no nodes marked as unprocessed, then the acceptance information of all nodes and all takeovers is output.
[0092] In some possible implementations, the recording module (not shown in the figure) is specifically used to record the inspection paths of all takeovers and all nodes.
[0093] This disclosure also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the thermal-hydraulic node elevation checking method.
[0094] This disclosure also provides a computer-readable storage medium storing computer-readable instructions, which, when executed by a processor, implement the steps of a method for checking the elevation of thermal-hydraulic nodes.
[0095] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
[0096] The above are merely specific embodiments of this disclosure, enabling those skilled in the art to understand or implement this disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to these embodiments, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for checking the elevation of a thermal-hydraulic joint, characterized in that, include: Obtain the processing identifiers of all nodes and all pipes of the thermal hydraulic system, set the status of the processing identifiers to unprocessed, and set the center elevation of all nodes to a preset initial value; Select any of the nodes as the current node, set the processing identifier of the current node to processed, and traverse all takeovers to determine whether the current takeover meets the preset conditions. If the current takeover meets the preset conditions, the center elevation of the node connected to the other end of the current takeover is updated according to the center elevation of the current node and the elevation change corresponding to the current takeover. The processing identifiers of the current takeover and the node connected to the other end of the current takeover are set to processed, and the acceptance information is output until all takeovers are traversed and the acceptance information of all nodes and all takeovers is obtained. If the current takeover does not meet the preset conditions, obtain any takeover that meets the preset conditions, set the node whose processing identifier is marked as processed connected by the takeover as the new current node, and traverse all takeovers to determine whether the current takeover meets the preset conditions, until the acceptance information of all nodes and all takeovers is obtained.
2. The method for checking the elevation of thermal-hydraulic nodes according to claim 1, characterized in that, After the steps of selecting any of the nodes as the current node, setting the processing flag of the current node to "processed", traversing all takeovers, and determining whether the current takeover meets the preset conditions, the method further includes: Determine whether the upstream and downstream nodes connected to the current control are both control bodies whose processing identifier is "processed". If so, set the closure identifier to true; otherwise, set the closure identifier to false.
3. The method for checking the elevation of thermal-hydraulic nodes according to claim 2, characterized in that, When the closure flag is set to true, the following applies: Determine the difference in elevation between the node surfaces connected upstream and downstream of the currently controlled node; When the absolute value of the difference is greater than the preset acceptance condition, output elevation unclosed information; When the absolute value of the difference is less than or equal to the preset acceptance condition, the elevation closure information is output.
4. The method for checking the elevation of thermal-hydraulic nodes according to claim 2, characterized in that, Also includes: The surface elevation of the current node is determined based on the center elevation of the current node, the elevation change of the current pipe, and the connection direction between the current pipe and the current node.
5. The method for checking the elevation of thermal-hydraulic nodes according to claim 1, characterized in that, Also includes: If the current takeover does not meet the preset conditions, and all the takeovers do not meet the preset conditions, then all the nodes are traversed to obtain the nodes whose processing identifier is not processed.
6. The method for checking the elevation of thermal-hydraulic nodes according to claim 4, characterized in that, If the current takeover does not meet the preset conditions, and all takeovers do not meet the preset conditions, then all nodes are traversed to obtain the nodes whose processing identifier is unprocessed, including: If there is a node whose processing identifier is unprocessed, then set the node as the new current node, set the processing identifier of the new current node to processed, and traverse all the takeovers to determine whether the current takeover meets the preset conditions. If no node is marked as unprocessed, output the acceptance information for all nodes and all takeovers.
7. The method for checking the elevation of thermal-hydraulic nodes according to any one of claims 1 to 6, characterized in that, Also includes: Record the inspection paths for all takeovers and all nodes.
8. A system for checking the elevation of a thermal-hydraulic joint, characterized in that, include: The acquisition module is used to acquire the processing identifiers of all nodes and all pipes of the thermal hydraulic system, set the status of the processing identifiers to unprocessed, and set the center elevation of all nodes to a preset initial value. The judgment module is used to select any of the nodes as the current node, set the processing identifier of the current node to processed, and traverse all takeovers to determine whether the current takeover meets the preset conditions. The first acceptance module is used to update the center elevation of the node connected to the other end of the current receiver according to the center elevation of the current node and the elevation change corresponding to the current receiver if the current receiver meets the preset conditions, and set the processing flag of the current receiver and the node connected to the other end of the current receiver to be processed, and output acceptance information until all receivers are traversed and the acceptance information of all nodes and all receivers is obtained. The second acceptance module is used to obtain any receiver that meets the preset conditions if the current receiver does not meet the preset conditions, set the node whose processing is marked as processed by the receiver as the new current node, and traverse all receivers to determine whether the current receiver meets the preset conditions, until the acceptance information of all nodes and all receivers is obtained.
9. A computer device, characterized in that, The device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor executes the computer-readable instructions to implement the steps of the thermal-hydraulic node elevation inspection method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the thermal-hydraulic node elevation inspection method as described in any one of claims 1 to 7.