Water heater simulation method, device, equipment, storage medium and program product
By acquiring and updating the twin models of water heater components from the pre-set twin model library, the problem of poor universality of water heater models is solved, thereby improving the efficiency of water heater product development.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- WUHU MIDEA KITCHEN & BATH APPLIANCES MFG CO LTD
- Filing Date
- 2024-12-03
- Publication Date
- 2026-06-05
AI Technical Summary
The existing water heater models have poor versatility, resulting in low product development efficiency for water heaters.
By obtaining the component twin model corresponding to the target water heater from the preset twin model library, connecting and updating it according to the component connection relationship and technical parameter information, a water heater twin model that is completely compatible with the target water heater is generated.
This improved the versatility and scalability of the water heater model, and increased product development efficiency.
Smart Images

Figure CN122154129A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of water heater technology, and in particular to a water heater simulation method, apparatus, equipment, storage medium, and program product. Background Technology
[0002] Gas water heaters are an important type of hot water supply equipment in modern households. As people continue to demand higher performance from water heaters, technicians need to continuously improve their performance, economy, and safety.
[0003] However, current water heater development solutions typically rely on training models using real-world water heater operating data to simulate the actual operation of a water heater. While these models perform well for the water heaters in question, they become largely unusable if the model being simulated changes. This necessitates retraining a new model. In other words, existing water heater models have poor versatility, leading to low product development efficiency. Summary of the Invention
[0004] The main purpose of this application is to provide a water heater simulation method, device, equipment, storage medium and program product, which aims to solve the technical problem that the existing water heater models have poor versatility, resulting in low product development efficiency for water heaters.
[0005] To achieve the above objectives, this application proposes a water heater simulation method, which includes: Upon receiving a model building request for the target water heater, the component twin models of each water heater component corresponding to the target water heater are obtained from the preset twin model library. The component twin models are used to describe the correspondence between the input interaction parameters and technical parameters of the water heater components and the output interaction parameters of the water heater components. Based on the component connection relationship of the target water heater, the twin models of each component are connected to obtain the initial water heater model; Based on the technical parameters of the target water heater, the technical parameters of the water heater in the initial water heater model are updated to obtain a water heater twin model, which is used to perform water heater simulation operations.
[0006] In one embodiment, before the step of obtaining the models of each water heater component corresponding to the target water heater from a preset twin model library, the method includes: The input and output interaction interfaces of the water heater component are determined, as well as the input interaction parameters corresponding to the input interaction interface, the output interaction parameters corresponding to the output interaction interface, and the water heater technical parameters related to the water heater component. Based on the input interaction parameters, the output interaction parameters, and the water heater technical parameters, a control body model of the water heater component is constructed, wherein the control body model is used to describe the correspondence between the input interaction parameters and water heater technical parameters input to the water heater component and the output interaction parameters output by the water heater component; The input interaction interface is used as the data input interface of the control body model, and the output interaction interface is used as the data output interface of the control body model to obtain the component twin model of the water heater component; The component twin model of the water heater component is stored in a preset twin model library.
[0007] In one embodiment, the step of determining the input and output interfaces of the water heater component includes: Obtain interaction scenario information between the water heater component and the outside world; Based on the interaction scenario information, the data interface corresponding to the input interaction parameters of the water heater component is selected as the input interaction interface, and the data interface corresponding to the output interaction parameters of the water heater component is selected as the input interaction interface.
[0008] In one embodiment, the step of connecting the twin models of each component according to the connection relationship of the target water heater to obtain an initial water heater model includes: Based on the component connection relationship, the component twin models of each component are connected to obtain the component twin model of the water heater component; Based on the component connection relationships, the initial water heater model is obtained by connecting the twin models of each component.
[0009] In one embodiment, the step of updating the water heater technical parameters in the initial water heater model based on the technical parameter information of the target water heater to obtain a water heater twin model includes: Technical parameter values are extracted from the technical parameter information of the target water heater, wherein the technical parameter values include at least one of structural parameter values and performance parameter values; The water heater technical parameters corresponding to the technical parameter values in the twin models of each component in the initial water heater model are replaced with the structural parameter values or the performance parameter values to obtain the water heater twin model.
[0010] In one embodiment, after the step of updating the technical parameters of the water heater in the initial water heater model based on the technical parameter information of the target water heater to obtain a water heater twin model, the water heater simulation method further includes: Obtain the medium property model of the target water heater, wherein the medium property model is used to describe the physical properties of the medium flowing through the target water heater; By connecting the medium property model with the water heater twin model, a new water heater twin model is obtained.
[0011] Furthermore, to achieve the above objectives, this application also proposes a water heater simulation device, which includes: The acquisition module is used to acquire the component twin models of each water heater component corresponding to the target water heater from the preset twin model library after receiving the model building request of the target water heater. The component twin models are used to describe the correspondence between the input interaction parameters and technical parameters of the water heater components and the output interaction parameters of the water heater components. A connection module is used to connect the twin models of each component according to the connection relationship of the components of the target water heater to obtain an initial water heater model; The update module is used to update the technical parameters of the water heater in the initial water heater model according to the technical parameter information of the target water heater, so as to obtain a water heater twin model for performing water heater simulation operations.
[0012] In addition, to achieve the above objectives, this application also proposes a water heater simulation device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the water heater simulation method described above.
[0013] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the water heater simulation method described above.
[0014] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the water heater simulation method described above.
[0015] One or more technical solutions proposed in this application have at least the following technical effects: This application, upon receiving a model building request for a target water heater, retrieves component twin models of each water heater component corresponding to the target water heater from a pre-set twin model library. These component twin models describe the correspondence between input interaction parameters and technical parameters of the water heater components and their output interaction parameters. Based on the component connection relationships of the target water heater, the component twin models are connected to obtain an initial water heater model. Then, based on the technical parameter information of the target water heater, the technical parameters in the initial water heater model are updated to obtain a water heater twin model for performing water heater simulation operations. Thus, this application, by utilizing component twin models from a pre-set twin model library that describe the correspondence between input interaction parameters and technical parameters of the water heater components, modularizes the components of the water heater. Therefore, after obtaining the component twin models of each water heater component corresponding to the target water heater, the component twin models can be connected and their parameters updated based on component connection relationships and technical parameter information, thereby generating a water heater twin model that is fully adapted to the target water heater. This application significantly improves the versatility and scalability of building water heater twin models by modularizing and reusing the twin models of each component, thereby effectively improving the product development efficiency of water heaters. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating an embodiment of the water heater simulation method of this application. Figure 2 This is a schematic diagram of the structure of the water heater twin model involved in the embodiments of this application; Figure 3 This is a flowchart illustrating Embodiment 2 of the water heater simulation method of this application; Figure 4 This is a flowchart illustrating Embodiment 3 of the water heater simulation method of this application; Figure 5 This is a schematic diagram of the architecture of the water heater twin model involved in the embodiments of this application; Figure 6 This is a schematic diagram of the module structure of the water heater simulation device according to an embodiment of this application; Figure 7 This is a schematic diagram of the hardware operating environment involved in the water heater simulation method in this application embodiment.
[0019] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0020] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0021] To better understand the technical solutions of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0022] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationships and movement of the components in a specific posture (as shown in the attached figures). If the specific posture changes, the directional indicators will also change accordingly. It should be understood that although the steps in the flowcharts of the embodiments of this application are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders.
[0023] While existing technologies for experimental research on water heaters can provide relatively intuitive and accurate data, they are technically challenging because they directly use flue gas as the working medium. They also require complex and precise experimental equipment and a large amount of experimental materials, resulting in low product development efficiency.
[0024] This application provides a water heater simulation method. By utilizing component twin models from a pre-defined twin model library that describe the correspondence between input interaction parameters of input water heater components and the correspondence between water heater technical parameters and output interaction parameters of water heater components, the various components of the water heater are modularized. After obtaining the component twin models of each water heater component corresponding to the target water heater, the component twin models can be connected and their parameters updated based on component connection relationships and technical parameter information, thereby generating a water heater twin model that is fully adapted to the target water heater. This application significantly improves the universality and scalability of constructing water heater twin models through the modularity and reusability of each component twin model, thus effectively improving the product development efficiency of water heaters.
[0025] Based on this, the embodiments of this application provide a water heater simulation method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the water heater simulation method of this application.
[0026] In this embodiment, the water heater simulation method includes steps S10 to S40: Step S10: After receiving the model building request of the target water heater, obtain the component twin model of each water heater component corresponding to the target water heater from the preset twin model library. The component twin model is used to describe the correspondence between the input interaction parameters of the input water heater component and the technical parameters of the water heater and the output interaction parameters of the output water heater component. It should be noted that the target water heater is a gas water heater that is expected to be modeled and simulated. The model building request for the target water heater is a request message instructing the model building of the target water heater. The model building request for the target water heater includes a description of the target water heater, such as the various water heater components that constitute the target water heater, the connection relationships between the components, and the technical parameter information of the target water heater. The water heater components may be at least one component constituting the target water heater, such as cold water pipes, water valves, hot water pipes, gas inlet pipes, flues, proportional gas valves, shut-off valves, combustion chambers, smoke hoods, fans, and heat exchangers. The technical parameter information includes at least one of the structural parameter values and performance parameter values of the target water heater. The structural parameter values are parameters related to the structure of the water heater components of the target water heater, such as the length, inner diameter, inlet and outlet height difference, material, and specific heat capacity of the inlet pipe, the length and cross-sectional area of the flue, and the length and inner diameter of the gas pipe. The performance parameter values are parameters related to the performance of the water heater components of the target water heater, such as the initial pressure and initial temperature of the inlet pipe, and the thermal efficiency of the burner assembly in the combustion chamber.
[0027] It should also be noted that the component twin model is used to describe the correspondence between the input interaction parameters and technical parameters of the water heater component and the output interaction parameters of the water heater component. Since the component twin model in this embodiment only describes the correspondence between the input interaction parameters and technical parameters of the water heater component and the output interaction parameters of the water heater component—that is, the correspondence between parameters—it allows the component twin model to have universality, rather than being applicable only to models constructed with specific data. The preset twin model library is a database storing component twin models of each water heater component corresponding to the target water heater.
[0028] In this embodiment, upon receiving a model building request for the target water heater, the component twin models of each water heater component constituting the target water heater are obtained from a preset twin model library based on the water heater components described in the model building request. It is understood that the target water heater in this embodiment can be a complete water heater including all water heater components, or it can be a water heater including only some of the water heater components.
[0029] Step S20: Connect the twin models of each component according to the connection relationship of the target water heater to obtain the initial water heater model; It should be noted that the connection relationship of the components is the connection relationship used for each water heater component to form the target water heater.
[0030] This embodiment can determine the connection order of the water heater components constituting the target water heater based on the component connection relationships of each water heater component corresponding to the target water heater. This connection order refers to the sequential connection relationship of the water heater components. It is understood that the connection order can be one water heater component connecting to another, one water heater component connecting to multiple other water heater components, or multiple water heater components connecting to another water heater component. Then, according to the connection order, the component twin models are connected to obtain an initial water heater model. For example, this embodiment can connect the output interaction interface of the previous sequence component twin model with the input interaction interface of the next sequence component twin model to obtain the initial water heater model. This allows the output interaction parameters of the previous sequence component twin model to be used as the input interaction parameters of the next sequence component twin model.
[0031] As another example, this embodiment can also connect the twin models of each component according to the component connection relationship to obtain a component twin model of the water heater component. Then, according to the component connection relationship, connect the twin models of each component to obtain an initial water heater model. Since different water heater components may use the same water heater component, this embodiment can use the same component twin model to construct different water heater components, thereby effectively improving the reusability of component twin models in the preset twin model library.
[0032] In some embodiments, the component connection relationship includes the component connection relationship of each water heater assembly and the component connection relationship of each water heater part, wherein the water heater part is composed of water heater assemblies; step S20 includes steps S21~S22: Step S21: Based on the component connection relationship, connect the twin models of each component to obtain the component twin model of the water heater component; Step S22: Based on the component connection relationship, connect the twin models of each component to obtain the initial water heater model.
[0033] It should be noted that the component connection relationships include the component connection relationships of each water heater assembly and the component connection relationships of each water heater part. Each water heater part is composed of water heater assemblies, and each water heater part includes at least one water heater assembly. The component connection relationships are the connection relationships used for the water heater assemblies to form a water heater part, and the part connection relationships are the connection relationships used for the water heater parts to form the target water heater.
[0034] This embodiment obtains a component twin model of a water heater component by connecting the component twin models according to the component connection relationship. This embodiment can obtain a first connection order of the water heater components constituting the water heater component based on the component connection relationship of each water heater component corresponding to the target water heater. The first connection order refers to the sequential connection relationship of the water heater components constituting the water heater component. It can be understood that in the first connection order, one water heater component can connect to another water heater component, one water heater component can connect to multiple other water heater components, or multiple water heater components can connect to another water heater component. Then, according to the first connection order, the component twin models are connected to obtain the component twin model corresponding to the water heater component. For example, this embodiment can connect the output interaction interface of the previous sequence component twin model with the input interaction interface of the next sequence component twin model, thereby allowing the output interaction parameters of the previous sequence component twin model to be used as the input interaction parameters of the next sequence component twin model, thus obtaining the component twin model. Therefore, in this embodiment, the initial water heater model can be obtained by connecting the twin models of each component according to the component connection relationship. This embodiment can also obtain a second connection order for each water heater component to form the target water heater based on the component connection relationship of each water heater component corresponding to the target water heater. This second connection order refers to the sequential connection relationship of each water heater component in forming the target water heater. It is understood that in the second connection order, one water heater component can connect to another water heater component, one water heater component can connect to multiple other water heater components, or multiple water heater components can connect to another water heater component. Then, according to the second connection order, the twin models of each component are connected to obtain the initial water heater model corresponding to the target water heater. For example, in this embodiment, the output interaction interface of the previous sequence of component twin models can be connected to the input interaction interface of the next sequence of component twin models, thereby allowing the output interaction parameters of the previous sequence of component twin models to be used as the input interaction parameters of the next sequence of component twin models, thus obtaining the initial water heater model.
[0035] This embodiment obtains component twin models of water heater parts by connecting the component twin models according to the component connection relationships, and then obtains an initial water heater model by connecting the component twin models according to the component connection relationships. Thus, this embodiment constructs an initial water heater model with the same structure as the target water heater through component connection relationships. Since different water heater parts may use the same water heater component, this embodiment can use the same component twin model to construct different water heater parts, thereby effectively improving the reusability of component twin models in the preset twin model library.
[0036] Step S30: Based on the technical parameter information of the target water heater, update the technical parameters of the water heater in the initial water heater model to obtain a water heater twin model, which is used to perform water heater simulation operations.
[0037] It should be noted that the technical parameter information includes technical parameter values, that is, the specific numerical values of the technical parameters of the target water heater.
[0038] In this embodiment, each embodiment can extract technical parameter values from the technical parameter information of the target water heater, and then replace the water heater technical parameters corresponding to the technical parameter values in the component twin models of the initial water heater model with the technical parameter values to obtain the water heater twin model. It is understood that if there are water heater technical parameters in the component twin model that have not been updated by the technical parameter values (i.e., the technical parameter information does not record the specific parameter value of the water heater technical parameter), then the unupdated water heater technical parameters can be updated to the default parameter values corresponding to the unupdated water heater technical parameters. The default parameter values are the pre-set default values of the water heater technical parameters. After obtaining the water heater twin model, water heater simulation operations can be performed based on the water heater twin model.
[0039] In some embodiments, step S30 includes steps S31 to S32: Step S31: Extract technical parameter values from the technical parameter information of the target water heater, wherein the technical parameter values include at least one of structural parameter values and performance parameter values; Step S32: Replace the technical parameters of the water heater corresponding to the technical parameter values in the twin models of each component in the initial water heater model with structural parameter values or performance parameter values to obtain the water heater twin model.
[0040] It should be noted that the technical parameter information includes at least one of the structural parameter values and performance parameter values of the target water heater. The structural parameter values are specific parameters describing the structure of the water heater components of the target water heater, such as the length, inner diameter, inlet and outlet height difference, material, and specific heat capacity of the inlet pipe, the length and cross-sectional area of the flue, and the length and inner diameter of the gas pipe. The performance parameter values are specific parameters describing the performance of the water heater components of the target water heater, such as the initial pressure and initial temperature of the inlet pipe, and the thermal efficiency of the burner assembly in the combustion chamber.
[0041] In this embodiment, technical parameter values can be extracted from the technical parameter information of the target water heater, wherein the technical parameter values include at least one of structural parameter values and performance parameter values. Then, the water heater technical parameters corresponding to the technical parameter values in the twin models of each component in the initial water heater model are determined, and the water heater technical parameters corresponding to the technical parameter values are replaced with the technical parameter values. For example, if the technical parameter value corresponding to the water heater technical parameter is a structural parameter value, then the water heater technical parameter is replaced with the structural parameter value; if the technical parameter value corresponding to the water heater technical parameter is a performance parameter value, then the water heater technical parameter is replaced with the performance parameter value, thus obtaining a water heater twin model. This embodiment obtains a water heater twin model by extracting technical parameter values from the technical parameter information of the target water heater, wherein the technical parameter values include at least one of structural parameter values and performance parameter values; and by replacing the water heater technical parameters corresponding to the technical parameter values in the twin models of each component in the initial water heater model with either the structural parameter value or the performance parameter value. Because of the differences in the target water heater, the technical parameters of the initial water heater model are adaptively replaced with specific parameter values, so that the water heater twin model and the target water heater are compatible in structure and performance.
[0042] like Figure 2 As shown, Figure 2 This is a schematic diagram of the structure of the water heater twin model involved in this application embodiment. Each water heater component corresponding to the target water heater includes a gas pipe, a switching valve, a proportional valve, and a combustion chamber connected in sequence to allow gas to be introduced into the combustion chamber for combustion, generating high-temperature flue gas. When the high-temperature flue gas flows through the heat exchanger, it heats the cold water entering through the inlet pipe and then discharges hot water through the outlet pipe. The high-temperature flue gas, after heat exchange at the heat exchanger, then passes through a fume hood, a fan, and a flue before being discharged from the target water heater. In this embodiment, based on the component connection relationship of the target water heater, the component twin models corresponding to each water heater component are connected to obtain an initial water heater model with the same structure as the target water heater. Then, the water heater technical parameters corresponding to the technical parameter values in each component twin model of the initial water heater model are replaced with the structural parameter values or the performance parameter values to obtain the water heater twin model, making the water heater twin model and the target water heater structurally and structurally compatible.
[0043] The first embodiment of this application provides a water heater simulation method. Upon receiving a model building request for a target water heater, the method obtains component twin models of each water heater component corresponding to the target water heater from a pre-set twin model library. These component twin models describe the correspondence between input interaction parameters and technical parameters of the water heater components and their output interaction parameters. Based on the component connection relationships of the target water heater, the component twin models are connected to obtain an initial water heater model. Based on the technical parameter information of the target water heater, the technical parameters of the initial water heater model are updated to obtain a water heater twin model, which is then used to perform water heater simulation operations. Thus, this embodiment utilizes component twin models from a pre-set twin model library that describe the correspondence between input interaction parameters and technical parameters of the water heater components to modularize the components of the water heater. Therefore, after obtaining the component twin models of each water heater component corresponding to the target water heater, the component twin models can be connected and their parameters updated based on the component connection relationships and technical parameter information, thereby generating a water heater twin model that is fully adapted to the target water heater. This embodiment significantly improves the versatility and scalability of building a water heater twin model by leveraging the modularity and reusability of the twin models of each component, thereby effectively improving the product development efficiency of water heaters.
[0044] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 Before step S10, which involves obtaining the models of each water heater component corresponding to the target water heater from the preset twin model library, steps A10 to A40 are also included: Step A10: Determine the input and output interaction interfaces of the water heater component, as well as the input interaction parameters corresponding to the input interaction interface, the output interaction parameters corresponding to the output interaction interface, and the water heater technical parameters related to the water heater component. Step A20: Based on the input interaction parameters, output interaction parameters, and water heater technical parameters, construct a control body model for the water heater component. The control body model is used to describe the correspondence between the input interaction parameters and water heater technical parameters of the water heater component and the output interaction parameters of the water heater component. Step A30: Use the input interaction interface as the data input interface of the control body model and the output interaction interface as the data output interface of the control body model to obtain the component twin model of the water heater component; Step A40: Store the component twin model of the water heater component into the preset twin model library.
[0045] It should be noted that the control body model is used to describe the correspondence between the input interaction parameters and technical parameters of the water heater component and the output interaction parameters of the water heater component. Taking the combustion chamber as an example, the input interaction parameters are the fluid parameters of the gas and air input into the combustion chamber, and the output interaction parameters are the fluid parameters of the flue gas output from the combustion chamber. The fluid parameters of the flue gas output from the combustion chamber are affected not only by the fluid parameters of the gas and air input into the combustion chamber, but also by the structure (such as the size of the combustion chamber cavity, the size of the flue, etc.) and performance (such as the thermal efficiency of the burner assembly). Therefore, for different water heater components, in order to accurately describe the working process of the water heater component, the control body model needs to describe the correspondence between the input interaction parameters and technical parameters of the water heater component and the output interaction parameters of the water heater component.
[0046] This embodiment can determine the input and output interaction interfaces of a water heater component, as well as the input interaction parameters corresponding to the input interaction interfaces, the output interaction parameters corresponding to the output interaction interfaces, and the water heater technical parameters related to the water heater component. Based on the relationships between the input interaction parameters, the output interaction parameters, and the water heater technical parameters in terms of mass, energy, momentum, etc., this embodiment constructs a control volume model describing the correspondence between the input interaction parameters and technical parameters of the water heater component and the output interaction parameters of the water heater component. Then, the input interaction interface is used as the data input interface of the control volume model, and the output interaction interface is used as the data output interface of the control volume model, resulting in a component twin model of the water heater component. This component twin model is then stored in a preset twin model library. Thus, this embodiment can obtain a component twin model of the water heater component by describing the correspondence between the input interaction parameters and technical parameters of the water heater component and the output interaction parameters of the water heater component. This results in a preset twin model library storing component twin models of various different water heater components.
[0047] In one feasible implementation, step A10, which involves determining the input and output interfaces of the water heater component, may include steps B10 to B20: Step B10: Obtain interaction scenario information between the water heater components and the outside world; Step B20: Based on the interaction scenario information, select the data interface corresponding to the input interaction parameters of the water heater component as the input interaction interface, and the data interface corresponding to the output interaction parameters of the water heater component as the input interaction interface.
[0048] It should be noted that the interaction scenario information may include interaction parameters related to the water heater component in the interaction scenario, and the interaction parameters may include at least one of mechanical parameters, fluid parameters, and thermal parameters.
[0049] It should also be noted that the input interaction interface can be at least one of a fluid interface, a mechanical interface, and a thermal interface, the input interaction parameter is the interaction parameter corresponding to the input interaction interface, and the output interaction parameter is the interaction parameter corresponding to the output interaction interface. For example, the interaction interfaces and interaction parameters are shown in the table below: Table 1 Interaction Interface and Interaction Parameters
[0050] This embodiment can filter the interaction interfaces required for modeling the water heater component from the interaction parameters involved in the real-world interaction scenario between the water heater component and the external environment. It is understood that the external environment refers to other components or the external environment besides the water heater component. This embodiment can filter the data interfaces corresponding to the input interaction parameters of the water heater component and the data interfaces corresponding to the output interaction parameters of the water heater component as input interaction interfaces based on the interaction scenario information. Thus, this embodiment filters the input interaction interfaces and output interaction interfaces through the interaction scenario information of the water heater component interacting with the external environment, to be used for inputting the input interaction parameters of the water heater component and outputting the output interaction parameters of the water heater component, thereby realizing the interaction between the control body model of the water heater component and other component twin models or the external environment.
[0051] In the second embodiment of this application, the input and output interaction interfaces of the water heater component are determined, along with the input interaction parameters corresponding to the input interaction interfaces, the output interaction parameters corresponding to the output interaction interfaces, and the water heater technical parameters related to the water heater component. Based on the input interaction parameters, the output interaction parameters, and the water heater technical parameters, a control body model of the water heater component is constructed. This control body model describes the correspondence between the input interaction parameters and water heater technical parameters input to the water heater component and the output interaction parameters output by the water heater component. The input interaction interface is used as the data input interface of the control body model, and the output interaction interface is used as the data output interface of the control body model, thus obtaining a component twin model of the water heater component. The component twin model of the water heater component is stored in a preset twin model library. Therefore, this embodiment can obtain a component twin model of the water heater component by describing the correspondence between the input interaction parameters and water heater technical parameters of the water heater component and the output interaction parameters output by the water heater component. This results in a preset twin model library storing component twin models of various different water heater components.
[0052] Based on the first embodiment of this application, in the third embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 4 The water heater simulation method described after S30 further includes steps C10 to C20: Step C10: Obtain the medium property model of the target water heater, wherein the medium property model is used to describe the physical properties of the medium flowing through the target water heater; Step C20: Connect the medium property model with the water heater twin model to obtain a new water heater twin model.
[0053] It should be noted that the medium property model is used to describe the physical properties of the medium flowing through the target water heater. The medium may include natural gas, flue gas, water, air, etc. The physical properties may include density, specific heat at constant pressure, specific enthalpy, etc.
[0054] like Figure 5 As shown, Figure 5This is a schematic diagram of the architecture of the water heater twin model involved in this application embodiment. Due to the different operating environments of the target water heaters, the physical properties of the media flowing through them will also differ. For example, the gas may be liquefied petroleum gas or natural gas, and the physical properties of different types of gas will vary. The composition of the flue gas produced after combustion under different gases or different combustion modes will also be different, and the difference in flue gas composition will also lead to changes in the physical properties of the flue gas. This embodiment can obtain the physical properties of the media flowing through the target water heater, such as gas, flue gas, and water, as the medium property model. This embodiment connects the medium property model with the water heater twin model to obtain a new water heater twin model, so as to provide the real-time physical properties of the media flowing through the target water heater to the water heater twin model for calculation. It is understood that this embodiment may also include auxiliary models such as boundary models and interface models. The boundary model is used to define and control the boundary conditions of input and output. The interface model is used to connect different model components to ensure that data and information are correctly transmitted between different parts of the model.
[0055] In the third embodiment of this application, a medium property model of the target water heater is obtained. This medium property model describes the physical properties of the medium flowing through the target water heater. The medium property model is then connected to the water heater twin model to provide real-time physical properties of the medium flowing through the target water heater to the water heater twin model for calculation, resulting in a new water heater twin model. Therefore, the water heater twin model in this embodiment can be updated promptly as the working environment changes. Furthermore, since the medium property model is an independent model, updating it will not affect the component twin models within the water heater twin model, thus improving the versatility of the water heater twin model.
[0056] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the water heater simulation method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0057] This application also provides a water heater simulation device, please refer to... Figure 6 The water heater simulation device includes: The acquisition module 10 is used to acquire the component twin models of each water heater component corresponding to the target water heater from the preset twin model library after receiving the model building request of the target water heater. The component twin models are used to describe the correspondence between the input interaction parameters and technical parameters of the water heater components and the output interaction parameters of the water heater components. The connection module 20 is used to connect the twin models of each component according to the connection relationship of the components of the target water heater to obtain an initial water heater model; The update module 30 is used to update the technical parameters of the water heater in the initial water heater model according to the technical parameter information of the target water heater, so as to obtain a water heater twin model for performing water heater simulation operations.
[0058] In some embodiments, the water heater simulation device further includes a model building module for: The input and output interaction interfaces of the water heater component are determined, as well as the input interaction parameters corresponding to the input interaction interface, the output interaction parameters corresponding to the output interaction interface, and the water heater technical parameters related to the water heater component. Based on the input interaction parameters, the output interaction parameters, and the water heater technical parameters, a control body model of the water heater component is constructed, wherein the control body model is used to describe the correspondence between the input interaction parameters and water heater technical parameters input to the water heater component and the output interaction parameters output by the water heater component; The input interaction interface is used as the data input interface of the control body model, and the output interaction interface is used as the data output interface of the control body model to obtain the component twin model of the water heater component; The component twin model of the water heater component is stored in a preset twin model library.
[0059] In some embodiments, the model building module is further configured to: Obtain interaction scenario information between the water heater component and the outside world; Based on the interaction scenario information, the data interface corresponding to the input interaction parameters of the water heater component is selected as the input interaction interface, and the data interface corresponding to the output interaction parameters of the water heater component is selected as the input interaction interface.
[0060] In some embodiments, the connection module 20 is further configured to: Based on the component connection relationship, the component twin models of each component are connected to obtain the component twin model of the water heater component; Based on the component connection relationships, the initial water heater model is obtained by connecting the twin models of each component.
[0061] In some embodiments, the update module 30 is further configured to: Technical parameter values are extracted from the technical parameter information of the target water heater, wherein the technical parameter values include at least one of structural parameter values and performance parameter values; The water heater technical parameters corresponding to the technical parameter values in the twin models of each component in the initial water heater model are replaced with the structural parameter values or the performance parameter values to obtain the water heater twin model.
[0062] In some embodiments, the water heater simulation device further includes an auxiliary model module for: Obtain the medium property model of the target water heater, wherein the medium property model is used to describe the physical properties of the medium flowing through the target water heater; By connecting the medium property model with the water heater twin model, a new water heater twin model is obtained.
[0063] The water heater simulation device provided in this application, employing the water heater simulation method described in the above embodiments, can solve the technical problem of poor versatility of existing water heater models, leading to low product development efficiency for water heaters. Compared with the prior art, the beneficial effects of the water heater simulation device provided in this application are the same as those of the water heater simulation method provided in the above embodiments, and other technical features in the water heater simulation device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0064] This application provides a water heater simulation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the water heater simulation method in the above embodiment 1.
[0065] The following is for reference. Figure 7 The diagram illustrates a structural schematic of a water heater simulation device suitable for implementing the embodiments of this application. The water heater simulation device in the embodiments of this application may include, but is not limited to, terminal devices such as laptops, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), desktop computers, and servers. Figure 7 The water heater simulation device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0066] like Figure 7As shown, the water heater simulation device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the water heater simulation device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007, such as touchscreens, touchpads, keyboards, mice, image sensors, etc.; output devices 1008, such as liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003, such as magnetic tapes, hard disks, etc.; and communication devices 1009. The communication device 1009 allows the water heater simulation device to communicate wirelessly or wiredly with other devices to exchange data. Although the figure shows a water heater simulation device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented alternatively.
[0067] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0068] The water heater simulation device provided in this application, employing the water heater simulation method described in the above embodiments, can solve the technical problem of poor versatility of existing water heater models, leading to low product development efficiency for water heaters. Compared with the prior art, the beneficial effects of the water heater simulation device provided in this application are the same as those of the water heater simulation method provided in the above embodiments, and other technical features of this water heater simulation device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0069] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0070] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0071] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the water heater simulation method in the above embodiments.
[0072] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0073] The aforementioned computer-readable storage medium may be included in the water heater simulation device; or it may exist independently and not assembled into the water heater simulation device.
[0074] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by a water heater simulation device, the water heater simulation device causes the following: it determines the interaction interface of the target water heater and the interaction parameters corresponding to the interaction interface; based on the interaction parameters, it constructs a control body model of the target water heater, wherein the control body model describes the correspondence between the interaction parameters input to the target water heater and the output of the target water heater; and based on the interaction interface and the control body model, it builds a water heater twin model corresponding to the target water heater for performing water heater simulation operations.
[0075] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0076] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0077] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0078] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described water heater simulation method. This solves the technical problem of poor versatility in existing water heater models, leading to low product development efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the water heater simulation method provided in the above embodiments, and will not be repeated here.
[0079] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the water heater simulation method described above.
[0080] The computer program product provided in this application can solve the technical problem that the existing water heater models have poor versatility, resulting in low product development efficiency for water heaters. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the water heater simulation method provided in the above embodiments, and will not be repeated here.
[0081] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A water heater simulation method, characterized in that, The water heater simulation method includes: Upon receiving a model building request for the target water heater, the component twin models of each water heater component corresponding to the target water heater are obtained from the preset twin model library. The component twin models are used to describe the correspondence between the input interaction parameters and technical parameters of the water heater components and the output interaction parameters of the water heater components. Based on the component connection relationship of the target water heater, the twin models of each component are connected to obtain the initial water heater model; Based on the technical parameters of the target water heater, the technical parameters of the water heater in the initial water heater model are updated to obtain a water heater twin model, which is used to perform water heater simulation operations.
2. The water heater simulation method as described in claim 1, characterized in that, Before the step of obtaining the models of each water heater component corresponding to the target water heater from the preset twin model library, the following steps are included: The input and output interaction interfaces of the water heater component are determined, as well as the input interaction parameters corresponding to the input interaction interface, the output interaction parameters corresponding to the output interaction interface, and the water heater technical parameters related to the water heater component. Based on the input interaction parameters, the output interaction parameters, and the water heater technical parameters, a control body model of the water heater component is constructed, wherein the control body model is used to describe the correspondence between the input interaction parameters and water heater technical parameters input to the water heater component and the output interaction parameters output by the water heater component; The input interaction interface is used as the data input interface of the control body model, and the output interaction interface is used as the data output interface of the control body model to obtain the component twin model of the water heater component; The component twin model of the water heater component is stored in a preset twin model library.
3. The water heater simulation method as described in claim 2, characterized in that, The steps of determining the input and output interaction interfaces of the water heater components include: Obtain interaction scenario information between the water heater component and the outside world; Based on the interaction scenario information, the data interface corresponding to the input interaction parameters of the water heater component is selected as the input interaction interface, and the data interface corresponding to the output interaction parameters of the water heater component is selected as the input interaction interface.
4. The water heater simulation method as described in claim 1, characterized in that, The component connection relationships include the component connection relationships of each water heater assembly and the component connection relationships of each water heater part, wherein the water heater part is composed of water heater assemblies; The step of connecting the twin models of each component according to the connection relationship of the target water heater to obtain the initial water heater model includes: Based on the component connection relationship, the component twin models of each component are connected to obtain the component twin model of the water heater component; Based on the connection relationship of the components, the initial water heater model is obtained by connecting the twin models of each component.
5. The water heater simulation method as described in claim 1, characterized in that, The step of updating the technical parameters of the water heater in the initial water heater model based on the technical parameter information of the target water heater to obtain a water heater twin model includes: Technical parameter values are extracted from the technical parameter information of the target water heater, wherein the technical parameter values include at least one of structural parameter values and performance parameter values; The water heater technical parameters corresponding to the technical parameter values in the twin models of each component in the initial water heater model are replaced with the structural parameter values or the performance parameter values to obtain the water heater twin model.
6. The water heater simulation method according to any one of claims 1 to 5, characterized in that, After the step of updating the technical parameters of the water heater in the initial water heater model based on the technical parameter information of the target water heater to obtain a water heater twin model, the water heater simulation method further includes: Obtain the medium property model of the target water heater, wherein the medium property model is used to describe the physical properties of the medium flowing through the target water heater; By connecting the medium property model with the water heater twin model, a new water heater twin model is obtained.
7. A water heater simulation device, characterized in that, The water heater simulation device includes: The acquisition module is used to acquire the component twin models of each water heater component corresponding to the target water heater from the preset twin model library after receiving the model building request of the target water heater. The component twin models are used to describe the correspondence between the input interaction parameters and technical parameters of the water heater components and the output interaction parameters of the water heater components. A connection module is used to connect the twin models of each component according to the connection relationship of the components of the target water heater to obtain an initial water heater model; The update module is used to update the technical parameters of the water heater in the initial water heater model according to the technical parameter information of the target water heater, so as to obtain a water heater twin model for performing water heater simulation operations.
8. A water heater simulation device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the water heater simulation method as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the water heater simulation method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the water heater simulation method as described in any one of claims 1 to 6.