Fluid system simulation method, device, electronic device and storage medium

By using resistive and capacitive equipment models to build a fluid simulation model, the problem of insufficient accuracy and reliability of target substance attribute data in the fluid system is solved, and high-precision simulation results are achieved.

CN120257664BActive Publication Date: 2025-08-15SUZHOU TONGYUAN SOFT CONTROL INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510733433.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-04
Publication Date
2025-08-15
Estimated Expiration
2045-06-04

AI Technical Summary

Technical Problem

In fluid systems, prior art relies on personal experience to determine the target substance attribute data, resulting in low accuracy and poor reliability.

Method used

Resistive and capacitive equipment models are used as reference equipment models to build a target equipment model, combine the connection relationship between physical equipment in the fluid system, establish a fluid simulation model, and determine the target substance attribute data.

Benefits of technology

It realizes reliable and accurate simulation results of target substance attribute data in the fluid system, simplifies the establishment process of the simulation model, and improves the accuracy and reliability of the simulation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120257664B_ABST
    Figure CN120257664B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a fluid system simulation method, apparatus, electronic device, and storage medium. The method includes: determining a target device model corresponding to each physical device in a target fluid system; the target device model is obtained based on a reference device model, the reference device model including a resistive device model and a capacitive device model, the resistive device model being used to determine the target substance flow rate of the target device model, and the capacitive device model being used to determine the target substance concentration of the target device model; based on the connection relationship between each physical device in the target fluid system, completing the connection between each target device model to obtain a fluid simulation model corresponding to the target fluid system; determining a simulation result of target substance property data in the target fluid system based on the fluid simulation model, and being able to obtain reliable and accurate simulation results of target substance property data in the fluid system, so as to facilitate effective processing of the target substance in the fluid system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer processing technology, and in particular to a fluid system simulation method, device, electronic device, and storage medium. Background Art

[0002] In related technologies, determining the properties of target substances in fluid systems often relies on individual expertise and practical experience. However, as fluid systems become increasingly complex, the limitations of individual experience and knowledge often lead to incomplete analysis, resulting in low accuracy and reliability in determining the properties of target substances in fluid systems. Summary of the Invention

[0003] The present invention provides a fluid system simulation method, device, electronic device and storage medium to achieve reliable and accurate simulation results capable of obtaining target substance property data in the fluid system, so as to effectively process the target substance in the fluid system.

[0004] According to one aspect of the present invention, a fluid system simulation method is provided, the method comprising:

[0005] Determining a target device model corresponding to each physical device in the target fluid system; wherein the target device model is obtained based on a reference device model, the reference device model including a resistive device model and a capacitive device model, the resistive device model being used to determine a target substance flow rate of the target device model, and the capacitive device model being used to determine a target substance concentration of the target device model;

[0006] Based on the connection relationship between the physical devices in the target fluid system, the connection between the target device models is completed to obtain a fluid simulation model corresponding to the target fluid system, and the simulation results of the target material property data in the target fluid system are determined based on the fluid simulation model.

[0007] According to another aspect of the present invention, a fluid system simulation device is provided. The device comprises:

[0008] a device model determination module, configured to determine a target device model corresponding to each physical device in a target fluid system; wherein the target device model is obtained based on a reference device model, the reference device model including a resistive device model and a capacitive device model; the resistive device model is used to determine a target substance flow rate of the target device model; and the capacitive device model is used to determine a target substance concentration of the target device model;

[0009] The fluid system simulation module is used to complete the connection between the target device models based on the connection relationship between the physical devices in the target fluid system, obtain a fluid simulation model corresponding to the target fluid system, and determine the simulation results of the target material property data in the target fluid system based on the fluid simulation model.

[0010] According to another aspect of the present invention, an electronic device is provided, comprising:

[0011] one or more processors;

[0012] a storage device for storing one or more programs,

[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the fluid system simulation method described in any embodiment of the present invention.

[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the fluid system simulation method according to any embodiment of the present invention when executed.

[0015] The technical solution of an embodiment of the present invention determines a target device model corresponding to each physical device in a target fluid system; the target device model is derived based on a reference device model, which includes a resistive device model and a capacitive device model. The resistive device model is used to determine the target substance flow rate of the target device model, and the capacitive device model is used to determine the target substance concentration of the target device model. In this embodiment of the present invention, using the capacitive device model and the resistive device model as reference device models not only simplifies the process of establishing a fluid system simulation model but also enables accurate construction of simulation models corresponding to the physical devices in the fluid system. Furthermore, based on the connection relationships between the physical devices in the target fluid system, the target device models can be connected to each other, resulting in a fluid simulation model that is highly consistent with the target fluid system. Thus, the simulation results of the target substance property data in the target fluid system are determined based on the fluid simulation model, resolving the technical issues of low accuracy and poor reliability in determining target substance property data in fluid systems in related technologies. This enables reliable and accurate simulation results of the target substance property data in the fluid system to facilitate effective processing of the target substance in the fluid system.

[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 A schematic flow chart of a fluid system simulation method provided by an embodiment of the present invention;

[0019] Figure 2 An example diagram of an interface connection model applicable to a fluid system simulation method provided in an embodiment of the present invention;

[0020] Figure 3 A schematic flow chart of a fluid system simulation method provided by an embodiment of the present invention;

[0021] Figure 4 An example diagram of target device model connections applicable to a fluid system simulation method according to an embodiment of the present invention;

[0022] Figure 5 A schematic structural diagram of a fluid system simulation device provided by an embodiment of the present invention;

[0023] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0027] Figure 1 This is a flow chart of a fluid system simulation method provided by an embodiment of the present invention. This embodiment is applicable to the case of simulating a fluid system. The method can be executed by a fluid system simulation device. The fluid system simulation device can be implemented in the form of hardware and / or software. The fluid system simulation device can be configured in electronic devices such as computers or servers. Figure 1 As shown, the method of this embodiment includes:

[0028] S110. Determine a target device model corresponding to each physical device in the target fluid system; wherein the target device model is obtained based on a reference device model, the reference device model includes a resistive device model and a capacitive device model, the resistive device model is used to determine the target substance flow of the target device model, and the capacitive device model is used to determine the target substance concentration of the target device model.

[0029] Among them, the target fluid system can be understood as a fluid system that needs to be simulated to perform target substance analysis. Optionally, the target substance can be a pollutant that has a negative impact on the target fluid system. Among them, the pollutant can include particulate pollutants of different diameters. In an embodiment of the present invention, the target fluid system can include at least one of the hydraulic transmission system of an aerospace vehicle, the lubrication and power transmission system of industrial machinery, and the fluid transportation network management system generated by chemical industry. In an embodiment of the present invention, the target device model can be understood as a simulation device model corresponding to the physical device in the target fluid system. The target device model can simulate the actual operation of the corresponding physical device in the target fluid system, for example, the fluid flow characteristics. In actual applications, since the number of physical devices in the target fluid system is usually multiple, the number of target device models is multiple.

[0030] In an embodiment of the present invention, the target device model is obtained based on the reference device model. The reference device model can be understood as a simulation device model obtained by dividing the physical devices in the fluid system from the dimension of the target substance calculation principle. In an embodiment of the present invention, the reference device model may include a resistive device model and a capacitive device model. Among them, the resistive device model can be used to determine the target substance flow of the target device model. The capacitive device model can be used to determine the target substance concentration of the target device model. Optionally, the resistive device model includes a control valve device model, and the control valve device model includes at least a reversing valve model, a pressure valve model, and a flow valve model. Optionally, the capacitive device model may include at least one cavity device model. Exemplarily, the cavity device model may be a cavity device model in a pipeline, a cavity device model in a hydraulic cylinder, and a cavity device model in an accumulator.

[0031] In an embodiment of the present invention, there are multiple ways to determine the target device model corresponding to each physical device in the target fluid system. As an optional implementation in an embodiment of the present invention, the determination of the target device model corresponding to each physical device in the target fluid system may include: after determining the target fluid system, determining each physical device in the target fluid system. For each physical device in the target fluid system, the simulation device model corresponding to the physical device can be determined based on the correspondence between the physical device and the simulation device model, and the simulation device model corresponding to the physical device is used as the target device model corresponding to the physical device. It should be noted that the correspondence between the physical devices and the simulation device models in the fluid system can be one-to-one.

[0032] As another optional implementation in the embodiment of the present invention, the target device model corresponding to each physical device in the target fluid system may include: displaying multiple candidate device models; and obtaining the target device model corresponding to each physical device in the target fluid system in response to a model selection operation for the candidate device model. In the embodiment of the present invention, the candidate device model can be understood as being developed based on a benchmark device model. The number of candidate device models may be two or more. In the embodiment of the present invention, the benchmark device model may be developed using the Modelica language. The model selection operation may be used to select the target device model corresponding to each physical device in the target fluid system from multiple candidate device models. Optionally, the model selection operation may be a model click operation and / or a model drag operation. In the embodiment of the present invention, multiple candidate device models are intuitively provided in a visual manner to facilitate the selection of the target device model corresponding to the target fluid system, and the operation is simple and convenient.

[0033] S120. Based on the connection relationship between the physical devices in the target fluid system, complete the connection between the target device models to obtain a fluid simulation model corresponding to the target fluid system, and determine the simulation results of the target material property data in the target fluid system based on the fluid simulation model.

[0034] Among them, the fluid simulation model can be understood as a system simulation model corresponding to the target fluid system. In an embodiment of the present invention, the method of obtaining the fluid simulation model may include: based on the connection relationship between the physical devices in the target fluid system, connecting the target device models with a connection relationship to form a fluid simulation model corresponding to the target fluid system. In an embodiment of the present invention, the model types of the reference device models corresponding to two connected target device models among the multiple target device models are different. For example, the multiple target device models include device model A1, device model A2, device model A3 and device model A4. Among them, device model A1 is connected to device model A2, device model A3 and device model A4 respectively, and device model A2 is the upstream device model of device model A1, and device model A3 and device model A4 are the downstream device models of device model A1 respectively. In an embodiment of the invention, device model A1 is a capacitive device model. Device model A2, device model A3 and device model A4 are resistive device models.

[0035] Specifically, the connection relationships between the physical devices in the target fluid system can be determined first. Based on the connection relationships between the physical devices in the target fluid system, the target device models with existing connection relationships can be connected to complete the connection between the target device models. This can then generate a fluid simulation model corresponding to the target fluid system. The fluid simulation model can then be used to simulate and analyze the property data of the target substance in the target fluid system, generating simulation results.

[0036] In an embodiment of the present invention, the reference device model corresponding to the target device model can be configured with a preset model interface. The preset model interface can be defined using the Modelica language. The preset model interface can be understood as a predefined interface for transferring calculation variables between target device models. Based on this, the connection between each target device model based on the connection relationship between each physical device in the target fluid system can include: based on the connection relationship between each physical device in the target fluid system, completing the connection between the preset model interfaces configured for each target device model. In an embodiment of the present invention, after the two interfaces of any two different target device models are connected, the variables on the connection line follow the principle that the material concentration variables are the same, the pressure variables are the same, the sum of the material flow variables is 0, and the sum of the flow variables is 0. So that the attribute data of the target substance in the target fluid system can be accurately analyzed. See Figure 2 , connect the interface of device model A and the interface of device model B.

[0037] In an embodiment of the present invention, the interface configuration information of the preset model interface may include a first variable, a second variable, a first array, and a second array. Among them, the first variable may be fluid pressure. Fluid pressure may be understood as the pressure of the fluid, and the unit may be MPa. The second variable may be fluid flow. Fluid flow may be the flow rate of the fluid, and the unit may be L / min. The first array may include multiple substance concentration values, and among the multiple substance concentration values, different substance concentration values correspond to different substance particle intervals. The second array may include multiple substance flow values, and among the multiple substance flow values, different substance flow values correspond to different substance particle intervals.

[0038] In an embodiment of the present invention, the first array and the second array have the same array format. The number of array elements in the first array is the same as the number of array elements in the second array. Based on this, the substance concentration and substance flow rate are set in the form of an array, which can cover the range of pollutant particles of different diameters. Furthermore, by describing the substance concentration variable and the substance flow rate variable in the form of an array, combined with different oil contamination standards or different particle counter measurement ranges, the fluid pollutant concentration is reasonably divided, achieving a more comprehensive and detailed fluid system target substance control modeling and simulation.

[0039] It should be noted that among the multiple substance concentration values, different substance concentration values corresponding to different substance particle intervals can be set according to actual needs, which is not specifically limited here. Taking the target substance as a pollutant as an example, the multiple values stored in the first array can be multiple pollutant concentration values. For example, the first array is defined as N[6], which represents the pollutant concentration being divided into 6 intervals. That is, the first array includes 6 array elements, namely N1, N2, N3, N4, N5 and N6. Among them, N1 can represent the pollutant concentration with a pollutant particle diameter size interval of 0-5 microns, N2 can represent the pollutant concentration with a pollutant particle diameter size interval of 5-10 microns, N3 can represent the pollutant concentration with a pollutant particle diameter size interval of 10-25 microns, N4 can represent the pollutant concentration with a pollutant particle diameter size interval of 25-50 microns, N5 can represent the pollutant concentration with a pollutant particle diameter size interval of 50-75 microns, and N6 can represent the pollutant concentration with a pollutant particle diameter size interval greater than 75 microns. Based on this, during modeling and simulation, a fluid simulation model can transfer the six numerical scalars contained in the pollutant concentration variable in its own interface to the connected model, enabling data transfer between fluid simulation models. It can be understood that pollutant concentration can be expressed as the number of pollutant particles per unit volume of fluid in the target device model, with units such as particles / ml.

[0040] It should also be noted that among the multiple material flow values, different material flow values correspond to different material particle intervals, which are not specifically limited here. Taking the target material as a pollutant as an example, the multiple values stored in the first array can be multiple pollutant flow values. For example, the second array can be Nq[6], which can represent the pollutant flow divided into 6 intervals. That is, the second array includes 6 array elements, namely Nq1, Nq2, Nq3, Nq4, Nq5 and Nq6. Among them, Nq1 can represent the pollutant flow with a pollutant particle diameter size interval of 0-5 microns, Nq2 can represent the pollutant flow with a pollutant particle diameter size interval of 5-10 microns, Nq3 can represent the pollutant flow with a pollutant particle diameter size interval of 10-25 microns, Nq4 can represent the pollutant flow with a pollutant particle diameter size interval of 25-50 microns, Nq5 can represent the pollutant flow with a pollutant particle diameter size interval of 50-75 microns, and Nq6 can represent the pollutant flow with a pollutant particle diameter size interval greater than 75 microns. Based on this, during modeling and simulation, the fluid simulation model can pass the six numerical scalars contained in the pollutant flow variable in its own interface to the connected model. It can be understood that pollutant flow can be expressed as the number of pollutant particles transferred by the fluid in the target device model per unit time, in units of particles per second.

[0041] In an embodiment of the present invention, an architecture for constructing a fluid simulation model is provided. The architecture includes at least a reference device model and a preset model interface for connecting to a simulation device model derived from the reference device model. The reference device model is constructed by dividing the physical devices in the fluid system according to the material calculation principle dimension to obtain a resistive device model for determining the target material flow rate of the target device model, and a capacitive device model for determining the target material concentration of the target device model. In this embodiment of the present invention, the architecture for constructing the fluid simulation model is developed using the Modelica language.

[0042] Based on this, when the target substance is a pollutant, pollutant concentration and pollutant flow variables with actual physical meaning can be defined in the interface, and the transmitted variables are more intuitive and conform to physical laws. In an embodiment of the present invention, the pollutant concentration and pollutant flow in the interface variables can be presented in the form of an array. This design enables it to be flexibly combined with relevant pollutant standards or particle counter ranges for scientific and reasonable division according to actual needs. Compared with the traditional pollution control theory that only uses the standard particle concentration and distribution slope to represent the degree of pollution, it can more comprehensively and finely reflect the distribution state of pollutants in the fluid system, thereby providing rich and accurate simulation data support for the formulation of more accurate and effective pollution control strategies.

[0043] In an embodiment of the present invention, this architecture describes the basic calculation principles for pollutant concentration and flow in a fluid system across different types of fluid device models, fully incorporating the object-oriented nature of the Modelica language. Based on this architecture, system-level pollution control modeling and simulation can be rapidly implemented, greatly improving the efficiency and quality of modeling and simulation. Because the interface definitions strictly adhere to the physical characteristics of pollutant transfer in actual fluid systems, the architecture possesses strong versatility and scalability, capable of overcoming the differences and barriers between different fluid systems and widely applicable to pollution control modeling and simulation of various complex fluid systems.

[0044] The technical solution of an embodiment of the present invention determines a target device model corresponding to each physical device in a target fluid system; the target device model is derived based on a reference device model, which includes a resistive device model and a capacitive device model. The resistive device model is used to determine the target substance flow rate of the target device model, and the capacitive device model is used to determine the target substance concentration of the target device model. In this embodiment of the present invention, by using the capacitive device model and the resistive device model as reference device models, not only is the process of establishing a fluid system simulation model simplified, but simulation models corresponding to the physical devices in the fluid system can also be accurately constructed. Furthermore, based on the connection relationships between the physical devices in the target fluid system, the target device models can be connected to each other, resulting in a fluid simulation model that is highly consistent with the target fluid system. Thus, the simulation results of the target substance property data in the target fluid system are determined based on the fluid simulation model, resolving the technical issues of low accuracy and poor reliability in determining target substance property data in fluid systems in related technologies. This enables reliable and accurate simulation results of the target substance property data in the fluid system to facilitate effective processing of the target substance in the fluid system.

[0045] Figure 3A flow chart of a fluid system simulation method provided in an embodiment of the present invention, based on the aforementioned embodiment, optionally, the fluid simulation model includes at least a first device model, a second device model, and a third device model, the first device model and the second device model are connected and the fluid direction is from the first device model to the second device model, the second device model and the third device model are connected and the fluid direction is from the second device model to the third device model, the first device model and the third device model are respectively obtained based on the resistive device model, and the second device model is obtained based on the capacitive device model; the simulation result of determining the target material property data in the target fluid system based on the fluid simulation model includes: there is a fourth device model connected to the first device model in the fluid simulation model, and the fluid direction is from the fourth device model to the first In the case of a device model, a first substance concentration value of the fourth device model at the current moment is determined, wherein the fourth device model is obtained based on the capacitive device model; the first substance flow value of the first device model at the current moment is determined based on the first fluid flow rate and the first substance concentration value of the first device model at the current moment; and the second substance flow value of the third device model at the current moment is determined based on the second substance concentration value of the second device model and the second fluid flow rate of the third device model; the third substance concentration value of the second device model at the next moment is determined based on the first substance flow value and the second substance flow value, and the third substance concentration value is transmitted to the first device model and the third device model, so that the first device model and the third device model respectively calculate the substance flow value at the next moment based on the third substance concentration value. For specific implementation methods, please refer to the description of this embodiment. Among them, technical features that are the same or similar to those of the above embodiments are not repeated here.

[0046] like Figure 3 As shown, the method of this embodiment specifically includes:

[0047] S210. Determine a target device model corresponding to each physical device in the target fluid system; wherein the target device model is obtained based on a reference device model, the reference device model includes a resistive device model and a capacitive device model, the resistive device model is used to determine the target substance flow of the target device model, and the capacitive device model is used to determine the target substance concentration of the target device model.

[0048] S220. Based on the connection relationship between the physical devices in the target fluid system, complete the connection between the target device models to obtain a fluid simulation model corresponding to the target fluid system; wherein the fluid simulation model includes at least a first device model, a second device model and a third device model.

[0049] In an embodiment of the present invention, in the fluid simulation model, the first device model and the second device model are connected, and the fluid direction is from the first device model to the second device model. The second device model and the third device model are connected, and the fluid direction is from the second device model to the third device model. The first device model and the third device model are respectively obtained based on the resistive device model. The second device model is obtained based on the capacitive device model. The first device model can be understood as a simulation device model configured based on the resistive device model. The second device model can be understood as a simulation device model configured based on the capacitive device model. The third device model can be understood as a simulation device model configured based on the resistive device model. In an embodiment of the present invention, the first device model and the third device model can be the same simulation device model or different simulation device models.

[0050] S230. When a fourth device model connected to the first device model exists in the fluid simulation model and a fluid direction is directed from the fourth device model to the first device model, determine a first substance concentration value of the fourth device model at a current moment, wherein the fourth device model is obtained based on the capacitive device model.

[0051] The fourth device model can be understood as a simulated device model configured based on a capacitive device model, connected to the first device model and with fluid flowing toward the first device model. In other words, the fourth device model is connected to the first device model in the fluid simulation model and is responsible for transferring fluid to the first device model. In embodiments of the present invention, there can be one or more fourth device models connected to the first device model. In practical applications, the number of fourth device models connected to the first device model is typically one. The first substance concentration value can be understood as the substance concentration value of the fourth device model at the current moment.

[0052] Specifically, when there is a fourth device model connected to the first device model in the fluid simulation model and the fluid direction is from the fourth device model to the first device model, the substance concentration value of the fourth device model at the current moment, that is, the first substance concentration value, can be determined.

[0053] In the embodiment of the present invention, determining the substance concentration value of the fourth device model may include the following two cases:

[0054] Case 1: When the simulation device model connected to the fourth device model does not exist in the fluid simulation model, a preset material flow value may be given to calculate the material concentration value of the fourth device model.

[0055] Case 2: If a fifth device model is connected to the fourth device model in the fluid simulation model, and the fluid flows from the fifth device model to the fourth device model, the substance concentration value of the fourth device model can be calculated based on the substance flow rate value of the fifth device model. If there are multiple fifth device models, the substance flow rates of the multiple fifth device models can be summed to obtain the net substance flow rate value acting on the fourth device model. The substance concentration value of the fourth device model can then be calculated based on the net substance flow rate value.

[0056] S240. Determine the first material flow value of the first device model at the current moment based on the first fluid flow rate and the first material concentration value of the first device model at the current moment, and determine the second material flow value of the third device model at the current moment based on the second material concentration value of the second device model at the current moment and the second fluid flow rate of the third device model.

[0057] The first fluid flow rate can be understood as the fluid flow rate of the first device model at the current moment. The first substance flow rate value can be understood as the substance flow rate value of the first device model at the current moment. The second substance concentration value can be understood as the substance concentration value of the second device model at the current moment. The second fluid flow rate can be understood as the fluid flow rate of the third device model at the current moment. The second substance flow rate value can be understood as the substance flow rate value of the third device model at the current moment.

[0058] As an optional implementation in an embodiment of the present invention, if there are multiple fourth device models connected to the first device model in the fluid simulation model, the fluid flow rate of the first device model at the current moment, i.e., the first fluid flow rate, can be determined. Thus, based on the first fluid flow rate and the first substance concentration value, the substance flow rate value of the first device model at the current moment, i.e., the first substance flow rate value, can be determined. Furthermore, the substance concentration value of the second device model at the current moment, i.e., the second substance concentration value, can be determined. The fluid flow rate of the third device model at the current moment, i.e., the second fluid flow rate, can be determined. Thus, based on the second substance concentration value and the second fluid flow rate, the substance flow rate value of the third device model at the current moment, i.e., the second substance flow rate value, can be determined.

[0059] As another optional implementation in an embodiment of the present invention, if there are multiple fourth device models connected to the first device model in the fluid simulation model, the multiple fourth device models can be merged into a single capacitive simulation device model. Furthermore, the first material flow rate value of the first device model at the current moment can be calculated based on the equivalent material concentration value of the merged capacitive simulation device model at the current moment and the first fluid flow rate of the first device model at the current moment.

[0060] S250. Determine a third substance concentration value of the second device model at a next moment based on the first substance flow value and the second substance flow value, and transmit the third substance concentration value to the first device model and the third device model, so that the first device model and the third device model respectively calculate the substance flow value at the next moment based on the third substance concentration value.

[0061] The third substance concentration value may be understood as the substance concentration value of the second device model at the next moment after the current moment.

[0062] In an embodiment of the present invention, the substance concentration value of the second device model at the next moment, i.e., the third substance concentration value, can be determined based on the first substance flow rate value and the second substance flow rate value. Specifically, the first substance flow rate value and the second substance flow rate value are summed to obtain a net substance flow rate value acting on the second device model. The substance concentration value of the second device model at the next moment after the current moment can then be calculated based on the net substance flow rate value. The third substance concentration value can then be transmitted to the first and third device models, allowing them to calculate the substance flow value at the next moment based on the third substance concentration value, thereby implementing a fluid simulation model.

[0063] See also Figure 4 In the embodiment of the present invention, a plurality of target device models in the fluid system are intuitively represented by preset direction identifiers ( Figure 4 The fluid flow direction in the first device model, the second device model, and the third device model. For example, "+" indicates that the fluid flows into the target device model, and "-" indicates that the fluid flows out of the target device model. Among them, Nq_A can be represented as the target substance concentration of the target device model, and N can be represented as the target substance flow rate of the target device model. It should be noted that Figure 4 The first device model and the third device model are obtained based on the resistive device model, and the second device model is obtained based on the capacitive device model.

[0064] Based on the above embodiment, if the fluid simulation model does not contain a fourth device model connected to the first device model and the fluid direction is directed from the fourth device model to the first device model, a fourth device model directed toward the first device model based on a capacitive device model can be simulated, and the substance concentration value of the fourth device model at the current moment can be set. The first substance flow value of the first device model and the second substance flow value of the third device model at the current moment are then calculated. Based on the first and second substance flow values, the third substance concentration value of the second device model at the next moment is calculated. This third substance concentration value is then transmitted to the first and third device models, allowing them to calculate the substance flow value at the next moment based on the third substance concentration value.

[0065] It should be noted that, in an embodiment of the present invention, in the process of calculating the material concentration value of a simulation device model obtained based on a capacitive device model, or in the process of calculating the material flow of a simulation device model obtained based on a resistive device model, if there are no other simulation device models connected to the current device model and the flow direction is from other simulation device models to the current device model, a preset value can be given to perform fluid simulation calculations.

[0066] According to a technical solution of an embodiment of the present invention, when a fourth device model connected to the first device model exists in the fluid simulation model and the fluid direction points from the fourth device model to the first device model, a first substance concentration value of the fourth device model at a current moment is determined, wherein the fourth device model is obtained based on the capacitive device model; the first substance flow value of the first device model at a current moment is determined based on the first fluid flow rate and the first substance concentration value of the first device model at a current moment; and the second substance flow value of the third device model at a current moment is determined based on the second substance concentration value of the second device model and the second fluid flow rate of the third device model; the third substance concentration value of the second device model at a next moment is determined based on the first substance flow value and the second substance flow value, and the third substance concentration value is transmitted to the first device model and the third device model so that the first device model and the third device model respectively calculate the substance flow value at a next moment based on the third substance concentration value, thereby realizing simulation of the fluid system.

[0067] Figure 5 Schematic diagram of the structure of a fluid system simulation device provided by an embodiment of the present invention. Figure 5 As shown, the apparatus includes: an equipment model determination module 310 and a fluid system simulation module 320 .

[0068] Among them, the device model determination module 310 is used to determine the target device model corresponding to each physical device in the target fluid system; wherein, the target device model is obtained based on the reference device model, and the reference device model includes a resistive device model and a capacitive device model, the resistive device model is used to determine the target substance flow of the target device model, and the capacitive device model is used to determine the target substance concentration of the target device model; the fluid system simulation module 320 is used to complete the connection between each target device model based on the connection relationship between each physical device in the target fluid system, obtain the fluid simulation model corresponding to the target fluid system, and determine the simulation result of the target substance property data in the target fluid system based on the fluid simulation model.

[0069] The technical solution of the embodiment of the present invention is used to determine the target device model corresponding to each physical device in the target fluid system through the device model determination module 310; wherein, the target device model is obtained based on the reference device model, and the reference device model includes a resistive device model and a capacitive device model. The resistive device model is used to determine the target substance flow of the target device model, and the capacitive device model is used to determine the target substance concentration of the target device model; in the embodiment of the present invention, using the capacitive device model and the resistive device model as the reference device models can not only simplify the process of establishing the fluid system simulation model, but also accurately construct the simulation model corresponding to the physical device in the fluid system. Through the fluid system simulation module 320, it is used to complete the connection between each target device model based on the connection relationship between each physical device in the target fluid system, and obtain a fluid simulation model corresponding to the target fluid system. A fluid simulation model that is highly consistent with the target fluid system can be obtained, and the simulation result of the target substance property data in the target fluid system is determined based on the fluid simulation model, which solves the technical problems of low accuracy and poor reliability in determining the target substance property data in the fluid system in the related art, and realizes the ability to obtain reliable and accurate simulation results of the target substance property data in the fluid system, so as to effectively process the target substance in the fluid system.

[0070] Optionally, the device model determination module 310 is configured to display a plurality of candidate device models; and obtain a target device model corresponding to each physical device in the target fluid system in response to a model selection operation for the candidate device models.

[0071] Optionally, the reference device model corresponding to the target device model is configured with a preset model interface; the fluid system simulation module 320 is used to complete the connection between the preset model interfaces configured for each target device model based on the connection relationship between the physical devices in the target fluid system.

[0072] Optionally, the interface configuration information of the preset model interface includes a first variable, a second variable, a first array and a second array; wherein, the first variable is fluid pressure, the second variable is fluid flow, the first array includes multiple substance concentration values, among the multiple substance concentration values, different substance concentration values correspond to different substance particle intervals, and the second array includes multiple substance flow values, among the multiple substance flow values, different substance flow values correspond to different substance particle intervals.

[0073] Optionally, the model types of the reference device models corresponding to two connected target device models among the plurality of target device models are different.

[0074] Optionally, the fluid simulation model includes at least a first device model, a second device model, and a third device model, the first device model and the second device model are connected, and the fluid direction is from the first device model to the second device model, the second device model and the third device model are connected, and the fluid direction is from the second device model to the third device model, the first device model and the third device model are respectively obtained based on the resistive device model, and the second device model is obtained based on the capacitive device model;

[0075] Correspondingly, the fluid system simulation module 320 is used to determine the first substance concentration value of the fourth device model at the current moment when there is a fourth device model connected to the first device model in the fluid simulation model and the fluid direction is from the fourth device model to the first device model, wherein the fourth device model is obtained based on the capacitive device model; determine the first substance flow value of the first device model at the current moment based on the first fluid flow and the first substance concentration value of the first device model at the current moment, and determine the second substance flow value of the third device model at the current moment based on the second substance concentration value of the second device model and the second fluid flow of the third device model; determine the third substance concentration value of the second device model at the next moment based on the first substance flow value and the second substance flow value, and transmit the third substance concentration value to the first device model and the third device model so that the first device model and the third device model respectively calculate the substance flow value at the next moment based on the third substance concentration value.

[0076] Optionally, the capacitive device model includes at least one cavity device model, the resistive device model includes a control valve device model, and the control valve device model includes at least a reversing valve model, a pressure valve model, and a flow valve model.

[0077] The fluid system simulation device provided in the embodiment of the present invention can execute the fluid system simulation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0078] It is worth noting that the various units and modules included in the above-mentioned fluid system simulation device are only divided according to functional logic, but are not limited to the above-mentioned 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 scope of protection of the embodiments of the present invention.

[0079] Figure 6 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, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. 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.

[0080] like Figure 6 As shown, electronic device 10 includes at least one processor 11 and memory, such as read-only memory (ROM) 12 and random access memory (RAM) 13, communicatively connected to at least one processor 11. The memory stores computer programs executable by the at least one processor. Processor 11 can perform various appropriate actions and processes based on the computer programs stored in ROM 12 or loaded from storage unit 18 into RAM 13. RAM 13 can also store various programs and data required for the operation of electronic device 10. Processor 11, ROM 12, and RAM 13 are interconnected via bus 14. An input / output (I / O) interface 15 is also connected to bus 14.

[0081] Multiple 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 magnetic 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 via a computer network such as the Internet and / or various telecommunication networks.

[0082] Processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. Processor 11 executes the various methods and processes described above, such as the fluid system simulation method.

[0083] In some embodiments, the fluid system simulation method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the fluid system simulation method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute the fluid system simulation method in any other suitable manner (e.g., via firmware).

[0084] Various embodiments of the systems and techniques described above 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), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes 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.

[0085] 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, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0086] 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 apparatus. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media may include an electrical connection based on 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 of the foregoing.

[0087] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device that has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0088] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (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.

[0089] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0090] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0091] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A fluid system simulation method, characterized in that: include: Determining a target device model corresponding to each physical device in the target fluid system; wherein the target device model is obtained based on a reference device model, the reference device model including a resistive device model and a capacitive device model, the resistive device model being used to determine a target substance flow rate of the target device model, and the capacitive device model being used to determine a target substance concentration of the target device model; Based on the connection relationship between the physical devices in the target fluid system, completing the connection between the target device models, obtaining a fluid simulation model corresponding to the target fluid system, and determining the simulation result of the target material property data in the target fluid system based on the fluid simulation model; The fluid simulation model includes at least a first device model, a second device model, and a third device model. The first device model and the second device model are connected, and the fluid direction is from the first device model to the second device model. The second device model and the third device model are connected, and the fluid direction is from the second device model to the third device model. The first device model and the third device model are respectively obtained based on the resistive device model, and the second device model is obtained based on the capacitive device model. The simulation result of determining the target material property data in the target fluid system based on the fluid simulation model includes: When a fourth device model connected to the first device model exists in the fluid simulation model and a fluid direction is directed from the fourth device model to the first device model, determining a first substance concentration value of the fourth device model at a current moment, wherein the fourth device model is obtained based on the capacitive device model; Determine a first substance flow rate value of the first device model at the current moment based on the first fluid flow rate and the first substance concentration value of the first device model at the current moment; and determine a second substance flow rate value of the third device model at the current moment based on the second substance concentration value of the second device model and the second fluid flow rate of the third device model; Based on the first material flow value and the second material flow value, a third material concentration value of the second device model at the next moment is determined, and the third material concentration value is transmitted to the first device model and the third device model, so that the first device model and the third device model respectively calculate the material flow value at the next moment based on the third material concentration value.

2. The method according to claim 1, characterized in that Determining the target device model corresponding to each physical device in the target fluid system includes: Display multiple candidate device models; In response to the model selection operation for the candidate device model, a target device model corresponding to each physical device in the target fluid system is obtained.

3. The method according to claim 1, characterized in that The reference device model corresponding to the target device model is configured with a preset model interface; and the connection between the target device models is completed based on the connection relationship between the physical devices in the target fluid system, including: Based on the connection relationship between the physical devices in the target fluid system, the connection between the preset model interfaces of the target device model configuration is completed.

4. The method according to claim 3, characterized in that The interface configuration information of the preset model interface includes a first variable, a second variable, a first array and a second array; wherein, the first variable is fluid pressure, the second variable is fluid flow, the first array includes multiple substance concentration values, among the multiple substance concentration values, different substance concentration values correspond to different substance particle intervals, and the second array includes multiple substance flow values, among the multiple substance flow values, different substance flow values correspond to different substance particle intervals.

5. The method according to claim 1, wherein The model types of the reference device models corresponding to two connected target device models among the plurality of target device models are different.

6. The method according to claim 1, characterized in that The capacitive device model includes at least one cavity device model, and the resistive device model includes a control valve device model. The control valve device model includes at least a reversing valve model, a pressure valve model, and a flow valve model.

7. A fluid system simulation device, characterized in that: include: a device model determination module, configured to determine a target device model corresponding to each physical device in a target fluid system; wherein the target device model is obtained based on a reference device model, the reference device model including a resistive device model and a capacitive device model; the resistive device model is used to determine a target substance flow rate of the target device model; and the capacitive device model is used to determine a target substance concentration of the target device model; a fluid system simulation module, configured to connect the target device models based on the connection relationships between the physical devices in the target fluid system, obtain a fluid simulation model corresponding to the target fluid system, and determine simulation results of target material property data in the target fluid system based on the fluid simulation model; The fluid simulation model includes at least a first device model, a second device model, and a third device model. The first device model and the second device model are connected, and the fluid direction is from the first device model to the second device model. The second device model and the third device model are connected, and the fluid direction is from the second device model to the third device model. The first device model and the third device model are respectively obtained based on the resistive device model, and the second device model is obtained based on the capacitive device model. The simulation result of determining the target material property data in the target fluid system based on the fluid simulation model includes: When a fourth device model connected to the first device model exists in the fluid simulation model and a fluid direction is directed from the fourth device model to the first device model, determining a first substance concentration value of the fourth device model at a current moment, wherein the fourth device model is obtained based on the capacitive device model; Determine a first substance flow rate value of the first device model at the current moment based on the first fluid flow rate and the first substance concentration value of the first device model at the current moment; and determine a second substance flow rate value of the third device model at the current moment based on the second substance concentration value of the second device model and the second fluid flow rate of the third device model; Based on the first material flow value and the second material flow value, a third material concentration value of the second device model at the next moment is determined, and the third material concentration value is transmitted to the first device model and the third device model, so that the first device model and the third device model respectively calculate the material flow value at the next moment based on the third material concentration value.

8. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the fluid system simulation method 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 fluid system simulation method according to any one of claims 1 to 6 when executed.

Citation Information

Patent Citations

  • An energy flow simulation method and device for an RLC transient model of an integrated energy system

    CN109241677A

  • Modelica-based thermal fluid medium simulation real-time method

    CN114239216A