Method, device, equipment and medium for solving fluid equations of thermal hydraulic model
By obtaining and utilizing the configuration parameters and topological diagrams of the thermal hydraulic model, and automatically supplementing the takeover nodes and parameters, the problem of cumbersome and low efficiency in the solution process of the thermal hydraulic model fluid equation in the existing technology is solved, and more efficient and universal numerical solutions are achieved.
Patent Information
- Application Number
- CN202411687456.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-11-25
AI Technical Summary
The solution process of fluid equations of existing thermal hydraulic models is cumbersome, with low computational efficiency and poor universality, making it difficult to meet users' efficient numerical solution needs.
By obtaining the configuration parameters of the target thermal hydraulic model, a basic fluid topology diagram is created, and the model structure topology diagram is determined based on the topology diagram and the connection relationship. Then, the takeover node and takeover model parameters are supplemented automatically, and the operational input parameters are generated to solve the fluid equation.
The solution process of fluid equations of thermal hydraulic model is simplified, the calculation efficiency and universality are improved, and the dependence on professional and technical personnel is reduced.
Smart Images

Figure CN119203852B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a method, device, equipment and medium for solving fluid equations of a thermal hydraulic model. Background Art
[0002] A thermal hydraulic system is a system that transfers heat between a heat source and a cold source through a heat carrier (gas or liquid). By building a thermal hydraulic model corresponding to the thermal hydraulic system in the thermal hydraulic simulation platform and performing numerical calculations on the thermal hydraulic model based on the conservation equations of mass, momentum, and energy, engineers and scientists can better understand and optimize the design and operation of the system.
[0003] Generally speaking, a thermal hydraulic model refers to a three-dimensional model composed of a large number of control body models and nozzle models. The thermal hydraulic simulation platform numerically solves the thermal hydraulic model based on the finite volume method.
[0004] However, the nozzle itself is not an objective physical entity, but a virtual control body interface discretized in the space for numerical solution of fluid equations to establish momentum conservation. Therefore, for ordinary users, if they do not understand the numerical solution algorithm of fluid equations, it is difficult to understand the existence of nozzles in thermal-hydraulic modeling. The existing numerical solution process of thermal-hydraulic models requires users to give the connection relationship between all control bodies and nozzles through modeling, which requires users to have a high theoretical foundation in computational fluid dynamics, and the modeling process is cumbersome. Based on this, there are problems such as cumbersome fluid equation solution process, low computational efficiency and poor universality of thermal-hydraulic models. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for solving fluid equations of a thermal-hydraulic model, so as to simplify the process of solving fluid equations of a thermal-hydraulic model and improve the computational efficiency and universality of the process of solving fluid equations of a thermal-hydraulic model.
[0006] In a first aspect, an embodiment of the present invention provides a method for solving fluid equations of a thermal hydraulic model, wherein the thermal hydraulic model is composed of at least one basic fluid model, each of which is composed of a control body model and a takeover model, and the method comprises:
[0007] Acquire configuration parameters corresponding to the target thermal hydraulic model; wherein the configuration parameters include the preset control volume quantity of each basic fluid model, control volume model parameters, takeover model parameters and connection relationship between each basic fluid model;
[0008] For each of the basic fluid models, based on the preset number of control bodies, a basic fluid topology graph corresponding to the basic fluid model is created; wherein the basic fluid topology graph includes a control body node representing the control body model, a takeover node representing the takeover model, and a unidirectional connection edge representing the connection relationship between each node;
[0009] Determining a model structure topology corresponding to the target thermal hydraulic model based on the connection relationship between each of the basic fluid topology diagrams and the basic fluid model;
[0010] For each connection edge in the model structure topology graph, based on the upstream node and the downstream node of the connection edge, determine whether to generate a supplementary takeover node, so as to update the model structure topology graph based on the supplementary takeover node to obtain a target model structure topology graph;
[0011] Based on the target model structure topology, the control body model parameters of each of the basic fluid models and the takeover model parameters, operation input parameters are determined to solve the fluid equations of the target thermal-hydraulic model based on the operation input parameters.
[0012] In a second aspect, an embodiment of the present invention further provides a device for solving fluid equations of a thermal hydraulic model, wherein the thermal hydraulic model is composed of at least one basic fluid model, each of which is composed of a control body model and a takeover model, and the device comprises:
[0013] A configuration parameter acquisition module, used to acquire configuration parameters corresponding to the target thermal hydraulic model; wherein the configuration parameters include the preset control volume quantity of each basic fluid model, control volume model parameters, takeover model parameters and the connection relationship between each basic fluid model;
[0014] A basic topology diagram determination module is used to create a basic fluid topology diagram corresponding to the basic fluid model for each of the basic fluid models based on the preset number of control bodies; wherein the basic fluid topology diagram includes a control body node representing the control body model, a takeover node representing the takeover model, and a unidirectional connection edge representing the connection relationship between each node;
[0015] A model structure topology diagram determining module, used to determine the model structure topology diagram corresponding to the target thermal hydraulic model based on the connection relationship between each of the basic fluid topology diagrams and the basic fluid model;
[0016] A model structure topology map updating module is used to determine whether to generate a supplementary takeover node for each connection edge in the model structure topology map based on the upstream node and the downstream node of the connection edge, so as to update the model structure topology map based on the supplementary takeover node to obtain a target model structure topology map;
[0017] The fluid equation solving module is used to determine the operation input parameters based on the target model structure topology diagram, the control body model parameters of each basic fluid model and the takeover model parameters, so as to solve the fluid equations of the target thermal-hydraulic model based on the operation input parameters.
[0018] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0019] one or more processors;
[0020] A storage device is used to store one or more programs.
[0021] When one or more programs are executed by one or more processors, the one or more processors implement a method for solving fluid equations of a thermal-hydraulic model as in any one of the embodiments of the present invention.
[0022] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a method for solving fluid equations of a thermal-hydraulic model as described in any of the embodiments of the present invention.
[0023] According to the technical solution of the embodiment of the present invention, the thermal hydraulic model is composed of at least one basic fluid model, each basic fluid model is composed of a control body model and a takeover model, and the method comprises: obtaining configuration parameters corresponding to the target thermal hydraulic model, wherein the configuration parameters include the preset number of control bodies of each basic fluid model, control body model parameters, takeover model parameters and the connection relationship between the basic fluid models, and then, for each basic fluid model, based on the preset number of control bodies, creating a basic fluid topology diagram corresponding to the basic fluid model, wherein the basic fluid topology diagram includes control body nodes representing the control body model, takeover nodes representing the takeover model and and unidirectional connection edges that characterize the connection relationship between each node. Further, based on the connection relationship between each basic fluid topology and the basic fluid model, the model structure topology corresponding to the target thermal hydraulic model is determined. Subsequently, for each connection edge in the model structure topology, based on the upstream node and the downstream node of the connection edge, it is determined whether to generate a supplementary takeover node, so as to update the model structure topology based on the supplementary takeover node and obtain the target model structure topology. Finally, based on the target model structure topology, the control body model parameters of each basic fluid model and the takeover model parameters, the operation input parameters are determined, so as to solve the fluid equation of the target thermal hydraulic model based on the operation input parameters. The technical solution of this embodiment constructs a structure topology corresponding to the target thermal hydraulic model through simple configuration parameters, and automatically supplements the takeover model and the parameter information corresponding to the takeover model through the structure topology, so as to perform the operation of the numerical solution process according to the supplemented takeover model and the takeover parameters. The whole process does not require professional and technical personnel to perform tedious operations, and the numerical solution process can be realized, which simplifies the fluid equation solution process of the thermal hydraulic model and improves the computational efficiency and universality of the fluid equation solution process of the thermal hydraulic model. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 A schematic flow chart of a method for solving fluid equations of a thermal hydraulic model provided by an embodiment of the present invention;
[0026] Figure 2 A schematic diagram of a basic fluid topology diagram corresponding to a basic fluid model involved in an embodiment of the present invention;
[0027] Figure 3An example diagram of a model structure topology diagram corresponding to a target thermal hydraulic model involved in an embodiment of the present invention;
[0028] Figure 4 A schematic diagram of the implementation process of updating the model structure topology diagram to obtain the target model structure topology diagram involved in the embodiment of the present invention;
[0029] Figure 5 A schematic diagram of a target model structure topology diagram after the model structure topology diagram involved in an embodiment of the present invention is updated;
[0030] Figure 6 A schematic flow chart of another method for solving fluid equations of a thermal hydraulic model provided by an embodiment of the present invention;
[0031] Figure 7 A schematic diagram of the implementation flow of the supplementary takeover model parameters corresponding to the supplementary takeover node involved in the embodiment of the present invention;
[0032] Figure 8 A schematic diagram of the structure of a fluid equation solving device for a thermal hydraulic model provided by an embodiment of the present invention;
[0033] Fig. 9 The present invention is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] Embodiment 1
[0035] Figure 1 A flow chart of a method for solving fluid equations of a thermal-hydraulic model provided in an embodiment of the present invention. This embodiment is applicable to situations where numerical solutions to any thermal-hydraulic model are required. The method can be executed by a fluid equation solving device for a thermal-hydraulic model, which can be implemented in the form of software and / or hardware. The hardware can be an electronic device, such as a mobile terminal, a PC, or a server.
[0036] In this embodiment, the thermal hydraulic model may be conceptually described first. The thermal hydraulic model is composed of at least one basic fluid model, and each basic fluid model is composed of a control body model and a pipe model.
[0037] Among them, the thermal hydraulic model is a tool used to simulate and analyze thermal hydraulic systems, mainly used to describe and predict physical phenomena such as fluid flow and heat transfer in the system. This model is based on the conservation equations of mass, momentum and energy, which can help engineers and scientists better understand and optimize the design and operation of the system.
[0038] Among them, the basic fluid model is the basic component unit of a thermal hydraulic model. The basic fluid model is composed of multiple control body models and multiple takeover models. The control body model is a tool for characterizing the control body, and the takeover model is a tool for characterizing the takeover. In fluid mechanics, a control body refers to a spatial volume in the space where the fluid is located, which is surrounded by an imaginary or real fluid boundary and has a fixed shape or can move and deform. The takeover itself is not an objectively existing physical entity, but a virtual control body interface discretized from the space for numerical solution of fluid equations to establish momentum conservation.
[0039] For example, for a certain physical fluid device, a corresponding thermal hydraulic model can be constructed through the thermal hydraulic simulation platform. This physical fluid device can be composed of multiple pipes, multiple pumps and other physical components. Based on this, each physical component can correspond to a basic fluid model. For example, a physical pipe can correspond to a basic fluid model, which is called a pipe model.
[0040] Before building a thermal mechanics model, some parameter information can be preconfigured, including the preset control volume quantity, control volume model parameters, takeover model parameters, and connection relationships between basic fluid models of each basic fluid model included in the thermal mechanics model.
[0041] Among them, the preset number of control bodies is used to indicate the number of control body models contained in a basic fluid model. Since different basic fluid models correspond to different physical entity components, the control body model parameters and takeover model parameters corresponding to different basic fluid models are different. Here, the control body parameters corresponding to the control body models corresponding to different basic fluid models can be configured in advance, and the takeover model parameters corresponding to the takeover model can be configured in advance. The connection relationship between each basic fluid model is used to indicate the relative position relationship between different basic fluid models, that is, how they are connected.
[0042] like Figure 1 As shown in FIG. 1 , the method for solving the fluid equations of the thermal hydraulic model includes:
[0043] S110. Obtain configuration parameters corresponding to the target thermal-hydraulic model.
[0044] The target thermal-hydraulic model is a thermal-hydraulic model to be numerically solved.
[0045] In this embodiment, the configuration parameters of the target thermal-hydraulic model are pre-configured, and when a numerical solution is required, the corresponding configuration parameters can be obtained.
[0046] For example, the target thermal hydraulic model can be a model created using the Modelica language. When creating the model, each basic fluid model can be annotated. The annotation information includes the preset control volume number of each basic fluid model, the control volume model parameters corresponding to each basic fluid model, the takeover model parameters corresponding to each basic fluid model, and the connection relationship between the basic fluid models. When the data value of the target thermal hydraulic model needs to be interpreted, the specific compilation unit in the thermal hydraulic simulation platform can identify the annotation information and obtain the configuration parameters corresponding to the target thermal hydraulic model.
[0047] It should be noted that the control body parameters may include the constitutive equation and initial parameters (eg, gas flow rate, liquid flow rate, etc.) corresponding to the control body model; the takeover parameters may include the constitutive equation and initial parameters corresponding to the takeover model.
[0048] Exemplarily, the configuration parameters corresponding to the target thermal-hydraulic model may include: 6 basic fluid models, namely basic fluid model A, basic fluid model B, basic fluid model C, basic fluid model D, basic fluid model E and basic fluid model F; the number of preset control bodies corresponding to basic fluid model A is 3, and the control body model parameters are expressed as V1, and the takeover model parameters are expressed as J1; the number of preset control bodies corresponding to basic fluid model B is 5, and the control body model parameters are expressed as V2, and the takeover model parameters are expressed as J2; ...; the number of preset control bodies corresponding to basic fluid model F is 2, and the control body model parameters are expressed as V6, and the takeover model parameters are expressed as J6; the connection relationship between the basic fluid models is: basic fluid model A and basic fluid model B are connected end to end in the horizontal direction, basic fluid model B and basic fluid model C are connected end to end in the horizontal direction, basic fluid model D is connected end to end in a manner perpendicular to basic fluid model A downward, basic fluid model E is connected end to end in a manner perpendicular to basic fluid model D to the right, and basic fluid model F is connected end to end in a manner perpendicular to basic fluid model E upward and perpendicular to basic fluid model C downward.
[0049] S120. For each basic fluid model, based on a preset number of control volumes, create a basic fluid topology map corresponding to the basic fluid model.
[0050] The basic fluid topology diagram includes control body nodes representing the control body model, takeover nodes representing the takeover model, and unidirectional connection edges representing the connection relationship between each node.
[0051] In this embodiment, the processing process for each basic fluid model is the same. Here, any one of the basic fluid models is taken as the current basic fluid model, and the current basic fluid model is used as an example for exemplary description. According to the preset number of control bodies, it can be determined that the current basic fluid model includes several control body models and several takeover models, so that control body nodes corresponding to the number of control body models and takeover nodes corresponding to the number of takeover models can be generated. These control body nodes and takeover nodes are sequentially connected to obtain the basic fluid topology corresponding to the current basic fluid model.
[0052] Specifically, based on the preset number of control bodies, the specific implementation steps of creating a basic fluid topology map corresponding to the basic fluid model may include:
[0053] S1201, determine a preset number of control body nodes and a takeover node which is one less than the preset number of control bodies.
[0054] In this embodiment, a takeover model is connected between every two adjacent control body models.
[0055] Exemplarily, the number of preset control bodies corresponding to a basic fluid model is 4, which means that the basic fluid model includes 4 control body models and 3 takeover models, based on which 4 control body nodes and 3 takeover nodes can be generated.
[0056] S1202, taking the control body node as the starting point and the end point, creating a unidirectional connection edge in a staggered connection manner between the control body node and the takeover node, and obtaining a basic fluid topology diagram corresponding to the basic fluid model.
[0057] Based on the above exemplary embodiment, the schematic diagram of the basic fluid topology corresponding to the basic fluid model can be found in Figure 2 .like Figure 2 As shown in the figure, the rectangle represents the control body node, the circle represents the takeover node, and in the basic fluid topology diagram, the starting point and the end point are both control body nodes, and the control body node and the takeover node are connected in a unidirectional staggered connection from left to right. Based on this, the basic fluid topology diagram corresponding to each basic fluid model can be obtained by using the same topology diagram construction method.
[0058] S130, determining a model structure topology diagram corresponding to a target thermal hydraulic model based on the connection relationship between each basic fluid topology diagram and the basic fluid model.
[0059] Among them, the model structure topology diagram is a graphical representation of the topological structure of the target thermal hydraulic model.
[0060] In this embodiment, on the basis of obtaining the basic fluid topology diagram corresponding to each basic fluid model, the basic fluid topology diagrams can be combined and spliced through the connection relationship between the basic fluid models to obtain the model structure topology diagram corresponding to the target thermal-hydraulic model.
[0061] Based on the above examples, see the example diagram of the model structure topology diagram corresponding to the target thermal hydraulic model. Figure 3 .like Figure 3 As shown, "V11-J11-V12" is the first basic fluid topology map corresponding to the basic fluid model A; "V21-J21-V12-J22-V23" is the second basic fluid topology map corresponding to the basic fluid model B; "V31-J31-V32" is the third basic fluid topology map corresponding to the basic fluid model C; "V41-J41-V42-J42-V43" is the fourth basic fluid topology map corresponding to the basic fluid model D; "V51-J51-V52-J52-V53" is the fifth basic fluid topology map corresponding to the basic fluid model E; "V61-J61-V62-J62-V63" is the sixth basic fluid topology map corresponding to the basic fluid model F. The first basic fluid topology diagram is connected end to end with the second basic fluid topology diagram in the horizontal direction, the second basic fluid topology diagram is connected end to end with the third basic fluid topology diagram in the horizontal direction, the third basic fluid topology diagram is connected end to end in a manner perpendicular to the first basic fluid topology diagram downward, the fifth basic fluid topology diagram is connected end to end in a manner perpendicular to the fourth basic fluid topology diagram to the right, and the sixth basic fluid topology diagram is connected end to end in a manner perpendicular to the fifth basic fluid topology diagram upward and perpendicular to the third basic fluid topology diagram downward.
[0062] S140. For each connection edge in the model structure topology graph, determine whether to generate a supplementary takeover node based on the upstream node and the downstream node of the connection edge, so as to update the model structure topology graph based on the supplementary takeover node to obtain the target model structure topology graph.
[0063] In this embodiment, the connection edge in the model structure topology diagram has a direction and is unidirectional. For a certain connection edge, for the two nodes connected by the connection edge, the node located upstream is called the upstream node, and the node located downstream is called the downstream node. Figure 3 , the connection edge between the control body node V11 and the takeover node J11 is the current connection edge, the control body node V11 is the upstream node of the current connection edge, and the takeover node J11 is the downstream node of the current connection edge.
[0064] The supplementary takeover node is a supplementary takeover node, which is different from the original takeover node in the model structure topology diagram. The target model structure topology diagram is a topology diagram determined after updating the original model structure topology diagram according to at least one supplementary takeover node.
[0065] In this embodiment, the schematic diagram of the implementation process of updating the model structure topology map to obtain the target model structure topology map is shown in Figure 4 .like Figure 4 As shown, each connection edge in the model structure topology graph can be traversed, and the following processing is performed for each connection point: determine whether the node types of the upstream node and the downstream node of the connection edge are the same control body node. If so, a supplementary takeover node is generated; if not, a supplementary takeover node is not generated. Based on this, after traversing each connection edge in the model structure topology graph, a supplementary takeover node may not be generated, or one or more supplementary takeover nodes may be generated. In the case where a supplementary takeover node is not generated, the fluid equations of the target thermal-hydraulic model can be solved based on the model structure topology graph, the control body model parameters of each basic fluid model, and the takeover model parameters. In the case of generating at least one supplementary takeover node, the model structure topology graph is first updated based on the supplementary takeover node to obtain the target model structure topology graph, so as to solve the fluid equations of the target thermal-hydraulic model based on the target model structure topology graph, the control body model parameters of each basic fluid model, and the takeover model parameters.
[0066] Optionally, the specific implementation process of determining whether to generate a supplementary takeover node based on the upstream node and the downstream node of the connecting edge may include: generating a supplementary takeover node when the upstream node and the downstream node of the connecting edge are both control body nodes and the control body model corresponding to the upstream node is a non-boundary control body model.
[0067] Among them, the non-boundary control volume model refers to the control volume model located at the boundary position for the entire target thermal hydraulic model. Figure 3 As shown, Figure 3 V11 and V32 in are control body nodes corresponding to the boundary control body. Except for V11 and V32, the control body model corresponding to each control body node is a non-boundary control body model.
[0068] In this embodiment, if a supplementary takeover node is to be generated, the corresponding parameter information needs to be determined. If the upstream node of the current connection edge is a boundary control body model, the parameter information corresponding to the supplementary takeover node cannot be determined. Therefore, generating a supplementary reference node needs to meet two conditions, namely (1) the upstream node and the downstream node of the connection edge are both control body nodes; (2) the control body model corresponding to the upstream node is a non-boundary control body model. If there is a situation where the upstream node and the downstream node of the connection edge are both control body nodes, but the control body model corresponding to the upstream node is a boundary control body model, an error message can be fed back at this time. For example, the error message can be expressed as a prompt message of "unable to supplement the takeover".
[0069] In this embodiment, the specific implementation method of updating the model structure topology map based on the supplementary takeover node to obtain the target model structure topology map may include: adding a supplementary takeover node between the upstream node of the connecting edge and the downstream node of the connecting edge to obtain the target model structure topology map.
[0070] Specifically, if a supplementary takeover node corresponding to a connection edge is generated, the connection edge can be deleted, and a supplementary takeover node can be added between the upstream node and the downstream node, and then a connection edge between the upstream node and the supplementary takeover node and a connection edge between the downstream node and the supplementary takeover node are created. Figure 3 For the model structure topology diagram shown in FIG, a supplementary takeover node JS1 can be added between V12 and V21, a supplementary takeover node JS2 can be added between V23 and V31, a supplementary takeover node JS3 can be added between V12 and V41, a supplementary takeover node JS4 can be added between V43 and V51, a supplementary takeover node JS5 can be added between V53 and V61, and a supplementary takeover node JS6 can be added between V31 and V63. Based on this, the schematic diagram of the target model structure topology diagram after the model structure topology diagram is updated can be found in FIG. Figure 5 .
[0071] S150, based on the target model structure topology, the control body model parameters of each basic fluid model and the takeover model parameters, determine the operation input parameters to solve the fluid equations of the target thermal hydraulic model based on the operation input parameters.
[0072] The operation input parameters are the input parameters required to solve the fluid equations of the target thermal hydraulic model.
[0073] In this embodiment, the model structure of the target thermal-hydraulic model, the control body model parameters corresponding to each control body model constituting the model, and the takeover model parameters corresponding to each takeover model can be used as input parameters for solving the fluid equation corresponding to the target thermal-hydraulic model, so that the target algorithm integrated in the thermal-hydraulic simulation platform performs numerical solution operations on the input parameters to obtain the numerical solution results of the fluid equation. However, in this embodiment, since the supplementary takeover node is generated, the takeover model parameters corresponding to the supplementary takeover node need to be determined before the target algorithm can be executed to obtain the solution results of the fluid equation corresponding to the target thermal-hydraulic model.
[0074] Next, how to determine the takeover parameters corresponding to the compensation takeover node is described. For each supplementary takeover node, the implementation method of determining the corresponding takeover parameters is consistent. Here, any one of the supplementary takeover nodes is taken as the current supplementary takeover node, and the current supplementary takeover node is used as an example for description. The first step is to determine the upstream takeover node adjacent to the current supplementary takeover node according to the specific position of the current supplementary takeover node in the target model structure topology diagram; the second step is to determine the takeover parameters corresponding to the upstream takeover node as the takeover parameters of the current supplementary takeover node if the upstream takeover node is not a supplementary takeover node and is not a boundary takeover node; the third step is to determine the upstream takeover node adjacent to the upstream takeover node and determine whether it is a supplementary takeover node... Repeat the above second and third steps until the takeover parameters of the current supplementary takeover node are determined. It should be noted that if the reference takeover node cannot be finally determined, an error message can be fed back. For example, the error message can be expressed as a prompt message of "unable to determine the supplementary takeover parameters". Based on the same processing method, the takeover parameters corresponding to each supplementary takeover node can be obtained. Furthermore, the target model structural topology corresponding to the target thermal-hydraulic model, the control body model parameters corresponding to each control body model constituting the model, the takeover model parameters corresponding to each takeover model (the takeover model here does not include the supplementary takeover model corresponding to the supplementary takeover node), and the supplementary takeover model parameters corresponding to each supplementary takeover model can be used as input parameters for solving the fluid equation corresponding to the target thermal-hydraulic model. The target algorithm performs numerical solution operations on the input parameters to obtain the numerical solution results of the fluid equations.
[0075] According to the technical solution of the embodiment of the present invention, the thermal hydraulic model is composed of at least one basic fluid model, each basic fluid model is composed of a control body model and a takeover model, and the method comprises: obtaining configuration parameters corresponding to the target thermal hydraulic model, wherein the configuration parameters include the preset number of control bodies of each basic fluid model, control body model parameters, takeover model parameters and the connection relationship between the basic fluid models, and then, for each basic fluid model, based on the preset number of control bodies, creating a basic fluid topology diagram corresponding to the basic fluid model, wherein the basic fluid topology diagram includes control body nodes representing the control body model, takeover nodes representing the takeover model and and unidirectional connection edges that characterize the connection relationship between each node. Further, based on the connection relationship between each basic fluid topology and the basic fluid model, the model structure topology corresponding to the target thermal hydraulic model is determined. Subsequently, for each connection edge in the model structure topology, based on the upstream node and the downstream node of the connection edge, it is determined whether to generate a supplementary takeover node, so as to update the model structure topology based on the supplementary takeover node and obtain the target model structure topology. Finally, based on the target model structure topology, the control body model parameters of each basic fluid model and the takeover model parameters, the operation input parameters are determined, so as to solve the fluid equation of the target thermal hydraulic model based on the operation input parameters. The technical solution of this embodiment constructs a structure topology corresponding to the target thermal hydraulic model through simple configuration parameters, and automatically supplements the takeover model and the parameter information corresponding to the takeover model through the structure topology, so as to perform the operation of the numerical solution process according to the supplemented takeover model and the takeover parameters. The whole process can realize the numerical solution process without the need for professionals to perform tedious operations, which simplifies the fluid equation solution process of the thermal hydraulic model and improves the computational efficiency and universality of the fluid equation solution process of the thermal hydraulic model.
[0076] Embodiment 2
[0077] Figure 6 This is a schematic diagram of a method for solving fluid equations of a thermal hydraulic model provided in an embodiment of the present invention. Based on the above embodiment, S150 is further refined. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same or corresponding to the above embodiment are not repeated here.
[0078] like Figure 6 As shown, the method specifically comprises the following steps:
[0079] S210, obtaining configuration parameters corresponding to the target thermal-hydraulic model, wherein the configuration parameters include the preset control volume quantity of each basic fluid model, control volume model parameters, takeover model parameters, and connection relationships between the basic fluid models.
[0080] S220. For each basic fluid model, based on a preset number of control bodies, create a basic fluid topology map corresponding to the basic fluid model.
[0081] S230: Determine a model structure topology diagram corresponding to a target thermal hydraulic model based on the connection relationship between each basic fluid topology diagram and the basic fluid model.
[0082] S240. For each connection edge in the model structure topology graph, determine whether to generate a supplementary takeover node based on the upstream node and the downstream node of the connection edge, so as to update the model structure topology graph based on the supplementary takeover node to obtain the target model structure topology graph.
[0083] S250. For each supplementary takeover node in the target model structure topology diagram, determine at least one upstream takeover node corresponding to the supplementary takeover node based on the target model structure topology diagram.
[0084] The upstream takeover node refers to a takeover node located upstream of the supplementary takeover node.
[0085] In this embodiment, for each supplementary takeover node, the implementation method of determining the corresponding upstream takeover node is consistent, and any one of the supplementary takeover nodes is taken as the current supplementary takeover node, and the current supplementary takeover node is used as an example for explanation. It should be particularly noted that the current supplementary takeover node is the supplementary takeover node currently being processed. The specific position of the current supplementary takeover node in the target model structure topology diagram is easy to determine, thereby, one or more upstream takeover nodes located upstream of the supplementary takeover node can be determined.
[0086] For example, see Figure 5 ,by Figure 5 JS3 is the current supplementary takeover node, and at least one upstream takeover node corresponding to the current supplementary takeover node includes J11.
[0087] S260. Determine a target reference takeover node from at least one upstream node based on node attributes of at least one upstream takeover node.
[0088] The node attribute refers to the inherent attribute corresponding to a certain upstream takeover node, and the node attribute may be the annotation information defined for the node when generating a certain node, the category to which the node belongs, etc. The target reference takeover node is the takeover node whose corresponding takeover parameter is determined as the takeover parameter corresponding to the supplementary takeover node.
[0089] Specifically, determining the target reference takeover node from at least one upstream node may include: for at least one upstream takeover node, taking the upstream takeover node closest to the current supplementary takeover node as the starting point, judging in turn whether the upstream takeover nodes meet preset conditions; when an upstream takeover node that meets the preset conditions is detected, determining the upstream takeover node as the target reference takeover node.
[0090] The preset condition is a pre-set rule used to determine whether a certain upstream takeover node is a target reference takeover node. In this embodiment, the preset condition includes: the upstream takeover node is a supplementary takeover node, and / or the upstream takeover node is a boundary takeover node. It should be noted that for each takeover node, annotation information can be added. For example, whether a certain takeover node is a boundary takeover node is annotated in advance. Figure 5 ,by Figure 5 Taking J11 in as an example, if V11 corresponds to a pressure type boundary control body model and J11 corresponds to a non-boundary takeover model, the annotation information corresponding to J11 may be “non-boundary takeover”; if V11 corresponds to a flow type boundary control body model and J11 corresponds to a boundary takeover model, the annotation information corresponding to J11 may be “boundary takeover”.
[0091] Based on the above exemplary embodiment, for the current supplementary takeover node JS3, it is determined whether the upstream takeover node J11 is a supplementary takeover node and whether the upstream takeover node J11 is a boundary takeover node; Figure 5 It can be seen that J11 is neither a supplementary takeover node nor a boundary takeover node, and therefore, the upstream takeover node J11 can be determined as the target reference takeover node.
[0092] S270. Determine the supplementary takeover model parameters corresponding to the supplementary takeover node based on the takeover model parameters corresponding to the basic fluid model to which the target reference takeover node belongs.
[0093] In this embodiment, on the basis of determining the target reference takeover node, the basic fluid model to which the target reference takeover node belongs is easy to determine, thereby easily determining the takeover model parameters corresponding thereto. Thus, the takeover model parameters corresponding to the target reference takeover node can be determined as the supplementary takeover model parameters corresponding to the supplementary takeover node, thus achieving parameter completion of the supplementary takeover node.
[0094] For an exemplary implementation flow diagram of the supplementary takeover model parameters corresponding to the supplementary takeover node, see Figure 7 .like Figure 7As shown, considering the situation that the upstream takeover node adjacent to the supplementary takeover node is also a supplementary takeover node, and the situation that the upstream takeover node adjacent to the supplementary takeover node is a boundary takeover node (because the parameter information of the boundary takeover node has no reference value), a recursive algorithm can be used to handle this situation to reduce the complexity of the algorithm.
[0095] In this embodiment, the calculation information of the supplementary take-over node completely copies the reference take-over. In order to ensure the extensibility of the thermal hydraulic simulation software based on the Modelica language, the constitutive equation and initial parameters of the reference take-over will not be fixedly written in the bottom layer of the software, but will be obtained by the model layer. In this embodiment, the reference take-over of the supplementary take-over is first set as the first upstream take-over of the upstream control body of the supplementary take-over, which can ensure that the supplementary take-over is automatically generated normally in most modeling situations.
[0096] S280. Determine the target model structure topology diagram, the supplementary takeover model parameters corresponding to each supplementary takeover node, the control body model parameters corresponding to each control body node in the target model structure topology diagram, and the takeover model parameters corresponding to each takeover node as the operation input parameters corresponding to the target thermal-hydraulic model.
[0097] In this embodiment, the target model structural topology corresponding to the target thermal-hydraulic model, the control body model parameters corresponding to each control body model constituting the model, the takeover model parameters corresponding to each takeover model, and the supplementary takeover model parameters corresponding to each supplementary takeover model can be used as computational input parameters for solving the fluid equation corresponding to the target thermal-hydraulic model, so that the target algorithm performs numerical solution operations on the computational input parameters to obtain the numerical solution results of the fluid equations.
[0098] S290, solving the fluid equations of the target thermal hydraulic model based on the operation input parameters.
[0099] The technical solution of the embodiment of the present invention, when determining the operation input parameters based on the target model structure topology map, the control body model parameters of each basic fluid model and the takeover model parameters, for each supplementary takeover node in the target structure topology map, at least one upstream takeover node corresponding to the supplementary takeover node is determined based on the target structure topology map, and then, based on the node attributes of at least one upstream takeover node, the target reference takeover node is determined from at least one upstream node, and further, based on the takeover model parameters corresponding to the basic fluid model to which the target reference takeover node belongs, the supplementary takeover model parameters corresponding to the supplementary takeover node are determined, thereby, the target structure topology map, the supplementary takeover model parameters corresponding to each supplementary takeover node, the control body model parameters corresponding to each control body node in the target structure topology map, and the takeover model parameters corresponding to each takeover node are determined as the operation input parameters corresponding to the target fluid device model. The technical solution provided by this embodiment determines the reference takeover node through the target model structure topology map and preset conditions, and uses the parameter information of the reference takeover node as the parameter information of the supplementary takeover node, thereby realizing the parameter completion of the supplementary takeover node, and can efficiently and accurately determine the parameter information corresponding to the supplementary takeover.
[0100] Embodiment 3
[0101] Figure 8 A structural schematic diagram of a fluid equation solving device for a thermal-hydraulic model provided in an embodiment of the present invention, wherein the thermal-hydraulic model is composed of at least one basic fluid model, each of which is composed of a control body model and a takeover model, and the device includes: a configuration parameter acquisition module 310, a basic topology map determination module 320, a model structure topology map determination module 330, a model structure topology map update module 340 and a fluid equation solving module 350.
[0102] Among them, the configuration parameter acquisition module 310 is used to obtain the configuration parameters corresponding to the target thermal hydraulic model; wherein the configuration parameters include the preset control body quantity, control body model parameters, takeover model parameters and the connection relationship between each of the basic fluid models; the basic topology diagram determination module 320 is used to create a basic fluid topology diagram corresponding to the basic fluid model for each of the basic fluid models based on the preset control body quantity; wherein the basic fluid topology diagram includes control body nodes representing the control body model, takeover nodes representing the takeover model and unidirectional connection edges representing the connection relationship between each node; the model structure topology diagram determination module 330 is used to determine the basic fluid topology diagram based on each of the basic fluid models. The connection relationship between the basic fluid topology diagram and the basic fluid model is used to determine the model structure topology diagram corresponding to the target thermal-hydraulic model; the model structure topology diagram updating module 340 is used to determine whether to generate a supplementary takeover node for each connection edge in the model structure topology diagram based on the upstream node and the downstream node of the connection edge, so as to update the model structure topology diagram based on the supplementary takeover node to obtain the target model structure topology diagram; the fluid equation solving module 350 is used to determine the operation input parameters based on the target model structure topology diagram, the control body model parameters of each of the basic fluid models and the takeover model parameters, so as to solve the fluid equations of the target thermal-hydraulic model based on the operation input parameters.
[0103] Based on the above device, optionally, the basic topology map determination module 320 includes:
[0104] A node determination unit is used to determine the control body nodes of the preset control body number and the takeover nodes which are one less than the preset control body number; a basic topology diagram determination unit is used to create unidirectional connection edges in a staggered manner with the control body nodes as the starting point and the end point, so as to obtain a basic fluid topology diagram corresponding to the basic fluid model.
[0105] Based on the above-mentioned device, optionally, the model structure topology map determination module 330 includes: a supplementary takeover node generation unit; a supplementary takeover node generation unit, which is specifically used to generate a supplementary takeover node when the upstream node and the downstream node of the connection edge are both control body nodes, and the control body model corresponding to the upstream node is a non-boundary control body model.
[0106] Based on the above-mentioned device, optionally, the model structure topology map determination module 330 includes: a target model structure topology map determination unit; a target model structure topology map determination unit, which is specifically used to add the supplementary takeover node between the upstream node of the connection edge and the downstream node of the connection edge to obtain the target model structure topology map.
[0107] On the basis of the above-mentioned device, optionally, the fluid equation solving module 350 includes: an operation input parameter determination unit; an operation input parameter determination unit, including: an upstream node determination subunit, which is used to determine at least one upstream takeover node corresponding to each of the supplementary takeover nodes in the target model structure topology diagram based on the target model structure topology diagram; a reference takeover determination subunit, which is used to determine the target reference takeover node from the at least one upstream node based on the node attributes of the at least one upstream takeover node; a supplementary takeover parameter determination subunit, which is used to determine the supplementary takeover model parameters corresponding to the supplementary takeover node based on the takeover model parameters corresponding to the basic fluid model to which the target reference takeover node belongs; an input parameter determination subunit, which is used to determine the target model structure topology diagram, the supplementary takeover model parameters corresponding to each of the supplementary takeover nodes, the control body model parameters corresponding to each of the control body nodes in the target model structure topology diagram, and the takeover model parameters corresponding to each of the takeover nodes as the operation input parameters corresponding to the target thermal-hydraulic model.
[0108] On the basis of the above-mentioned device, optionally, a reference takeover determination subunit is specifically used to determine, for the at least one upstream takeover node, whether the upstream takeover node meets the preset conditions in sequence, starting from the upstream takeover node closest to the current supplementary takeover node; when an upstream takeover node that meets the preset conditions is detected, the upstream takeover node is determined as the target reference takeover node.
[0109] Based on the above device, optionally, the preset conditions include: the upstream takeover node is a supplementary takeover node, and / or the upstream takeover node is a boundary takeover node.
[0110] The technical solution of the embodiment of the present invention constructs a structural topology diagram corresponding to the target thermal-hydraulic model through simple configuration parameters, and automatically supplements the takeover model and the parameter information corresponding to the takeover model through the structural topology diagram, so as to perform the numerical solution process according to the supplemented takeover model and the takeover parameters. The entire process does not require professional and technical personnel to perform tedious operations to realize the numerical solution process, which simplifies the fluid equation solution process of the thermal-hydraulic model and improves the computational efficiency and universality of the fluid equation solution process of the thermal-hydraulic model.
[0111] The fluid equation solving device for the thermal-hydraulic model provided in the embodiment of the present invention can execute the fluid equation solving method for the thermal-hydraulic model provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0112] It is worth noting that the various units and modules included in the above system are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0113] Embodiment 4
[0114] Fig. 9 A schematic diagram of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0115] like Fig. 9 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0116] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0117] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a target control object posture control method.
[0118] In some embodiments, the target control object posture control method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the target control object posture control method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the target control object posture control method in any other appropriate manner (for example, by means of firmware).
[0119] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0121] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which a user can provide input to the electronic device. The systems and techniques described herein may be implemented in a computing system including a backend component (e.g., as a data server), or a computing system including a middleware component (e.g., an application server), or a computing system including a frontend component (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0123] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0124] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0125] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0126] Embodiment 5
[0127] An embodiment of the present invention further provides a storage medium comprising computer executable instructions, which are used to execute a method for solving fluid equations of a thermal hydraulic model when executed by a computer processor.
[0128] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device.
[0129] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0130] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0131] Computer program code for performing the operation of the embodiments of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0132] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for solving fluid equations of a thermal hydraulic model, wherein the thermal hydraulic model is composed of at least one basic fluid model, each of which is composed of a control body model and a takeover model, characterized in that: include: Acquire configuration parameters corresponding to the target thermal hydraulic model; wherein the configuration parameters include the preset control volume quantity of each basic fluid model, control volume model parameters, takeover model parameters and connection relationship between each basic fluid model; For each of the basic fluid models, based on the preset number of control bodies, a basic fluid topology graph corresponding to the basic fluid model is created; wherein the basic fluid topology graph includes a control body node representing the control body model, a takeover node representing the takeover model, and a unidirectional connection edge representing the connection relationship between each node; Determining a model structure topology corresponding to the target thermal hydraulic model based on the connection relationship between each of the basic fluid topology diagrams and the basic fluid model; For each connection edge in the model structure topology graph, based on the upstream node and the downstream node of the connection edge, determine whether to generate a supplementary takeover node, so as to update the model structure topology graph based on the supplementary takeover node to obtain a target model structure topology graph; Determine operation input parameters based on the target model structure topology diagram, the control body model parameters of each of the basic fluid models, and the takeover model parameters, so as to solve the fluid equations of the target thermal hydraulic model based on the operation input parameters; Wherein, the operation input parameters are determined based on the target model structure topology diagram, the control body model parameters of each of the basic fluid models, and the takeover model parameters, including: For each of the supplementary takeover nodes in the target model structure topology graph, determining at least one upstream takeover node corresponding to the supplementary takeover node based on the target model structure topology graph; Determining a target reference takeover node from the at least one upstream node based on a node attribute of the at least one upstream takeover node; Determine the supplementary takeover model parameters corresponding to the supplementary takeover node based on the takeover model parameters corresponding to the basic fluid model to which the target reference takeover node belongs; The target model structure topology diagram, the supplementary takeover model parameters corresponding to each of the supplementary takeover nodes, the control body model parameters corresponding to each of the control body nodes in the target model structure topology diagram, and the takeover model parameters corresponding to each of the takeover nodes are determined as the operation input parameters corresponding to the target thermal-hydraulic model.
2. The method according to claim 1, characterized in that The step of creating a basic fluid topology diagram corresponding to the basic fluid model based on the preset number of control bodies includes: Determine the control body nodes of the preset number of control bodies, and the takeover nodes which are one less than the preset number of control bodies; The control body node is used as the starting point and the end point, and a unidirectional connection edge is created in a staggered connection manner between the control body node and the takeover node to obtain a basic fluid topology graph corresponding to the basic fluid model.
3. The method according to claim 1, characterized in that The determining whether to generate a supplementary takeover node based on the upstream node and the downstream node of the connection edge includes: When both the upstream node and the downstream node of the connection edge are control body nodes, and the control body model corresponding to the upstream node is a non-boundary control body model, a supplementary takeover node is generated.
4. The method according to claim 1, characterized in that: The updating of the model structure topology map based on the supplementary takeover node to obtain a target model structure topology map includes: The supplementary takeover node is added between the upstream node of the connection edge and the downstream node of the connection edge to obtain a target model structure topology graph.
5. The method according to claim 1, characterized in that The determining, based on the node attribute of the at least one upstream takeover node, a target reference takeover node from the at least one upstream node comprises: For the at least one upstream takeover node, starting from the upstream takeover node closest to the current supplementary takeover node, determine in sequence whether the upstream takeover node meets the preset conditions; When an upstream takeover node that meets the preset condition is detected, the upstream takeover node is determined as a target reference takeover node.
6. The method according to claim 5, characterized in that The preset conditions include: the upstream takeover node is a supplementary takeover node, and / or the upstream takeover node is a boundary takeover node.
7. A fluid equation solving device for a thermal hydraulic model, wherein the thermal hydraulic model is composed of at least one basic fluid model, each of which is composed of a control body model and a take-over model, characterized in that: The device includes: A configuration parameter acquisition module, used to acquire configuration parameters corresponding to the target thermal hydraulic model; wherein the configuration parameters include the preset control volume quantity of each basic fluid model, control volume model parameters, takeover model parameters and the connection relationship between each basic fluid model; A basic topology diagram determination module is used to create a basic fluid topology diagram corresponding to the basic fluid model for each of the basic fluid models based on the preset number of control bodies; wherein the basic fluid topology diagram includes a control body node representing the control body model, a takeover node representing the takeover model, and a unidirectional connection edge representing the connection relationship between each node; A model structure topology diagram determining module, used to determine the model structure topology diagram corresponding to the target thermal hydraulic model based on the connection relationship between each of the basic fluid topology diagrams and the basic fluid model; A model structure topology map updating module is used to determine whether to generate a supplementary takeover node for each connection edge in the model structure topology map based on the upstream node and the downstream node of the connection edge, so as to update the model structure topology map based on the supplementary takeover node to obtain a target model structure topology map; A fluid equation solving module, used for determining operation input parameters based on the target model structure topology diagram, the control body model parameters of each of the basic fluid models and the takeover model parameters, so as to solve the fluid equations of the target thermal hydraulic model based on the operation input parameters; Wherein, the fluid equation solving module includes a calculation input parameter determination unit; the calculation input parameter determination unit includes: An upstream node determination subunit, used to determine, for each of the supplementary takeover nodes in the target model structure topology diagram, at least one upstream takeover node corresponding to the supplementary takeover node based on the target model structure topology diagram; A reference takeover determination subunit, configured to determine a target reference takeover node from the at least one upstream node based on a node attribute of the at least one upstream takeover node; A supplementary takeover parameter determination subunit, used to determine the supplementary takeover model parameters corresponding to the supplementary takeover node based on the takeover model parameters corresponding to the basic fluid model to which the target reference takeover node belongs; The input parameter determination subunit is used to determine the target model structure topology diagram, the supplementary takeover model parameters corresponding to each of the supplementary takeover nodes, the control body model parameters corresponding to each of the control body nodes in the target model structure topology diagram, and the takeover model parameters corresponding to each of the takeover nodes as the operation input parameters corresponding to the target thermal-hydraulic model.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for solving fluid equations of a thermal-hydraulic model according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for solving fluid equations of a thermal-hydraulic model according to any one of claims 1 to 6 when executed.
Citation Information
Patent Citations
Method and system for suppressing calculation overflow of full-range simulator fluid model of nuclear power plant
CN108052019A
Thermal hydraulic model topological structure generation method, equipment and medium
CN115828478A