A dynamic model management method and system for electromagnetic transient simulation of a photovoltaic power station
By constructing an electromagnetic transient model resource library with different accuracy levels and dynamic region partitioning, and combining state mapping and consistency correction, the problem of model accuracy configuration and switching in electromagnetic transient simulation of large-scale photovoltaic power plants is solved, improving simulation accuracy and efficiency, and reducing model switching risks.
Patent Information
- Application Number
- CN202611309442.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-27
AI Technical Summary
In real-time electromagnetic transient simulation of large-scale photovoltaic power plants, existing technologies struggle to configure models with appropriate accuracy levels based on the dynamic response characteristics of different regions, leading to wasted computing resources or insufficient simulation accuracy. Furthermore, sudden changes in electrical quantities and numerical oscillations are prone to occur during model switching.
By constructing a resource library of electromagnetic transient models with different accuracy levels, the disturbance impact area is dynamically divided according to the operating status and disturbance characteristics of the photovoltaic power station, and models with appropriate accuracy levels are configured. The continuity of model switching is achieved through state variable mapping, state reconstruction and consistency correction, and the management strategy is updated in conjunction with the model operation performance evaluation.
It improves simulation accuracy and computational efficiency, reduces the risk of electrical quantity abrupt changes and numerical oscillations during model switching, and enhances the adaptability of model management methods to different operating conditions and disturbance scenarios.
Smart Images

Figure CN123179665A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of new energy power system modeling and simulation technology, and in particular to a dynamic model management method and system for electromagnetic transient simulation of photovoltaic power plants. Specifically, it involves technologies such as electromagnetic transient model construction of different accuracy levels, operation status perception and disturbance identification, disturbance influence area division, dynamic model configuration, continuous state maintenance model switching, partitioned collaborative electromagnetic transient solution, model performance evaluation, and dynamic model management strategy update. Background Technology
[0002] With the large-scale grid connection of new energy power generation, especially the continuous increase in the installed capacity of large-scale photovoltaic power plants and the large-scale integration of power electronic equipment, real-time electromagnetic transient simulation has become an important technical means for photovoltaic power plant planning and design, operation analysis, control strategy verification, digital twins, and hardware-in-the-loop testing. However, large-scale photovoltaic power plants have a large number of internal devices that are widely distributed in space, and the dynamic response characteristics of different regions during disturbances vary significantly, resulting in spatial non-uniformity in the requirements for simulation model accuracy and computational resources.
[0003] Existing real-time electromagnetic transient simulation methods typically employ a uniform model accuracy or a pre-configured model combination to model renewable energy power plants. For large-scale photovoltaic power plants, due to varying degrees of disturbance impact in different areas, using a uniform high-precision model results in a significant waste of computational resources in non-critical areas. Conversely, using a uniform low-precision model struggles to accurately describe the rapid dynamic processes of fault areas, power electronic equipment, and control systems. Therefore, how to dynamically configure appropriate model accuracy for different areas based on operating conditions and disturbance propagation characteristics, achieving a balance between simulation accuracy and computational efficiency, remains a challenge for real-time electromagnetic transient simulation of large-scale photovoltaic power plants.
[0004] While some existing technologies have constructed model resource libraries containing models with different time scales or accuracy levels and achieved data interaction between different models through model interface mapping, they mainly focus on information exchange and joint simulation processes between different models, lacking a dynamic model management mechanism oriented towards the spatial distribution characteristics of large-scale photovoltaic power plants. In actual electromagnetic transient real-time simulation, model switching involves not only changes in model structure but also the continuous maintenance of state variables, internal dynamic quantities, and control states. Without effective state mapping, state reconstruction, and consistency correction mechanisms, sudden changes in electrical quantities, numerical oscillations, or even simulation non-convergence can easily occur during model switching. Furthermore, existing methods typically lack dynamic optimization mechanisms based on model performance feedback, making it difficult to continuously adjust model configuration strategies according to long-term operational results.
[0005] Therefore, it is necessary to propose a dynamic model management method and system for electromagnetic transient simulation of photovoltaic power plants. By sensing the operating status and disturbance propagation characteristics of the photovoltaic power plant, the system dynamically divides the disturbance-affected areas and configures electromagnetic transient models with appropriate accuracy levels for different areas. At the same time, continuous state switching between models of different accuracy levels is achieved through state variable mapping, state reconstruction, and consistency correction. The model management strategy is updated in a closed loop based on the model operation performance evaluation results, thereby improving the computational efficiency, simulation accuracy, and operational stability of electromagnetic transient simulation of large-scale photovoltaic power plants. Summary of the Invention
[0006] The purpose of this invention is to provide a dynamic model management method and system for electromagnetic transient simulation of photovoltaic power plants, in order to solve the problems of different model accuracy requirements in different operating areas and the difficulty in maintaining state continuity during the switching of different accuracy models in the electromagnetic transient simulation of large-scale photovoltaic power plants. It realizes model configuration based on dynamic identification of disturbance-affected areas, continuous state switching and performance feedback updates, thereby improving the accuracy, efficiency and stability of electromagnetic transient simulation.
[0007] To achieve the above objectives, this invention provides a dynamic model management method and system for electromagnetic transient simulation of photovoltaic power plants. It constructs a model management framework that includes dynamic models of different accuracy levels. Based on the operating status of the photovoltaic power plant, the disturbance-affected area, and the simulation requirements, it configures dynamic models for different areas. Through state mapping, consistency correction, and performance feedback updates during model switching, it achieves collaborative management between model configuration, model switching, simulation solving, and strategy updates.
[0008] The method includes: establishing an electromagnetic transient model resource library containing dynamic models of different accuracy levels, and managing model parameters, applicable scenarios, computational complexity, simulation accuracy, and state variable mapping relationships; collecting photovoltaic power plant operation data, network topology information, and equipment status information to identify operating status and disturbance characteristics; dividing disturbance-affected areas based on operating status, disturbance characteristics, electrical topology, and disturbance propagation relationships, and generating area description information; configuring target dynamic models according to area operating characteristics, simulation accuracy, computational resources, and model switching constraints; achieving continuous state-maintaining switching between dynamic models of different accuracy levels through state variable mapping, state reconstruction, consistency correction, and continuity verification; conducting partitioned collaborative electromagnetic transient solutions based on the configured dynamic models, and updating the disturbance-affected area division rules, model configuration strategies, and model switching strategies based on model performance evaluation results.
[0009] Compared with the prior art, the present invention has the following beneficial effects: (1) This invention divides the disturbance-affected area by combining the operating state, disturbance characteristics, electrical topology and disturbance propagation relationship, so that different areas can be matched with electromagnetic transient models of appropriate accuracy levels according to dynamic response characteristics, thereby improving the pertinence of model configuration and avoiding the waste of computing resources caused by uniform model accuracy.
[0010] (2) By comprehensively considering simulation accuracy, real-time calculation constraints, computing resource constraints and model switching continuity constraints, this invention achieves dynamic model configuration for different disturbance regions, thereby improving the overall simulation calculation efficiency while ensuring the simulation accuracy of key regions.
[0011] (3) By establishing a state variable mapping, state reconstruction, consistency correction, continuity verification and state recovery mechanism, this invention realizes the continuous state maintenance switching between dynamic models of different accuracy levels, reducing the risk of electrical quantity mutation, numerical oscillation and simulation instability during model switching.
[0012] (4) This invention establishes a dynamic model management strategy update mechanism based on the model operation performance evaluation results, and adjusts the regional division rules, model configuration strategy and model switching strategy according to the long-term operation effect, thereby improving the adaptability of the model management method to different operating conditions and disturbance scenarios. Attached Figure Description
[0013] Figure 1 This is a general framework diagram of a dynamic model management system for electromagnetic transient simulation of a photovoltaic power station according to the present invention; Figure 2 This is a flowchart of a dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to the present invention; Figure 3 This is a schematic diagram of the closed-loop process for dynamic model management in this invention. Detailed Implementation
[0014] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. It should be noted that the following embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention. Equivalent substitutions or modifications made by those skilled in the art without departing from the concept of the present invention should all fall within the scope of protection of the present invention.
[0015] like Figure 1 As shown, this invention provides a dynamic model management method and system for electromagnetic transient simulation of photovoltaic power plants. The method determines the disturbance-affected area based on the photovoltaic power plant's operating status, disturbance characteristics, electrical topology, and disturbance propagation relationships. For different disturbance-affected areas, it configures electromagnetic transient models of corresponding accuracy levels and achieves continuous state switching between models of different accuracy levels through state variable mapping, state reconstruction, consistency correction, switching verification, and anomaly recovery.
[0016] like Figure 2 As shown, the dynamic model management method includes: constructing an electromagnetic transient model resource library; collecting and processing photovoltaic power plant operation data to generate operation status information and disturbance characteristic information; dividing the disturbance impact area; configuring the target model corresponding to each disturbance impact area; performing continuous state-maintaining model switching; carrying out partitioned collaborative electromagnetic transient solution; evaluating model operation performance; and updating the dynamic model management strategy based on the model operation performance evaluation results.
[0017] like Figure 3 As shown, the running status information and disturbance characteristic information are used to determine the disturbance-affected area. The disturbance-affected area description information is used to determine the corresponding target model and model configuration scheme. The model configuration scheme is used to perform continuous state maintenance model switching and electromagnetic transient solution. The model running performance evaluation results are used to update the region division rules, model configuration strategy and model switching strategy, and apply the updated dynamic model management strategy to the next simulation cycle, thereby forming a dynamic model management closed loop.
[0018] In this embodiment, an electromagnetic transient model resource library containing dynamic models of different accuracy levels is first constructed. This resource library is used to store the electromagnetic transient models, model parameters, model attributes, and mapping relationships between different equipment objects in a photovoltaic power station, providing a model foundation for subsequent target model matching, dynamic model configuration, and continuous state-maintaining model switching.
[0019] Specifically, corresponding electromagnetic transient models are established for different equipment objects in a photovoltaic power plant. These equipment objects include photovoltaic arrays, photovoltaic inverters, step-up transformers, collector lines, busbars, and the grid-connected system. For the same equipment object, electromagnetic transient models with different model types and accuracy levels are established according to the simulation purpose, operating conditions, and accuracy requirements.
[0020] For example, for photovoltaic inverters, detailed models at the switching device level, average value models, and equivalent external characteristic models can be established separately. The detailed switching device level model describes the switching states of power devices, DC-side dynamics, AC-side filtering, and the fast response process of the control system. The average value model characterizes the power conversion process through equivalent controlled sources, preserving the main control dynamics of the inverter while reducing computational complexity. The equivalent external characteristic model describes the external dynamic characteristics based on the relationship between the inverter's grid-connected voltage, current, and active and reactive power. These models are categorized into corresponding accuracy levels according to their model order, number of state variables, computational step size, computational complexity, and simulation error.
[0021] Each electromagnetic transient model is assigned a model identifier, and a model parameter set is established. The model parameter set includes model parameters, state variables, input variables, output variables, and model initialization parameters. Taking a photovoltaic inverter model as an example, model parameters may include DC-side capacitor, AC-side filter inductor, filter resistor, DC voltage reference value, power control parameters, and current control parameters; state variables may include DC-side capacitor voltage, filter inductor current, controller integral state, and phase-locked loop state; input variables may include grid connection point voltage, power command, and external control command; output variables may include AC-side current, active power, reactive power, and DC-side voltage; model initialization parameters are used to initialize the target model based on the boundary operating state at the switching moment.
[0022] Furthermore, model feature information of each electromagnetic transient model is extracted, and a model attribute set is established. The model attribute set includes model type, model accuracy level, model order, applicable operating scenarios, applicable boundary conditions, computational complexity, simulation accuracy, real-time computing performance, and computing resource requirements.
[0023] In one implementation, the computational complexity of the model can be determined based on the number of times the state equations, algebraic equations, and logical judgments are solved to complete one simulation step; the simulation accuracy of the model can be determined based on the deviation of the model from the voltage, current, active power, and reactive power outputs of a preset reference model; the real-time computing performance can be determined based on the average computing time required for the model to complete a unit simulation step; and the computing resource requirements can be determined based on the processor utilization and storage resource usage during model operation.
[0024] For different models corresponding to the same device object, state variable mapping relationships, model parameter mapping relationships, and model switching mapping relationships are established to form a model mapping relationship set. The state variable mapping relationship is used to determine the correspondence between the source model state variables and the target model state variables; the model parameter mapping relationship is used to determine the transformation relationship between different model parameters; and the model switching mapping relationship is used to record the direct mapping, state reconstruction, state initialization, and consistency correction operations that need to be performed when switching models.
[0025] For state variables with the same physical meaning and dimensions, a one-to-one direct mapping relationship can be established. For example, when both the source model and the target model include the DC-side capacitor voltage state, the DC-side capacitor voltage value at the moment of source model switching is directly assigned to the corresponding state variable in the target model. For variables with the same physical meaning but different forms of expression, parameter mapping or state mapping relationships can be established based on the equivalent transformation relationship between variables. For example, the direct-axis current and quadrature-axis current obtained by coordinate transformation of the three-phase instantaneous current can be mapped to the target model described by a synchronous rotating coordinate system. For state variables that exist only in the target model, their initialization variable source, initialization calculation relationship, and boundary conditions are recorded for state initialization during model switching.
[0026] A model description specification is established based on the model parameter set, model attribute set, and model mapping relationship set. Each model entry corresponds to at least one model identifier and is associated with the device object, model type, model accuracy level, model parameter set, model attribute set, and model mapping relationship set. Electromagnetic transient models are organized and managed according to device type, operating scenario, boundary conditions, and model accuracy level through a model index, forming an electromagnetic transient model resource library containing dynamic models of different accuracy levels.
[0027] In the subsequent dynamic model configuration process, candidate models that meet the applicable operating scenarios and boundary conditions can be retrieved through the model index based on the region type, disturbance level, region operation characteristics and model configuration constraints. When performing model switching, the corresponding state variable mapping relationship, model parameter mapping relationship and model switching mapping relationship can be read based on the source model identifier and target model identifier.
[0028] In this embodiment, a resource library of electromagnetic transient models for photovoltaic power plants is first established. The resource library contains electromagnetic transient models of different accuracy levels. Different models are classified and managed according to computational complexity, simulation accuracy, and applicable operating conditions. A unified model description specification is established, and model parameters, input / output interfaces, state variables, and state mapping relationships are uniformly defined to ensure that models of different accuracy levels can be uniformly called and dynamically switched.
[0029] In one implementation, corresponding electromagnetic transient models are established for photovoltaic arrays, photovoltaic inverters, step-up transformers, collector lines, busbars, and grid-connected systems. For each model, a model parameter set, a model attribute set, and a model mapping relationship set are created. The model parameter set includes model parameters, state variables, input variables, output variables, and initialization parameters. The model attribute set includes model type, model accuracy level, model order, applicable operating scenarios, computational complexity, and simulation accuracy. The model mapping relationship set includes state variable mapping relationships, model parameter mapping relationships, and model switching mapping relationships. A unified model description specification is established based on the above information, and the organization and management of each electromagnetic transient model are completed through a model index.
[0030] After the model library is built, the operating status of the photovoltaic power station is monitored in real time. The operating data mainly includes bus voltage, line current, inverter output power, system frequency, switch status, protection action information, and network topology information. Various types of operating information are acquired through a unified data acquisition interface, and time synchronization, data verification, and preprocessing are performed to eliminate the impact of abnormal and missing data on subsequent model management.
[0031] Subsequently, an operational state vector is constructed based on the preprocessed operational data. This operational state vector is used to uniformly describe the current operational state and dynamic characteristics of the photovoltaic power station, and serves as the basic input for subsequent disturbance identification, affected area division, and dynamic model configuration. When the system operational state changes, the operational state vector is updated synchronously, providing real-time status information for subsequent dynamic model management.
[0032] In one implementation, electrical state features, equipment state features, network topology state features, operational disturbance features, and control state features are extracted from preprocessed operational data, and operational state vectors are constructed according to preset state coding rules. These state coding rules organize various state features according to a unified data format and encoding method, enabling different types of operational data to be described in a unified manner. Further, corresponding operational state labels are generated based on the operational state vectors, and an operational state index is established. The operational state labels characterize the current operating condition, disturbance type, and operational stage; the operational state index associates the corresponding operational state vectors, disturbance impact area description information, and dynamic model configuration results, providing a unified state input for subsequent disturbance impact area division, dynamic model configuration, and model management strategy updates.
[0033] After obtaining the operating state vector, the system operating state is analyzed in real time to identify whether the system has experienced disturbances such as faults, switching operations, power fluctuations, and control mode switching. Based on the disturbance type, severity, and impact range, the photovoltaic power station is dynamically divided into regions to obtain the operating characteristic parameters of each region.
[0034] In this embodiment, the division of the disturbance impact area is determined not only based on the disturbance type and severity, but also comprehensively considering the photovoltaic power station network topology, electrical coupling relationships between devices, disturbance propagation paths, and the degree of change in the operating status of each device, to dynamically identify the disturbance impact area. The system first determines the photovoltaic power generation unit, collection line, collection bus, or grid connection interface where the disturbance source is located based on the fault location, switch operation position, or control mode change location, and uses the corresponding electrical node as the starting node for disturbance propagation analysis. Then, it determines the disturbance propagation path based on the electrical topology, and determines the structural correlation degree of each electrical node based on the topological distance between each electrical node and the disturbance source, the electrical coupling strength, and the disturbance propagation direction.
[0035] In one implementation, the disturbance impact of the i-th electrical node can be expressed as: In the formula, This indicates the degree of disturbance impact on the i-th electrical node; These represent the normalized node voltage deviation, current change, power fluctuation, frequency deviation, and control state change, respectively. This indicates the normalized structural correlation degree determined based on topological distance, electrical coupling strength, and disturbance propagation direction; ~ Each weight corresponds to a specific value, and the sum of all weights is 1. These weights can be preset or dynamically adjusted according to the type of disturbance and operating conditions.
[0036] The disturbance impact zone is divided based on the degree of disturbance impact of each electrical node. When the degree of disturbance impact of an electrical node is not lower than the first impact threshold, the corresponding consecutive electrical nodes are divided into the core disturbance zone; when the degree of disturbance impact is lower than the first impact threshold but not lower than the second impact threshold, the corresponding consecutive electrical nodes are divided into the buffer transition zone; when the degree of disturbance impact is lower than the second impact threshold, the corresponding electrical nodes are divided into the stable operation zone, where the first impact threshold is greater than the second impact threshold.
[0037] Subsequently, the regional boundaries are corrected based on the degree of disturbance impact and the preset regional division threshold. Electrical nodes that have a strong electrical coupling relationship with the core disturbance area and are located on the main disturbance propagation path are incorporated into the core disturbance area or buffer transition area; at the same time, equipment with continuous dynamic response characteristics within the same photovoltaic power generation unit, collector line, or busbar is kept in the same disturbance impact area.
[0038] After the region is divided, corresponding disturbance impact region description information is generated. The region description information includes region identifier, region type, region boundary, set of devices within the region, disturbance type, disturbance level, region operation feature vector, region operation status index, and model configuration priority, and serves as input for the dynamic model configuration module to perform candidate model matching and determine the model accuracy level.
[0039] Based on the description information of the disturbance-affected area, the dynamic model configuration module first selects candidate models that meet the regional operating conditions from the electromagnetic transient model resource library, and comprehensively evaluates the candidate models by taking into account factors such as simulation accuracy, unit simulation step size calculation time, computational resource consumption, model switching cost and disturbance adaptability.
[0040] In one implementation, for each candidate model, the corresponding simulation error prediction value, regional disturbance adaptability, and model switching cost are first calculated. The simulation error prediction value is estimated based on the response deviation between the candidate model and a preset reference model under similar historical operating conditions. The reference model can be the highest-precision electromagnetic transient model of the corresponding equipment object, calculating the relative errors of node voltage, branch current, active power, and reactive power, and obtaining the simulation error prediction value corresponding to the candidate model using a weighted average. The regional disturbance adaptability is determined based on the degree of matching between the candidate model's applicable operating scenario and the current regional disturbance type, disturbance level, and disturbance duration. When the candidate model is suitable for the current disturbance scenario, the regional disturbance adaptability increases. The model switching cost is comprehensively determined based on the changes in the number of state variables between the current model and the candidate model, the changes in model order, and the computational cost of state reconstruction. All the above evaluation indicators are normalized and used as inputs for the comprehensive evaluation of the candidate models.
[0041] In one implementation, the combined cost of each candidate model can be expressed as: In the formula, Indicates the overall cost of the candidate model; These represent the normalized simulation error prediction value, the calculation time per unit simulation step, the computational resource consumption, the model switching cost, and the regional disturbance adaptability, respectively. These are the weights of the corresponding evaluation indicators, and the sum of each weight is 1. In this embodiment, the evaluation weights are preset according to the type of disturbance-affected area. In the core disturbance area, the weights corresponding to the simulation error prediction value and the regional disturbance adaptability are appropriately increased. In the stable operation area, the weights corresponding to the unit simulation step size calculation time and the amount of computing resources consumed are appropriately increased. In the buffer transition area, all the above evaluation indicators are taken into account. The smaller the overall cost, the better the candidate model.
[0042] During the comprehensive evaluation process, candidate models that simultaneously meet the constraints of simulation accuracy, real-time computation, computational resources, and model switching continuity are selected as feasible models. From these, the target model with the best overall performance is determined, and dynamic model configuration schemes are generated for each disturbance-affected region. Specifically, high-precision models are prioritized for the core disturbance region, medium- or high-precision models are configured for the buffer transition region based on the degree of disturbance propagation, and models with lower computational complexity are configured for the stable operation region.
[0043] To avoid frequent model switching due to frequent fluctuations in system operating status, this embodiment introduces a model switching hysteresis mechanism during model configuration. Model switching is only executed after the target model has continuously met the model switching conditions for a preset number of times. Furthermore, when the difference in comprehensive cost between the target model and the current model is greater than a preset model switching threshold and the preset simulation step requirement is met consecutively, a model switching command is generated; otherwise, the current model continues to run to suppress frequent switching of model accuracy levels between adjacent simulation moments.
[0044] The dynamic model configuration scheme is updated in real time according to the system's operating status. When the operating status changes or new disturbances are detected, the system re-divides the regions and reconfigures the model, providing a basis for subsequent model switching and real-time solving of dynamic electromagnetic transients.
[0045] After completing the dynamic model configuration, the system performs continuous state-preserving model switching according to the model configuration scheme. When the target model is inconsistent with the current model, the current model running state is first saved as the state information before the switch, and the direct mapping of state variables, state reconstruction, and initialization of new states are completed according to the state variable mapping relationship.
[0046] In one implementation, for state variables that are present in both the source and target models and have the same physical meaning, a direct mapping method is used to complete the state transfer. For cases where the model order changes or the number of state variables differs, a state reconstruction method is used to generate the corresponding state variables for the target model. During state reconstruction, a state mapping relationship is established based on the source model's state variables, output variables, and model parameters to convert the source model's state variables into the target model's state variables. For newly added state variables in the target model, initialization is performed based on the source model's output variables, model parameters, and the current boundary running state to ensure that the target model has a reasonable initial running state after model switching.
[0047] Subsequently, consistency corrections were performed on voltage, current, power, controller output, and internal integral states to ensure that the electrical, control, and energy states remained continuous before and after model switching.
[0048] In one implementation, consistency correction sequentially includes electrical quantity continuity correction, power balance correction, energy consistency correction, and control state consistency correction. Electrical quantity continuity correction reduces the deviation of node voltages and branch currents before and after model switching; power balance correction reduces the imbalance between active and reactive power before and after model switching; energy consistency correction maintains the continuous change of the energy state corresponding to the energy storage element; and control state consistency correction maintains the continuous change of the controller's internal integral state and control output. After the above consistency corrections are completed, if the node voltage, branch current, and output power meet the preset continuity constraints, the target model is considered to meet the switching conditions.
[0049] After completing the consistency correction, a continuity verification is performed on the target model after the switch. The model switch is completed when the verification result meets the preset switch completion conditions. If the verification fails, the model running state saved before the switch is restored and the original model continues to run to ensure the continuity and numerical stability of the model switch process.
[0050] Furthermore, within a preset continuous simulation step after the model switch is completed, the system continuously monitors whether state variables experience abnormal jumps, whether the system exhibits numerical oscillations, or whether the solution diverges. When the detection results meet the continuous state maintenance requirements, the target model is officially activated; otherwise, the model running state saved before the switch is restored, and the model switch result is recorded to provide a basis for subsequent model performance evaluation and dynamic model management strategy updates.
[0051] After the model switch is completed, a corresponding dynamic electromagnetic transient solution model is established based on the target model configured for each region, and real-time electromagnetic transient simulation calculations are carried out using a partitioned collaborative approach. Each computational region establishes an electromagnetic transient solution model based on its corresponding target model and model accuracy level, and determines the regional boundary interaction information based on the electrical connection relationships between regions.
[0052] In one implementation, each computational region can use either a uniform time step or an adaptive time step for electromagnetic transient numerical solutions. When a uniform time step is used, each computational region synchronously updates its state according to the same simulation step size; when an adaptive time step is used, each computational region determines its simulation step size based on the computational requirements of its corresponding model and completes the exchange of boundary data at a preset synchronization time.
[0053] Each region interacts with data at a unified time step and exchanges boundary information based on network topology, enabling collaborative solving between models of different accuracies. Boundary interaction information includes electrical quantities such as boundary node voltage, branch current, active power, and reactive power. This boundary interaction ensures the consistency of electrical states between adjacent computational regions. For computational regions with cross-regional electrical coupling, after boundary information exchange in each simulation step, boundary voltage, current, and power are iteratively updated. The current simulation step is completed when the regional boundary electrical quantities meet preset consistency constraints.
[0054] After solving each computational domain, the simulation results of each domain are globally reconstructed to obtain real-time simulation results of voltage, current, power, frequency and internal state variables of each domain of the entire photovoltaic power station, and output to the model performance evaluation module.
[0055] When the system's operating state continues to change, the model switching and real-time solution process is repeatedly executed based on the dynamic model configuration results. This achieves dynamic coordination between dynamic model configuration, continuous state-maintaining model switching, and real-time solution, providing real-time simulation data for subsequent model performance evaluation and dynamic model management strategy updates.
[0056] After completing the real-time solution of dynamic electromagnetic transients, a comprehensive evaluation of the model's performance is conducted. The evaluation includes indicators such as simulation accuracy, real-time computing performance, computational resource utilization, model switching error, state consistency, model switching success rate, and numerical stability.
[0057] In one implementation, the regional simulation accuracy index is first obtained by comparing the dynamic electromagnetic transient simulation results with preset reference results. The preset reference results can be high-precision model simulation results, measured operating data, or verified benchmark simulation results. The corresponding simulation accuracy index is obtained by calculating the deviations between node voltages, branch currents, active power, reactive power, and key dynamic response characteristics. The key dynamic response characteristics include at least one of peak value, steady-state value, response time, overshoot, and oscillation decay characteristics.
[0058] Real-time performance metrics are determined based on the relationship between the calculation time per unit simulation step and the preset real-time simulation step. Computational resource utilization metrics are determined based on processor utilization, storage resource usage, communication data volume, and regional computational load during model operation. For regions where model switching occurs, model switching error metrics are calculated based on changes in node voltage, branch current, output power, and state variables before and after the model switch. Furthermore, state consistency metrics, model switching success rate, and numerical stability metrics are determined based on whether abnormal state variable jumps, numerical oscillations, solution non-convergence, or model rollback occur within consecutive simulation steps after the switch.
[0059] In one implementation, the overall model performance score for each disturbance-affected region can be expressed as: In the formula, This represents the overall performance score of the model for the i-th disturbance-affected region; These represent the normalized regional simulation accuracy index, real-time performance index, computational resource utilization index, model switching success rate index, state consistency index, and numerical stability index, respectively. These are the corresponding evaluation weights, and the sum of each weight is 1.
[0060] In one implementation, each evaluation index is first normalized according to its maximum value, minimum value, or preset benchmark value to ensure unified evaluation of indices with different dimensions. Evaluation weights are determined based on the type and level of the disturbance-affected area. For example, for the core disturbance area, the weights corresponding to simulation accuracy, state consistency, and numerical stability are increased; for the stable operation area, the weights corresponding to real-time performance and computational resource utilization are increased; and for the buffer transition area, various evaluation indicators are considered comprehensively.
[0061] Based on various evaluation indicators, the comprehensive performance scores of the regional model and the overall model are calculated to form the model performance evaluation results, which are then used as input for the dynamic model management strategy update module.
[0062] The dynamic model management strategy update module establishes a historical dataset of model operation based on the model performance evaluation results, and performs statistical analysis on the long-term operating performance of the model under different operating conditions and disturbance scenarios.
[0063] In one implementation, the historical model runtime dataset is categorized and stored according to region identifier, disturbance type, disturbance level, operating conditions, and the target model used. The historical dataset includes regional model comprehensive performance scores, overall model comprehensive performance scores, model switching error indices, state consistency indices, model switching success rates, numerical stability indices, computational resource utilization information, and model configuration results. By statistically analyzing historical runtime data within different statistical periods, long-term performance evaluation values corresponding to each target model are obtained.
[0064] In one implementation, the long-term performance evaluation value of each target model can be obtained by weighted statistical method of historical comprehensive performance score, and its calculation formula can be expressed as: In the formula, This represents the long-term performance evaluation value corresponding to the kth statistical period; This displays the overall performance score of the model obtained in the current statistical period; This represents the historical performance weight, with a value ranging from 0 to 1. Long-term performance evaluation values can comprehensively reflect the overall performance change trend of the model during continuous operation, providing a basis for updating dynamic model management strategies.
[0065] When preset update trigger conditions are met, the dynamic model management strategy update module determines the strategy parameters to be adjusted based on the performance index deviations corresponding to the abnormal regions. The update trigger conditions include: the overall performance score of the regional model is lower than a preset threshold for multiple consecutive statistical periods; the calculation time per unit simulation step exceeds a preset real-time simulation step; the model switching error exceeds a preset threshold; the state consistency index or numerical stability index is lower than a preset requirement; or the model switching success rate is lower than a preset success rate threshold.
[0066] When the overall performance score of the regional model falls below the preset threshold, the real-time computing performance declines, the model switching success rate decreases, or the numerical stability fails to meet the operational requirements for multiple consecutive statistical periods, the rules for dividing the disturbance-affected area, the dynamic model configuration strategy, the model switching strategy, and the model performance evaluation parameters are updated incrementally.
[0067] In one implementation, the dynamic model management strategy parameters to be adjusted include region partitioning thresholds, region boundary correction rule parameters, candidate model evaluation index weights, model configuration constraint thresholds, model switching trigger thresholds, model switching completion criteria, model recovery criteria, and performance evaluation weights. Based on the type of abnormal region and the direction of performance index deviation, the corresponding parameters are adjusted differentially. For example, when the simulation accuracy or state consistency in the core disturbance region does not meet preset requirements, the weights of parameters related to simulation accuracy, disturbance adaptability, and model switching continuity are increased; when the computational resource consumption or unit simulation step size computation time in the stable operation region exceeds preset requirements, the weights of parameters related to real-time performance and computational resource utilization are increased; when frequent model switching occurs in the buffer transition region, the model switching trigger threshold is increased or the number of simulation steps continuously meeting the switching conditions is increased.
[0068] In one implementation, the parameters of each dynamic model management strategy are updated using a gradual adjustment method, and the update process can be represented as follows: In the formula, and These represent the parameter values of the j-th dynamic model management strategy parameter at the k-th and k+1-th updates, respectively. This indicates the amount of parameter adjustment corresponding to this update; This indicates the maximum allowable adjustment range for the corresponding parameter; This represents a parameter limiting function, used to limit the magnitude of changes in policy parameters during a single update, in order to ensure the continuity and stability of the dynamic model management policy update process.
[0069] The updated dynamic model management strategy first performs constraint verification. When the real-time simulation constraints, model configuration feasibility constraints, and model switching stability constraints are met, the updated strategy is applied to the next simulation cycle. If the updated strategy does not achieve the expected optimization effect, or causes new real-time constraints, state continuity constraints, or numerical stability constraints to be unmet, the dynamic model management strategy before the update is restored, thus realizing closed-loop adaptive optimization of the dynamic model management strategy.
[0070] Furthermore, the system records the strategy parameters, update triggering reasons, applicable areas, overall model performance score, and constraint verification results before and after each dynamic model management strategy update. If the updated strategy fails to improve the corresponding abnormal performance indicators within a preset verification period, the update is marked as invalid, and the previous dynamic model management strategy is restored to ensure the stability and reliability of the dynamic model management process.
[0071] This invention also provides a system for implementing the dynamic model management method for electromagnetic transient simulation of the above-mentioned photovoltaic power plant, such as... Figure 1 As shown, the system includes an electromagnetic transient model resource library construction module, an operation status perception module, a disturbance influence area division module, a dynamic model configuration module, a continuous state-maintaining model switching module, a dynamic electromagnetic transient real-time solution module, a model performance evaluation module, and a dynamic model management strategy update module.
[0072] The electromagnetic transient model resource library construction module is used to establish an electromagnetic transient model resource library containing dynamic models of different accuracy levels, and to uniformly manage the model parameter set, model attribute set, state variable mapping relationship and model management information corresponding to each dynamic model, providing a model foundation for dynamic model calling, target model configuration and model switching.
[0073] The operation status perception module is used to collect photovoltaic power plant operation data, network topology information and equipment operation status information, and to perform time synchronization, anomaly detection and standardization processing on the collected data to generate operation status information, operation status vector and disturbance feature information.
[0074] The disturbance impact area division module is used to analyze the impact range of disturbance sources based on operating status information, disturbance characteristic information, electrical topology and disturbance propagation relationship, calculate the disturbance impact degree of each area, complete the area boundary correction, and generate disturbance impact area description information including area type, disturbance level, area operating characteristics and model configuration priority.
[0075] The dynamic model configuration module is used to select candidate models from the electromagnetic transient model resource library based on the description information of the disturbance-affected area, and evaluate them according to simulation accuracy, real-time computing performance, computing resource consumption, model switching cost and regional disturbance adaptability. Under the conditions of meeting the constraints of simulation accuracy, real-time computing, computing resource and model switching continuity, the target model is determined and a dynamic model configuration scheme is generated.
[0076] The continuous state-maintaining model switching module is used to switch between dynamic models of different accuracy levels according to the dynamic model configuration scheme. It completes the initialization of the target model through state variable mapping, state reconstruction, state initialization, consistency correction and continuity verification. When abnormal changes in state variables, numerical oscillations or unstable solutions occur during the model switching process, the model running state before the switch is restored according to the model switching state cache.
[0077] The dynamic electromagnetic transient solution module is used to establish a partitioned dynamic electromagnetic transient solution model based on the dynamic model configuration scheme, and to carry out collaborative solution based on the electrical coupling relationship between regions. Through the interaction of regional boundary information, the overall voltage, current, power and system state distribution results of the photovoltaic power station are obtained.
[0078] The model performance evaluation module is used to evaluate the regional simulation accuracy, real-time computing performance, computing resource utilization, model switching error, state consistency, model switching success rate and numerical stability based on the dynamic electromagnetic transient solution results, and to generate a regional model comprehensive performance score, a full-field model comprehensive performance score and model performance feedback information.
[0079] The dynamic model management strategy update module is used to establish a historical dataset of model operation based on model performance feedback information, adjust the rules for dividing the disturbance influence area, dynamic model configuration strategy, model switching strategy and model performance evaluation parameters according to the long-term operation performance analysis results, and perform constraint verification on the updated dynamic model management strategy. When the updated strategy meets the preset conditions, it is applied to the next simulation cycle; when the update result does not meet the preset requirements, the strategy before the update is restored.
[0080] The above modules interact with each other according to the dynamic model management process. Specifically, the operation status perception module provides operation status information and disturbance characteristic information to the disturbance influence area division module; the disturbance influence area division module provides disturbance influence area description information to the dynamic model configuration module; the dynamic model configuration module provides the target model and model configuration scheme to the continuous state holding model switching module; the continuous state holding model switching module provides the model state after switching to the dynamic electromagnetic transient solution module; the dynamic electromagnetic transient solution module provides simulation results to the model performance evaluation module; the model performance evaluation module provides model performance feedback information to the dynamic model management strategy update module; and the dynamic model management strategy update module outputs the updated management strategy and applies it to the next simulation cycle, thus forming a closed loop of dynamic model management.
Claims
1. A dynamic model management method for electromagnetic transient simulation of a photovoltaic power plant, characterized in that, Includes the following steps: S1. Construct a dynamic model resource library, which includes dynamic models applicable to different equipment types, operating conditions and simulation accuracy levels, and establish model parameter sets, model attribute sets, model management information and state variable mapping relationships corresponding to each dynamic model. S2. Collect photovoltaic power station operation data, network topology information and equipment status information, perform time synchronization, anomaly detection and status feature extraction on the operation data, identify disturbance sources and disturbance features, and generate operation status information and disturbance feature information; S3. Based on the operating status information, disturbance characteristic information, electrical topology and disturbance propagation relationship, calculate the disturbance impact degree of each electrical node, and divide the photovoltaic power station into core disturbance zone, buffer transition zone and stable operation zone according to the preset impact threshold to form regional description information; S4. Based on the region description information, select a target dynamic model from the dynamic model resource library that meets the simulation accuracy requirements, computation time requirements and resource constraints, and form a model configuration scheme corresponding to each disturbance-affected region. S5. According to the model configuration scheme, during the dynamic model switching process, the state variables of models with different precision are mapped, the state is reconstructed and the state is initialized, and the model is continuously switched through consistency correction and continuity verification. S6. Based on the target dynamic model after switching, electromagnetic transient simulation is performed on different disturbance-affected areas to obtain electromagnetic transient simulation results of photovoltaic power station. S7. Evaluate the model error, computation time, and resource consumption based on the simulation results, and update the dynamic model management strategy based on the evaluation results.
2. The dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to claim 1, characterized in that, Step S1 includes the following steps: S11. Establish corresponding electromagnetic transient models for different equipment objects in the photovoltaic power station. The equipment objects include photovoltaic arrays, photovoltaic inverters, step-up transformers, collector lines, collection buses and grid connection systems. S12. Establish electromagnetic transient models with different model types and accuracy levels for each device object, assign model identifiers to each model, and establish a model parameter set; the model parameter set includes model parameters, state variables, input variables, output variables, and model initialization parameters; S13. Extract the model feature information of each electromagnetic transient model and establish a model attribute set; the model attribute set includes model type, model accuracy level, model order, applicable operating scenario, applicable boundary conditions, computational complexity, simulation accuracy, real-time computing performance and computing resource requirements; S14. Establish the state variable mapping relationship, model parameter mapping relationship and model switching mapping relationship between different electromagnetic transient models to form a model mapping relationship set; S15. Based on the model parameter set, model attribute set, and model mapping relationship set, establish a model description specification, and use a model index to organize and manage each electromagnetic transient model, forming an electromagnetic transient model resource library containing different accuracy levels.
3. The dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to claim 1, characterized in that, Step S2 includes the following steps: S21. Collect real-time operating data of the photovoltaic power station. The real-time operating data includes electrical operating data, equipment operating data, network operating data, and system operating data. Among them, electrical operating data includes bus voltage, line current, node power, and system frequency; equipment operating data includes photovoltaic inverter operating status, switch status, and protection action information; network operating data includes network topology information and equipment connection relationships; and system operating data includes scheduling instructions, operating modes, and control parameters. S22. Perform time synchronization, abnormal data detection, missing data correction and standardization on the real-time running data to establish a running dataset under the same time reference, and organize different types of running data according to the status description specification. S23. Extract state features reflecting the operating status of the photovoltaic power station based on the operating dataset, and establish a state feature set; the state features include electrical state features, equipment state features, network topology state features, operating disturbance features, and control state features; S24. Construct an operating state vector based on the state feature set, and encode each state feature in a unified manner according to the state coding rules to generate an operating state vector that represents the current operating condition. S25. Generate corresponding operating status labels based on the operating status vector and establish an operating status index; the operating status labels are used to characterize the current operating conditions, disturbance types and operating stages of the photovoltaic power station, and the operating status index is used to associate disturbance identification, affected area division, dynamic model management strategy execution and model configuration process.
4. The dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to claim 1, characterized in that, Step S3 includes the following steps: S31. Obtain the electrical topology, equipment connection relationship, and operating status information and disturbance characteristic information generated in step S2 of the photovoltaic power station, determine the photovoltaic power generation unit, collection line, collection bus or grid connection interface where the disturbance source is located, and take the electrical node corresponding to the disturbance source as the starting node of the disturbance propagation analysis. S32. Based on the electrical topology, determine the disturbance propagation path extending from the starting node to other electrical nodes, and determine the structural correlation between each electrical node and the disturbance source according to the topological distance between each electrical node and the disturbance source, the electrical coupling strength between nodes, and the disturbance propagation direction; S33. For each electrical node, determine the degree of disturbance impact corresponding to each electrical node based on at least one of the following state change parameters: node voltage deviation, current change rate, power fluctuation, frequency deviation, control state change, and the degree of structural correlation. S34. Continuous electrical nodes with a disturbance impact level not lower than the first impact threshold are divided into core disturbance zones, continuous electrical nodes with a disturbance impact level lower than the first impact threshold but not lower than the second impact threshold are divided into buffer transition zones, and electrical nodes with a disturbance impact level lower than the second impact threshold are divided into stable operation zones, wherein the first impact threshold is greater than the second impact threshold. S35. Based on the equipment connection integrity and inter-regional electrical coupling relationship of the photovoltaic power station, the preliminary regional division result is modified by boundary correction. Electrical nodes that have strong electrical coupling relationship with the core disturbance area and are located on the main disturbance propagation path are incorporated into the core disturbance area or buffer transition area. Equipment with continuous dynamic response characteristics within the same photovoltaic power generation unit, collection line or collection bus is kept in the same disturbance influence area to obtain the modified disturbance influence area division result. S36. Generate regional description information for each disturbance-affected area. The regional description information includes regional identifier, regional type, regional boundary, set of devices within the region, disturbance type, disturbance level, regional operation feature vector, regional operation status index, and model configuration priority. Output the regional description information to the dynamic model configuration process for candidate model matching and model accuracy level determination.
5. The dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to claim 1, characterized in that, Step S4 includes the following steps: S41. Read the region identifier, region type, disturbance level, region operation feature vector and region operation status index corresponding to each disturbance-affected region, and match the region operation feature vector with the applicable operation scenario, applicable boundary conditions and model accuracy level of each model in the electromagnetic transient model library containing dynamic models of different accuracy levels to obtain the candidate model set corresponding to each disturbance-affected region. S42. For each candidate model in the candidate model set, determine the simulation error prediction value, unit simulation step size calculation time, computational resource consumption, model switching cost, and regional disturbance adaptability; wherein, the simulation error prediction value is used to characterize the output deviation of the candidate model relative to the reference model under the current regional operating state, and is specifically calculated based on the historical response differences of the corresponding state variables between the candidate model and the reference model; the regional disturbance adaptability is used to characterize the dynamic response capability of the candidate model to the current disturbance type, disturbance level, and disturbance duration stage; The regional disturbance fit is calculated based on the degree of matching between the candidate model and the current disturbance-affected area in terms of disturbance type, disturbance level, and disturbance duration, specifically expressed as follows: in, This represents the regional perturbation fit of the i-th candidate model; This indicates the degree of matching between the candidate model and the current perturbation type; This indicates the degree of matching between the candidate model and the current perturbation level; This indicates the degree of matching between the candidate model and the current duration of the disturbance; This indicates the weight of the corresponding evaluation indicator; Among them, each matching degree is calculated by normalization based on the similarity between the candidate model's historical response data and the current perturbation feature, and the similarity is determined based on the distance or difference between the perturbation feature vectors; The model switching cost is determined based on the number of state variable mappings between the current model and the candidate model, the computational complexity of state initialization, and the computational resource consumption during the model switching process, specifically expressed as follows: in, This represents the model switching cost when switching from the current model to the i-th candidate model; This indicates the number of state variables that need to be mapped between the current model and the candidate models; This represents the computational complexity of state initialization during the candidate model switching process; This indicates the amount of computing resources used during the model switching process; This indicates the weight of the corresponding indicator; S421. Based on the model attribute information and historical simulation data corresponding to the candidate model, calculate the simulation error prediction value of the candidate model; wherein, a high-precision dynamic model that meets the preset simulation accuracy requirements is used as a reference model. Based on the operating state characteristics of the current disturbance-affected area, historical state samples matching the current operating state are selected from the historical operating data. The response difference between the candidate model and the reference model under the matching historical state samples is obtained, and the simulation error prediction value is calculated using normalized error, specifically expressed as follows: in, This represents the predicted simulation error value of the i-th candidate model; This represents the output state variable of the candidate model under the k-th historical state sample; This represents the output state variable corresponding to the reference model; This represents the number of historical sampling points; ε represents the correction amount to prevent the denominator from being zero. S43. Normalize the predicted simulation error value, unit simulation step size calculation time, computational resource consumption, model switching cost, and regional disturbance adaptability. Determine the weights of each evaluation index according to the regional type and disturbance level of the disturbance-affected region, and construct a comprehensive cost function for the candidate model. The weights of each evaluation index are dynamically adjusted according to the differences in simulation accuracy requirements and computational resource constraints of the disturbance-affected region. The weights of the predicted simulation error value and regional disturbance adaptability corresponding to the core disturbance region are greater than the corresponding weights corresponding to the stable operation region. The weights of the unit simulation step size calculation time and computational resource consumption corresponding to the stable operation region are greater than the corresponding weights corresponding to the core disturbance region. S44. Under the conditions that the regional simulation error is not greater than the preset error threshold, the unit simulation step size calculation time is not greater than the real-time simulation step size, the computing resource consumption does not exceed the available computing resources, and the model switching cost is not greater than the preset switching cost threshold, the candidate models are sorted according to the candidate model comprehensive cost function, the candidate model with the smallest comprehensive cost is selected as the target model for the corresponding disturbance influence area, and the model accuracy level of the target model is determined. S45. When the current model is inconsistent with the target model, calculate the comprehensive cost difference between the current model and the target model; when the comprehensive cost difference is greater than the preset model switching threshold and continues to meet the preset number of continuous simulation steps, generate a model switching instruction; when the comprehensive cost difference is not greater than the preset model switching threshold, maintain the current model. S46. Based on the target model, model accuracy level, and model switching instructions corresponding to each disturbance-affected area, generate a dynamic model configuration scheme for the entire field. The dynamic model configuration scheme includes at least the area identifier, current model identifier, target model identifier, model accuracy level, model switching timing, model configuration priority, and computing resource allocation results. Cross-regional consistency verification and full-field computing resource constraint verification are performed on the dynamic model configuration scheme to obtain the final dynamic model configuration result.
6. The dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to claim 1, characterized in that, Step S5 includes the following steps: S51. Based on the dynamic model configuration result, determine the target area where model switching needs to be performed, obtain the source model, target model and model accuracy level corresponding to the target area, read the source model state variable set, model parameter set and output variable set, and establish the corresponding model switching task, wherein the state variable set includes electrical state variables, control state variables and dynamic integral state variables. S52. Based on the pre-established model mapping relationship set, perform variable matching analysis on the source model and the target model, and establish corresponding state mapping rules according to the type of state variables; wherein, for state variables with the same physical meaning, a direct mapping method is used, and for state variables whose model order changes, a state reconstruction method is used. The state reconstruction method establishes state mapping relationships based on the source model state variables, input variables, and boundary operating states: in, This represents the initial set of state variables of the target model. Represents the set of state variables of the source model. Represents the state variable mapping matrix. Indicates the input compensation matrix. Indicates the input variables of the model boundary; For newly added state variables in the target model, they are initialized based on the output variables of the source model, model parameters, and boundary running states to form the initial state variable set of the target model; S53. Based on the initial state variable set of the target model, perform consistency correction on the model state, and perform state correction according to the electrical quantities, power, and dynamic state constraints of the model before and after the switch; wherein, power balance correction is achieved by constraining the deviation between the output power of the target model after the switch and the output power of the source model before the switch: When the constraints are not met, the initial state variables of the target model are adjusted as follows: The adjusted target model state satisfies the power balance constraint, where, This represents the corrected target model state variables. Represents the initial state variables of the target model. Indicates the state correction amount; Furthermore, electrical quantity continuity correction, energy consistency correction, and control state consistency correction are performed to ensure that the node voltage, branch current, output power, and internal dynamic state before and after model switching meet the continuous change constraint, and generate the target model state after consistency correction. S54. Establish a model switching state cache to save the source model's running state before performing model switching; initialize the target model based on the target model's state after consistency correction, and perform model switching according to a preset model switching strategy; after model switching is completed, continuously detect the model's running stability and state continuity within a preset number of continuous simulation steps, and officially enable the target model when the preset stability and continuity criteria are met; when abnormal changes in state variables, divergence in system values, or failure to meet continuity constraints are detected, restore the source model's running state in the model switching state cache, and keep the current model running. S55. After completing the model switch, the continuous and stability verification of the target model's running state is performed, the model switch error index and state consistency index are calculated, and the verification results are fed back to the model performance evaluation module. The updated target model state information is used as the initial state input for solving the dynamic electromagnetic transient simulation, and the model running record and model switch history are updated at the same time to provide a basis for the online update of the subsequent dynamic model configuration and model management strategy.
7. The dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to claim 1, characterized in that, Step S6 includes the following steps: S61. Obtain the target model running status and dynamic model configuration results after model switching output in step S5, and obtain the target model and model accuracy level corresponding to each disturbance-affected area. S62. Determine the calculation region based on the description information of the disturbance influence region, and assign corresponding electromagnetic transient models and calculation solution strategies to different calculation regions to form a partitioned electromagnetic transient calculation structure. S63. Establish corresponding electromagnetic transient solution models for each computational region. The electromagnetic transient solution models are constructed based on the target model and the region operation feature vectors, and the boundary interaction conditions are determined according to the electrical coupling relationship between regions. S64. Based on a fixed time step or adaptive time step strategy, perform collaborative electromagnetic transient numerical solutions for each computational region, and perform interactive iterative calculations of voltage, current and power at the region boundaries to meet cross-regional electrical quantity consistency constraints. S65. Globally reconstruct the solution results of each computational region to generate the overall voltage, current, power and system state distribution results of the photovoltaic power station, obtain the electromagnetic transient simulation results, and output them to the model performance evaluation process.
8. The dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to claim 1, characterized in that, Step S7 includes the following steps: S71. Obtain the dynamic electromagnetic transient simulation results output in step S6, and simultaneously obtain the dynamic model configuration results, model switching history, real-time calculation time and computing resource usage information corresponding to each disturbance-affected area. Establish a model running performance evaluation dataset according to the area identifier and simulation time. S72. For each disturbance-affected area, the electromagnetic transient simulation results are compared with preset benchmark simulation results, measured operating data, or high-precision model simulation results. One or more of the following are calculated: node voltage deviation, branch current deviation, active power deviation, reactive power deviation, and key dynamic characteristic deviation, to obtain the regional simulation accuracy index. The key dynamic characteristics include one or more of the following: peak value, steady-state value, response time, overshoot, and oscillation decay characteristics. S73. Determine the real-time performance index based on the ratio between the unit simulation step size calculation time and the preset real-time simulation step size, and determine the computing resource utilization index based on one or more of the following: processor utilization, storage resource usage, communication data volume, and regional computing load; when the unit simulation step size calculation time is not greater than the preset real-time simulation step size, determine that the corresponding simulation step meets the real-time computing constraints. S74. For the disturbance-affected area where model switching occurs, calculate the changes in node voltage, branch current, output power and state variables before and after model switching to obtain the model switching error index; determine the state consistency index, model switching success rate and numerical stability index based on whether abnormal jumps in state variables, numerical oscillations, non-convergence of solutions or model backtracking occur in the continuous simulation steps after model switching. S75. Normalize the simulation accuracy index, real-time index, computing resource utilization index, model switching error index, state consistency index, model switching success rate and numerical stability index of the region. Determine the evaluation weight of each evaluation index according to the region type and disturbance level of the disturbance-affected region, and obtain the comprehensive performance score of the model for each disturbance-affected region by weighted calculation. S76. Compare the overall model performance score of each disturbance-affected region with the corresponding preset region performance threshold, identify abnormal regions that do not meet the simulation accuracy constraints, real-time calculation constraints, model switching continuity constraints, or numerical stability constraints, and generate model performance feedback information based on the model configuration priority and disturbance level of each abnormal region. S77. Based on the overall model performance score, model performance feedback information, and regional computational load of each disturbance-affected region, a full-field model performance evaluation result is formed. The full-field model performance evaluation result includes regional simulation accuracy indicators, real-time performance indicators, computational resource utilization indicators, model switching error indicators, state consistency indicators, numerical stability indicators, model switching success rate, regional model overall performance score, and full-field model overall performance score. The full-field model performance evaluation result is then output to the online update step of the model management strategy.
9. The dynamic model management method for electromagnetic transient simulation of a photovoltaic power station according to claim 1, characterized in that, Step S8 includes the following steps: S81. Receive the overall model performance evaluation results output in step S7, obtain the model performance feedback information, the overall model performance score of each region, the overall model performance score of the whole field, the model switching error index, the state consistency index, the model switching success rate and the numerical stability index, and combine the region type, disturbance level, dynamic model configuration results, model switching history and computing resource utilization information corresponding to each disturbance-affected region to establish a model running history dataset. S82. According to the region identifier, disturbance type, disturbance level, operating conditions and target model used, classify and statistically analyze the historical dataset of the model operation to obtain the simulation accuracy, unit simulation step calculation time, computing resource consumption, model switching error, state consistency, model switching success rate and numerical stability of each target model under different disturbance scenarios, and calculate the long-term performance evaluation value corresponding to each target model based on the preset statistical period. S83. Compare the long-term performance evaluation value with the corresponding preset performance target. When the update trigger condition is met, determine that the current dynamic model management strategy needs to be updated; otherwise, keep the current dynamic model management strategy running. S84. When it is determined that the current dynamic model management strategy needs to be updated, the parameters of the dynamic model management strategy to be adjusted are determined according to the abnormal region that triggered the update and the corresponding performance index deviation. The dynamic model management strategy parameters include the region division threshold, the region boundary correction rule parameters, the candidate model comprehensive evaluation index weight, the model configuration constraint threshold, the model switching trigger threshold, the model switching completion criterion, the model recovery criterion, and the performance evaluation weight. S85. Based on the region type, disturbance level, and performance index deviation direction of the abnormal region, the parameters of the dynamic model management strategy to be adjusted are differentiated by region. Specifically, when the simulation accuracy, state consistency, or numerical stability of the core disturbance region does not meet the corresponding performance target, the weights of the parameters related to simulation accuracy, disturbance adaptability, and switching continuity are increased. When the unit simulation step calculation time or computing resource consumption in the stable operation region exceeds the corresponding performance target, the weights of the parameters related to real-time performance and computing resource utilization are increased. When frequent model switching occurs in the buffer transition region, the model switching trigger threshold is increased or the number of consecutive steps is met. S86. An updated dynamic model management strategy parameter set is generated using a progressive adjustment method, so that the change in each dynamic model management strategy parameter during two adjacent strategy updates does not exceed the corresponding preset adjustment range threshold. The updated dynamic model management strategy parameter set is then constrained and verified to ensure that the updated strategy meets the constraints of real-time simulation, model configuration feasibility, and model switching stability. S87. Based on the dynamic model management strategy parameter set that has passed constraint verification, update the disturbance influence region division rules, model selection rule library, model configuration strategy library, model switching strategy library, and model performance evaluation parameters to form a new dynamic model management strategy. The new dynamic model management strategy is applied to the disturbance influence region division, dynamic model configuration, model switching, real-time solution of dynamic electromagnetic transients, and model performance evaluation process in the next simulation cycle to achieve closed-loop update of the dynamic model management strategy. S88. Record the strategy parameters, update triggering reasons, applicable areas, overall model performance score and constraint verification results before and after each dynamic model management strategy update; when the updated dynamic model management strategy fails to improve the corresponding abnormal performance indicators within the preset verification period, or causes new real-time constraints, state continuity constraints or numerical stability constraints to be unmet, revert to the dynamic model management strategy before the update and mark this update as invalid.
10. A dynamic model management system for electromagnetic transient simulation of a photovoltaic power station, characterized in that, include: The module for building a resource library of electromagnetic transient models of different accuracy levels is used to establish a resource library of electromagnetic transient models containing dynamic models of different equipment types, operating conditions and accuracy levels. It also establishes model parameter sets, model attribute sets, state variable mapping relationships and model management information to realize dynamic model calling, configuration and continuous state maintenance model switching. The operation status perception module is used to collect real-time operation data, network topology information and equipment operation status information of photovoltaic power plants, perform time synchronization, data preprocessing and operation status analysis on the operation data, and generate operation status information and disturbance characteristic information. The disturbance impact area division module is used to perform disturbance propagation analysis, disturbance impact degree calculation and area boundary correction for photovoltaic power plants based on operating status information, disturbance characteristic information, electrical topology and disturbance propagation relationship. It divides photovoltaic power plants into core disturbance area, buffer transition area and stable operation area, and generates disturbance impact area description information including area type, disturbance level, area operation characteristics and model configuration priority. The dynamic model configuration module is used to select candidate models from the electromagnetic transient model resource library containing dynamic models of different accuracy levels based on the description information of the disturbance-affected area. It comprehensively evaluates the simulation accuracy, real-time computing performance, computing resource consumption, model switching cost and regional disturbance adaptability, determines the target model under the conditions of meeting the constraints of simulation accuracy, real-time computing, computing resource and model switching continuity, generates a dynamic model configuration scheme, and determines the model switching timing based on the model switching hysteresis mechanism. The continuous state maintenance model switching module is used to perform model switching according to the dynamic model configuration scheme. Through state variable mapping, state reconstruction, state initialization, consistency correction and continuity verification, it realizes continuous state maintenance switching between dynamic models of different accuracy levels. When the state continuity or numerical stability does not meet the preset conditions after the model switching, the model running state saved before the switching is restored. The dynamic electromagnetic transient real-time solution module is used to establish a partitioned dynamic electromagnetic transient solution model based on the dynamic model configuration scheme, perform collaborative real-time electromagnetic transient solution for each disturbance-affected region, and output the real-time simulation results of the full-field dynamic electromagnetic transient. The model performance evaluation module is used to comprehensively evaluate the simulation accuracy, real-time computing performance, computing resource utilization, model switching error, state consistency, model switching success rate and numerical stability based on the real-time simulation results, and to generate regional model comprehensive performance score, overall model comprehensive performance score and model performance feedback information. The dynamic model management strategy update module is used to establish a historical dataset of model operation based on model performance feedback information, regional model comprehensive performance scores, and overall model comprehensive performance scores. It progressively updates the rules for dividing the disturbance impact area, dynamic model configuration strategies, model switching strategies, and model performance evaluation parameters, and performs constraint verification on the updated dynamic model management strategy. When preset conditions are met, the updated dynamic model management strategy is applied to the next simulation cycle; when the verification results do not meet the preset requirements, the dynamic model management strategy before the update is restored, thus achieving a closed-loop update of the dynamic model management strategy. The operation status perception module, disturbance influence area division module, dynamic model configuration module, continuous state maintenance model switching module, dynamic electromagnetic transient real-time solution module, model performance evaluation module, and dynamic model management strategy update module interact with each other according to the data processing flow. The electromagnetic transient model resource library construction module is connected to the dynamic model configuration module and the continuous state maintenance model switching module respectively, and together realizes the dynamic model management method for electromagnetic transient simulation of photovoltaic power plants as described in claim 1.
