Search

CN-121980800-A - Micro-grid simulation method and device

CN121980800ACN 121980800 ACN121980800 ACN 121980800ACN-121980800-A

Abstract

The invention discloses a micro-grid simulation method and device. The method comprises the steps of creating a micro-grid simulation instance, generating a plurality of character objects in the micro-grid simulation instance, creating instrument objects and/or gateway objects bound with each character object for each character object, importing preset operation sample data into the micro-grid simulation instance, driving the character objects to generate simulation operation data according to configuration parameters based on the operation sample data, enabling the instrument objects to execute preset metering logic based on the simulation operation data generated by the character objects bound with the instrument objects to generate corresponding metering data, and enabling the gateway objects to upload the metering data to a data platform according to preset communication configuration. The invention can realize the collaborative simulation and data closed loop of multi-class micro-grid units, and effectively support the application scenarios such as equipment access test, energy consumption verification, scheduling strategy evaluation and the like.

Inventors

  • Kong Yijian
  • XU MING
  • WANG AIHUA
  • HE YAN
  • ZHANG ZHEN
  • ZHANG BIAO
  • ZHOU CHENYU
  • XU YULEI
  • WU JIE
  • LIU KAIHUA
  • Feng Jiguan

Assignees

  • 江苏安科瑞微电网研究院有限公司
  • 江苏安科瑞电器制造有限公司
  • 安科瑞电气股份有限公司

Dates

Publication Date
20260505
Application Date
20260128

Claims (10)

  1. 1. A micro-grid simulation method, comprising: Creating a micro-grid simulation instance, generating a plurality of character objects in the micro-grid simulation instance, and creating an instrument object and/or a gateway object bound with each character object, wherein the character objects are used for simulating the operation characteristics of various units in the micro-grid according to configuration parameters; Importing preset operation sample data into the micro-grid simulation instance, and driving the character object to generate simulation operation data according to the configuration parameters based on the operation sample data; the instrument object executes preset metering logic based on the simulated running data generated by the character object bound with the instrument object to generate corresponding metering data; and uploading the metering data to a data platform by the gateway object according to a preset communication configuration.
  2. 2. The microgrid simulation method according to claim 1, wherein the configuration parameters of the character objects comprise configuration items and state items, the configuration items comprise rated voltage, rated power, energy type and response delay parameters, and the state items comprise current voltage, current, current power, electric energy and on-off states.
  3. 3. The microgrid simulation method according to claim 2, wherein said operational sample data comprises one or more sets of time series data, each set of sample data comprising time series values of voltage, current and power; Driving the character object to generate simulated operation data according to the configuration parameters based on the operation sample data, including: positioning target sample data of a corresponding time period from the running sample data according to the current simulation time; And writing the target sample data into a state item corresponding to the character object according to the data type, so that the character object generates simulation operation data of the current simulation time period according to the target sample data.
  4. 4. A microgrid simulation method according to claim 3, characterized in that said method further comprises: When the running sample data contains a plurality of groups of samples, each group of sample data is circularly used according to a preset sequence, and random disturbance is not introduced when the simulated running data is generated.
  5. 5. A microgrid simulation method according to claim 3, characterized in that said method further comprises: Responding to the operation of constructing a topological structure for each role object in the micro-grid simulation instance, and determining each role object as an incoming line node or a subordinate node according to the topological relation among each role object in the topological structure; When simulation operation data of an incoming line node are generated, collecting power values written in current simulation time in state items of all subordinate nodes which are in topological association with the incoming line node, superposing preset public loss to obtain incoming line power of the incoming line node in the current simulation time, and writing the incoming line power into the state item corresponding to the incoming line node; and generating simulation operation data of the wire inlet node at the current simulation time according to the wire inlet power.
  6. 6. The method of claim 2, wherein the preset metering logic comprises when the opening/closing state of the status item of the character object bound to the instrument object is opening, the current, power and electric energy values in the metering data generated by the instrument object are zero, and the voltage value is kept unchanged.
  7. 7. The method of claim 2, wherein the pre-set metering logic includes calculating a current power delta based on the power value in the status item of the character object bound to the meter object and a pre-set metering period for the meter object, and performing a cumulative update on the total power.
  8. 8. The micro grid simulation method according to claim 1, wherein the preset communication configuration includes a reporting period, an uplink protocol, a time zone of a gateway object and an instrument object associated with the gateway object; the gateway object uploads the metering data to a data platform according to a preset communication configuration, and the gateway object comprises: When the reporting period expires, reading the metering data from the meter object associated with the gateway object; formatting the metering data according to the uplink protocol type to generate a metering data message; And converting the time stamp in the metering data message according to the time zone, and uploading the time stamp to the data platform.
  9. 9. The micro grid simulation method according to claim 8, wherein the preset communication configuration further includes a gateway number, wherein a plurality of gateway objects having the same gateway number correspond to a plurality of logic channels simulating the same physical gateway, and each logic channel is configured with a different uplink protocol, reporting address or reporting period.
  10. 10. A micro-grid simulation device, comprising: The system comprises an instance creation module, a configuration module and a configuration module, wherein the instance creation module is used for creating a micro-grid simulation instance, generating a plurality of character objects in the micro-grid simulation instance, and creating an instrument object and/or a gateway object bound with each character object, wherein the character objects are used for simulating the operation characteristics of various units in the micro-grid according to configuration parameters; The data driving module is used for importing preset operation sample data into the micro-grid simulation instance, and driving the character object to generate simulation operation data according to the configuration parameters based on the operation sample data; The metering processing module is used for enabling the instrument object to execute preset metering logic based on the simulated operation data generated by the character object bound with the instrument object to generate corresponding metering data; And the data reporting module is used for enabling the gateway object to upload the metering data to a data platform according to a preset communication configuration.

Description

Micro-grid simulation method and device Technical Field The invention relates to the technical field of micro-grid simulation and test, in particular to a micro-grid simulation method and device. Background With the rapid development of micro-grid construction, the application of platform-level equipment access test, energy consumption simulation verification, scheduling strategy evaluation and the like has higher requirements on the flexibility and the authenticity of a simulation system. However, the existing micro-grid simulation method generally adopts a static model or an isolated component for simulation, lacks a unified modeling and collaborative operation mechanism for multiple objects such as a color unit, a metering instrument, a communication gateway and the like, and is difficult to construct a dynamic simulation environment with data driving and closed-loop feedback. The simulation result and the actual system behavior have larger deviation, and engineering requirements such as equipment verification, policy test and the like cannot be effectively supported. Disclosure of Invention The invention aims to overcome the defects in the prior art and provide a high-fidelity micro-grid simulation method and device. To achieve the above object, a first aspect of the present invention provides a micro-grid simulation method, including: Creating a micro-grid simulation instance, generating a plurality of character objects in the micro-grid simulation instance, and creating an instrument object and/or a gateway object bound with each character object, wherein the character objects are used for simulating the operation characteristics of various units in the micro-grid according to configuration parameters; Importing preset operation sample data into the micro-grid simulation instance, and driving the character object to generate simulation operation data according to the configuration parameters based on the operation sample data; the instrument object executes preset metering logic based on the simulated running data generated by the character object bound with the instrument object to generate corresponding metering data; and uploading the metering data to a data platform by the gateway object according to a preset communication configuration. Further, the configuration parameters of the character object include configuration items and state items, the configuration items include rated voltage, rated power, energy type and response delay parameters, and the state items include current voltage, current, current power, electric energy and switching-on and switching-off states. Further, the operational sample data comprises one or more sets of time series data, each set of sample data comprising time series values of voltage, current and power; Driving the character object to generate simulated operation data according to the configuration parameters based on the operation sample data, including: positioning target sample data of a corresponding time period from the running sample data according to the current simulation time; And writing the target sample data into a state item corresponding to the character object according to the data type, so that the character object generates simulation operation data of the current simulation time period according to the target sample data. Further, the method further comprises: When the running sample data contains a plurality of groups of samples, each group of sample data is circularly used according to a preset sequence, and random disturbance is not introduced when the simulated running data is generated. Further, the method further comprises: Responding to the operation of constructing a topological structure for each role object in the micro-grid simulation instance, and determining each role object as an incoming line node or a subordinate node according to the topological relation among each role object in the topological structure; When simulation operation data of an incoming line node are generated, collecting power values written in current simulation time in state items of all subordinate nodes which are in topological association with the incoming line node, superposing preset public loss to obtain incoming line power of the incoming line node in the current simulation time, and writing the incoming line power into the state item corresponding to the incoming line node; and generating simulation operation data of the wire inlet node at the current simulation time according to the wire inlet power. Further, the preset metering logic comprises that when the opening and closing state in the state item of the character object bound by the instrument object is opening, the current, power and electric energy values in metering data generated by the instrument object are zero, and the voltage value is kept unchanged. Further, the preset metering logic comprises the steps of calculating the current electric energy increment according to the power value in the