This patent application claims the benefit and priority of Chinese Patent Application No. 202110350904.7, filed on Mar. 31, 2021, the disclosure of which is incorporated by reference herein in its entirety as part of the present application.
The present disclosure relates to the technical field of electromagnetic transient simulation, and in particular to an optimization method, a unit, and an electronic device of shifted frequency (SF)-based electromagnetic transient simulation.
Currently, there is no analytical method to accurately evaluate the security and stability level of a large-scale double-high power system, and the power system mode researches and operation scheduling are highly dependent on the time domain simulation. The fault dynamic process of the double-high power system is affected by the switching process of power electronic devices and the fast control protection logic, which is small in time scale, so it is difficult to accurately describe the traditional electromechanical transient simulation. In order to accurately describe the transient process of the double-high power system, the electromagnetic transient simulation program EMTP is required.
When using EMTP to simulate an AC power system, there is an upper limit on the simulation step size due to the existence of an AC carrier frequency of 50 Hz or 60 Hz, which results in a low simulation efficiency. In order to improve the simulation efficiency, a simulation method based on shifted frequency analysis (SFA) is proposed in the prior art. Firstly, a complex signal of voltage and current signals in a power system is constructed on the basis of the Hilbert transform, then a complex envelope signal is obtained by shifted-frequency transformation of the complex signal, and a shifted frequency analysis equation of elements is constructed based on the complex envelope. The frequency of the complex envelope signal is far less than that of the original signal. Therefore, the simulation step size can be increased without loss of accuracy, thus achieving efficient and accurate electromagnetic transient simulation. Many scholars have applied the SF-based simulation method to transmission lines, induction motors, synchronous motors, fans, modular multilevel converters, etc., and established an SF simulation model of the above-mentioned elements.
It can be seen that all SF-based electromagnetic simulations have a shifted frequency of 50 Hz (or 60 Hz) in the simulation process. However, the fundamental frequency may not be the optimal shifted frequency. If a signal in the simulation contains multiple frequency components, such as in the case of harmonic voltages and oscillating voltages, there may still be great errors in the simulation when the frequency spectrum takes the fundamental frequency as the shifted frequency.
Therefore, the issue of avoiding great simulation errors due to the fact that the adopted fundamental frequency is not the optimal shifted frequency for the SF-based electromagnetic simulation in the prior art still requires urgent solutions by technicians in this field.
The present disclosure provides an optimization method, a unit and an electronic device of a shifted frequency (SF)-based electromagnetic transient simulation, which are used for solving the problem of great simulation errors due to the fact that the adopted fundamental frequency is not the optimal shifted frequency for the SF-based electromagnetic simulation in the prior art. By optimizing and updating the shifted frequency in every time step where the voltage and the current are solved in the electromagnetic transient simulation, the shifted frequency gradually reaches the optimal value along with the time step, namely the best match with the set time step may lead to the highest simulation accuracy. Therefore, the electromagnetic transient simulation that is carried out after the shifted frequency reaches the best may output accurate current and voltage results.
The present disclosure provides an optimization method, a unit and an electronic device of a shifted frequency (SF)-based electromagnetic transient simulation, including:
Determining a current amplitude and a voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step;
Determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency; and
Updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step.
The optimization method of the SF-based electromagnetic transient simulation according to the present disclosure also includes:
If the next time step reaches a default simulation time, ending the calculation of the node voltage and the branch current of the next time step.
In the optimization method of the SF-based electromagnetic transient simulation according to the present disclosure, the step of determining the optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency specifically includes:
By taking the minimum error between a measured analytic signal response (determined by the current amplitude and the voltage frequency) and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) as a constraint, determining the optimal shifted frequency of the current time step.
In the optimization method of the SF-based electromagnetic transient simulation according to the present disclosure, the determination of the measured analytic signal response specifically includes:
Determining an input of a linear time-invariant (LTI) system based on the current amplitude and the voltage frequency; and
Determining a measured analytic signal response in the SF-based electromagnetic transient modeling based on the input.
In the optimization method of the SF-based electromagnetic transient simulation according to the present disclosure, the measured analytic signal response ost(t) is calculated by the following formula:
Wherein Δt is the time-step size, fs is the optimal shifted frequency to be determined of a current time step, f is the voltage frequency, A is the current amplitude, and KI is the gain of the linear time-invariant (LTI) system.
In the optimization method of the SF-based electromagnetic transient simulation according to the present disclosure, an error between the measured analytic signal response and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) is expressed by the following formula:
Wherein εs(t) is an error between the measured analytic signal response ost(t) and the theoretical analytic signal response
Correspondingly, the step of taking the minimum error between a measured analytic signal response (determined by the current amplitude and the voltage frequency) and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) as a constraint specifically includes:
εs(t) is reduced into a square of 2-norm error εsqn:
Where Ts is a default simulation time, and k is a number of time steps at time t;
When fs and Δt satisfy a constraint |f−fs|<f&|f−fs|Δt<<1, fs in a min εs(t) optimization model is determined.
In the optimization method of the SF-based electromagnetic transient simulation according to the present disclosure, if there are m frequency component inputs in the linear time-invariant (LTI) system, the square of the 2-norm error is calculated by the following formula:
Wherein
and fi is the ith frequency, so that f1< . . . <fi< . . . <fm, and Ai is an amplitude of the ith frequency component.
The present disclosure also provides an optimization unit of the shifted frequency (SF)-based electromagnetic transient simulation, including:
An original unit, used for determining a current amplitude and a voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step;
An optimal SF unit, used for determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency; and
An updating unit, used for updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step.
The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the processor, when executing the program, implements steps of the optimization method of the shifted frequency (SF)-based electromagnetic transient simulation according to any one of the above descriptions.
The present disclosure also provides a transient computer-readable storage medium, wherein a computer program is stored on the storage medium and, when executed by a processor, implements steps of the optimization method of the shifted frequency (SF)-based electromagnetic transient simulation according to any one of the above descriptions.
The present disclosure provides an optimization method, a unit, and an electronic device of a shifted frequency (SF)-based electromagnetic transient simulation, which are used for determining a current amplitude and a voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step; determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency; and updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step. By optimizing and updating the shifted frequency in every time step where the voltage and the current are solved in the electromagnetic transient simulation, the shifted frequency gradually reaches the optimal value along with the time step, namely the best match with the set time step may lead to the highest simulation accuracy. Therefore, the electromagnetic transient simulation that is carried out after the shifted frequency reaches the best may output accurate current and voltage simulation results. Therefore, the method, the unit, and the electronic device provided in the present disclosure may gradually update and optimize the shifted frequency in the simulation process so to enable the shifted frequency to reach the best, thus ensuring the accuracy of output current and voltage simulation results.
In order to illustrate technical schemes of the present disclosure or in the prior art more clearly, the accompanying drawings required in the embodiments or prior art will be briefly introduced below. Apparently, the drawings in the following description are some embodiments of the present disclosure, and those of ordinary skills in the art may obtain other drawings according to these drawings without creative work.
So that the above-mentioned purposes, technical schemes and advantages of the present disclosure can be more apparently understood, the technical schemes of the present disclosure will be described clearly and completely with reference to the accompanying drawings thereof. Apparently, the embodiments described herein are part of, not all of, embodiments in the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those of ordinary skills in the art without creative work belong to the scope claimed by the present disclosure.
First of all, the SF-Based transient modeling and simulation technique in the prior art is introduced briefly as follows:
I SF-Based Electromagnetic Transient Modeling
A real signal x(t) in an AC power network can be expressed in the form of an SF domain:
xe(t)=xs(t)e−jω
Wherein ωs=2πfs, fs is the shifted frequency. xe(t) is an analytic envelope of x(t), xs(t) is an associated analytic signal of x(t), which may be expressed as:
xs(t)=x(t)+jxH(t) (2)
Wherein xH(t) is the Hilbert transform of x(t).
It is assumed that the dynamic equation of a power system element can be expressed as
the dynamic equation of which in the form of the SF domain can be expressed as:
By using the trapezoidal rule, formula (3) may be discretized into:
Wherein Δt is the time-step size, and xet(t) is the solution of formula (3) in the SF domain. xet(t) may be transformed into an analytic signal xst(t) by multiplying ejω
According to formula (5), an SF-based electromagnetic transient model can be established for each element of the power system. When all SF-based electromagnetic transient models of all elements in the system are established, the SF-based electromagnetic transient model of the system can be solved according to the process of the node analysis method.
II SF-Based Electromagnetic Transient Simulation Process
Step 1: an equivalent node admittance matrix G is calculated;
Step 2: according to the node voltage and branch current, the historical current source Ihist is calculated;
Step 3: according to the node voltage and branch current, etc., the injection current Is is calculated;
Step 4: the node voltage equation GU=Is+Ihist is solved to obtain the node voltage of the system.
Step 5: the branch current is calculated, and the process enters the next cycle of solution.
In the process, at the beginning of simulation, it is necessary to initialize the system, namely to input system parameters, set a simulation time T, a time step Δt and an initial shifted frequency, wherein the initial shifted frequency is usually determined in the range of 50-60 Hz. The process of the SF-based electromagnetic transient simulation in
However, great simulation errors are widely existing due to the fact that the adopted fundamental frequency is not the optimal shifted frequency for the SF-based electromagnetic simulation in the prior art. The optimization method of the SF-based electromagnetic transient simulation according to the present disclosure is described below by reference to
Step 210: Determining the current amplitude and the voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step.
Specifically, the optimization method of the SF-based electromagnetic transient simulation provided by the present disclosure is the improved version of the SF-based electromagnetic simulation in the prior art, and the SF-based electromagnetic transient simulation process corresponding to the improved optimization method adds adjustment and optimization to the shifted frequency at each simulation time step, thus enabling the adjustment of the shifted frequency in real-time.
Step 220: Determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency.
Specifically, after the current amplitude and voltage frequency are determined, the shifted frequency that has minimum errors between the measured values and the theoretical values of some physical parameters can be solved on the basis of the current amplitude and voltage frequency. In this step, the measured values and theoretical values of some physical parameters are determined by different modeling models. Since the simulation provided by the present disclosure is an SF-based electromagnetic transient simulation, the simulation process conforms to the SF-based electromagnetic transient modeling model, and the node voltage and branch current in the simulation circuit are required to approach the most ideal linear time-invariant (LTI) system model in theoretical values. Therefore, based on the current amplitude and voltage frequency of the current simulation result, the model value of a certain parameter calculated according to the SF-based electromagnetic transient modeling model is necessary to get close to the theoretical value of the certain parameter, so that the SF-based electromagnetic transient modeling may be ensured to approximate the ideal accuracy, and the shifted frequency obtained in such an approximately ideal accuracy is the optimal shifted frequency. It should be noted that the certain parameter mentioned above is usually the response of an input signal. As a physical parameter, only the response requires the shifted frequency in the SF-based electromagnetic transient modeling model for calculation.
Step 230: Updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step.
Specifically, the optimal shifted frequency calculated at the current time step can be used to update the shifted frequency in the SF-based electromagnetic transient simulation. During the SF-based electromagnetic transient simulation in the next cycle of time step, the branch current and node voltage of the next cycle of time step are calculated according to the updated shifted frequency in the current cycle. In this way, the real-time optimization in the simulation process is realized, and the shifted frequency is adjusted at each time step based on the difference between the simulation result and the theoretical value at the current time step, so that the shifted frequency gradually reaches the optimum through adjustment.
The present disclosure provides an optimization method of a shifted frequency (SF)-based electromagnetic transient simulation, which are used for determining a current amplitude and a voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step; determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency; and updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step. By optimizing and updating the shifted frequency in every time step where the voltage and the current are solved in the electromagnetic transient simulation, the shifted frequency gradually reaches the optimal value along with the time step, namely the best match with the set time step may lead to the highest simulation accuracy. Therefore, the electromagnetic transient simulation that is carried out after the shifted frequency reaches the best may output accurate current and voltage simulation results. Therefore, the method provided in the present disclosure may gradually update and optimize the shifted frequency in the simulation process so to enable the shifted frequency to reach the best, thus ensuring the accuracy of output current and voltage simulation results.
According to the above embodiments, the method also includes:
If the next time step reaches a default simulation time, ending the calculation of the node voltage and the branch current of the next time step.
Specifically, as shown in
According to the above embodiments, in this method, the step of determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency specifically includes:
By taking the minimum error between a measured analytic signal response (determined by the current amplitude and the voltage frequency) and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) as a constraint, determining the optimal shifted frequency of the current time step.
Specifically, the analytic signal is used as a physical parameter to measure whether the shifted frequency electromagnetic transient modeling model is close to the theoretical ideal model. Therefore, in the shifted frequency electromagnetic transient modeling model, the measured analytic signal response under the current amplitude and voltage frequency is determined by SF-based mathematical modeling rules, while in the theoretical ideal model, the theoretical analytical signal response under the current amplitude and voltage frequency is determined by the LTI system ideal model. Since the final expression of the measured analytical signal response includes the shifted frequency, the error between the measured analytical signal response and the theoretical analytical signal response includes the shifted frequency that needs to be optimized and adjusted. When the minimum error is set as the constraint, the determined associated shifted frequency is the optimal shifted frequency at the current cycle of simulation time step.
According to the above-mentioned embodiments, the determination of the measured analytic signal response in the method specifically includes:
Determining an input of a linear time-invariant (LTI) system based on the current amplitude and the voltage frequency; and
Determining a measured analytic signal response in the SF-based electromagnetic transient modeling based on the input.
In particular, the linear time invariant (LTI) system may be expressed as:
Wherein KI, u(t), and o(t) are respectively the gain, the input and the response; the analytical signal of formula (6) is of the following form:
Wherein us(t) and os(t) are associated analytic signals of u(t) and o(t). For a stationary input, it can be represented as the superposition of multiple frequency components. The response of an LTI system to the input is the superposition of the response of each frequency component. Thus, the response of a single frequency component is first analyzed here. Assume that the input of the system is:
u(t)=A cos(2πft) (8)
Where A and f are the amplitude and frequency of the input, respectively. The analytic signal form of the input is expressed by formula (9) below:
us=Aej2πft (9)
Since the optimization method of the SF-based electromagnetic transient simulation provided by the present disclosure is constructed on the basis of the SF-based electromagnetic transient modeling technology in the prior art, the applied SF-based electromagnetic transient modeling rules are also consistent with those in the prior art. As a result, the measured analytical signal response in the SF-based electromagnetic transient modeling is determined according to the input of the LTI system, which means substituting formulas (7) and (9) into the formula (5) of the SF-based electromagnetic transient modeling in the prior art mentioned above, so as to obtain the following formula:
In the formula, ost(t) is the measured analytic signal response determined by the SF-based electromagnetic transient modeling rule.
According to the above embodiments, in this method, the measured analytic signal response ost(t) is calculated by the following formula:
Wherein Δt is the time-step size, fs is the optimal shifted frequency to be determined of a current time step, f is the voltage frequency, A is the current amplitude, and KI is the gain of the linear time invariant (LTI) system.
Specifically, the calculation formula of analytical signal response in the case of SF-based electromagnetic transient modeling has been described above, and, given the input analytical signal form, the calculation formula of the measured analytical signal response ost(t) may be obtained simply by substituting the input analytical signal into the above-mentioned calculation formula.
According to the above embodiment, in this method, an error between the measured analytic signal response and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) is expressed by the following formula:
Wherein εs(t) is an error between the measured analytic signal response ost(t) and the theoretical analytic signal response os(t),
Correspondingly, the step of taking the minimum error between a measured analytic signal response (determined by the current amplitude and the voltage frequency) and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) as a constraint specifically comprises:
εs(t) is reduced into a square of 2-norm error εsqn:
Where Ts is a default simulation time, and k is a number of time steps at time t;
When fs and Δt satisfy a constraint |f−fs|<f&|f−fs|Δt<<1, fs is in a min εs(t) optimization model is determined.
Specifically, the theoretical accurate response to the input analytic signal (i.e., theoretical analytical signal response) provided by the LTI system to the formula (9) is expressed by the following formula (11):
Therefore, an error between the measured analytic signal response and the theoretical analytic signal response (determined by the current amplitude and the voltage frequency) is determined by a difference between formulas (10) and (11):
Wherein εs(t) is an error between the measured analytic signal response ost(t) and the theoretical analytic signal response os(t),
The real part ε(t) of εs(t) is extracted separately by the following formula (13) as the deviation between the accurate response of the LTI system to u(t) and the SF-based simulation result:
The square of the 2-norm error εsqn, of the SF-based electromagnetic transient simulation can be calculated as the following formula (14):
In formula (14):
Where Ts is the simulation time, and k is a number of time steps at time t;
It can be seen from the theory of SF-based electromagnetic transient modeling, fs and Δt should satisfy the conditions in formula (16) so as to ensure the simulation accuracy.
|f−fs|<f&|f−fs|Δt<<1 (16)
In the premise of the constraint of formula (16), Taylor-McLaughlin series can be used to expand the tangent function in formula (14):
tan(π(f−fs)Δt)≈π(f−fs)Δt+⅓(π(f−fs)Δt)3 (17)
By substituting formula (17) into formula (14), so that
By using the constraint in formula (16), it is easily found that πfΔt>>⅓(π(f−fs)Δt)3. Therefore, ⅓(π(f−fs)Δt)3 in the denominator may be omitted in formula (18). In this way, εsqn may be approximated to:
According to the above embodiment, in this method, if there are m frequency component inputs in the linear time-invariant (LTI) system, the square of the 2-norm error εsqn, is calculated by the following formula:
Wherein
fi is the ith frequency, so that f1< . . . <fi< . . . <fm, and Ai is an amplitude of the ith frequency component.
Specifically, for an input containing m frequency components, the square of the 2-norm error of the SF-based electromagnetic transient simulation in the LTI system is:
Wherein
fi is the ith frequency, so that f1< . . . <fi< . . . <fm, and Ai is an amplitude of the ith frequency component.
In order to solve the minimum value of εsqn when fs changes, a derivative (defined as ε′sqn(fs)) of εsqn with respect to fs can be derived as follows:
ε′sqn has a derivative with respect to fs (defined as ε′sqn(fs)) is:
Since ci>0, it can be found that ε′sqn(fs)>0. It indicates that ε′sqn(fs) is a monotonic function about fs. It is assumed that:
ε′sqn(fs)=0 (23)
Since f1< . . . <fm, it can be found that
Therefore, ε′sqn(f1)<0, ε′sqn(fm)>0. It indicates the unique solution of formula (23) (i.e., the optimal SF that minimizes the εsqn), which lies in the frequency range [f1, fm]. For an input containing two frequency components (f1 and f2), the optimal SF f*s can be obtained by solving formula (23) and written as:
For an input with multiple frequencies, the solution of formula (23), namely f*s, cannot be expressed explicitly. At this point, formula (23) can be solved by the Newton method. In a word, when fs=f*s, εsqn may reach the minimum value.
Further, the present disclosure also provides a preferred mode of time step. As can be seen from the above description, the optimal SF is obtained by solving formula (23), which is equivalent to solving
It can be found that in formula (25), ci is related to the step size. Therefore, the influence of step size on the optimal SF needs further research. Conventionally, Ts>>Δt, which indicates that n>>0. Therefore, it is easily found that
ci may be approximated to:
It can be seen from formula (26) that ci will change as Δt. However, the magnification or reduction factors of c1, . . . , cm are the same. Therefore, the solution of formula (25) does not change with the change in time-step size. It indicates that the step size does not affect the value of the optimal SF. In addition, given the error margin, an appropriate maximum time-step size can be selected according to formula (20).
According to the above embodiments, the present disclosure provides a method of a shifted frequency (SF)-based electromagnetic transient simulation on the basis of the optimal SF.
Step 1: the system is initialized;
Step 2: an equivalent node admittance matrix G is calculated;
Step 3: according to the node voltage and branch current, the historical current source Ihist is calculated;
Step 4: according to the node voltage and branch current, etc., the injection current Is is calculated;
Step 5, the node voltage equation GU=Is+Ihist is solved to obtain the node voltage of the system.
Step 6: the branch current is calculated;
Step 7: an algorithm based on the recursive discrete Fourier transform (RDFT) is adopted to detect the frequency and amplitude of electrical quantities in the system.
Step 8: According to the frequency and the amplitude with different components, the optimal SF is calculated by formula (23), and the process proceeds to the next step.
The optimization device of SF-based electromagnetic transient simulation provided by the present disclosure will be described below, and the optimization device of SF-based electromagnetic transient simulation described below may refer to the optimization method of the SF-based electromagnetic transient simulation described above, and vice versa.
The original unit 410 is used for determining a current amplitude and a voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step;
The optimal SF unit 420 is used for determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency; and
The updating unit 430 is used for updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step.
The present disclosure provides an optimization unit of a shifted frequency (SF)-based electromagnetic transient simulation, which is used for determining a current amplitude and a voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step; determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency; and updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step. By optimizing and updating the shifted frequency in every time step where the voltage and the current are solved in the electromagnetic transient simulation, the shifted frequency gradually reaches the optimal value along with the time step, namely the best match with the set time step may lead to the highest simulation accuracy. Therefore, the electromagnetic transient simulation that is carried out after the shifted frequency reaches the best may output accurate current and voltage simulation results. Therefore, the unit provided in the present disclosure may gradually update and optimize the shifted frequency in the simulation process so to enable the shifted frequency to reach the best, thus ensuring the accuracy of output current and voltage simulation results.
According to the above embodiments, this unit also includes a cut-off unit which is used for:
If the next time step reaches a default simulation time, ending the calculation of the node voltage and the branch current of the next time step.
According to the above embodiments, in this unit, the optimal SF unit is specifically used for:
By taking the minimum error between a measured analytic signal response (determined by the current amplitude and the voltage frequency) and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) as a constraint, determining the optimal shifted frequency of the current time step.
According to the above embodiments, in this unit, the determination of the measured analytic signal response in the method specifically includes:
Determining an input of a linear time invariant (LTI) system based on the current amplitude and the voltage frequency; and
Determining a measured analytic signal response in the SF-based electromagnetic transient modeling based on the input.
According to the above embodiments, in the unit, the measured analytic signal response ost(t) is calculated by the following formula:
Where Δt is the time-step size, fs is the optimal shifted frequency to be determined of a current time step, f is the voltage frequency, A is the current amplitude, and KI is the gain of the linear time invariant (LTI) system.
According to the above embodiment, in this unit, an error between the measured analytic signal response and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) is expressed by the following formula:
Wherein εs(t) is an error between the measured analytic signal response ost(t) and the theoretical analytic signal response os(t),
Correspondingly, the step of taking the minimum error between a measured analytic signal response (determined by the current amplitude and the voltage frequency) and a theoretical analytic signal response (determined by the current amplitude and the voltage frequency) as a constraint specifically comprises:
εs(t) is reduced into a square of 2-norm error εsqn:
Where Ts is a default simulation time, and k is a number of time steps at time t;
When fs and Δt satisfy a constraint |f−fs|<f&|f−fs|Δt<<1, fs in a min εs(t) optimization model is determined.
According to the above embodiment, in this unit, if there are m frequency component inputs in the linear time-invariant (LTI) system, the square of the 2-norm error εsqn is calculated by the following formula:
Wherein
fi is the ith frequency, and f1< . . . <fi< . . . <fm, and Ai is an amplitude of the ith frequency component.
In addition, the logic instructions in the above-mentioned memory 530 can be realized in the form of software functional units, and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical scheme (itself in essence, or a part that contributes to the technology in the prior art, or part of the technical scheme) of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present disclosure. The above-mentioned storage media include: a U disk, a mobile hard disk, an ROM (Read-Only Memory), an RAM (Random Access Memory), a magnetic disk or an optical disk, and other various media which can store program codes.
In another aspect, the present disclosure also provides a computer program product which includes a computer program stored on the non-transient computer-readable storage medium and containing program instructions that, when executed by a computer, enable the computer to execute the optimization method of the SF-based electromagnetic transient simulation provided by various methods mentioned above, the optimization method including: determining a current amplitude and a voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step; determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency; and updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step.
In still another aspect, the present disclosure provides a non-transient computer-readable storage medium, wherein a computer program is stored on the storage medium and, when executed by a processor, implements the optimization method of the SF-based electromagnetic transient simulation provided by various methods mentioned above, the optimization method including: determining a current amplitude and a voltage frequency based on a node voltage and a branch current calculated from a shifted frequency on a basis of a current time step; determining an optimal shifted frequency of the current time step based on the current amplitude and the voltage frequency; and updating the shifted frequency by adopting the optimal shifted frequency of the current time step for calculating a node voltage and a branch current of the next time step.
The server embodiments described above are only schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, namely they may be located in a same place or distributed to multiple network units. Some or all of the modules can be selected as practically required so as to achieve the purpose of this embodiment. Those of ordinary skills in the art may understand and implement the modules without creative work.
By virtue of the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of the combination of software and necessary general hardware platforms, and of course, it can also be realized by hardware. Based on such understanding, the technical scheme (itself in essence, or a part that contributes to the technology in the prior art, or part of the technical scheme) of the present disclosure can be embodied in the form of a software product, wherein the computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments.
Finally, it is noted that the above embodiments are only for the purpose of illustrating the technical scheme of the present disclosure without limiting it. Although a detailed specification is given for the present disclosure by reference to above-mentioned embodiments, those of ordinary skills in the art should understand that he/she can still perform modifications on the technical schemes described in the above embodiments, or equivalent replacement of some technical features from the technical schemes. However, such modifications or replacement do not make the corresponding technical schemes depart in nature from the spirit and scope of those in each embodiment of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202110350904.7 | Mar 2021 | CN | national |
Entry |
---|
Peng et al. (“Simulation of Distribution Network Using Shifted-Frequency Electromagnetic Transient Program,” 2020 10th International Conference on Power and Energy Systems (ICPES), 2020, pp. 114-118, doi: 10.1109/ICPES51309.2020.9349695) (Year: 2020). |
Tang et al. (“Multi-scale transient modeling and real-time simulation of AC/DC power grid with multi-terminal VSC-HVDC,” 2017 IEEE Conference on Energy Internet and Energy System Integration (EI2), 2017, pp. 1-5, doi: 10.1109/EI2.2017.8245500) (Year: 2017). |
Martí (“The Application of Shifted Frequency Analysis in Power System Transient Stability Studies.” T. University of British Columbia, 2018. Web. Oct. 17, 2022. <https://open.library.ubc.ca/collections/ubctheses/24/items/1.0364058>. Electronic Theses and Dissertations (ETDs) 2008+) (Year: 2018). |
Number | Date | Country | |
---|---|---|---|
20220334194 A1 | Oct 2022 | US |