A high-order transient PMSG calculation method and system based on hardware optimization
By optimizing the calculation process of the PMSG model through hardware, the matrix inversion is decoupled into linear equations, which solves the problems of high-order transient PMSG calculation complexity and slow calculation speed, and achieves high-precision and low resource usage calculation effects.
Patent Information
- Application Number
- CN202210629631.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-06-02
AI Technical Summary
Existing PMSG voltage and current calculation methods mainly use low-order calculations and ignore stator transients, which cannot be used to study electromagnetic transient problems, instantaneous torque, shaft system torsional vibration, etc. High-order transient calculations are complex and difficult to implement on hardware platforms. This results in slow calculation speed and high hardware computing pressure.
A high-order transient PMSG calculation method based on hardware optimization is proposed. By building a three-phase permanent magnet direct-drive fan model, using park transformation to modify the model, discretization and hardware process optimization are performed, and the matrix inversion calculation is decoupled into a linear equation. Calculation, simplifying the calculation process.
It performs well in convergence performance and calculation accuracy, and is suitable for high-order transient PMSG calculations. Although the simplified algorithm has more oscillations, it has a fast convergence speed, takes up very few board resources, and has low power consumption, which reduces the requirements for hardware performance.
Smart Images

Figure CN115017702B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of permanent magnet direct-drive fan modeling, and in particular to a high-order transient PMSG calculation method and system based on hardware optimization. Background Art
[0002] As an effective means to solve the energy crisis and environmental pollution, wind power generation has developed rapidly around the world. Since the structure and operating characteristics of wind turbines are different from those of traditional synchronous generators, the grid connection of a large number of wind turbines will have a new impact on the transient stability of the power system. In order to study the transient stability of wind power access to the power system, it is first necessary to model the wind turbine. Among the commonly used wind turbines, the permanent magnetic direct-drive wind turbine (PMSG) has the advantages of high operating reliability, low maintenance cost, and strong reactive power regulation capability. The proportion of PMSG in grid-connected wind turbines is gradually increasing. Therefore, the PMSG modeling problem suitable for transient stability analysis has received more and more attention.
[0003] Current PMSG voltage and current calculation methods and existing problems:
[0004] At present, the calculation methods of PMSG voltage and current are mainly divided into low-order calculation methods and high-order calculation methods. The low-order calculation method is the third order, which only considers the rotor d-axis and q-axis, as well as the rotor motion equation; the high-order calculation method is the fifth order and above, which considers the rotor dq-axis, as well as the dq-axis damping winding and the rotor motion equation. At present, almost all the calculation methods of PMSG use low-order calculation, ignoring the stator transient, and assuming that the stator winding flux does not change suddenly. The low-order model can be used to study the rotor swing stability problem, but it cannot be used to study the electromagnetic transient problem in the stator transient and the instantaneous torque and shaft torsional vibration in the rotor motion. In some cases where the accuracy of transient stability analysis of power system generators is relatively high, a high-order calculation method is required, which can more accurately reflect the working conditions of the generator under transient conditions. The calculation of high-order transient PMSG is very complicated, and it is difficult to calculate PMSG on the hardware development platform. In addition, discrete modeling is required in hardware-based model development. Calculations based on the node analysis method require a matrix inversion for each step. It is difficult to build a high-order transient PMSG, which will put great pressure on hardware operations and affect the calculation speed.
[0005] Therefore, the present invention proposes a high-order transient PMSG calculation method based on simplified hardware calculation process, optimizes the calculation process of the PMSG model, and decouples the traditional matrix inversion calculation into linear equation calculation. This simplified calculation method has good performance in convergence performance and calculation accuracy, and is suitable for the calculation of high-order transient PMSG. Summary of the invention
[0006] The purpose of the present invention is to provide a high-order transient PMSG calculation method and system based on hardware optimization, which optimizes the calculation process of the PMSG model and decouples the traditional matrix inversion calculation into linear equation calculation. This simplified calculation method has good performance in convergence performance and calculation accuracy, and is suitable for the calculation of high-order transient PMSG.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A high-order transient PMSG calculation method based on hardware optimization, the calculation method comprising:
[0009] Build a three-phase permanent magnet direct-drive wind turbine PMSG model;
[0010] The PMSG model is modified by using Park transformation to obtain a dq-axis PMSG model;
[0011] Discretizing the dq-axis PMSG model to obtain a PMSG high-order transient model;
[0012] The hardware process optimization is performed on the PMSG high-order transient model obtained after discretization to obtain the voltage and current at the outlet of the generator model.
[0013] Optionally, the dq axis PMSG model includes: a dq axis voltage equation, a flux equation and an electromagnetic torque equation, wherein the expression of the dq axis voltage equation is:
[0014] v dq0 =Ri dq0 +pλ dq0 +S, where i dq0 is the current of the stator dq0 axis and the rotor kdkq axis after Parker transformation, λ dq0 is the flux linkage of the stator dq0 axis and the rotor kdkq axis after Park transformation, R is the resistance of the stator dq0 axis and the rotor kdkq axis after Park transformation, S is the speed electromotive force term, reflecting the electromotive force generated by the stator winding cutting the magnetic lines of force, and p is the differential operator p=d / dt;
[0015] The expression of the magnetic flux equation is:
[0016]
[0017]
[0018] λ0=L ls i0
[0019] Among them, λ d is the stator d-axis flux after Park transformation, λ kdris the magnetic flux of the rotor kd axis, the subscript r means the rotor side quantity is converted to the stator side, L d is the stator d-axis unsaturated reactance, L md is the stator d-axis excitation inductance, L kdr is the rotor kd axis damping winding reactance, i d is the stator d-axis current, i kdr is the rotor kd shaft current, λ mr is the flux linkage of the permanent magnet in the permanent magnet synchronous motor, λ q is the stator q-axis flux after Parker transformation, λ kqr is the magnetic flux of the rotor kq axis after Parker transformation, L q is the stator q-axis unsaturated reactance, L mq is the stator q-axis excitation inductance, i q is the stator q-axis current, i kqr is the rotor kq axis current, λ0 is the stator 0 axis flux after Park transformation, L ls is the stator winding leakage reactance, i0 is the stator 0 axis current;
[0020] The expression of the electromagnetic torque equation is:
[0021]
[0022] Where P is the number of generator pole pairs.
[0023] Optionally, the expression of the PMSG high-order transient model is as follows:
[0024]
[0025] Among them, i(t) is the stator dq axis rotor kdkq axis current matrix, E is the unit matrix, Δt is the time of each step of hardware discrete calculation, A is the current matrix time-varying coefficient matrix, v(t) is the stator dq axis rotor kdkq axis voltage matrix, and B is the voltage matrix time-varying coefficient matrix.
[0026] Optionally, the hardware process optimization of the PMSG high-order transient model obtained after discretization is specifically to decouple the matrix inversion problem into a linear equation calculation problem.
[0027] Based on the above method in the present invention, the present invention further provides a high-order transient PMSG calculation system based on hardware optimization, the calculation system comprising:
[0028] PMSG model building module, used to build a three-phase permanent magnet direct-drive fan PMSG model;
[0029] A park transformation module, used to modify the PMSG model using park transformation to obtain a dq axis PMSG model;
[0030] A discretization module, used for discretizing the dq-axis PMSG model to obtain a PMSG high-order transient model;
[0031] The hardware process optimization module is used to perform hardware process optimization on the PMSG high-order transient model obtained after discretization to obtain the voltage and current at the outlet of the generator model.
[0032] Optionally, the dq axis PMSG model includes: a dq axis voltage equation, a flux equation and an electromagnetic torque equation, wherein the expression of the dq axis voltage equation is:
[0033] v dq0 =Ri dq0 +pλ dq0 +S, where i dq0 is the current of the stator dq0 axis and the rotor kdkq axis after Parker transformation, λ dq0 is the flux linkage of the stator dq0 axis and the rotor kdkq axis after Park transformation, R is the resistance of the stator dq0 axis and the rotor kdkq axis after Park transformation, S is the speed electromotive force term, reflecting the electromotive force generated by the stator winding cutting the magnetic lines of force, and p is the differential operator p=d / dt;
[0034] The expression of the magnetic flux equation is:
[0035]
[0036]
[0037] λ0=L ls i0
[0038] Among them, λ d is the stator d-axis flux after Park transformation, λ kdr is the magnetic flux of the rotor kd axis, the subscript r means the rotor side quantity is converted to the stator side, L d is the stator d-axis unsaturated reactance, L md is the stator d-axis excitation inductance, L kdr is the rotor kd axis damping winding reactance, i d is the stator d-axis current, i kdr is the rotor kd shaft current, λ mr is the flux linkage of the permanent magnet in the permanent magnet synchronous motor, λ q is the stator q-axis flux after Parker transformation, λ kqr is the magnetic flux of the rotor kq axis after Parker transformation, L q is the stator q-axis unsaturated reactance, L mq is the stator q-axis excitation inductance, i q is the stator q-axis current, i kqris the rotor kq axis current, λ0 is the stator 0 axis flux after Park transformation, L ls is the stator winding leakage reactance, i0 is the stator 0-axis current;
[0039] The expression of the electromagnetic torque equation is:
[0040]
[0041] Where P is the number of generator pole pairs.
[0042] Optionally, the expression of the PMSG high-order transient model is as follows:
[0043]
[0044] Among them, i(t) is the stator dq axis rotor kdkq axis current matrix, E is the unit matrix, Δt is the time of each step of hardware discrete calculation, A is the current matrix time-varying coefficient matrix, v(t) is the stator dq axis rotor kdkq axis voltage matrix, and B is the voltage matrix time-varying coefficient matrix.
[0045] Optionally, the hardware process optimization of the PMSG high-order transient model obtained after discretization is specifically to decouple the matrix inversion problem into a linear equation calculation problem.
[0046] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0047] The above method in the present invention can simplify the matrix inversion operation of each step in the high-order transient PMSG calculation process into a linear equation calculation, and can fully reflect the dynamic process of the high-order transient PMSG, while ensuring the calculation accuracy, it can also significantly reduce the calculation burden. After simulation, it is proved that the simplified calculation method has good performance in convergence performance and calculation accuracy. Although the simplified algorithm has more oscillations and a higher oscillation frequency, it converges quickly, and the convergence results are consistent with the accurate high-order transient calculation results. After FPGA-based hardware implementation, it is proved that the simplified calculation method occupies very few board resources and has extremely low board power consumption, which greatly reduces the high performance requirements of the conventional high-order transient PMSG calculation on the hardware board. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0049] Figure 1This is a flow chart of a high-order transient PMSG calculation method based on hardware optimization according to an embodiment of the present invention;
[0050] Figure 2 is a schematic diagram of a bipolar ideal motor according to an embodiment of the present invention;
[0051] Figure 3 The stator a phase winding self-inductance L of the embodiment of the present invention is aa Schematic diagram;
[0052] Figure 4 is the stator winding mutual inductance L of the embodiment of the present invention ab Schematic diagram;
[0053] Figure 5 This is a schematic diagram of the vd transient waveform of an embodiment of the present invention;
[0054] Figure 6 This is a schematic diagram of the vd steady-state waveform of an embodiment of the present invention;
[0055] Figure 7 This is a schematic diagram of the transient waveform of ID in an embodiment of the present invention;
[0056] Figure 8 This is a schematic diagram of a steady-state waveform of an embodiment id of the present invention;
[0057] Fig. 9 This is a schematic diagram of the IKD transient waveform according to an embodiment of the present invention;
[0058] Fig.10 This is a schematic diagram of the steady-state waveform of IKD according to an embodiment of the present invention;
[0059] Fig.11 The PMSD real-time logic diagram optimized by the embodiment of the present invention;
[0060] Fig.12 This is a diagram of FPGA resource occupancy according to an embodiment of the present invention;
[0061] Fig.13 This is a power consumption temperature diagram of the FPGA according to an embodiment of the present invention;
[0062] Fig.14 Schematic diagram of the structure of a high-order transient PMSG calculation system based on hardware optimization according to an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] The purpose of the present invention is to provide a high-order transient PMSG calculation method and system based on hardware optimization, which optimizes the calculation process of the PMSG model and decouples the traditional matrix inversion calculation into linear equation calculation. This simplified calculation method has good performance in convergence performance and calculation accuracy, and is suitable for the calculation of high-order transient PMSG.
[0065] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0066] This paper proposes a high-order transient PMSG calculation method based on a hardware optimization algorithm. This method optimizes the calculation process on the hardware and decouples the discrete time step matrix inversion calculation of traditional hardware into linear equation calculation. Then, the convergence performance, calculation accuracy and resource occupancy of the calculation method are analyzed using simulation and hardware implementation as examples.
[0067] Figure 1 Flow chart of the high-order transient PMSG calculation method based on hardware optimization according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0068] Step 101: Build a three-phase permanent magnet direct-drive wind turbine PMSG model.
[0069] In order to establish the mathematical model of PMSG, necessary assumptions must be made on the actual three-phase synchronous motor to simplify the analysis and calculation. Usually the following assumptions are made:
[0070] (1) The magnetic permeability of the motor magnet part is constant.
[0071] (2) The motor rotor is completely symmetrical in structure with respect to the longitudinal and transverse axes.
[0072] (3) The positions of the three stator windings differ by an electrical angle of 120°, and they have the same structure, generating a sinusoidally distributed magnetomotive force.
[0073] (4) The stator and rotor surfaces of the motor are smooth.
[0074] A machine that satisfies the above assumptions is called an ideal machine. Figure 2 These assumptions can meet the needs of practical engineering research in most cases.
[0075] The symmetry axes a, b, and c of the stator abc three-phase winding are 120° electrical degrees apart in space. Assuming that the rotor rotates counterclockwise as the positive direction of rotation, it will meet the stationary a, b, and c axes in sequence. The central axis of the rotor excitation winding is the d axis, and the q axis is assumed to lead the d axis by 90° electrical degrees along the direction of rotor rotation. There is an excitation winding f and an equivalent damping winding kd on the d axis, and an equivalent damping winding kq on the q axis. For the convenience of calculation, the quantities on the rotor side are converted to the stator side for calculation.
[0076] Based on the stator winding voltage, current and positive direction of flux mentioned above, the voltage equation of each phase winding of the stator can be written as:
[0077]
[0078]
[0079] In the above formula, v abc The matrix represents the voltage of each phase winding of stator abc, that is, the three-phase voltage at the stator outlet end abc, i abc The matrix represents the current of each phase winding of stator abc, i kdrkqr The matrix represents the current of the rotor kd and kq windings. The subscript r represents the rotor side parameters converted to the stator side for calculation. abc The matrix represents the flux of each phase winding of stator abc, λ kdrkqr The matrix represents the flux linkage of the rotor kd and kq windings, r s The matrix represents the resistance of the stator winding, r kdkq The matrix represents the resistance of the rotor kd and kq windings.
[0080] Depend on Figure 2 The winding flux equation can be established by setting the current of each winding and the positive direction of the flux, which can be written in matrix form as follows:
[0081]
[0082] Can be shortened to
[0083]
[0084] where λ abcm The matrix represents the performance of PMSG permanent magnet flux in each phase winding of stator abc, λ kdrkqrm The matrix represents the performance of PMSG permanent magnet flux in the rotor kd and kq windings.
[0085] Where L 11 is the self-inductance (diagonal element) and mutual inductance (non-diagonal element) of the stator winding; L 22 is the self-inductance and mutual inductance of the rotor winding; and L 12 and L 21is the mutual inductance between the stator winding and the rotor winding, and the unit of inductance is H. Inductance matrix L (5*5) It is a symmetrical array.
[0086] Next, we will explain each part of the model in blocks:
[0087] The stator winding self-inductance is L aa , L bb , L cc , belongs to L 11 Medium element.
[0088] From formula 5, the self-inductance of the stator a-phase winding is:
[0089]
[0090] When the d-axis coincides with the a-axis, the magnetic resistance is minimum, the a-phase flux reaches its maximum value, and θ a = 0° and θ a =180° when L aa When the d-axis is orthogonal to the a-axis, the magnetic resistance is minimum, and the a-phase flux reaches the minimum value. a =90° and θ a =270°L aa Assume that the constant part of the stator winding self-inductance is L s , the pulsating part is L t ,but:
[0091]
[0092] Where L s >L t >0,L aa , L bb , L cc Always positive value, for the hidden pole permanent magnet synchronous motor, L t =0,L aa =L bb =L cc =L s For salient pole machines, L aa , L bb , L cc is a parameter that varies with θ.
[0093] The stator winding mutual inductance includes L ab , L ba , L ac , L ca , L bc , L cb , belongs to L 11 Medium element.
[0094] Mutual inductance L between stator a and b phase windings ab for:
[0095]
[0096]
[0097] And L ab =L ba The ab windings are 120° apart in space, so -i b >0 a <0,L ab Always negative. When the d-axis lags behind the a-axis by 30° or leads the a-axis by 150°, θ a = -30° or θ a =150°, |L ab | reaches its maximum value; when θ a =60° or θ a =-120°, |L ab | reaches the minimum value. Assume that the absolute value of the constant part of the stator winding mutual inductance is M s It can be proved that the amplitude of the pulsating part of the stator mutual inductance is equal to the amplitude of the pulsating part of the stator self-inductance when the leakage flux is ignored, which is also L t ,but:
[0098]
[0099] Where M s >L t >0, so the stator mutual inductance is negative. For the hidden pole machine L t =0, the stator mutual inductance is a constant. For a salient pole machine, the stator mutual inductance varies with the rotor position.
[0100] The rotor winding self-inductance includes L kdkd , L kqkq , belongs to L 22 Medium element.
[0101] Since the magnetic resistance of the rotor magnetic circuit remains unchanged during the rotor rotation, and it can be seen from the definition of the positive direction that the rotor winding self-inductance is a positive constant. Assume:
[0102]
[0103] The rotor winding mutual inductance includes L kqkd , L kdkq Belong to L 22 Medium element.
[0104] The dq axes are orthogonal to each other, so the mutual inductance between the winding on the d axis and the winding on the q axis is zero
[0105] L kdkq =L kqkd =0 (11)
[0106] The mutual inductance between the stator and rotor, including L 12 , L 21 There are 12 elements in total.
[0107] The mutual inductance amplitude between the stator a-phase winding and the d-axis damping winding D is M kd (M kd >0).
[0108]
[0109] The mutual inductance amplitude between the stator a-phase winding and the q-axis damping winding Q is M kq (M kq >0)
[0110]
[0111] θ appears in the formula a +90°, θ b +90°, θ c +90° means that the q-axis is consistent with the abc-axis, that is, when the d-axis lags behind the abc-axis by 90°, the corresponding mutual inductance is the maximum positive value.
[0112] The mathematical expressions of all elements of the inductance matrix are given above. Under the conditions of an ideal motor, the following conclusions can be drawn:
[0113] 1. The self-inductance and mutual inductance of the stator winding are both pulsating with a period of 180° according to the sinusoidal law. The pulsation is caused by the rotor salient poles. Moreover, the amplitude of the pulsating part of the self-inductance and mutual inductance of the stator winding is equal when the leakage flux is ignored, both of which are L t The self-inductance of the stator winding is positive, and the mutual inductance of the stator winding is negative.
[0114] 2. The self-inductance and mutual inductance of the rotor winding are both constant values, and the mutual inductance of the kdkq winding is zero because the dq axes are orthogonal.
[0115] 3. The mutual inductance between the stator and rotor windings changes sinusoidally with a period of 360°, and its pulsation is caused by the rotation of the rotor. The change period of each inductance and the rotor position when it reaches the maximum and minimum values are related to the corresponding magnetic resistance of the magnetic circuit in physics.
[0116] Since there are a large number of parameters in the L matrix that change with the rotor position, it is very difficult to analyze the transient process of the motor using the abc phase coordinates.
[0117] The dynamics of the PMSG can be expressed using the equations for the corresponding electrical and mechanical subsystems. The equations for the mechanical subsystem are as follows:
[0118]
[0119] p is the differential operator, p = d / dt. θr and ω r is the rotor position and mechanical angular velocity; T m and T e They are mechanical torque and electromagnetic torque respectively.
[0120] Step 102: Modify the PMSG model using Park transformation to obtain a dq-axis PMSG model.
[0121] Park transformation is to convert the stator abc three-phase winding into two equivalent stator windings fixed on the dq axis and rotating synchronously with the rotor according to the double reaction theory of synchronous motor, which is called stator dq winding. The inductance parameters of the basic equation of synchronous motor under dq0 coordinates obtained after Park transformation are all constant values.
[0122] The actual spatial magnetomotive force of each phase winding current is approximately sinusoidally distributed along the air gap. Under the assumption of an ideal motor, ignoring the high-order harmonic components and only considering the fundamental magnetomotive force of the sinusoidal distribution, the magnitude of the air gap magnetomotive force at an angle of αa with the a-axis can be expressed as:
[0123] f a (α a )=f am cosα a (15)
[0124] The unit of magnetomotive force is ampere-turn, f am is the amplitude of the spatial sinusoidal magnetomotive force generated by the a-phase winding current, and is related to i a Proportional, f a (α a ) is sinusoidally distributed along the air gap, and its maximum value is located on the a-axis.
[0125] Now define a space vector f a To represent the a-phase magnetomotive force of the above spatial distribution. The spatial magnetomotive force vector f a Always along the a-axis, the projection on the a-axis is equal to f am , and the angle between the air gap and the a-axis is α a The magnitude of the magnetomotive force at a certain point is determined by f a The projection at this position is determined and recorded as
[0126] (f a )α a =f am cosα a (16)
[0127] Similarly, the space magnetomotive force generated by the bc axis winding is at a certain point along the air gap (assuming that the angles with the bc axis are α b , α c ) are:
[0128]
[0129] Similarly, we define the space vector f b , f c The spatial magnetomotive force of the bc phase of the above spatial distribution is represented by the following:
[0130]
[0131] The electrical angle satisfies the following formula:
[0132]
[0133] Here, α refers to the electrical angle α leading the positive direction of the a-axis in space.
[0134]
[0135] For balanced three-phase current i0=1 / 3(i a +i b +i c )=0, if the dq winding rotating synchronously with the rotor is used to equalize the static abc three-phase winding, the spatial magnetomotive force distribution formed by the two should be exactly the same. f refers to the magnetomotive force:
[0136] f Σ =f a +f b +f c =f d +f q (twenty one)
[0137] where f a , f b , f c is the space magnetomotive force vector of abc, f d , f q is the spatial magnetomotive force vector of dq. The dq axes are orthogonal, so f can be calculated by projection d , f q :
[0138]
[0139] where f dm , f qm f d , f q Projection on the dq axis, θ a ,θ b ,θ c is the angle at which the d axis leads the abc axis, () d , () qrefers to the projection of the space vector on the dq axis (algebraic quantity). Writing (22) in matrix form and ignoring the subscript m yields:
[0140]
[0141] The complete classical Parker transform after taking into account the zero-axis component is taken as:
[0142]
[0143] In the formula of Parker transformation, f can be any quantity. For the PMSG model, f is a variable such as i, v, λ, etc.
[0144] The abc three-phase voltage equation and abc three-phase flux equation of the PMSG motor are transformed to the dq axis through the Park transformation formula to obtain the dq axis voltage equation. The voltage equation includes the stator and the rotor and can be simply expressed as:
[0145] v dq0 =Ri dq0 +pλ dq0 +S (25)
[0146] The first term on the right side of the equal sign is the ohmic voltage term, which reflects the resistance voltage drop on the corresponding winding. The second term is usually called the transformer electromotive force, which is the winding voltage caused by the electromagnetic induction effect. The third term is called the speed electromotive force. When the rotor is stationary (ωr = 0), this term is zero. The speed electromotive force term reflects the electromotive force generated by the stator winding cutting the magnetic lines of force, and plays a major role in the energy exchange between the stator and the rotor.
[0147] v dq0 =[v d v q v0 0 0] T (26)
[0148] i dq0 =[i d i q i0 i kdr i kqr ] T (27)
[0149] λ dq0 =[λ d λ q λ0 λ kdr λ kqr ] T (28)
[0150] R = diag(r s r s r s r kdrr kqr ) (29)
[0151] S=[-λ q ω r λ d ω r 0 0 0] T (30)
[0152] The magnetic flux equation can be expressed as:
[0153]
[0154]
[0155] λ0=L ls i0 (33)
[0156] The electromagnetic torque is expressed as:
[0157]
[0158] The meanings of the above parameters are shown in Table 1:
[0159] Table 1 Meaning of parameters of permanent magnet direct drive synchronous generator
[0160]
[0161] Step 103: discretize the dq-axis PMSG model to obtain a PMSG high-order transient model.
[0162] All hardware processors are parallel computing, and after discretizing the PMSG model, the model program can be developed on the hardware development platform.
[0163] The implicit trapezoidal method is one of the most basic numerical calculation methods in power system transient analysis. It has good calculation accuracy and numerical stability and is a relatively reliable method. The implicit trapezoidal rule is as follows:
[0164]
[0165] In order to obtain the numerical solution of the PMSG model in the Electromagnetic Transient Program (EMTP), the implicit trapezoidal rule is applied to obtain the corresponding differential equations. Discretization, the differential equations of the rotor position and speed are obtained as follows:
[0166]
[0167]
[0168]
[0169] Applying the implicit trapezoidal rule to the voltage and flux equations requires writing out the complete formula model first.
[0170] The stator winding voltage equation under dq0 coordinates is:
[0171]
[0172] The short-circuit winding voltage equation under dq0 coordinates is:
[0173]
[0174] The winding flux equation under dq0 coordinates is:
[0175]
[0176] Since the permanent magnet synchronous generator m Constant, dλ m / dt=0, substituting (41) into (39) and eliminating λ d ,λ q We can get:
[0177]
[0178] Substituting (41) into (40) and eliminating λ dr ,λ qr Available
[0179]
[0180] Substitute (43) into (42) and eliminate di kdr / dt,di kqr / dt can be obtained:
[0181]
[0182] Substitute (43) into (42) and eliminate di d / dt,di q / dt can be obtained:
[0183]
[0184] Arrange (44)(45) into integral form and use implicit trapezoidal difference method to perform difference operation. After algebraic operation, the exact form of stator and rotor current equations is obtained.
[0185] (44)(45) can be reorganized into the integral form (46)(47), as shown below
[0186]
[0187]
[0188] The S in the formula is the integral symbol.
[0189] By arranging formula (46) (47) into matrix form, we can obtain:
[0190]
[0191] The logic of implicit trapezoidal difference method is as follows:
[0192]
[0193] The final PMSG high-order transient model can be organized and abbreviated into the following form:
[0194] pi(t)=Ai(t)+Bv(t) (50)
[0195] i(t)=[i d i q i kdr i kqr ] T (51)
[0196] v(t)=[v d v q λ mr ] T (52)
[0197] Matrix A is a 4-row 4-column parameter matrix, where the parameters change with the mechanical angular velocity of the rotor. Matrix B is a 4-row 3-column sparse parameter matrix, where the parameters are also affected by the mechanical angular velocity of the rotor.
[0198] Applying the implicit trapezoidal rule to equation (48) yields:
[0199]
[0200]
[0201] Where E is the unit matrix. This method can be used to calculate the PMSG model current, but the formula clearly states that in the hardware-based small-step discretization calculation, an inverse matrix needs to be calculated for each step, which will occupy a large amount of board computing resources and affect the calculation speed. Especially when using hardware for wind farm transient simulation, the amount of matrix inversion calculation will be very large.
[0202] Step 104: Perform hardware process optimization on the PMSG high-order transient model obtained after discretization to obtain the voltage and current at the outlet of the generator model.
[0203] Based on the traditional model, the focus is on how to reduce the amount of calculation of PMSG model operations to achieve the purpose of reducing board resource usage and improving calculation speed. In small-step simulation, the data difference in each step is very small, so the actual hardware calculation can be replaced by the data of the previous step, so the matrix inversion problem can be decoupled into a linear equation calculation problem.
[0204] The matrix Ai(t) is arranged as follows, where a represents the specific parameters of each item in the matrix:
[0205]
[0206]
[0207] In this way, the matrix inversion problem is decoupled into a linear system calculation problem.
[0208] This paper compares different models based on a single generator set connected to a resistive and inductive load system. The resistive and inductive loads are used to simulate real-life residential electricity usage. The machine parameters are summarized in Table 2.
[0209] Table 2 Meaning of parameters of permanent magnet direct drive synchronous generator
[0210]
[0211] The d-axis voltage vd obtained by simulation is as follows Figure 5 and Figure 6 As shown, Figure 5 This is the waveform diagram of the transient operation of the generator. Figure 6 The waveform diagram of the generator after stabilization. The solid line in the figure is the simplified linear algorithm waveform, and the 6 dotted lines are the accurate high-order transient model waveform.
[0212] from Figure 6-Figure 10 It can be seen that when the generator is in transient operation at the beginning of the operation, the linear operation calculation method has good convergence. The linear operation oscillates more times and at a higher frequency. However, compared with the accurate high-order transient calculation results, the time to converge to stability is similar, and the final convergence results are also similar.
[0213] FPGA (Field Programmable Gate Array) is a chip with powerful computing capabilities. It has a highly parallel hardware structure, distributed memory blocks, programmable features and rich I / O resources, making it the preferred hardware for real-time transient simulation.
[0214] The simplified algorithm model is built on the Vivado development platform that supports FPGA.
[0215] This experiment uses Xilinx -7 FPGA VC707 hardware board, -7 FPGA VC707 Function Kit is a fully functional, highly flexible high-speed serial base platform, including hardware, design tools, IP and pre-verified reference design basic components, suitable for high-performance system design, serial connection and advanced memory interface. The real-time logic diagram (RTL) of the optimized PMSG model is as follows Fig.11 As shown:
[0216] After the hardware development platform is integrated, implemented, and bitstream generated, the FPGA resource usage and FPGA power consumption temperature are as follows: Fig.12 and Fig.13 shown.
[0217] from Fig.12 and Fig.13 It can be seen that the simplified calculation method only occupies very few board resources, less than 5% of the overall resources, and the overall power consumption of the board is only 0.24w, which is very resource-saving.
[0218] Therefore, after simulation and hardware implementation, it is proved that the high-order transient PMSG linear calculation method based on hardware optimization has good performance in convergence performance and calculation accuracy. Although the linear calculation method has more oscillations and higher oscillation frequency, it converges quickly and the convergence results are consistent with the accurate high-order transient calculation results. The linear calculation method is developed on the FPGA hardware platform. Hardware experiments have proved that the calculation method occupies very few board resources and the board power consumption is extremely low.
[0219] Based on the above method in the present invention, the present invention further provides a high-order transient PMSG calculation system based on hardware optimization, the calculation system comprising:
[0220] The PMSG model building module 201 is used to build a three-phase permanent magnet direct-drive wind turbine PMSG model.
[0221] The park transformation module 202 is used to modify the PMSG model using park transformation to obtain a dq axis PMSG model.
[0222] The discretization module 203 is used to discretize the dq-axis PMSG model to obtain a PMSG high-order transient model.
[0223] The hardware process optimization module 204 is used to perform hardware process optimization on the PMSG high-order transient model obtained after discretization to obtain the voltage and current at the outlet of the generator model.
[0224] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0225] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A high-order transient PMSG calculation method based on hardware optimization, characterized in that: The calculation method includes: Build a three-phase permanent magnet direct-drive wind turbine PMSG model; The PMSG model is modified by using Park transformation to obtain a dq-axis PMSG model; Discretizing the dq-axis PMSG model to obtain a PMSG high-order transient model; The hardware process optimization is performed on the PMSG high-order transient model obtained after discretization to obtain the voltage and current at the generator model outlet; The expression of the PMSG high-order transient model is as follows: Wherein, i(t) is the stator dq axis rotor kdkq axis current matrix, E is the unit matrix, Δt is the time of each step of hardware discrete calculation, A is the current matrix time-varying coefficient matrix, v(t) is the stator dq axis rotor kdkq axis voltage matrix, and B is the voltage matrix time-varying coefficient matrix; The hardware process optimization of the PMSG high-order transient model obtained after discretization is specifically to decouple the matrix inversion problem into a linear equation calculation problem.
2. The high-order transient PMSG calculation method based on hardware optimization according to claim 1 is characterized in that: The dq axis PMSG model includes: a dq axis voltage equation, a flux equation and an electromagnetic torque equation, wherein the expression of the dq axis voltage equation is: v dq0 =Ri dq0 +pλ dq0 +S, where i dq0 is the current of the stator dq0 axis and the rotor kdkq axis after Parker transformation, λ dq0 is the flux linkage of the stator dq0 axis and the rotor kdkq axis after Park transformation, R is the resistance of the stator dq0 axis and the rotor kdkq axis after Park transformation, S is the speed electromotive force term, reflecting the electromotive force generated by the stator winding cutting the magnetic lines of force, and p is the differential operator p=d / dt; The expression of the magnetic flux equation is: λ0=L ls i0 Among them, λ d is the stator d-axis flux after Park transformation, λ kdr is the magnetic flux of the rotor kd axis, the subscript r means the rotor side quantity is converted to the stator side, L d is the stator d-axis unsaturated reactance, L md is the stator d-axis excitation inductance, L kdr is the rotor kd axis damping winding reactance, i d is the stator d-axis current, i kdr is the rotor kd shaft current, λ mr is the flux linkage of the permanent magnet in the permanent magnet synchronous motor, λ q is the stator q-axis flux after Parker transformation, λ kqr is the magnetic flux of the rotor kq axis after Parker transformation, L q is the stator q-axis unsaturated reactance, L mq is the stator q-axis excitation inductance, i q is the stator q-axis current, i kqr is the rotor kq axis current, λ0 is the stator 0 axis flux after Park transformation, L ls is the stator winding leakage reactance, i0 is the stator 0 axis current; The expression of the electromagnetic torque equation is: Where P is the number of generator pole pairs.
3. A high-order transient PMSG calculation system based on hardware optimization, characterized in that: The computing system comprises: PMSG model building module, used to build a three-phase permanent magnet direct-drive fan PMSG model; A park transformation module, used to modify the PMSG model using park transformation to obtain a dq axis PMSG model; A discretization module, used for discretizing the dq-axis PMSG model to obtain a PMSG high-order transient model; The hardware process optimization module is used to optimize the hardware process of the PMSG high-order transient model obtained after discretization to obtain the voltage and current at the outlet of the generator model; The expression of the PMSG high-order transient model is as follows: Wherein, i(t) is the stator dq axis rotor kdkq axis current matrix, E is the unit matrix, Δt is the time of each step of hardware discrete calculation, A is the current matrix time-varying coefficient matrix, v(t) is the stator dq axis rotor kdkq axis voltage matrix, and B is the voltage matrix time-varying coefficient matrix; The hardware process optimization of the PMSG high-order transient model obtained after discretization is specifically to decouple the matrix inversion problem into a linear equation calculation problem.
4. The high-order transient PMSG calculation system based on hardware optimization according to claim 3 is characterized in that: The dq axis PMSG model includes: a dq axis voltage equation, a flux equation and an electromagnetic torque equation, wherein the expression of the dq axis voltage equation is: v dq0 =Ri dq0 +pλ dq0 +S, where i dq0 is the current of the stator dq0 axis and the rotor kdkq axis after Parker transformation, λ dq0 is the flux linkage of the stator dq0 axis and the rotor kdkq axis after Park transformation, R is the resistance of the stator dq0 axis and the rotor kdkq axis after Park transformation, S is the speed electromotive force term, reflecting the electromotive force generated by the stator winding cutting the magnetic lines of force, and p is the differential operator p=d / dt; The expression of the magnetic flux equation is: λ0=L ls i0 Among them, λ d is the stator d-axis flux after Park transformation, λ kdr is the magnetic flux of the rotor kd axis, the subscript r means the rotor side quantity is converted to the stator side, L d is the stator d-axis unsaturated reactance, L md is the stator d-axis excitation inductance, L kdr is the rotor kd axis damping winding reactance, i d is the stator d-axis current, i kdr is the rotor kd shaft current, λ mr is the flux linkage of the permanent magnet in the permanent magnet synchronous motor, λ q is the stator q-axis flux after Parker transformation, λ kqr is the magnetic flux of the rotor kq axis after Parker transformation, L q is the stator q-axis unsaturated reactance, L mq is the stator q-axis excitation inductance, i q is the stator q-axis current, i kqr is the rotor kq axis current, λ0 is the stator 0 axis flux after Park transformation, L ls is the stator winding leakage reactance, i0 is the stator 0 axis current; The expression of the electromagnetic torque equation is: Where P is the number of generator pole pairs.
Citation Information
Patent Citations
An optimization method and device for an electromagnetic transient simulation model of a phase domain motor
CN109710999A
FPGA-based doubly-fed wind motor electromagnetic transient simulation method and simulation system
CN110334407A
Permanent magnet synchronous motor model prediction current control method
CN110995076A
Solar Power System
US20130186450A1
Method and device for improving efficiency of electromagnetic transients program phase domain synchronous machine model
US20200185980A1
