EnergyPlus-based analog data processing method and device, equipment and medium

By analyzing EnergyPlus simulation configuration and result files, static and running time sequence data are constructed, which solves the problem that EnergyPlus simulation data is difficult to observe the overall operating status of the building, and realizes clear structure conversion of data and direct support of the digital platform.

CN119646932AActive Publication Date: 2025-03-18PERSAGY TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411676518.7
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

Technical Problem

EnergyPlus simulates data in text files, mainly focusing on single indicators. The data volume is huge and scattered, making it difficult to observe the overall operating status of the building, and is inconsistent with the data structure of the "physical world" defined by the digital platform, and cannot directly support subsequent use.

Method used

By obtaining EnergyPlus' target simulation configuration file and result file, the parsing configuration file determines the target static data, including the target object, attribute and association relationship; the parsing result file determines the target runtime data, and is characterized by the running state time slice of the target object; the target data is constructed in combination with static data and runtime data, which is in line with the physical world data structure of the digital platform in the architectural field.

Benefits of technology

It realizes the conversion of EnergyPlus simulated data into a clearer structure, which facilitates the observation of the overall operation status of the building, and provides direct data support for the digital platform, promoting the rapid and convenient application of simulated data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119646932A_ABST
    Figure CN119646932A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an analog data processing method and device based on EnergyPlus, equipment and a medium. The method comprises the following steps: acquiring a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file; determining target static data based on an analysis result of the target simulation configuration file; wherein the target static data comprises target objects, attributes of the target objects and association relationships among the target objects; determining target operation time sequence data of the target object based on an analysis result of the target simulation result file; and determining target data according to the target static data and the target operation time sequence data of the target object. According to the technical scheme, the target data taking the static data and the operation time sequence data of the object dimension as a framework can be constructed based on the simulation file analysis result of EnergyPlus, so that direct data support is provided for subsequent use of a digital intelligence platform in the building field, and rapid and convenient application of the building simulation data is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an EnergyPlus-based simulation data processing method, device, equipment and medium. Background Art

[0002] EnergyPlus is a building simulation software widely used around the world. It can simulate the cooling, heating, lighting, ventilation, equipment operation and energy consumption of buildings. The simulated data can be used to support various business functions such as building energy consumption analysis, HVAC control strategy formulation, AI model training and learning in the digital platform of the building field.

[0003] However, EnergyPlus's simulation data is stored in the format of text files, focusing mainly on individual indicators. The data volume is huge and scattered, and such a data structure is not conducive to observing the overall operating status of the building. Although EnergyPlus also provides some comprehensive data output methods, it is inconsistent with the "physical world" data structure defined in the digital intelligence platform, and cannot provide direct data support for the subsequent use of the digital intelligence platform, which is not conducive to the rapid and convenient application of building simulation data. Summary of the invention

[0004] The present invention provides a simulation data processing method, device, equipment and medium based on EnergyPlus, which can construct target data with static data and runtime data of object dimension as the architecture based on the simulation file parsing results of EnergyPlus, thereby providing direct data support for the subsequent use of the digital intelligence platform in the construction field, and facilitating the rapid and convenient application of building simulation data.

[0005] According to one aspect of the present invention, there is provided a simulation data processing method based on EnergyPlus, the method comprising:

[0006] Obtain a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file;

[0007] Determine target static data based on the parsing result of the target simulation configuration file; wherein the target static data includes target objects, attributes of the target objects, and associations between the target objects;

[0008] Determine the target running time data of the target object based on the parsing result of the target simulation result file; wherein the target running time data is represented in the form of a running state time slice of the target object;

[0009] The target data is determined according to the target static data and the target runtime data of the target object.

[0010] According to another aspect of the present invention, there is provided an EnergyPlus-based simulation data processing device, the device comprising:

[0011] A target simulation file acquisition module is used to acquire a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file;

[0012] A target static data determination module, configured to determine target static data based on the parsing result of the target simulation configuration file; wherein the target static data includes target objects, attributes of the target objects, and associations between the target objects;

[0013] A target runtime data determination module, used to determine the target runtime data of the target object based on the parsing result of the target simulation result file; wherein the target runtime data is represented in the form of a time slice of the running state of the target object;

[0014] The target data determination module is used to determine the target data according to the target static data and the target runtime data of the target object.

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

[0016] at least one processor; and,

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] 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 EnergyPlus-based simulation data processing method described in any embodiment of the present invention.

[0019] 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 EnergyPlus-based simulation data processing method described in any embodiment of the present invention when executed.

[0020] The technical solution of the embodiment of the present invention obtains the target simulation configuration file in EnergyPlus and the target simulation result file corresponding to the target simulation configuration file; determines the target static data based on the parsing result of the target simulation configuration file; wherein the target static data includes the target object, the attributes of the target object and the association relationship between the target objects; determines the target runtime data of the target object based on the parsing result of the target simulation result file; wherein the target runtime data is represented in the form of a time slice of the operating state of the target object; determines the target data according to the target static data and the target runtime data of the target object. This technical solution can construct target data with static data and object-dimensional runtime data as the architecture based on the simulation file parsing results of EnergyPlus, thereby providing direct data support for the subsequent use of the digital intelligence platform in the construction field, and facilitating the rapid and convenient application of building simulation data.

[0021] 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

[0022] 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.

[0023] Figure 1 is a flow chart of a simulation data processing method based on EnergyPlus provided according to Embodiment 1 of the present invention;

[0024] Figure 2 is a schematic diagram of a class library structure of EnergyPlus provided according to Embodiment 1 of the present invention;

[0025] Figure 3 is a schematic diagram of an idf model of EnergyPlus provided according to Embodiment 1 of the present invention;

[0026] Figure 4 This is a schematic diagram of the composition of an eso file of EnergyPlus provided according to the first embodiment of the present invention;

[0027] Figure 5 is a schematic diagram of building structure data conversion provided according to Embodiment 1 of the present invention;

[0028] Figure 6This is a schematic diagram of establishing an association relationship between target objects provided in Embodiment 1 of the present invention;

[0029] Figure 7 is a schematic diagram of electromechanical device data conversion provided according to Embodiment 1 of the present invention;

[0030] Figure 8 is a schematic diagram of the association between a physical world object and an eso file parsing result provided according to the first embodiment of the present invention;

[0031] Fig. 9 is a schematic diagram of target running timing data provided according to the first embodiment of the present invention;

[0032] Fig.10 is a schematic diagram of a target data determination process provided according to Embodiment 1 of the present invention;

[0033] Fig.11 is a flow chart of a simulation data processing method based on EnergyPlus provided according to Embodiment 2 of the present invention;

[0034] Fig.12 is a schematic diagram of a design pattern of a file parser provided according to Embodiment 2 of the present invention;

[0035] Fig.13 is a structural schematic diagram of an EnergyPlus-based analog data processing device provided according to Embodiment 3 of the present invention;

[0036] Fig.14 It is a structural schematic diagram of an electronic device for implementing an EnergyPlus-based analog data processing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] 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.

[0038] 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.

[0039] Embodiment 1

[0040] Figure 1 This is a flowchart of a simulation data processing method based on EnergyPlus provided in the first embodiment of the present invention. This embodiment can be applied to the case of constructing target data with static data and runtime data of object dimension as the architecture. The method can be executed by a simulation data processing device based on EnergyPlus. The simulation data processing device based on EnergyPlus can be implemented in the form of hardware and / or software. The simulation data processing device based on EnergyPlus can be configured in an electronic device with data processing capability. Figure 1 As shown, the method includes:

[0041] S110, obtaining a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file.

[0042] Among them, the simulation configuration file (i.e., *.idf file) can be used as the input item of the EnergyPlus simulation run, and the simulation result file (i.e., *.eso file) can be used as the output item of the EnergyPlus simulation run. Specifically, the simulation configuration file can be used to describe the simulation object (such as a building structure or electromechanical equipment), the simulation run control logic, and the simulation configuration parameters (including simulation index items and their corresponding parameter values). Among them, the simulation object can refer to the object defined in EnergyPlus. The simulation result file can be used to describe the simulation index items and their corresponding simulation run timing data. Among them, the simulation run timing data can refer to the run timing data directly output by EnergyPlus. The target simulation configuration file can refer to the idf file that needs to be simulated, and the target simulation result file can refer to the eso file corresponding to the target simulation configuration file.

[0043] In this embodiment, optionally, after obtaining the target simulation configuration file and the target simulation result file corresponding to the target simulation configuration file in EnergyPlus, the following steps A1-A3 are also included:

[0044] A1. Obtain the data dictionary definition file in EnergyPlus, and parse the data dictionary definition file to obtain the class library structure of EnergyPlus.

[0045] The data dictionary definition file (i.e. Energy+.idd) can be used to describe the EnergyPlus class structure definition, i.e. the data dictionary parsing specification. The class library structure includes object types and attribute types corresponding to the object types. For example, taking room as an object type, its corresponding attribute types may include area, height, and orientation.

[0046] In this embodiment, the EnergyPlus data dictionary parser (IddParser) can be used to parse the data dictionary definition file Energy+.idd to obtain the class library structure of EnergyPlus, which is the basis for subsequent simulation file parsing and data conversion. Specifically, the class library structure mainly includes two concepts: EpClass and EpLib. Among them, EpClass corresponds to each EnergyPlus class defined in idd (including object type and its corresponding attribute type), and EpLib provides access and search interfaces to the EnergyPlus class to support subsequent idf and eso file parsing. Figure 2 A schematic diagram of the class library structure of EnergyPlus provided in Embodiment 1 of the present invention, wherein EpClass_1-EpClass_4 represent different object types respectively, and Field_1-Field_3 represent different attribute types corresponding to the object types respectively.

[0047] A2. Parse the target simulation configuration file according to the class library structure to obtain a first parsing result.

[0048] Wherein, the first parsing result includes the reference relationship between the simulated object, the attribute of the simulated object and the simulated object. In the present embodiment, the idf file can be parsed by the EnergyPlus input model parser (IdfParser) based on the class library structure of EnergyPlus, the type and attribute of each section of the definition in the idf file can be identified, the corresponding object instance (including the simulated object and the attribute of the simulated object) can be constructed, and the dependent reference association (i.e. the reference relationship between the simulated objects) between the object instances can be calculated. Specifically, a specific idf file can be parsed by IdfParser to obtain an idf model (IdfModel). Wherein, the content of the idf model file is composed of a group of instance definitions of EnergyPlus classes, so the idf model (IdfModel) is essentially a collection of instance objects (IdfObject) contained in the file. IdfModel provides a series of operation interfaces to the outside, and the instance objects in the idf model can be accessed through various ways such as type and name, and IdfObject is an instantiation object of a certain EpClass.

[0049] Figure 3 A schematic diagram of an EnergyPlus idf model provided in Example 1 of the present invention. In which, IdfObject_1-IdfObject_4 represent different simulation objects respectively, and IdfObject_1 and IdfObject_2 belong to the same object type EpClass_1 (i.e., IdfObject_1 and IdfObject_2 are different instantiation results of EpClass_1), IdfObject_3 and IdfObject_4 belong to the same object type EpClass_2 (i.e., IdfObject_3 and IdfObject_4 are different instantiation results of EpClass_2), and Field_1:xxx-Field_3:xxx represent different attributes of the simulation objects respectively (i.e., the instantiation results of Field_1-Field_3).

[0050] A3. Parse the target simulation result file according to the class library structure to obtain a second parsing result.

[0051] Wherein, the second parsing result includes the simulation index items of the simulation object and the simulation running time series data of the simulation index items. In this embodiment, the eso file can be parsed by the EnergyPlus output data parser (EsoParser) based on the EnergyPlus class library structure, wherein the eso file consists of two parts, the first part is the output dictionary definition, according to the simulation index items defined in the idf, each simulation index item is associated with all simulation objects supporting the index item in the model one by one, and a series of output ids are defined; the second part is the output time series data obtained by the simulation operation, and the output time series data contains multiple items, and the primary key of each data (i.e., the unique identifier of each output time series data) is composed of the time point and the output id defined in the first part, and the data item represents the data value of the output item of a simulation object at the time point. Therefore, when parsing the eso file, the first part of the eso file (i.e., the output dictionary definition) must be parsed to obtain the output simulation index items, and then the output time series data of the second part must be parsed to obtain the simulation running time series data corresponding to the simulation index items.

[0052] Figure 4 A schematic diagram of the composition of an EnergyPlus eso file provided in Example 1 of the present invention.

[0053] Among them, EsoParser mainly includes two concepts: one is Meta, which corresponds to the output id in the output dictionary definition, including fields such as id value, output item, object name in the model, etc.; the other is Record, which corresponds to each output time series data, including fields such as output id, time point, data value, etc. Meta is associated with Record through the id field, and one Meta corresponds to multiple Records.

[0054] S120, determining target static data based on the parsing result of the target simulation configuration file.

[0055] Among them, the target static data includes the target object, the attributes of the target object, and the association relationship between the target objects. The target object may refer to an object defined in the building physics world. It should be noted that the simulation object and the target object usually include building structures and electromechanical equipment, but there are differences in the specific manifestations of the simulation object and the target object. For example, there is no concept of floors in EnergyPlus, so the building structure corresponding to the simulation object does not include floors; the equipment granularity in EnergyPlus is finer, and in fact, one electromechanical device in the building physics world may correspond to multiple devices in EnergyPlus.

[0056] In this embodiment, optionally, the simulation object includes a simulated building structure, and the simulated building structure includes a simulated space; accordingly, determining the target static data based on the parsing result of the target simulation configuration file includes the following steps B1-B3:

[0057] B1. Determine the target space based on the surface property information of the simulation space.

[0058] It should be noted that the building structure in EnergyPlus focuses on thermal balance, which is inconsistent with the building structure defined in the building physics world. Typically, there is no concept of floors in EnergyPlus. Therefore, these inconsistencies need to be mapped during the simulation data processing. Specifically, the space in EnergyPlus is a polyhedron, which contains multiple surfaces (Surface), and one surface may contain several window opening surfaces (FenestrationSurface). When processing data, it is necessary to map these surfaces to entities such as walls, doors, windows, roofs, and floors according to the specific properties of these surfaces, such as type, structural material, etc. For surfaces of special materials, such as air boundaries (AirBoundary), they will be mapped to virtual walls. In this way, the simulation space can be converted into the target space. Among them, the simulation space and the target space can refer to the space in EnergyPlus and the building physics world, respectively. For example, assuming that the simulation space is a square room with 6 surfaces, its upper surface can be mapped to the roof, the lower surface can be mapped to the floor, the surrounding surfaces can be mapped to the wall, and the window opening surfaces on the wall can be mapped to the door and window.

[0059] Figure 5 The following is a schematic diagram of a building structure data conversion provided by the first embodiment of the present invention. The E+ building model represents the building structure in EnergyPlus, and the physical world building represents the building structure in the physical world of the building. Figure 5 As shown, the E+ building model can include building structures such as buildings, thermal zones, spaces, surfaces and window surfaces. Through data conversion, the building structures such as buildings, floors, property spaces, walls, doors and windows, virtual walls, etc. in the physical world of the building can be obtained.

[0060] B2. Determine the target floor based on the geometric position information of the target space.

[0061] Exemplarily, the geometric location information may include information such as the coordinates of the starting point (such as the lower left corner), height, and position. For example, target spaces at the same height belong to the same floor. Based on this, the relevant object instances can be constructed into a static physical world model with a clear structure and easy to understand according to the hierarchical perspective of "building->floor->space". During the construction process, the EnergyPlus objects are extracted and transformed, and the EnergyPlus objects and attributes are converted into objects and attributes in the physical world model.

[0062] B3. Determine the first association relationship between the target building structures based on the reference relationship between the simulated building structures.

[0063] Among them, the first association relationship includes the correspondence between floors and spaces and the association relationship between different spaces. Exemplarily, the association relationship between different spaces may include adjacency relationship and connectivity relationship, etc. It should be noted that the relationship between objects is an important concept in the physical world of buildings, which describes the mutual influence and association relationship between various types of objects such as building structures and electromechanical equipment. Although there is no such concept in EnergyPlus, the idf model contains rich attribute definitions, and there are mutual references between instance objects. Therefore, through the calculation and judgment of some attributes, and referring to the reference logic between instance objects, various types of object association relationships required in the physical world can be constructed. Figure 6 This is a schematic diagram of establishing an association relationship between target objects provided in the first embodiment of the present invention. Figure 6 As shown, the correspondence between floors and spaces can be constructed through geometric calculations of spatial coordinates, and the adjacency or connectivity between spaces can be constructed based on the surface material and external properties.

[0064] In this embodiment, optionally, the simulation object includes a simulated electromechanical device, the simulated electromechanical device is described in the form of a loop, the loop includes a branch and a collection / distribution connection point, and the branch includes the simulated electromechanical device and an input / output node; accordingly, determining the target static data based on the parsing result of the target simulation configuration file includes the following steps C1-C3:

[0065] C1. Traverse each candidate loop in the first analysis result respectively, and extract the simulated electromechanical devices in the candidate loop in turn as candidate electromechanical devices during the traversal process.

[0066] Among them, the candidate loop can refer to any loop involved in the first analysis result. It should be noted that in EnergyPlus, the equipment operates in the form of a loop and provides services to the building. Therefore, when extracting equipment data, it is also necessary to use the loop as a starting point. There are two main types of loops, one is the equipment loop (PlantLoop), which includes typical water circulation loops such as cooling, cooling, and heating; the other is the air loop (AirLoop), which includes air conditioning loops, fresh air loops, etc. The loop can be split into branches and collection / distribution connection points as well as equipment and input / output nodes step by step. When processing data, you can use the method of traversing the loop to extract equipment information section by section and point by point until you return to the starting point, complete the extraction process of the equipment in the loop, and obtain candidate electromechanical equipment.

[0067] C2. Based on the mapping relationship between the simulated electromechanical devices and the physical electromechanical devices and the connection relationship between the simulated electromechanical devices in the candidate loops, the candidate electromechanical devices are merged to obtain the target electromechanical device.

[0068] Among them, physical electromechanical equipment can refer to electromechanical equipment defined in the building physics world. Specifically, the mapping relationship between simulated electromechanical equipment and physical electromechanical equipment can be one-to-one or many-to-one. For example, the air-conditioning unit in the building physics world actually corresponds to multiple equipment objects such as outdoor air mixer (OutdoorAir:Mixer), fan (Fan), cooling / heating coil (Coil) in EnergyPlus. At this time, the simulated electromechanical equipment and the physical electromechanical equipment are many-to-one mapping relationships. It should be noted that since the equipment granularity in EnergyPlus is finer, some equipment integration work needs to be done during the data conversion process to make it more in line with the focus perspective in the business scenario.

[0069] Specifically, when performing data conversion, it is necessary to first divide the trunk / branch range in the loop, and then combine multiple EnergyPlus devices into a physical world device (ie, the target electromechanical device) in the local range according to the connection relationship between the devices. Figure 7 A schematic diagram of electromechanical device data conversion provided in Embodiment 1 of the present invention, wherein simple devices in the physical world devices satisfy a one-to-one device mapping relationship (i.e., no device merging is required), while composite devices in the physical world devices satisfy a many-to-one device mapping relationship (i.e., device merging is required).

[0070] C3. Determine the second association relationship corresponding to the target electromechanical device according to the reference relationship between the candidate circuits.

[0071] The second association relationship includes the connection relationship between the electromechanical devices and the association relationship between the electromechanical devices and the space. For example, the association relationship between the electromechanical devices and the space may include a position relationship and a service relationship. Figure 6 As shown, the connection relationship between devices can be established based on the traversal results of the loop, and the service relationship between devices and space can be established according to the terminal devices in the hot zone.

[0072] S130, determining target runtime data of the target object based on the parsing result of the target simulation result file.

[0073] Among them, the target runtime data may refer to the runtime data with the target object as the dimension, and the target runtime data may be represented by the time slice of the target object's runtime status. Specifically, after using EsoParser to parse the eso file, you can get the Meta list and the Record list. Meta contains the object name and output item fields, and the output item is actually a runtime information point of the physical world object. Therefore, multiple Metas associated with the same physical world object are actually all the runtime information points of the object. There is a many-to-one association between Record and Meta through the output id. Record is actually the runtime data value of a Meta information point at different time points. See Figure 8 , showing the association between physical world objects and eso file parsing results.

[0074] In this embodiment, optionally, the target runtime data of the target object is determined based on the parsing results of the target simulation result file, including: taking the simulation indicator items belonging to the same simulation object in the second parsing result as the target indicator items, and taking the same simulation object as the target object; and determining the target runtime data corresponding to the target object based on the simulation runtime data corresponding to the target indicator items.

[0075] For example, based on Figure 8 The association between the physical world objects and the eso file parsing results shown in can aggregate the data recorded one by one in the eso file according to a single indicator item in the object dimension, thereby associating the time series data based on the observed indicators with objects such as building structures or electromechanical equipment in the building physical world, thereby constructing the time series data in the object real-time state slice format (that is, the target runtime time series data corresponding to the target object), such as Fig. 9 As shown, the object ID can be used as a unique identifier of the object, that is, each object has a unique object ID.

[0076] S140, determining target data according to target static data and target runtime data of the target object.

[0077] In this embodiment, after obtaining the target static data and the target running sequence data of the target object, the two can be combined to obtain the target data required by the physical world of the building. In this way, the simulation data of EnergyPlus can be converted into a clearer structure, which is convenient for observing the operation of the building from multiple perspectives such as macro and micro. In addition, the data structure of the obtained target data conforms to the physical world structure definition in the digital platform of the building field, so it can be used directly in the digital platform, and can effectively use the simulation capabilities of EnergyPlus to supplement the data source of the digital platform, which is conducive to the rapid and convenient application of simulation data.

[0078] The technical solution of the embodiment of the present invention obtains the target simulation configuration file in EnergyPlus and the target simulation result file corresponding to the target simulation configuration file; determines the target static data based on the parsing result of the target simulation configuration file; wherein the target static data includes the target object, the attributes of the target object and the association relationship between the target objects; determines the target runtime data of the target object based on the parsing result of the target simulation result file; wherein the target runtime data is represented in the form of a time slice of the operating state of the target object; determines the target data according to the target static data and the target runtime data of the target object. This technical solution can construct target data with static data and object-dimensional runtime data as the architecture based on the simulation file parsing results of EnergyPlus, thereby providing direct data support for the subsequent use of the digital intelligence platform in the construction field, and facilitating the rapid and convenient application of building simulation data.

[0079] In this embodiment, optionally, determining the target static data based on the parsing result of the target simulation configuration file also includes: taking the candidate circuit with the same simulated electromechanical device in the first parsing result as the target circuit; if the target circuit belongs to the same preset system type, integrating the target circuit to obtain the target electromechanical system.

[0080] Among them, the preset system type may refer to a system type that is preset according to actual engineering requirements. Exemplarily, the preset system types may include a cold source system and an air conditioning terminal system. Specifically, the cold source system corresponds to the cold source loop and the cooling loop in EnergyPlus. It should be noted that the concept of the loop in EnergyPlus is basically consistent with the concept of the electromechanical system in the building physics world, but some electromechanical systems may contain multiple loops. At this time, it is necessary to integrate the loops with the same simulated electromechanical equipment based on the preset system type to which the loop belongs to obtain the target electromechanical system. Figure 7 As shown, the system in the physical world device may include a single-loop system (ie, no loop integration is required) and a system consisting of multiple loops (ie, loop integration is required).

[0081] Through such a setting, this solution can build a system according to the loop based on actual engineering needs, so that the equipment simulation data can be better applied to actual projects.

[0082] In this embodiment, optionally, the second association relationship also includes: a connection relationship between the electromechanical device and the electromechanical system and an association relationship between different electromechanical systems.

[0083] For example, the association relationship between different electromechanical systems may include a service relationship. Figure 6 As shown, the connection relationship between the system and the device can also be established based on the traversal result of the loop, and then the service relationship between the system and the system can be established.

[0084] Fig.10 FIG. 1 is a schematic diagram of a target data determination process provided in Embodiment 1 of the present invention. Fig.10 As shown, firstly, the idd file is parsed by IddParser to obtain the class library structure of EnergyPlus. Then, based on the class library structure, the idf and eso files are parsed by IdfParser and EsoParser respectively to obtain the corresponding parsing results. Then, the data in the above parsing results are converted by the data conversion adapter module to obtain a static model (i.e., target static data) and a building operation status slice on the time axis (i.e., target operation sequence data of the target object), thereby constructing a data structure that conforms to the definition of the building physical world. Among them, the building space converter can be used to convert the simulated building structure into the target building structure, the electromechanical system and equipment converter can be used to convert the simulated electromechanical equipment into the target electromechanical equipment and the simulated loop into the target electromechanical system, the relational data converter can be used to convert the reference relationship between the simulated objects into the association relationship between the target objects, and the timing data converter can be used to convert the simulated operation sequence data of the simulation indicator item into the target operation sequence data of the target object.

[0085] Embodiment 2

[0086] Fig.11 A flowchart of a simulation data processing method based on EnergyPlus is provided in the second embodiment of the present invention. This embodiment is optimized based on the above embodiment.

[0087] like Fig.11 As shown, the method of this embodiment specifically includes the following steps:

[0088] S210, obtaining a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file.

[0089] S220, obtaining a data dictionary definition file in EnergyPlus, and parsing the data dictionary definition file to obtain a class library structure of EnergyPlus.

[0090] The class library structure includes object types and attribute types corresponding to the object types.

[0091] S230, parsing the target simulation configuration file according to the class library structure to obtain a first parsing result, and determining target static data based on the first parsing result.

[0092] The first parsing result includes simulation objects, properties of simulation objects and reference relationships between simulation objects, and the target static data includes target objects, properties of target objects and association relationships between target objects.

[0093] S240, parsing the target simulation result file according to the class library structure to obtain a second parsing result, and determining target runtime data of the target object based on the second parsing result.

[0094] The second analysis result includes simulation index items of the simulation object and simulation running time series data of the simulation index items, and the target running time series data is represented in the form of running state time slices of the target object.

[0095] It should be noted that since the basic structures of the three types of files, idd, idf and eso, are similar, they are all text files with commas, semicolons and other characters as separators. Therefore, in the implementation of the parser, a common base class (BaseEpParser) can be used to provide general text parsing capabilities. The parsers responsible for various types of files all inherit the design pattern of the common base class, such as Fig.12 Compared with the traditional file parsing method in EnergyPlus, this solution can effectively improve the efficiency of file parsing and make the parsing results more in line with actual application requirements.

[0096] S250: Determine target data according to target static data and target runtime data of the target object.

[0097] The technical solution of the embodiment of the present invention is based on the general text parsing capability provided by a common base class, and adopts multiple parsers inherited from the common base class to be responsible for the parsing of various types of files, which can effectively improve the file parsing efficiency and make the parsing results more in line with actual application needs.

[0098] Embodiment 3

[0099] Fig.13This is a schematic diagram of the structure of a simulation data processing device based on EnergyPlus provided in the third embodiment of the present invention. The device can execute the simulation data processing method based on EnergyPlus provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Fig.13 As shown, the device comprises:

[0100] A target simulation file acquisition module 310 is used to acquire a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file;

[0101] A target static data determination module 320, configured to determine target static data based on the parsing result of the target simulation configuration file; wherein the target static data includes target objects, attributes of the target objects, and associations between the target objects;

[0102] A target runtime data determination module 330 is used to determine the target runtime data of the target object based on the parsing result of the target simulation result file; wherein the target runtime data is represented in the form of a time slice of the running state of the target object;

[0103] The target data determination module 340 is used to determine the target data according to the target static data and the target runtime data of the target object.

[0104] Optionally, the device further comprises:

[0105] A data dictionary definition file parsing module is used to obtain a data dictionary definition file in EnergyPlus after obtaining a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file, and parse the data dictionary definition file to obtain a class library structure of EnergyPlus; wherein the class library structure includes an object type and an attribute type corresponding to the object type;

[0106] a target simulation configuration file parsing module, configured to parse the target simulation configuration file according to the class library structure to obtain a first parsing result; wherein the first parsing result includes simulation objects, properties of the simulation objects, and reference relationships between the simulation objects;

[0107] The target simulation result file parsing module is used to parse the target simulation result file according to the class library structure to obtain a second parsing result; wherein the second parsing result includes the simulation index items of the simulation object and the simulation runtime data of the simulation index items.

[0108] Optionally, the simulated object includes a simulated building structure, and the simulated building structure includes a simulated space;

[0109] The target static data determination module 320 is used to:

[0110] determining a target space according to the surface property information of the simulation space;

[0111] Determining a target floor according to geometric position information of the target space;

[0112] According to the reference relationship between the simulated building structures, a first association relationship between the target building structures is determined; wherein the first association relationship includes a correspondence relationship between floors and spaces and an association relationship between different spaces.

[0113] Optionally, the simulation object includes a simulated electromechanical device, the simulated electromechanical device is described in the form of a loop, the loop includes a branch and a collection / distribution connection point, and the branch includes the simulated electromechanical device and an input / output node;

[0114] The target static data determination module 320 is used to:

[0115] Traversing each candidate loop in the first parsing result respectively, and extracting the simulated electromechanical devices in the candidate loop in turn as candidate electromechanical devices during the traversal process;

[0116] Based on the mapping relationship between the simulated electromechanical devices and the physical electromechanical devices and the connection relationship between the simulated electromechanical devices in the candidate loops, merging the candidate electromechanical devices to obtain the target electromechanical device;

[0117] According to the reference relationship between the candidate loops, a second association relationship corresponding to the target electromechanical device is determined; wherein the second association relationship includes a connection relationship between the electromechanical devices and an association relationship between the electromechanical device and the space.

[0118] Optionally, the target static data determination module 320 is further configured to:

[0119] Taking the candidate circuits with the same simulated electromechanical device in the first analysis result as the target circuit;

[0120] If the target circuits belong to the same preset system type, the target circuits are integrated to obtain a target electromechanical system.

[0121] Optionally, the second association relationship also includes: a connection relationship between the electromechanical equipment and the electromechanical system and an association relationship between different electromechanical systems.

[0122] Optionally, the target runtime data determination module 330 is used to:

[0123] Taking the simulation index items belonging to the same simulation object in the second analysis result as target index items, and taking the same simulation object as the target object;

[0124] The target runtime data corresponding to the target object is determined according to the simulated runtime data corresponding to the target indicator item.

[0125] An EnergyPlus-based simulation data processing device provided in an embodiment of the present invention can execute an EnergyPlus-based simulation data processing method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0126] Embodiment 4

[0127] Fig.14 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.

[0128] like Fig.14 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0129] 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.

[0130] 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 simulation data processing method based on EnergyPlus.

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

[0132] 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.

[0133] 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.

[0134] 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.

[0135] 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).

[0136] 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.

[0137] 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.

[0138] 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.

[0139] 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 simulation data processing method based on EnergyPlus, characterized in that: The method comprises: Obtain a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file; Determine target static data based on the parsing result of the target simulation configuration file; wherein the target static data includes target objects, attributes of the target objects, and associations between the target objects; Determining target runtime data of the target object based on the parsing result of the target simulation result file; wherein the target runtime data is represented in the form of a time slice of the running state of the target object; The target data is determined according to the target static data and the target runtime data of the target object.

2. The method according to claim 1, characterized in that After obtaining the target simulation configuration file in EnergyPlus and the target simulation result file corresponding to the target simulation configuration file, the method further includes: Obtain a data dictionary definition file in EnergyPlus, and parse the data dictionary definition file to obtain a class library structure of EnergyPlus; wherein the class library structure includes an object type and an attribute type corresponding to the object type; Parsing the target simulation configuration file according to the class library structure to obtain a first parsing result; wherein the first parsing result includes simulation objects, properties of the simulation objects, and reference relationships between the simulation objects; The target simulation result file is parsed according to the class library structure to obtain a second parsing result; wherein the second parsing result includes simulation index items of the simulation object and simulation runtime data of the simulation index items.

3. The method according to claim 2, characterized in that The simulated object includes a simulated building structure, and the simulated building structure includes a simulated space; Determining target static data based on the parsing result of the target simulation configuration file includes: determining a target space according to surface property information of the simulation space; Determining a target floor according to geometric position information of the target space; According to the reference relationship between the simulated building structures, a first association relationship between the target building structures is determined; wherein the first association relationship includes a correspondence relationship between floors and spaces and an association relationship between different spaces.

4. The method according to claim 2, characterized in that: The simulation object includes a simulated electromechanical device, the simulated electromechanical device is described in the form of a loop, the loop includes a branch and a collection / distribution connection point, and the branch includes the simulated electromechanical device and an input / output node; Determining target static data based on the parsing result of the target simulation configuration file includes: Traversing each candidate loop in the first parsing result respectively, and extracting the simulated electromechanical devices in the candidate loop in turn as candidate electromechanical devices during the traversal process; Based on the mapping relationship between the simulated electromechanical devices and the physical electromechanical devices and the connection relationship between the simulated electromechanical devices in the candidate loops, merging the candidate electromechanical devices to obtain the target electromechanical device; According to the reference relationship between the candidate loops, a second association relationship corresponding to the target electromechanical device is determined; wherein the second association relationship includes a connection relationship between the electromechanical devices and an association relationship between the electromechanical device and the space.

5. The method according to claim 4, characterized in that Determining target static data based on the parsing result of the target simulation configuration file also includes: Taking the candidate circuits with the same simulated electromechanical device in the first analysis result as the target circuit; If the target circuits belong to the same preset system type, the target circuits are integrated to obtain a target electromechanical system.

6. The method according to claim 5, characterized in that The second association relationship also includes: a connection relationship between the electromechanical equipment and the electromechanical system and an association relationship between different electromechanical systems.

7. The method according to claim 2, characterized in that Determining target runtime data of the target object based on the parsing result of the target simulation result file includes: Taking the simulation index items belonging to the same simulation object in the second analysis result as target index items, and taking the same simulation object as the target object; The target runtime data corresponding to the target object is determined according to the simulated runtime data corresponding to the target indicator item.

8. An EnergyPlus-based simulation data processing device, characterized in that: The device comprises: A target simulation file acquisition module is used to acquire a target simulation configuration file in EnergyPlus and a target simulation result file corresponding to the target simulation configuration file; A target static data determination module, configured to determine target static data based on the parsing result of the target simulation configuration file; wherein the target static data includes target objects, attributes of the target objects, and associations between the target objects; A target runtime data determination module, used to determine the target runtime data of the target object based on the parsing result of the target simulation result file; wherein the target runtime data is represented in the form of a time slice of the running state of the target object; The target data determination module is used to determine the target data according to the target static data and the target runtime data of the target object.

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 EnergyPlus-based simulation data processing method 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 EnergyPlus-based simulation data processing method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • BIM-BEM intermediate conversion file calibration and correction algorithm

    CN113177255A

  • Method and device for generating WebGL data, storage medium and electronic equipment

    CN113901051A

  • Intelligent substation simulation test method, device and equipment and storage medium

    CN114239291A

  • Simulation data generation method and device, equipment and storage medium

    CN116954570A

  • Complex control loop identification and graphical modeling method, device and equipment

    CN117452903A