CN115422761B - Calculation method and device for parallel simulation calculation time in electromagnetic transient simulation - Google Patents

Calculation method and device for parallel simulation calculation time in electromagnetic transient simulation Download PDF

Info

Publication number
CN115422761B
CN115422761B CN202211132891.7A CN202211132891A CN115422761B CN 115422761 B CN115422761 B CN 115422761B CN 202211132891 A CN202211132891 A CN 202211132891A CN 115422761 B CN115422761 B CN 115422761B
Authority
CN
China
Prior art keywords
time
simulation
calculation
electromagnetic transient
calculating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211132891.7A
Other languages
Chinese (zh)
Other versions
CN115422761A (en
Inventor
郭天宇
郭琦
黄立滨
卢远宏
张�杰
郭海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China South Power Grid International Co ltd
Original Assignee
China South Power Grid International Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China South Power Grid International Co ltd filed Critical China South Power Grid International Co ltd
Priority to CN202211132891.7A priority Critical patent/CN115422761B/en
Publication of CN115422761A publication Critical patent/CN115422761A/en
Application granted granted Critical
Publication of CN115422761B publication Critical patent/CN115422761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/04Power grid distribution networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/12Timing analysis or timing optimisation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The application relates to the technical field of power system simulation, and discloses a method and a device for calculating parallel simulation calculation time in electromagnetic transient simulation. According to the simulation subtasks obtained by decoupling and networking the simulation tasks by the upper computer, the transmission time of information before the interaction calculation of any two simulation subtasks is calculated, and the maximum value is selected as the information interaction time before the calculation; calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask, and selecting the maximum value from the calculation time as the simulation task solving time; and calculating the transmission time used by the information after the interaction calculation of any two simulation subtasks, selecting the maximum value from the transmission time as the information interaction time after the calculation, and finally comprehensively calculating to obtain the parallel simulation calculation time in the electromagnetic transient simulation. The method realizes the quantitative calculation of the calculation time used for the parallel simulation calculation of multiple calculation nodes, multiple CPUs and multiple cores in the electromagnetic transient real-time simulation of the power system.

Description

Calculation method and device for parallel simulation calculation time in electromagnetic transient simulation
Technical Field
The application relates to the technical field of power system simulation, in particular to a method and a device for calculating parallel simulation calculation time in electromagnetic transient simulation.
Background
Real-time simulation of a power system is an effective means for knowing the characteristics of the power system, supporting the research, planning, operation, production and equipment manufacturing of the power system, and guaranteeing the safe and reliable operation of the power system. The electromagnetic suspension real-time simulation of the power system has harsh requirements on the time consumption of each link, and with the rapid development of a novel power system, massive new energy units and power electronic devices are connected in a grid, the system scale is rapidly enlarged, and multiple computing nodes, multiple CPUs and multi-core parallel computing are needed to meet the electromagnetic transient real-time simulation requirement of the power system.
The prior art does not provide a calculation scheme of parallel simulation calculation time in electromagnetic transient real-time simulation of a power system, and cannot quantify calculation time used by multi-calculation node, multi-CPU and multi-core parallel simulation calculation in electromagnetic transient real-time simulation of the power system, so that influence on simulation performance in calculation is difficult to quantify.
Disclosure of Invention
The application provides a calculation method and a device for parallel simulation calculation time in electromagnetic transient simulation, which solve the technical problem of how to quantify the calculation time used by multi-calculation node, multi-CPU and multi-core parallel simulation calculation in electromagnetic transient real-time simulation of a power system.
The first aspect of the application provides a calculation method for parallel simulation calculation time in electromagnetic transient simulation, which comprises the following steps:
calculating transmission time used by any two simulation subtasks to interact with the information before calculation, and selecting the maximum value from the obtained transmission time as the information interaction time before calculation; the simulation sub-tasks are obtained by decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system by an upper computer;
calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask, and selecting the maximum value from the obtained calculation time as the simulation task solving time;
calculating transmission time used by any two simulation subtasks to interact the calculated information, and selecting the maximum value from the obtained transmission time as the calculated information interaction time;
and calculating to obtain parallel simulation calculation time in electromagnetic transient simulation according to the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation.
According to one implementation manner of the first aspect of the present application, the calculating time used by each core of each CPU of each computing node to solve the corresponding simulation subtask includes:
determining the time for each core of each CPU of each computing node to extract the computing information from the corresponding memory/cache, and recording the time as the corresponding information extraction time;
determining the time used by each core of each CPU of each computing node for computing the corresponding simulation subtask, and recording the time as the corresponding task computing time;
determining the time used by each core of each CPU of each computing node for storing computing information from a corresponding memory/cache, and recording the time as corresponding information storage time;
and calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask according to the information extraction time, the task calculation time and the information storage time.
According to one implementation manner of the first aspect of the present application, the calculating time used by each core of each CPU of each computing node to solve the corresponding simulation subtask according to the information extraction time, the task calculating time and the information storage time includes:
and taking the sum of the information extraction time, the task calculation time and the information storage time of one core as the calculation time for solving the corresponding simulation subtask by the corresponding core.
According to one implementation manner of the first aspect of the present application, the calculating to obtain the parallel simulation calculation time in electromagnetic transient simulation according to the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time includes:
and taking the sum of the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation as parallel simulation calculation time in the electromagnetic transient simulation.
According to one manner that the first aspect of the present application can be implemented, the method further includes:
determining the time spent by an upper computer for decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system, and recording the time as simulation task allocation time;
the calculating to obtain the parallel simulation calculation time in electromagnetic transient simulation according to the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation comprises the following steps:
and taking the sum of the simulation task allocation time, the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time as parallel simulation calculation time in the electromagnetic transient simulation.
According to one manner that the first aspect of the present application can be implemented, the method further includes:
determining a simulation step length lower limit value of the electromagnetic transient real-time simulation system;
calculating the sum of the information interaction time before calculation and the simulation task solving time, and judging whether the obtained calculation result is larger than the simulation step length lower limit value; if yes, outputting corresponding prompt information.
According to an implementation manner of the first aspect of the present application, the determining a simulation step lower limit value of the electromagnetic transient real-time simulation system includes:
calculating a simulation step length lower limit value of the electromagnetic transient real-time simulation system according to the parameters of the target simulation physical object; the parameters include the distance of the transmission lines between the different transformer stations.
The second aspect of the present application provides a computing device for parallel simulation computation time in electromagnetic transient simulation, including:
the first calculation module is used for calculating the transmission time of the information before the interaction calculation of any two simulation subtasks, and selecting the maximum value from the obtained transmission time as the information interaction time before the calculation; the simulation sub-tasks are obtained by decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system by an upper computer;
the second calculation module is used for calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask, and selecting the maximum value from the obtained calculation time as the simulation task solving time;
the third calculation module is used for calculating the transmission time of the information after the interaction calculation of any two simulation subtasks, and selecting the maximum value from the obtained transmission time as the information after the interaction time after the calculation;
and the fourth calculation module is used for calculating to obtain the parallel simulation calculation time in electromagnetic transient simulation according to the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time.
According to one manner in which the second aspect of the present application can be implemented, the second computing module includes:
a first determining unit, configured to determine a time taken by each core of each CPU of each computing node to extract computing information from a corresponding memory/cache, and record the time as a corresponding information extraction time;
the second determining unit is used for determining the time used by each core of each CPU of each computing node for computing the corresponding simulation subtask, and recording the time as the corresponding task computing time;
a third determining unit, configured to determine a time taken by each core of each CPU of each computing node to store computing information from a corresponding memory/cache, and record the time as a corresponding information storage time;
the first calculation unit is used for calculating the calculation time for solving the corresponding simulation subtask by each core of each CPU of each calculation node according to the information extraction time, the task calculation time and the information storage time.
According to one possible implementation manner of the second aspect of the present application, the first computing unit is specifically configured to:
and taking the sum of the information extraction time, the task calculation time and the information storage time of one core as the calculation time for solving the corresponding simulation subtask by the corresponding core.
According to one manner in which the second aspect of the present application can be implemented, the fourth computing module includes:
the second calculation unit is used for taking the sum of the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation as the parallel simulation calculation time in the electromagnetic transient simulation.
According to one manner in which the second aspect of the application can be implemented, the apparatus further comprises:
the first determining module is used for determining the time spent by the upper computer for decoupling and networking the simulation tasks of the electromagnetic transient real-time simulation system, and recording the time spent by the upper computer for decoupling and networking the simulation tasks as simulation task allocation time;
the fourth computing module includes:
the third calculation unit is used for taking the sum of the simulation task distribution time, the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time as the parallel simulation calculation time in the electromagnetic transient simulation.
According to one manner in which the second aspect of the application can be implemented, the apparatus further comprises:
the second determining module is used for determining a simulation step length lower limit value of the electromagnetic transient real-time simulation system;
the comparison module is used for calculating the sum of the information interaction time before calculation and the simulation task solving time and judging whether the obtained calculation result is larger than the simulation step length lower limit value or not; if yes, outputting corresponding prompt information.
According to one implementation manner of the second aspect of the present application, the second determining module includes:
the fourth calculation unit is used for calculating the simulation step length lower limit value of the electromagnetic transient real-time simulation system according to the parameters of the target simulation physical object; the parameters include the distance of the transmission lines between the different transformer stations.
The third aspect of the present application provides a calculation device for parallel simulation calculation time in electromagnetic transient simulation, including:
a memory for storing instructions; the instructions are used for realizing the calculation method of parallel simulation calculation time in electromagnetic transient simulation in the mode that any one of the above can be realized;
and the processor is used for executing the instructions in the memory.
A fourth aspect of the present application is a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a method for calculating parallel simulation calculation time in electromagnetic transient simulation according to any one of the above modes.
From the above technical scheme, the application has the following advantages:
the method comprises the steps of calculating transmission time used by information before interaction calculation of any two simulation subtasks, and selecting a maximum value from the obtained transmission time as the information before interaction time before calculation; the simulation sub-tasks are obtained by decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system by an upper computer; calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask, and selecting the maximum value from the obtained calculation time as the simulation task solving time; calculating transmission time used by any two simulation subtasks to interact the calculated information, and selecting the maximum value from the obtained transmission time as the calculated information interaction time; calculating to obtain parallel simulation calculation time in electromagnetic transient simulation according to the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time; the method realizes the quantitative calculation of the calculation time used for the parallel simulation calculation of multiple calculation nodes, multiple CPUs and multiple cores in the electromagnetic transient real-time simulation of the power system.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the application, and that other drawings can be obtained from these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a flowchart of a method for calculating parallel simulation calculation time in electromagnetic transient simulation according to an alternative embodiment of the present application;
fig. 2 is a block diagram of structural connection of a computing device for parallel simulation computation time in electromagnetic transient simulation according to an alternative embodiment of the present application.
Reference numerals:
1-a first computing module; 2-a second computing module; 3-a third calculation module; 4-a fourth calculation module.
Detailed Description
The embodiment of the application provides a calculation method and a device for parallel simulation calculation time in electromagnetic transient simulation, which are used for solving the technical problem of how to quantify the calculation time used by multi-calculation node, multi-CPU and multi-core parallel simulation calculation in electromagnetic transient real-time simulation of a power system.
In order to make the objects, features and advantages of the present application more comprehensible, the technical solutions in the embodiments of the present application are described in detail below with reference to the accompanying drawings, and it is apparent that the embodiments described below are only some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The application provides a calculation method for parallel simulation calculation time in electromagnetic transient simulation.
Referring to fig. 1, fig. 1 shows a flowchart of a method for calculating parallel simulation calculation time in electromagnetic transient simulation according to an embodiment of the present application.
The embodiment of the application provides a calculation method for parallel simulation calculation time in electromagnetic transient simulation, which comprises the steps S1-S4.
Step S1, calculating transmission time used by any two simulation subtasks for information before calculation, and selecting the maximum value from the obtained transmission time as the information before calculation; the simulation sub-tasks are obtained by decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system by the upper computer.
After decoupling and networking are carried out on the simulation task by the upper computer, a plurality of subtasks are distributed to different cores of different CPUs of different computing nodes for parallel computation, information interaction possibly exists among the subtasks, the interacted information needs to be transmitted on different cores of different CPUs of different computing nodes, in the embodiment, the interaction information transmission time among the associated nodes in the process is computed, and the maximum value is selected as the information interaction time before computation.
In the specific implementation, the calculation of the transmission time can be realized by analyzing the information quantity, the unit information interaction rate and the information interaction distance of different subtasks, and the transmission time used by the information before the interaction calculation of any two simulation subtasks can also be determined by a simulation mode.
And S2, calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask, and selecting the maximum value from the obtained calculation time as the simulation task solving time.
After the information before the interactive calculation of any two simulation subtasks is finished, namely after the interactive information transmission of each associated node is finished, each core of each CPU of each computing node can carry out parallel solution on the simulation tasks after the decoupling and network separation of the upper computer. Each core of each CPU of each computing node firstly extracts required computing data from the storage module, and after computation, information needing interaction in a computing result is stored in the storage module. For this process, as a way that can be implemented, when step S2 is executed, first, determining a time taken by each core of each CPU of each computing node to extract computing information from a corresponding memory/cache, and recording the time as a corresponding information extraction time; further, determining the time for each core of each CPU of each computing node to calculate for the corresponding simulation subtask, and recording the time as the corresponding task calculation time; then, determining the time used by each core of each CPU of each computing node for storing computing information from a corresponding memory/cache, and recording the time as corresponding information storage time; and finally, calculating the calculation time for solving the corresponding simulation subtask by each core of each CPU of each calculation node according to the information extraction time, the task calculation time and the information storage time.
In particular, the calculation of the information extraction time/task calculation time/information storage time may be performed according to the unit efficiency of the corresponding calculation information and the amount of the corresponding calculation information extracted/stored/calculated for each core; of course, the determination of the information extraction time/task calculation time/information storage time for each core may also be implemented by means of simulation.
In one implementation manner, the calculating time used by each core of each CPU of each computing node to solve the corresponding simulation subtask according to the information extraction time, the task calculation time and the information storage time includes:
and taking the sum of the information extraction time, the task calculation time and the information storage time of one core as the calculation time for solving the corresponding simulation subtask by the corresponding core.
Specifically, according to this embodiment, let the time taken by the i-th core to calculate the corresponding simulation subtask after decoupling and network splitting be tcal_i, the time taken by the i-th core to extract and store information from the corresponding cache be tcache_g and tchche_p, and the time taken by the i-th core to extract and store information from the corresponding memory/cache be tmemory_g and tmemory_p, respectively, then the calculation time taken by the i-th core to perform parallel solution for the corresponding simulation subtask after decoupling and network splitting of the upper computer is:
tpar_i=tcal_i+tcache_g+tchche_p
or is:
tpar_i=tcal_i+tmemory_g+tmemory_p
in the formula, tpar_i is the calculation time for solving the corresponding simulation subtask for the ith core;
the calculation time for solving the simulation task by the whole system is as follows:
tpar=max(tpar_i),i=1,2,...,n
in the formula, tpar is simulation task solving time, and n is the number of cores of each CPU of all computing nodes in the system.
In another implementation manner, a weighted sum of the information extraction time, the task calculation time and the information storage time of one core may be used as the calculation time for solving the corresponding simulation subtasks by the corresponding core. The weight coefficients of the information extraction time, the task calculation time and the information storage time can be correspondingly set according to the calculation precision of each time, so that the calculation precision of the simulation task solving time is improved.
And S3, calculating transmission time used by any two simulation subtasks for interaction of the calculated information, and selecting the maximum value from the obtained transmission time as the calculated information interaction time.
Corresponding to step S1, after the simulation task is solved, information interaction related to the calculation result may exist among the plurality of subtasks, the interacted information needs to be transmitted on different cores of different CPUs of different calculation nodes, and at the moment, the calculation result transmission time of the process is the information interaction time after calculation.
In the specific implementation, the calculation of the transmission time can be realized by analyzing the calculated result information quantity, the unit information interaction rate and the information interaction distance of different subtasks, and the transmission time used by the information after the interaction calculation of any two simulation subtasks can also be determined by a simulation mode.
Further, the calculated information interaction time can be output as important data to count into the next simulation step period.
And S4, calculating to obtain parallel simulation calculation time in electromagnetic transient simulation according to the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation.
In one implementation manner, the sum of the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time is used as the parallel simulation calculation time in the electromagnetic transient simulation.
In another implementation manner, the weighted sum of the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time is used as the parallel simulation calculation time in the electromagnetic transient simulation. The weighting coefficients corresponding to the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time can be set according to the corresponding calculation precision and/or importance degree, so that the calculation precision of the parallel simulation calculation time is improved.
When the simulation tasks of the electromagnetic transient real-time simulation system are calculated in parallel, the upper computer decouples the simulation tasks, the link can be performed in non-real time, and the corresponding decoupling time can be not counted into the electromagnetic transient real-time simulation time. Therefore, in the above embodiment of the present application, when the parallel simulation calculation time is calculated, the time spent by the host computer for decoupling and network separation of the simulation tasks of the electromagnetic transient real-time simulation system is not counted.
In order to improve the computational comprehensiveness of the parallel simulation computation time, in one implementation manner, the method further comprises:
determining the time spent by an upper computer for decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system, and recording the time as simulation task allocation time;
the calculating to obtain the parallel simulation calculation time in electromagnetic transient simulation according to the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation comprises the following steps:
and taking the sum of the simulation task allocation time, the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time as parallel simulation calculation time in the electromagnetic transient simulation.
In the embodiment of the application, when solving the simulation task solving time, the time spent by the upper computer for decoupling and networking the simulation task of the electromagnetic transient real-time simulation system is counted.
In one implementation, the method further comprises:
determining a simulation step length lower limit value of the electromagnetic transient real-time simulation system;
calculating the sum of the information interaction time before calculation and the simulation task solving time, and judging whether the obtained calculation result is larger than the simulation step length lower limit value; if yes, outputting corresponding prompt information.
In this embodiment, the output prompt information has two purposes. The first aspect is for fault localization. When the electromagnetic transient real-time simulation system is in fault and the step length overflows, the system operation fault caused by the communication and parallel computing links can be determined through the prompt information; the second aspect is used for designing an electromagnetic transient real-time simulation system, namely, in the process of designing the system, if the obtained calculation result is larger than the lower limit value of the simulation step length, the communication time and the parallel calculation are required to be further optimized. The optimization procedure is as follows: when the communication task and the calculation task are distributed to each node/each CPU/each core, the optimization solution is carried out according to a certain optimization target, so that the aim of minimizing the total time is fulfilled.
In one implementation manner, the determining the simulation step lower limit value of the electromagnetic transient real-time simulation system includes:
calculating a simulation step length lower limit value of the electromagnetic transient real-time simulation system according to the parameters of the target simulation physical object; the parameters include the distance of the transmission lines between the different transformer stations.
In specific implementation, the minimum value can be determined from the distance of the transmission line between different transformer stations and used as the transmission length, and the simulation step length lower limit value of the electromagnetic transient real-time simulation system is calculated according to the following formula:
t step_min =l min ×c
wherein t is step_min The simulation step length lower limit value l of the electromagnetic transient real-time simulation system min The minimum length of the transmission line is c, which is the speed of light.
It should be noted that, the simulation step lower limit value of the electromagnetic transient real-time simulation system may also be calculated according to other existing simulation step acquisition methods.
The application also provides a device for calculating the parallel simulation calculation time in the electromagnetic transient simulation.
Referring to fig. 2, fig. 2 is a block diagram showing the structural connection of a computing device for parallel simulation computing time in electromagnetic transient simulation according to an embodiment of the present application.
The embodiment of the application provides a calculation device for parallel simulation calculation time in electromagnetic transient simulation, which comprises:
the first calculation module 1 is used for calculating transmission time used for information before the interaction calculation of any two simulation subtasks, and selecting the maximum value from the obtained transmission time as the information interaction time before the calculation; the simulation sub-tasks are obtained by decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system by an upper computer;
the second calculation module 2 is used for calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask, and selecting the maximum value from the obtained calculation time as the simulation task solving time;
the third calculation module 3 is used for calculating the transmission time used by the information after the interaction calculation of any two simulation subtasks, and selecting the maximum value from the obtained transmission time as the information after the interaction time after the calculation;
and the fourth calculation module 4 is used for calculating to obtain the parallel simulation calculation time in electromagnetic transient simulation according to the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time.
In one possible implementation, the second computing module 2 includes:
a first determining unit, configured to determine a time taken by each core of each CPU of each computing node to extract computing information from a corresponding memory/cache, and record the time as a corresponding information extraction time;
the second determining unit is used for determining the time used by each core of each CPU of each computing node for computing the corresponding simulation subtask, and recording the time as the corresponding task computing time;
a third determining unit, configured to determine a time taken by each core of each CPU of each computing node to store computing information from a corresponding memory/cache, and record the time as a corresponding information storage time;
the first calculation unit is used for calculating the calculation time for solving the corresponding simulation subtask by each core of each CPU of each calculation node according to the information extraction time, the task calculation time and the information storage time.
In one implementation, the first computing unit is specifically configured to:
and taking the sum of the information extraction time, the task calculation time and the information storage time of one core as the calculation time for solving the corresponding simulation subtask by the corresponding core.
In one possible implementation, the fourth computing module 4 includes:
the second calculation unit is used for taking the sum of the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation as the parallel simulation calculation time in the electromagnetic transient simulation.
In one implementation, the apparatus further comprises:
the first determining module is used for determining the time spent by the upper computer for decoupling and networking the simulation tasks of the electromagnetic transient real-time simulation system, and recording the time spent by the upper computer for decoupling and networking the simulation tasks as simulation task allocation time;
the fourth calculation module 4 includes:
the third calculation unit is used for taking the sum of the simulation task distribution time, the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time as the parallel simulation calculation time in the electromagnetic transient simulation.
In one implementation, the apparatus further comprises:
the second determining module is used for determining a simulation step length lower limit value of the electromagnetic transient real-time simulation system;
the comparison module is used for calculating the sum of the information interaction time before calculation and the simulation task solving time and judging whether the obtained calculation result is larger than the simulation step length lower limit value or not; if yes, outputting corresponding prompt information.
In one implementation, the second determining module includes:
the fourth calculation unit is used for calculating the simulation step length lower limit value of the electromagnetic transient real-time simulation system according to the parameters of the target simulation physical object; the parameters include the distance of the transmission lines between the different transformer stations.
The application also provides a calculation device for parallel simulation calculation time in electromagnetic transient simulation, which comprises:
a memory for storing instructions; the instructions are used for realizing the calculation method of parallel simulation calculation time in electromagnetic transient simulation according to any one of the embodiments;
and the processor is used for executing the instructions in the memory.
The application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the calculation method of parallel simulation calculation time in electromagnetic transient simulation according to any one of the embodiments.
In the embodiment of the application, a calculation scheme of parallel simulation calculation time in electromagnetic transient real-time simulation of the power system is provided, the calculation time used by multi-calculation node, multi-CPU and multi-core parallel simulation calculation in the electromagnetic transient real-time simulation of the power system can be quantized, the obtained calculation data can be used for measuring whether simulation step length setting of simulation in the electromagnetic transient of the power system is reasonable or not and for fault location and anti-measure scheme design when step length overflow occurs in the simulation.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes of the above-described apparatus, modules and units may refer to corresponding processes in the foregoing method embodiments, and specific beneficial effects of the above-described apparatus, modules and units may refer to corresponding beneficial effects in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. The calculation method of parallel simulation calculation time in electromagnetic transient simulation is characterized by comprising the following steps:
calculating transmission time used by information interacted before interaction of any two simulation subtasks is interacted, and selecting the maximum value from the obtained transmission time as the information interaction time before calculation; the simulation sub-tasks are obtained by decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system by an upper computer;
calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask, and selecting the maximum value from the obtained calculation time as the simulation task solving time;
calculating transmission time used by information of calculation result interaction after any two simulation subtasks are interacted and calculated, and selecting the maximum value from the obtained transmission time as the calculated information interaction time;
and calculating to obtain parallel simulation calculation time in electromagnetic transient simulation according to the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation.
2. The method for calculating parallel simulation computation time in electromagnetic transient simulation according to claim 1, wherein the computation time for each core of each CPU for calculating each computation node to solve the corresponding simulation subtask comprises:
determining the time for each core of each CPU of each computing node to extract the computing information from the corresponding memory/cache, and recording the time as the corresponding information extraction time;
determining the time used by each core of each CPU of each computing node for computing the corresponding simulation subtask, and recording the time as the corresponding task computing time;
determining the time used by each core of each CPU of each computing node for storing computing information from a corresponding memory/cache, and recording the time as corresponding information storage time;
and calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask according to the information extraction time, the task calculation time and the information storage time.
3. The method for calculating parallel simulation computation time in electromagnetic transient simulation according to claim 2, wherein the computation time for each core of each CPU of each computation node to solve the corresponding simulation subtask is calculated according to the information extraction time, the task computation time and the information storage time, comprises:
and taking the sum of the information extraction time, the task calculation time and the information storage time of one core as the calculation time for solving the corresponding simulation subtask by the corresponding core.
4. The method for calculating parallel simulation calculation time in electromagnetic transient simulation according to claim 1, wherein the calculating to obtain the parallel simulation calculation time in electromagnetic transient simulation according to the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time comprises:
and taking the sum of the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation as parallel simulation calculation time in the electromagnetic transient simulation.
5. The method for calculating parallel simulation calculation time in electromagnetic transient simulation according to claim 1, further comprising:
determining the time spent by an upper computer for decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system, and recording the time as simulation task allocation time;
the calculating to obtain the parallel simulation calculation time in electromagnetic transient simulation according to the information interaction time before calculation, the simulation task solving time and the information interaction time after calculation comprises the following steps:
and taking the sum of the simulation task allocation time, the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time as parallel simulation calculation time in the electromagnetic transient simulation.
6. The method for calculating parallel simulation calculation time in electromagnetic transient simulation according to claim 1, further comprising:
determining a simulation step length lower limit value of the electromagnetic transient real-time simulation system;
calculating the sum of the information interaction time before calculation and the simulation task solving time, and judging whether the obtained calculation result is larger than the simulation step length lower limit value; if yes, outputting corresponding prompt information.
7. The method for calculating parallel simulation calculation time in electromagnetic transient simulation according to claim 6, wherein determining the simulation step lower limit value of the electromagnetic transient real-time simulation system comprises:
calculating a simulation step length lower limit value of the electromagnetic transient real-time simulation system according to the parameters of the target simulation physical object; the parameters include the distance of the transmission lines between the different transformer stations.
8. A computing system for parallel simulation computation time in electromagnetic transient simulation, comprising:
the first calculation module is used for calculating the transmission time of the information interacted before the interaction calculation of any two simulation subtasks, and selecting the maximum value from the obtained transmission time as the information interaction time before the calculation; the simulation sub-tasks are obtained by decoupling and networking simulation tasks of the electromagnetic transient real-time simulation system by an upper computer;
the second calculation module is used for calculating the calculation time used by each core of each CPU of each calculation node for solving the corresponding simulation subtask, and selecting the maximum value from the obtained calculation time as the simulation task solving time;
the third calculation module is used for calculating the transmission time of the information interacted by the calculation result after the interaction calculation of any two simulation subtasks, and selecting the maximum value from the obtained transmission time as the calculated information interaction time;
and the fourth calculation module is used for calculating to obtain the parallel simulation calculation time in electromagnetic transient simulation according to the pre-calculation information interaction time, the simulation task solving time and the post-calculation information interaction time.
9. A computing device for parallel simulation computation time in electromagnetic transient simulation, comprising:
a memory for storing instructions; wherein, the instructions are used for realizing the calculation method of parallel simulation calculation time in electromagnetic transient simulation according to any one of claims 1-7;
and the processor is used for executing the instructions in the memory.
10. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the computer program implements the method for calculating parallel simulation calculation time in electromagnetic transient simulation according to any one of claims 1-7.
CN202211132891.7A 2022-09-16 2022-09-16 Calculation method and device for parallel simulation calculation time in electromagnetic transient simulation Active CN115422761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211132891.7A CN115422761B (en) 2022-09-16 2022-09-16 Calculation method and device for parallel simulation calculation time in electromagnetic transient simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211132891.7A CN115422761B (en) 2022-09-16 2022-09-16 Calculation method and device for parallel simulation calculation time in electromagnetic transient simulation

Publications (2)

Publication Number Publication Date
CN115422761A CN115422761A (en) 2022-12-02
CN115422761B true CN115422761B (en) 2023-10-20

Family

ID=84204202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211132891.7A Active CN115422761B (en) 2022-09-16 2022-09-16 Calculation method and device for parallel simulation calculation time in electromagnetic transient simulation

Country Status (1)

Country Link
CN (1) CN115422761B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707770A (en) * 2023-12-14 2024-03-15 南方电网科学研究院有限责任公司 Electromagnetic transient simulation parallel computing acceleration method and related device for power system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995734A (en) * 2014-06-18 2014-08-20 中国南方电网有限责任公司电网技术研究中心 Electric power system hybrid real-time simulation system and simulation method based on RTDS
CN105932666A (en) * 2016-05-18 2016-09-07 中国电力科学研究院 Complex distribution network multi-time-scale digital-analog hybrid simulation system and simulation method therefor
CN106886616A (en) * 2015-12-15 2017-06-23 中国电力科学研究院 A kind of automatic subnetting method of extensive electro-magnetic transient grid simulation
CN108256263A (en) * 2018-02-07 2018-07-06 中国电力科学研究院有限公司 A kind of electric system hybrid simulation concurrent computational system and its method for scheduling task

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103995734A (en) * 2014-06-18 2014-08-20 中国南方电网有限责任公司电网技术研究中心 Electric power system hybrid real-time simulation system and simulation method based on RTDS
CN106886616A (en) * 2015-12-15 2017-06-23 中国电力科学研究院 A kind of automatic subnetting method of extensive electro-magnetic transient grid simulation
CN105932666A (en) * 2016-05-18 2016-09-07 中国电力科学研究院 Complex distribution network multi-time-scale digital-analog hybrid simulation system and simulation method therefor
CN108256263A (en) * 2018-02-07 2018-07-06 中国电力科学研究院有限公司 A kind of electric system hybrid simulation concurrent computational system and its method for scheduling task

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Parallel simulation of the electromechanical transient phenomena of power system via modern software development technique;Yu Xie等;《International conference on smart transportation,energy and power》;1-12 *
基于FPGA的实时机电暂态仿真解算器;王阳;《中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑)》(第6期);C042-889 *

Also Published As

Publication number Publication date
CN115422761A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
US9239734B2 (en) Scheduling method and system, computing grid, and corresponding computer-program product
Dias et al. Parallel computing applied to the stochastic dynamic programming for long term operation planning of hydrothermal power systems
WO2021164250A1 (en) Turbulence field update method and apparatus, and related device
CN112633511B (en) Method for calculating a quantum partitioning function, related apparatus and program product
CN114862656B (en) Multi-GPU-based acquisition method for training cost of distributed deep learning model
CN111159897B (en) Target optimization method and device based on system modeling application
CN115422761B (en) Calculation method and device for parallel simulation calculation time in electromagnetic transient simulation
CN115150471B (en) Data processing method, apparatus, device, storage medium, and program product
KR102555607B1 (en) Method and apparatus for annotating data, device, storage medium and computer program
CN107450855A (en) A kind of model for distributed storage variable data distribution method and system
US20220391780A1 (en) Method of federated learning, electronic device, and storage medium
CN115292046A (en) Calculation force distribution method and device, storage medium and electronic equipment
CN111177892A (en) Distributed simulation system
CN113568759B (en) Cloud computing-based big data processing method and system
CN117519946A (en) Memory resource scheduling method, device, equipment and medium in deep learning network
CN106649067B (en) A kind of performance and energy consumption prediction technique and device
CN116523249A (en) Production line determining method, device, equipment and storage medium
CN113298120B (en) Fusion model-based user risk prediction method, system and computer equipment
CN115827225A (en) Distribution method of heterogeneous operation, model training method, device, chip, equipment and medium
CN109522106B (en) Risk value simulation dynamic task scheduling method based on cooperative computing
Swain et al. An Energy Efficient Virtual Machine Placement Scheme for Intelligent Resource Management at Cloud Data Center
CN107408060A (en) Multiple Multi-dimension calculation frame structures for big data application
Jinjuan Research on enterprise credit risk assessment method based on improved genetic algorithm
CN114626636A (en) Power grid load prediction method and device, modeling method, computer equipment and medium
CN118071506A (en) Asset configuration method and device, readable storage medium and computing equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant