Processing method and device for simulation configuration file in EnergyPlus, equipment and medium
By analyzing the EnergyPlus simulation configuration file and determining the device association relationship, the problem of unintuitive device connection relationship in the simulation configuration file is solved, and the rapid application and understanding of device simulation data is achieved.
Patent Information
- Application Number
- CN202411676277.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-11-21
AI Technical Summary
The device data structure in the EnergyPlus simulation configuration file is complex and not intuitive, which makes the device connection relationship unable to be presented clearly and intuitively, affecting the rapid application of device simulation data.
By obtaining the target simulation profile in EnergyPlus, parsing it to determine the device association relationship, and then determining the target connection relationship between the target simulation devices from the candidate simulation loop.
Extracting clear and intuitive device connection relationships from the complex equipment data structure levels will help the rapid application and understanding of equipment simulation data.
Smart Images

Figure CN119646931A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, equipment and medium for processing a simulation configuration file in EnergyPlus. Background Art
[0002] EnergyPlus is a building simulation software widely used around the world, which can simulate the cooling, heating, lighting, ventilation, equipment operation and energy consumption of buildings. However, due to the calculation mechanism, the equipment data structure in the simulation configuration file (i.e., idf file) of EnergyPlus is complex and the relationship between them is not intuitive, which makes it impossible to clearly and intuitively present the equipment connection relationship, thus affecting the rapid application of equipment simulation data. Summary of the invention
[0003] The present 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 files, and facilitate the rapid application of device simulation data.
[0004] According to one aspect of the present invention, a method for processing a simulation configuration file in EnergyPlus is provided, the method comprising:
[0005] Obtain a target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain a parsing result; wherein the simulation configuration file is used to describe the device association relationship in different simulation loops;
[0006] Determine, according to the parsing result, a simulation association relationship between candidate simulation devices in each candidate simulation loop in 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 a 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, a device for processing a simulation configuration file in EnergyPlus is provided, the device comprising:
[0009] A simulation configuration file parsing module, used to obtain a target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain a parsing result; wherein the simulation configuration file is used to describe the device association relationship in different simulation loops;
[0010] A simulation association relationship determination module, used to determine the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file according to the parsing result;
[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 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 executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for processing a simulation configuration file in EnergyPlus described in any embodiment of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for processing a simulation configuration file in EnergyPlus according to any embodiment of the present invention when executed.
[0017] The technical solution of the embodiment of the present invention first obtains the target simulation configuration file in EnergyPlus, and parses 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; then, the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file is determined according to the parsing result; and then, 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. This technical solution can extract clear and intuitive device connection relationships from the complex device data structure hierarchy of the simulation configuration file, which is conducive to the rapid application of device simulation data.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a flowchart of a method for processing a simulation configuration file in EnergyPlus provided according to Embodiment 1 of the present invention;
[0021] Figure 2 is a schematic diagram of a device data structure hierarchy provided according to Embodiment 1 of the present invention;
[0022] Figure 3 is a schematic diagram of a loop segment structure provided according to Embodiment 1 of the present invention;
[0023] Figure 4 is a schematic diagram of a simulated loop planar structure provided according to Embodiment 1 of the present invention;
[0024] Figure 5A is a schematic diagram of a supply-side half-circuit of an air circuit provided according to Embodiment 1 of the present invention;
[0025] Figure 5B According to the first embodiment of the present invention, Figure 5A The simulated equipment in the diagram is merged into a schematic diagram of the air conditioning unit;
[0026] Figure 6 is a schematic diagram of a target connection relationship between target simulation devices provided according to Embodiment 1 of the present invention;
[0027] Figure 7 is a flowchart of a method for processing a simulation configuration file in EnergyPlus provided according to Embodiment 2 of the present invention;
[0028] Figure 8 is a schematic diagram of a merge connection relationship provided according to Embodiment 2 of the present invention;
[0029] Fig. 9 is a structural schematic diagram of a device for processing a simulation configuration file in EnergyPlus provided according to Embodiment 3 of the present invention;
[0030] Fig.10 The invention is a schematic diagram of the structure of an electronic device for implementing a method for processing a simulation configuration file in EnergyPlus according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] Embodiment 1
[0034] Figure 1 The flowchart of a method for processing a simulation configuration file in EnergyPlus provided in the first embodiment of the present invention is applicable to the case of extracting clear and intuitive device connection relationships from the complex data structure hierarchy of the simulation configuration file. The method can be executed by a processing device for the simulation configuration file in EnergyPlus. The processing device for the simulation configuration file in EnergyPlus can be implemented in the form of hardware and / or software. The processing device for the simulation configuration file in EnergyPlus can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:
[0035] S110, obtaining a target simulation configuration file in EnergyPlus, and parsing the target simulation configuration file to obtain a parsing result.
[0036] The simulation configuration file (ie, the idf file in EnergyPlus) is used to describe the device association relationships in different simulation loops (such as device loops, air loops, etc.). The target simulation configuration file may refer to the simulation configuration file for which the device connection relationship extraction is required.
[0037] It should be noted that in the simulation configuration file, the storage structure of the device consists of multiple levels, such as Figure 2As shown in the figure, from top to bottom are loops, half loops (divided into supply-side half loops and demand-side half loops), loop segment lists, loop segments, and devices. In addition, auxiliary information such as inlet / outlet nodes, diversion / aggregation nodes, etc. are also included. In this embodiment, in the parsing results obtained after parsing the target simulation configuration file, the parsing data related to the device will be divided into Figure 2 The device data structure hierarchy shown in is presented in the form of multiple fields. Therefore, it is impossible to directly obtain a clear and intuitive device connection relationship from the parsing result of the target simulation configuration file, which will be detrimental to the subsequent use of the device simulation data.
[0038] S120, determining the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file according to the parsing result.
[0039] The candidate simulation loop may refer to any simulation loop in the target simulation configuration file. The candidate simulation device may refer to any simulation device in the candidate simulation loop. The simulation association relationship may be represented by a simulation loop plane structure constructed based on multiple hierarchical data and nodes.
[0040] In this embodiment, after parsing the target simulation configuration file to obtain the parsing result, the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file can be determined according to the parsing result. Optionally, determining the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file according to the parsing result includes: logically connecting the target hierarchical data corresponding to each candidate simulation loop in the parsing result to obtain the plane structure of each candidate simulation loop; wherein the target hierarchy includes loop segments and devices, and the plane structure includes candidate simulation devices and nodes; determining the simulation association relationship between the candidate simulation devices in each candidate simulation loop according to the plane structure.
[0041] Specifically, firstly, the target level data (including loop segments and devices) corresponding to each candidate simulation loop in the analysis result are logically connected based on the node information to obtain the plane structure of each candidate simulation loop. Optionally, the target level data corresponding to each candidate simulation loop in the analysis result are logically connected to obtain the plane structure of each candidate simulation loop, including: for each candidate simulation loop, the loop segment structure is determined according to the device data and the entry node and exit node corresponding to the device data; the loop segment structure is connected according to the shunt node and the aggregation node corresponding to the loop segment structure to obtain two half-loop structures; the plane structure of the candidate simulation loop is determined according to the two half-loop structures.
[0042] When constructing the plane structure of each candidate simulation loop, firstly, for each candidate simulation loop, the loop segment structure is determined according to the device data and the entry node and the exit node corresponding to the device data. 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 (refrigeration machine 1) and an outlet node. Then, the loop segment structure is connected according to the shunt node and the aggregation node corresponding to the loop segment structure to obtain two half-loop structures. Among them, the shunt node includes an inlet node and multiple outlet nodes, and the aggregation node includes multiple inlet nodes and one outlet node. Then, the plane structure of the candidate simulation loop is determined according to the two half-loop structures and their corresponding loop directions. Figure 4 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, determine at least two target simulation devices from the candidate simulation devices, and determine a target connection relationship between the target simulation devices according to the simulation association relationship.
[0044] Among them, the target simulation device may refer to the simulation device selected from the candidate simulation devices according to actual needs. The target connection relationship may refer to the device connection relationship between the target simulation devices. It should be noted that due to the needs of simulation calculations, the device granularity in EnergyPlus is relatively fine. For example, in an air circuit, there will be multiple simulation devices such as fresh air inlets, mixing boxes, fans, cooling coils, heating coils, etc., while in actual projects, actual devices such as air conditioning units, fresh air units, and fan coils are often used. In order to ensure that the simulation data matches the project, it is also necessary to determine whether the simulation devices in the simulation circuit need to be merged based on the composition structure of the actual equipment. Among them, the correspondence between the simulation device and the actual device may be one-to-one (no need to merge the simulation devices) or many-to-one (need to merge the simulation devices), which is set according to the actual project needs.
[0045] In this embodiment, optionally, determining at least two target simulation devices from the candidate simulation devices includes: determining other devices among the candidate simulation devices except the pipeline device as target simulation devices.
[0046] It should be noted that in actual projects, pipeline equipment (such as water pipes, air ducts, etc.) is usually not of concern. Therefore, in order to reduce the complexity of the equipment, the pipeline equipment can be excluded when determining the target simulation equipment, that is, other equipment in the candidate simulation equipment except the pipeline equipment is directly determined as the target simulation equipment. In this case, the correspondence between the simulation equipment and the actual equipment is one-to-one, that is, there is no need to merge the 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 except the pipeline device as reference simulation devices; and merging the reference simulation devices to obtain the target simulation devices based on the composition structure of the reference physical device and the simulation association relationship between the candidate simulation devices.
[0048] In the case where simulation devices need to be merged, firstly, pipeline devices that are not of interest are still excluded, and other devices in the candidate simulation devices except pipeline devices are determined as reference simulation devices. Then, based on the composition structure of the reference physical device (i.e., the above-mentioned actual device) and the simulation association relationship between the candidate simulation devices, the reference simulation devices are merged to obtain the target simulation device. Among them, the reference simulation devices can only be merged when the reference simulation device includes all the devices required by the composition structure of a reference physical device, and all the devices required by the composition structure are directly associated with each other in the simulation association relationship.
[0049] Figure 5A This is a schematic diagram of a supply side half circuit of an air circuit provided in the first embodiment of the present invention. Based on the composition structure of the air conditioning unit and the simulated correlation relationship displayed by the supply side half circuit of the air circuit, Figure 5A The simulated devices in the figure are combined into one air conditioning unit. The combined result is as follows: Figure 5B Further, if Figure 5A If there is no air mixing box in the half-circuit, the combined equipment is a fresh air unit.
[0050] In this embodiment, after the target simulation device is determined, the target connection relationship between the target simulation devices can be determined according to the simulation association relationship. Optionally, determining the target connection relationship between the target simulation devices according to the simulation association relationship includes: traversing the loop segment structures in the two half-loop structures respectively, and determining the candidate connection relationship according to the association relationship between the nodes in the half-loop structure during the traversal process; wherein the candidate connection relationship is used to describe the connection relationship 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 relationship between the target simulation devices.
[0051] Specifically, first, for 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 according to the loop direction corresponding to the half-loop structure), all loop segment structures are traversed one by one, and during the traversal process, the candidate connection relationship (i.e., the connection relationship between the target simulation devices in the half-loop structure) is determined according to the association relationship between the entry nodes. Among them, for two nodes with a direct association relationship, such as node a and node b, node a is the exit node of device A, and node b is the entry node of device B. At this time, the direction from node a to node b is the direction from device A to device B, so the connection relationship between device A and device B can be determined. It can be understood that one half-loop structure corresponds to one candidate connection relationship, so two candidate connection relationships are obtained after the traversal is completed. Then, according to the loop directions corresponding to the two half-loop structures, the starting device and the end device in the two half-loop structures are connected (one-to-one, one-to-many or many-to-many relationships may appear during the connection) to achieve the integration processing of the two candidate connection relationships, thereby obtaining the target connection relationship between the target simulation devices. Figure 6 A schematic diagram of a target connection relationship between target simulation devices provided in the first embodiment of the present invention is based on Figure 4 The target connection relationship is obtained based on the simulated loop plane structure in . Figure 4 and Figure 6 As shown, there is a one-to-one relationship between the simulated device and the physical device, that is, there is no need to merge the simulated devices.
[0052] The technical solution of the embodiment of the present invention first obtains the target simulation configuration file in EnergyPlus, and parses 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; then, the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file is determined according to the parsing result; and then, 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. This technical solution can extract clear and intuitive device connection relationships from the complex device data structure hierarchy of the simulation configuration file, which is conducive to the rapid application of device simulation data.
[0053] Embodiment 2
[0054] Figure 7A flowchart of a method for processing a simulation configuration file in EnergyPlus provided in Embodiment 2 of the present invention, this embodiment is optimized based on the above embodiment. The specific optimization is: after determining the target connection relationship between the target simulation devices according to the simulation association relationship, it also 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 a 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 a merged connection relationship.
[0055] like Figure 7 As shown, the method of this embodiment specifically includes the following steps:
[0056] S210, obtaining a target simulation configuration file in EnergyPlus, and parsing the target simulation configuration file to obtain a parsing result.
[0057] The simulation configuration file is used to describe the device association relationship in different simulation loops.
[0058] S220, determining the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file according to the parsing result.
[0059] S230: for each candidate simulation loop, determine at least two target simulation devices from the candidate simulation devices, and determine a target connection relationship between the target simulation devices according to the simulation association relationship.
[0060] Among them, the specific implementation method of S210-S230 can refer to the detailed description of S110-S130 in Example 1, and will not be repeated here.
[0061] S240: Determine the target connection relationships with the same target simulated device as connection relationships to be processed, and determine the same target simulated device in the connection relationships to be processed as public devices.
[0062] It should be noted that in actual projects, system is a commonly used concept, such as cold source system, air conditioning terminal system, etc., but there is no such concept in EnergyPlus. At this time, it is necessary to build each system according to the target connection relationship between the target simulation devices. First, determine whether there is the same target simulation device in each target connection relationship. If so, determine the target connection relationship as the connection relationship to be processed, and determine the above-mentioned same target simulation device as a public device.
[0063] S250: 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 a merged connection relationship.
[0064] Among them, the preset system type may refer to a system type preset according to actual engineering requirements, such as a cold source system, an air conditioning terminal system, etc. In this embodiment, a mapping relationship between a preset system type and a loop type may be preset, and the mapping relationship may be used to characterize which loop types may be merged into which preset system type. Exemplarily, a cold source loop and a cooling loop may be merged into a cold source system. If the loop type corresponding to the connection relationship to be processed belongs to the same preset system type, that is, the loop type corresponding to the connection relationship to be processed satisfies the mapping relationship with the same preset system type, the connection relationship to be processed may be merged according to the common equipment to obtain a merged connection relationship. Figure 8 A schematic diagram of a merged connection relationship provided in Embodiment 2 of the present invention. Among them, there is a common equipment chiller 1 in the target connection relationship corresponding to the cold source circuit (i.e., the parsing result of the cold source circuit described in the figure) and the target connection relationship of the cooling circuit (i.e., the parsing result of the cooling circuit described in the figure), and the mapping relationship that the cold source circuit and the cooling circuit can be merged into the cold source system is satisfied. At this time, the parsing result of the cold source circuit and the parsing result of the cooling circuit can be merged according to the chiller 1 to obtain the merged connection relationship corresponding to the cold source system.
[0065] The technical solution of the embodiment of the present invention, after determining the target connection relationship between the target simulation devices according to the simulation association relationship, determines the target connection relationship with the same target simulation device as the connection relationship to be processed, and determines the same target simulation device in the connection relationship to be processed as a 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 a merged connection relationship. This technical solution can construct a merged connection relationship corresponding to the preset system type according to the target connection relationship between the target simulation devices based on actual engineering needs, so that the device simulation data can be better applied to actual engineering.
[0066] Embodiment 3
[0067] Fig. 9 This is a schematic diagram of the structure of a device for processing a simulated configuration file in EnergyPlus provided in Embodiment 3 of the present invention. The device can execute the method for processing a simulated configuration file in EnergyPlus provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Fig. 9 As shown, the device comprises:
[0068] The simulation configuration file parsing module 310 is used to obtain a target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain a parsing result; wherein the simulation configuration file is used to describe the device association relationship in different simulation loops;
[0069] A simulation association relationship determination module 320, configured to determine the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file according to the parsing result;
[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 determine the target connection relationship between the target simulation devices according to the simulation association relationship.
[0071] Optionally, the simulated association relationship determination module 320 includes:
[0072] A plane structure determination unit, configured to logically connect the target level data corresponding to each candidate simulation loop in the analysis result to obtain the plane structure of each candidate simulation loop; wherein the target level includes loop segments and devices, and the plane structure includes the candidate simulation devices and nodes;
[0073] The simulation association relationship determination unit is used to determine the simulation association relationship between the candidate simulation devices in each candidate simulation loop according to the plane structure.
[0074] Optionally, the plane structure determining unit is used to:
[0075] For each candidate simulation loop, determining a loop segment structure according to device data and an inlet node and an outlet node corresponding to the device data;
[0076] Connecting the loop segment structure according to the branching nodes and the converging nodes corresponding to the loop segment structure to obtain two half-loop structures;
[0077] The plane structure of the candidate simulated loop is determined according to the two half-loop structures.
[0078] Optionally, the target connection relationship determination module 330 is used to:
[0079] Other devices among the candidate simulation devices except the pipeline device are determined as target simulation devices.
[0080] Optionally, the target connection relationship determination module 330 is further configured to:
[0081] Determine other devices among the candidate simulation devices except the pipeline device as reference simulation devices;
[0082] Based on the composition structure of the reference physical device and the simulation association relationship 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 during the traversal process, candidate connection relationships are determined according to the association relationships between the nodes in the half-loop structures; wherein the candidate connection relationships are used to describe the connection relationships between the target simulation devices in each of the half-loop structures;
[0085] According to the loop directions corresponding to the two half-loop structures, the candidate connection relationships are integrated to obtain the target connection relationship between the target simulation devices.
[0086] Optionally, the device further includes: a merge connection relationship determination module, configured to:
[0087] After determining the target connection relationship between the target simulation devices according to the simulation association relationship, determining the target connection relationship with the same target simulation device as a connection relationship to be processed, and determining the same target simulation device in the connection relationship to be processed as a 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 a merged connection relationship.
[0089] A device for processing a simulation configuration file in EnergyPlus provided in an embodiment of the present invention can execute a method for processing a simulation configuration file in EnergyPlus provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0090] Embodiment 4
[0091] Fig.10 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0092] like Fig.10As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0093] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0094] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the processing method of the simulation profile in EnergyPlus.
[0095] In some embodiments, the method for processing a simulation profile in EnergyPlus may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for processing a simulation profile in EnergyPlus described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for processing a simulation profile in EnergyPlus by any other appropriate means (e.g., by means of firmware).
[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0097] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0098] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0099] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0100] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0101] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0103] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for processing a simulation configuration file in EnergyPlus, characterized in that: The method comprises: Obtain a target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain a parsing result; wherein the simulation configuration file is used to describe the device association relationship in different simulation loops; Determine, according to the parsing result, a simulation association relationship between candidate simulation devices in each candidate simulation loop in the target simulation configuration file; For each candidate simulation loop, at least two target simulation devices are determined from the candidate simulation devices, and a target connection relationship between the target simulation devices is determined according to the simulation association relationship.
2. The method according to claim 1, characterized in that Determining the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file according to the parsing result includes: Logically connecting the target level data corresponding to each candidate simulation loop in the analysis result to obtain the plane structure of each candidate simulation loop; wherein the target level includes loop segments and devices, and the plane structure includes the candidate simulation devices and nodes; The simulation association relationship between the candidate simulation devices in each candidate simulation loop is determined according to the plane structure.
3. The method according to claim 2, characterized in that Logically connecting the target hierarchical data corresponding to each candidate simulation loop in the analysis result to obtain the plane structure of each candidate simulation loop, including: For each candidate simulation loop, determining a loop segment structure according to device data and an inlet node and an outlet node corresponding to the device data; Connecting the loop segment structure according to the branching nodes and the converging nodes corresponding to the loop segment structure to obtain two half-loop structures; The plane structure of the candidate simulated loop is determined according to the two half-loop structures.
4. The method according to claim 3, characterized in that Determining at least two target simulation devices from the candidate simulation devices includes: Other devices among the candidate simulation devices except the pipeline device are determined as target simulation devices.
5. The method according to claim 3, characterized in that: Determining at least two target simulation devices from the candidate simulation devices includes: Determine other devices among the candidate simulation devices except the pipeline device as reference simulation devices; Based on the composition structure of the reference physical device and the simulation association relationship between the candidate simulation devices, the reference simulation devices are merged to obtain the target simulation device.
6. The method according to claim 4 or 5, characterized in that: Determining a target connection relationship between the target simulation devices according to the simulation association relationship includes: The loop segment structures in the two half-loop structures are traversed respectively, and during the traversal process, candidate connection relationships are determined according to the association relationships between the nodes in the half-loop structures; wherein the candidate connection relationships are used to describe the connection relationships between the target simulation devices in each of the half-loop structures; According to the loop directions corresponding to the two half-loop structures, the candidate connection relationships are integrated to obtain the target connection relationship between the target simulation devices.
7. The method according to claim 1, characterized in that After determining the target connection relationship between the target simulation devices according to the simulation association relationship, the method further includes: Determine the target connection relationship with the same target simulation device as a connection relationship to be processed, and determine the same target simulation device in the connection relationship to be processed as a public device; 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 a merged connection relationship.
8. A device for processing simulation configuration files in EnergyPlus, characterized in that: The device comprises: A simulation configuration file parsing module, used to obtain a target simulation configuration file in EnergyPlus, and parse the target simulation configuration file to obtain a parsing result; wherein the simulation configuration file is used to describe the device association relationship in different simulation loops; A simulation association relationship determination module, used to determine the simulation association relationship between the candidate simulation devices in each candidate simulation loop in the target simulation configuration file according to the parsing result; 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 determine the target connection relationship between the target simulation devices according to the simulation association relationship.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for processing a simulation configuration file in EnergyPlus according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for processing a simulation configuration file in EnergyPlus according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Batch modeling method suitable for EnergyPlus and related device
CN115017565A
Virtual simulation system generation method based on refrigeration system and related equipment
CN117034654A
Visual analysis method and system for optical fiber secondary circuit, terminal and storage medium
CN117313189A
Method, device and equipment for determining graph units in logical relation topological graph
CN117744292A
Model construction method and device, equipment and storage medium
CN118037145A