Methods, devices, equipment, and media for processing simulation configuration files in EnergyPlus
By parsing and determining the device relationships in the EnergyPlus simulation configuration file, the problem of complex device data structure hierarchy is solved, and a clear, intuitive presentation and rapid application of device connection relationships are achieved.
Patent Information
- Application Number
- CN202411676277.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-11-21
AI Technical Summary
The device data structure in the EnergyPlus simulation configuration file is complex and the relationships are not intuitive, which makes it impossible to clearly and intuitively present the device connection relationships and affects the rapid application of device simulation data.
By parsing the EnergyPlus simulation configuration file, the simulation relationships between candidate simulation devices are determined, and the target connection relationships are determined based on these relationships, extracting clear and intuitive device connection relationships.
It enables the extraction of clear and intuitive device connection relationships from complex device data structures, which facilitates the rapid application of device simulation data.
Smart Images

Figure CN119646931B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, device, and medium for processing simulated configuration files in EnergyPlus. Background Technology
[0002] EnergyPlus is a widely used building simulation software worldwide, capable of comprehensively simulating building cooling, heating, lighting, ventilation, equipment operation, and energy consumption. However, due to its computational mechanism, the device data structure in EnergyPlus's simulation configuration file (i.e., the IDF file) is complex and the relationships between devices are not intuitive, making it difficult to clearly and intuitively present the device connections, thus affecting the rapid application of the equipment simulation data. Summary of the Invention
[0003] This invention provides a method, apparatus, device, and medium for processing simulation configuration files in EnergyPlus, which can extract clear and intuitive device connection relationships from the complex device data structure hierarchy of the simulation configuration file, facilitating the rapid application of device simulation data.
[0004] According to one aspect of the present invention, a method for processing a simulated configuration file in EnergyPlus is provided, the method comprising:
[0005] Obtain the target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain the parsing result; wherein, the simulation configuration file is used to describe the device association relationship in different simulation loops;
[0006] Based on the analysis results, determine the simulation association relationships between candidate simulation devices in each candidate simulation loop of the target simulation configuration file;
[0007] For each candidate simulation loop, at least two target simulation devices are determined from the candidate simulation devices, and the target connection relationship between the target simulation devices is determined according to the simulation association relationship.
[0008] According to another aspect of the present invention, an apparatus for processing simulated configuration files in EnergyPlus is provided, the apparatus comprising:
[0009] The simulation configuration file parsing module is used to obtain the target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain the parsing result; wherein, the simulation configuration file is used to describe the device association relationship in different simulation loops;
[0010] The simulation correlation determination module is used to determine the simulation correlation between candidate simulation devices in each candidate simulation loop in the target simulation configuration file based on the parsing results.
[0011] The target connection relationship determination module is used to determine at least two target simulation devices from the candidate simulation devices for each candidate simulation loop, and to determine the target connection relationship between the target simulation devices according to the simulation association relationship.
[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0013] At least one processor; and,
[0014] A memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the method for processing the simulated configuration file in EnergyPlus as described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the method for processing a simulated configuration file in EnergyPlus as described in any embodiment of the present invention.
[0017] The technical solution of this invention first obtains the target simulation configuration file in EnergyPlus and parses it to obtain the parsing result. The simulation configuration file describes the device relationships in different simulation loops. Then, based on the parsing result, the simulation relationships between candidate simulation devices in each candidate simulation loop of the target simulation configuration file are determined. Furthermore, for each candidate simulation loop, at least two target simulation devices are determined from the candidate simulation devices, and the target connection relationships between the target simulation devices are determined based on the simulation relationships. This technical solution can extract clear and intuitive device connection relationships from the complex device data structure hierarchy of the simulation configuration file, facilitating the rapid application of device simulation data.
[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart of a method for processing a simulated configuration file in EnergyPlus according to Embodiment 1 of the present invention;
[0021] Figure 2 This is a schematic diagram of a device data structure hierarchy according to Embodiment 1 of the present invention;
[0022] Figure 3 This is a schematic diagram of a loop segment structure provided in Embodiment 1 of the present invention;
[0023] Figure 4 This is a schematic diagram of a simulated loop planar structure provided in Embodiment 1 of the present invention;
[0024] Figure 5A This is a schematic diagram of the supply side half-circuit of an air circuit according to Embodiment 1 of the present invention;
[0025] Figure 5B This is a method provided according to Embodiment 1 of the present invention. Figure 5A The diagram shows the simulation equipment combined into an air conditioning unit;
[0026] Figure 6 This is a schematic diagram of the target connection relationship between target simulation devices according to Embodiment 1 of the present invention;
[0027] Figure 7 This is a flowchart of a method for processing a simulated configuration file in EnergyPlus according to Embodiment 2 of the present invention;
[0028] Figure 8 This is a schematic diagram of a merged connection relationship provided according to Embodiment 2 of the present invention;
[0029] Figure 9 This is a schematic diagram of the structure of a device for processing simulated configuration files in EnergyPlus according to Embodiment 3 of the present invention;
[0030] Figure 10 This is a schematic diagram of the structure of an electronic device that implements a method for processing simulated configuration files in EnergyPlus according to an embodiment of the present invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first," "second," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] Example 1
[0034] Figure 1 This is a flowchart illustrating a method for processing a simulated configuration file in EnergyPlus according to Embodiment 1 of the present invention. This embodiment is applicable to situations where clear and intuitive device connection relationships are extracted from the complex data structure hierarchy of the simulated configuration file. This method can be executed by a simulated configuration file processing device in EnergyPlus, which can be implemented in hardware and / or software and can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:
[0035] S110: Obtain the target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain the parsing result.
[0036] The simulation configuration file (i.e., the idf file in EnergyPlus) is used to describe the device relationships in different simulation loops (such as equipment loops, air loops, etc.). The target simulation configuration file can refer to the simulation configuration file from which device connection relationships need to be extracted.
[0037] It should be noted that in the simulation configuration file, the device's storage structure consists of multiple levels, such as... Figure 2As shown, from top to bottom, the data consists of a loop, a half-loop (divided into supply-side and demand-side half-loops), a list of loop segments, loop segments, and equipment. It also includes auxiliary information such as inlet / outlet nodes and branch / aggregate nodes. In this embodiment, the parsing results obtained after parsing the target simulation configuration file will include the equipment-related parsing data according to... Figure 2 The device data structure hierarchy shown is presented in the form of multiple fields. Therefore, a clear and intuitive understanding of the device connections cannot be obtained directly from the parsing results of the target simulation configuration file, which is detrimental to the subsequent use of the device simulation data.
[0038] S120, Based on the analysis results, determine the simulation association relationship between candidate simulation devices in each candidate simulation loop in the target simulation configuration file.
[0039] Here, a candidate simulation loop can refer to any simulation loop in the target simulation configuration file. A candidate simulation device can refer to any simulation device in the candidate simulation loop. Simulation relationships can be characterized by a simulation loop planar structure built based on multiple levels of data and nodes.
[0040] In this embodiment, after parsing the target simulation configuration file to obtain the parsing result, the simulation association relationship between candidate simulation devices in each candidate simulation loop in the target simulation configuration file can be determined based on the parsing result. Optionally, determining the simulation association relationship between candidate simulation devices in each candidate simulation loop in the target simulation configuration file based on the parsing result includes: logically connecting the target level data corresponding to each candidate simulation loop in the parsing result to obtain the planar structure of each candidate simulation loop; wherein, the target level includes loop segments and devices, and the planar structure contains candidate simulation devices and nodes; and determining the simulation association relationship between candidate simulation devices in each candidate simulation loop based on the planar structure.
[0041] Specifically, firstly, based on node information, the target-level data (including loop segments and equipment) corresponding to each candidate simulation loop in the analysis results are logically connected to obtain the planar structure of each candidate simulation loop. Optionally, logically connecting the target-level data corresponding to each candidate simulation loop in the analysis results to obtain the planar structure of each candidate simulation loop includes: for each candidate simulation loop, determining the loop segment structure based on equipment data and the corresponding entry and exit nodes; connecting the loop segment structure based on the corresponding branching and aggregation nodes to obtain two half-loop structures; and determining the planar structure of the candidate simulation loop based on the two half-loop structures.
[0042] When constructing the planar structure of each candidate simulation loop, the loop segment structure is first determined for each candidate simulation loop based on the equipment data and the corresponding entry and exit nodes. Figure 3 This is a schematic diagram of a loop segment structure provided in Embodiment 1 of the present invention. Figure 3 As shown, the loop segment structure includes an inlet node, device 1 (chilled water pump), device 2 (chiller 1), and an outlet node. Then, based on the corresponding branching and converging nodes, the loop segment structure is connected to obtain two half-loop structures. Each branching node includes one inlet node and multiple outlet nodes, while the converging node includes multiple inlet nodes and one outlet node. Furthermore, the planar structure of the candidate simulation loop is determined based on the two half-loop structures and their corresponding loop directions. Figure 4 This is a schematic diagram of a simulated loop planar structure provided in Embodiment 1 of the present invention, wherein the simulated loop is a cold source equipment loop, and the water flow direction represents the loop direction corresponding to the two half-loop structures.
[0043] S130, for each candidate simulation loop, at least two target simulation devices are determined from the candidate simulation devices, and the target connection relationship between the target simulation devices is determined according to the simulation association relationship.
[0044] In this context, "target simulation equipment" refers to simulation equipment selected from candidate simulation equipment based on actual needs. "Target connection relationship" refers to the connection relationship between target simulation equipment. It should be noted that due to the requirements of simulation calculations, the device granularity in EnergyPlus is quite fine. For example, an air loop might include multiple simulated devices such as fresh air inlets, mixing boxes, fans, cooling coils, and heating coils, while actual engineering projects often use real equipment such as air conditioning units, fresh air handling units, and fan coil units. To ensure the matching of simulation data with the project, it is also necessary to determine whether to merge the simulation equipment in the simulation loop based on the composition structure of the actual equipment. The correspondence between simulation equipment and actual equipment may be one-to-one (no simulation equipment merging required) or many-to-one (simulation equipment merging required), depending on the specific engineering requirements.
[0045] In this embodiment, optionally, at least two target simulation devices are determined from the candidate simulation devices, including: determining other devices besides pipeline devices from the candidate simulation devices as target simulation devices.
[0046] It should be noted that in actual engineering projects, piping equipment (such as water pipes and air ducts) is usually not a focus. Therefore, to reduce equipment complexity, piping equipment can be excluded when determining the target simulation equipment; that is, all other equipment in the candidate simulation equipment list, excluding piping equipment, can be directly identified as the target simulation equipment. In this case, the correspondence between the simulation equipment and the actual equipment is one-to-one, meaning that there is no need to merge simulation equipment.
[0047] In this embodiment, optionally, at least two target simulation devices are determined from the candidate simulation devices, including: determining other devices in the candidate simulation devices other than pipeline devices as reference simulation devices; and merging the reference simulation devices based on the composition structure of the reference physical devices and the simulation correlation between the candidate simulation devices to obtain the target simulation devices.
[0048] For cases requiring simulation device merging, the process begins by excluding uninterested piping equipment and designating all other candidate simulation devices as reference simulation devices. Then, based on the composition of the reference physical devices (i.e., the actual devices mentioned above) and the simulation relationships between the candidate simulation devices, the reference simulation devices are merged to obtain the target simulation device. Merging of reference simulation devices is only possible when a reference simulation device includes all the equipment required for the composition of a certain reference physical device, and all the required equipment is directly linked pairwise in the simulation relationships.
[0049] Figure 5A This is a schematic diagram of the supply-side half-loop of an air circuit according to Embodiment 1 of the present invention. Based on the composition structure of the air conditioning unit and the simulated relationship shown in the supply-side half-loop of the air circuit, it can be... Figure 5A The analog devices in the diagram are merged into one air conditioning unit, and the result of the merger is as follows: Figure 5B As shown. Furthermore, if Figure 5A If no mixing box is installed in the half-loop, the combined equipment is a fresh air handling unit.
[0050] In this embodiment, after determining the target simulation devices, the target connection relationships between the target simulation devices can be determined based on the simulation association relationships. Optionally, determining the target connection relationships between the target simulation devices based on the simulation association relationships includes: traversing the loop segment structures in the two half-loop structures respectively, and determining candidate connection relationships based on the association relationships between each node in the half-loop structure during the traversal process; wherein, the candidate connection relationships are used to describe the connection relationships between the target simulation devices in each half-loop structure; and integrating the candidate connection relationships according to the loop directions corresponding to the two half-loop structures to obtain the target connection relationships between the target simulation devices.
[0051] Specifically, for each of the two half-loop structures, starting from the first entry node in each half-loop structure (i.e., the entry node corresponding to the first loop segment structure in terms of the loop direction of the half-loop structure), all loop segment structures are traversed one by one. During the traversal, candidate connection relationships (i.e., the connection relationships between target simulation devices in the half-loop structure) are determined according to the association relationships between the entry nodes. For two nodes with a direct association, such as node a and node b, where node a is the exit node of device A and node b is the entry node of device B, the direction from node a to node b is the direction from device A to device B, thus determining the connection relationship between device A and device B. It can be understood that one half-loop structure corresponds to one candidate connection relationship, therefore, two candidate connection relationships are obtained after the traversal. Then, based on the loop directions corresponding to the two half-loop structures, the starting and ending devices in the two half-loop structures are connected (the connection may involve one-to-one, one-to-many, or many-to-many relationships), to integrate the two candidate connection relationships and obtain the target connection relationships between the target simulation devices. Figure 6 This is a schematic diagram illustrating the target connection relationship between target simulation devices provided in Embodiment 1 of the present invention. Figure 4 The target connection relationship is obtained based on the simulated loop planar structure. For example... Figure 4 and Figure 6 As shown, the analog devices and physical devices have a one-to-one relationship, meaning that there is no need to merge the analog devices.
[0052] The technical solution of this invention first obtains the target simulation configuration file in EnergyPlus and parses it to obtain the parsing result. The simulation configuration file describes the device relationships in different simulation loops. Then, based on the parsing result, the simulation relationships between candidate simulation devices in each candidate simulation loop of the target simulation configuration file are determined. Furthermore, for each candidate simulation loop, at least two target simulation devices are determined from the candidate simulation devices, and the target connection relationships between the target simulation devices are determined based on the simulation relationships. This technical solution can extract clear and intuitive device connection relationships from the complex device data structure hierarchy of the simulation configuration file, facilitating the rapid application of device simulation data.
[0053] Example 2
[0054] Figure 7This is a flowchart of a method for processing simulation configuration files in EnergyPlus according to Embodiment 2 of the present invention. This embodiment is based on the above embodiment and optimized. Specifically, the optimization is as follows: after determining the target connection relationship between target simulation devices according to the simulation association relationship, the method further includes: determining the target connection relationship with the same target simulation device as the connection relationship to be processed, and determining the same target simulation device in the connection relationship to be processed as the common device; if the loop type corresponding to the connection relationship to be processed belongs to the same preset system type, the connection relationship to be processed is merged according to the common device to obtain the merged connection relationship.
[0055] like Figure 7 As shown, the method in this embodiment specifically includes the following steps:
[0056] S210: Obtain the target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain the parsing result.
[0057] The simulation configuration file is used to describe the device relationships in different simulation loops.
[0058] S220, Based on the analysis results, determine the simulation association relationship between candidate simulation devices in each candidate simulation loop in the target simulation configuration file.
[0059] S230, for each candidate simulation loop, determine at least two target simulation devices from the candidate simulation devices, and determine the target connection relationship between the target simulation devices based on the simulation association relationship.
[0060] The specific implementation of S210-S230 can be referred to the detailed description of S110-S130 in Embodiment 1, and will not be repeated here.
[0061] S240, the target connection relationship with the same target simulation device is determined as the connection relationship to be processed, and the same target simulation device in the connection relationship to be processed is determined as the common device.
[0062] It should be noted that in actual engineering, "system" is a commonly used concept, such as a cold source system or an air conditioning terminal system. However, EnergyPlus does not have this concept. In this case, it is necessary to construct each system based on the target connection relationships between the target simulation devices. First, it is determined whether there are identical target simulation devices in each target connection relationship. If so, the target connection relationship is identified as the connection relationship to be processed, and the identical target simulation devices are identified as common devices.
[0063] S250, if the circuit types corresponding to the connection relationships to be processed belong to the same preset system type, the connection relationships to be processed are merged according to the common equipment to obtain the merged connection relationship.
[0064] The preset system type can refer to a system type pre-defined according to actual engineering needs, such as a cold source system or an air conditioning terminal system. In this embodiment, a mapping relationship between preset system types and loop types can be pre-defined. This mapping relationship can be used to characterize which loop types can be merged into which preset system type. For example, a cold source loop and a cooling loop can be merged into a cold source system. If the loop types corresponding to the connection relationship to be processed belong to the same preset system type, that is, the loop types corresponding to the connection relationship to be processed satisfy the mapping relationship with the same preset system type, the merged connection relationship can be obtained by merging the connection relationships to be processed according to the common equipment. Figure 8 This is a schematic diagram of a merged connection relationship provided in Embodiment 2 of the present invention. The target connection relationship corresponding to the cold source circuit (i.e., the analysis result of the cold source circuit shown in the figure) and the target connection relationship of the cooling circuit (i.e., the analysis result of the cooling circuit shown in the figure) share a common device, chiller 1, and satisfy the mapping relationship that allows the cold source circuit and the cooling circuit to be merged into a cold source system. At this time, the analysis results of the cold source circuit and the cooling circuit can be merged based on chiller 1 to obtain the merged connection relationship corresponding to the cold source system.
[0065] The technical solution of this invention, after determining the target connection relationships between target simulation devices based on simulation associations, identifies target connection relationships with the same target simulation devices as connection relationships to be processed, and identifies the same target simulation devices in the connection relationships to be processed as common devices; if the loop types corresponding to the connection relationships to be processed belong to the same preset system type, the connection relationships to be processed are merged based on the common devices to obtain merged connection relationships. This technical solution can construct merged connection relationships corresponding to preset system types based on the target connection relationships between target simulation devices according to actual engineering needs, enabling better application of device simulation data to actual engineering.
[0066] Example 3
[0067] Figure 9 This is a schematic diagram of a device for processing simulated configuration files in EnergyPlus according to Embodiment 3 of the present invention. This device can execute the processing method for simulated configuration files in EnergyPlus provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method. For example... Figure 9 As shown, the device includes:
[0068] The simulation configuration file parsing module 310 is used to obtain the target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain the parsing result; wherein, the simulation configuration file is used to describe the device association relationship in different simulation loops;
[0069] The simulation correlation determination module 320 is used to determine the simulation correlation between candidate simulation devices in each candidate simulation loop in the target simulation configuration file based on the parsing results.
[0070] The target connection relationship determination module 330 is used to determine at least two target simulation devices from the candidate simulation devices for each candidate simulation loop, and to determine the target connection relationship between the target simulation devices according to the simulation association relationship.
[0071] Optionally, the simulated association determination module 320 includes:
[0072] A planar structure determination unit is used to logically connect the target level data corresponding to each candidate simulation loop in the analysis results to obtain the planar structure of each candidate simulation loop; wherein, the target level includes loop segments and devices, and the planar structure includes the candidate simulation devices and nodes;
[0073] The simulation association determination unit is used to determine the simulation association between candidate simulation devices in each candidate simulation loop based on the planar structure.
[0074] Optionally, the planar structure determining unit is used for:
[0075] For each candidate simulation loop, the loop segment structure is determined based on the device data and the corresponding entry and exit nodes of the device data;
[0076] The loop segment structure is connected according to the branching node and the sinking node corresponding to the loop segment structure to obtain two half-loop structures;
[0077] The planar structure of the candidate analog circuit is determined based on the two half-loop structures.
[0078] Optionally, the target connection relationship determination module 330 is used for:
[0079] The other devices in the candidate simulation devices, excluding the pipeline devices, are identified as the target simulation devices.
[0080] Optionally, the target connection relationship determination module 330 is further configured to:
[0081] All equipment in the candidate simulation devices, excluding pipeline equipment, are designated as reference simulation devices.
[0082] Based on the composition and structure of the reference physical device and the simulation correlation between the candidate simulation devices, the reference simulation devices are merged to obtain the target simulation device.
[0083] Optionally, the target connection relationship determination module 330 is further configured to:
[0084] The loop segment structures in the two half-loop structures are traversed respectively, and candidate connection relationships are determined based on the association relationships between nodes in the half-loop structure during the traversal process; wherein, the candidate connection relationships are used to describe the connection relationships between target simulation devices in each half-loop structure;
[0085] Based on the loop directions corresponding to the two half-loop structures, the candidate connection relationships are integrated to obtain the target connection relationships between the target simulation devices.
[0086] Optionally, the device further includes: a merge connection relationship determination module, used for:
[0087] After determining the target connection relationship between the target simulation devices based on the simulation association relationship, the target connection relationship with the same target simulation device is determined as the connection relationship to be processed, and the same target simulation device in the connection relationship to be processed is determined as the common device;
[0088] If the loop types corresponding to the connection relationships to be processed belong to the same preset system type, the connection relationships to be processed are merged according to the common equipment to obtain the merged connection relationship.
[0089] The device for processing simulated configuration files in EnergyPlus provided in this embodiment of the invention can execute the method for processing simulated configuration files in EnergyPlus provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0090] Example 4
[0091] Figure 10 A schematic diagram of an electronic device 10 that can be used to implement embodiments 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 processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0092] like Figure 10As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0093] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0094] Processor 11 can be a variety of general-purpose and / or special-purpose processing components 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 special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the processing methods for simulating configuration files in EnergyPlus.
[0095] In some embodiments, the method for processing the emulation profile in EnergyPlus can be implemented as a computer program tangibly contained 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 method for processing the emulation profile in EnergyPlus described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the method for processing the emulation profile in EnergyPlus by any other suitable means (e.g., by means of firmware).
[0096] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0097] Computer programs used to implement 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 executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0098] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on 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 fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0099] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, 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 sound input, voice input, or tactile input).
[0100] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0101] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0102] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0103] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for processing simulated configuration files in EnergyPlus, characterized in that, The method includes: Obtain the target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain the parsing result; wherein, the simulation configuration file is used to describe the device association relationship in different simulation loops; Based on the analysis results, determine the simulation association relationships between candidate simulation devices in each candidate simulation loop of the target simulation configuration file; For each candidate simulation loop, at least two target simulation devices are determined from the candidate simulation devices, and the target connection relationship between the target simulation devices is determined according to the simulation association relationship; The process of determining the simulation association relationships between candidate simulation devices in each candidate simulation loop of the target simulation configuration file based on the parsing results includes: For each candidate simulation loop, the loop segment structure is determined based on the device data and the corresponding entry and exit nodes of the device data; The loop segment structure is connected according to the branching node and the sinking node corresponding to the loop segment structure to obtain two half-loop structures; The planar structure of the candidate simulated circuit is determined based on the two half-loop structures; The simulation association relationship between candidate simulation devices in each candidate simulation loop is determined based on the planar structure. Determining the target connection relationship between the target simulation devices based on the simulation association includes: The loop segment structures in the two half-loop structures are traversed respectively, and candidate connection relationships are determined based on the association relationships between nodes in the half-loop structure during the traversal process; wherein, the candidate connection relationships are used to describe the connection relationships between target simulation devices in each half-loop structure; Based on the loop directions corresponding to the two half-loop structures, the candidate connection relationships are integrated to obtain the target connection relationships between the target simulation devices.
2. The method according to claim 1, characterized in that, Determine at least two target simulation devices from the candidate simulation devices, including: The other devices in the candidate simulation devices, excluding the pipeline devices, are identified as the target simulation devices.
3. The method according to claim 1, characterized in that, Determine at least two target simulation devices from the candidate simulation devices, including: All equipment in the candidate simulation devices, excluding pipeline equipment, are designated as reference simulation devices. Based on the composition and structure of the reference physical device and the simulation correlation between the candidate simulation devices, the reference simulation devices are merged to obtain the target simulation device.
4. The method according to claim 1, characterized in that, After determining the target connection relationship between the target simulation devices based on the simulation association, the method further includes: Target connection relationships with the same target simulation device are identified as connection relationships to be processed, and the same target simulation devices in the connection relationships to be processed are identified as common devices; If the loop types corresponding to the connection relationships to be processed belong to the same preset system type, the connection relationships to be processed are merged according to the common equipment to obtain the merged connection relationship.
5. A processing device for simulating configuration files in EnergyPlus, characterized in that, The device includes: The simulation configuration file parsing module is used to obtain the target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain the parsing result; wherein, the simulation configuration file is used to describe the device association relationship in different simulation loops; The simulation correlation determination module is used to determine the simulation correlation between candidate simulation devices in each candidate simulation loop in the target simulation configuration file based on the parsing results. The target connection relationship determination module is used to determine at least two target simulation devices from the candidate simulation devices for each candidate simulation loop, and to determine the target connection relationship between the target simulation devices according to the simulation association relationship; The simulated association determination module is further configured to: For each candidate simulation loop, the loop segment structure is determined based on the device data and the corresponding entry and exit nodes of the device data; The loop segment structure is connected according to the branching node and the sinking node corresponding to the loop segment structure to obtain two half-loop structures; The planar structure of the candidate simulated circuit is determined based on the two half-loop structures; The simulation association relationship between candidate simulation devices in each candidate simulation loop is determined based on the planar structure. The target connection relationship determination module is further configured to: The loop segment structures in the two half-loop structures are traversed respectively, and candidate connection relationships are determined based on the association relationships between nodes in the half-loop structure during the traversal process; wherein, the candidate connection relationships are used to describe the connection relationships between target simulation devices in each half-loop structure; Based on the loop directions corresponding to the two half-loop structures, the candidate connection relationships are integrated to obtain the target connection relationships between the target simulation devices.
6. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the processing method of the simulation configuration file in EnergyPlus according to any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the method for processing the simulated configuration file in EnergyPlus as described in any one of claims 1-4.
Citation Information
Patent Citations
Virtual simulation system generation method based on refrigeration system and related equipment
CN117034654A
Topological structure generation method and device, electronic equipment and storage medium
CN118981355A