Modeling method and device for power station generator motor
By constructing the equivalent circuit model of the motor and correcting the output and state matrix of the electric power model, the problem of error accumulation in the iterative calculation of the dq0 motor model is solved, and the robust performance of the motor model and the accuracy of the simulation results are improved.
Patent Information
- Application Number
- CN202410766967.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-20
AI Technical Summary
The existing dq0 motor model is prone to error accumulation during the iterative calculation process, resulting in non-convergent calculation results and poor robust performance.
Build an equivalent circuit model by obtaining the motor parameters, calculate the discrete output matrix and state matrix, solve the discrete state equation and output equation based on the power model, and use the discrete output matrix of the motor to correct the output and state matrix of the power model to reduce iteration errors.
It improves the robust performance of the motor model, reduces the accumulation of errors in iterative calculations, and improves the accuracy of simulation results.
Smart Images

Figure CN118673698A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit system simulation, and in particular to a modeling method and device for a power station generator motor. Background Art
[0002] The existing dq0 motor model can be equivalent to a constant current source as the interface between the motor and the power grid. In the iterative calculation process of the motor and the power grid system, there will be accumulated errors. If the iterative compensation setting is too large, it may result in the non-convergence of the calculation results, resulting in poor robust performance of the obtained motor model. Summary of the invention
[0003] The present invention provides a modeling method and device for a power station generator motor, aiming to improve the robust performance of a DQ0 motor model.
[0004] According to one aspect of the present invention, there is provided a keyword extraction method, comprising:
[0005] Obtain motor parameters and construct an equivalent circuit model of the motor;
[0006] Calculate a discrete output matrix of the motor based on the motor parameters;
[0007] Solving the discrete state equation and discrete output equation of the power model based on the electrical circuit of the power model;
[0008] Modifying the discrete output matrix and the discrete state matrix of the power model based on the discrete output matrix of the motor;
[0009] Based on the modified discrete output matrix and state matrix of the power model, a discrete state equation and a discrete output equation of the power model are constructed.
[0010] Optionally, the calculating a discrete output matrix of the motor based on the motor parameters includes:
[0011] Calculate a first continuous state matrix of the motor based on the inductance constant, resistance constant, motor speed, and motor rated power in the motor parameters;
[0012] Calculate a second continuous state matrix of the motor based on the motor rotor angle, motor excitation winding direct resistance, motor direct inductance, motor rated voltage, motor rated current, and motor rated frequency among the motor parameters;
[0013] Calculate the continuous output matrix of the motor based on the inductance constant and the rated current of the motor in the motor parameters;
[0014] A discrete output matrix of the motor is calculated based on the second continuous state matrix, the continuous output matrix, the first continuous state matrix and the discrete sampling time in the motor parameters.
[0015] Optionally, calculating the first continuous state matrix of the motor includes:
[0016] The first continuous state equation is:
[0017] A=wt*(-W-Rinv)
[0018] Where, wt = 2*pi*Fn; Fn is the rated frequency of the motor; W is the motor speed matrix, W(0,1) = wr, W(1,0) = -wr, other parameters in the matrix are 0, wr is the motor speed; Rinv = 1 / Rm, Rm is the resistance constant matrix;
[0019] The second continuous state matrix of the motor is calculated based on the motor rotor angle, the motor excitation winding direct resistance, the motor direct inductance, the motor rated voltage, the motor rated current, and the motor rated frequency in the motor parameters, including:
[0020] The second continuous state matrix is:
[0021] B=Vm*wt
[0022] In the formula, Vm is a 5×3 matrix, and the calculation formulas for the parameters in the matrix are as follows:
[0023] Vm(0,0)=cos(θ)*0.544 / Vn, Vm(0,1)=(0.272*cos(θ)+0.471*sin(θ)) / Vn Vm(1,0)=sin(θ)*0.544 / Vn, Vm(1,1)=(0.272*sin(θ)-0.471*cos(θ)) / Vn
[0024] Vm(2,2)=Rm
[0025] In the Vm matrix, all parameters except the above parameters are 0; θ is the motor rotor angle, and Vn is the motor rated voltage;
[0026] The method of calculating the continuous output matrix of the motor based on the inductance constant and the rated current of the motor in the motor parameters includes:
[0027] The continuous output matrix of the motor is:
[0028] C=-Im*Linv_temp
[0029] Where Linv is the inverse matrix of the inductance constant matrix Lm, Linv = 1 / Lm; Linv_temp is the first two rows of the extracted matrix Linv, forming a 2×5 matrix; Im is a 2×2 matrix, and the parameters in the matrix are as follows:
[0030] Im(0,0)=cos(θ)*1.414*In, Im(0,1)=(0.707*cos(θ)+1.224*sin(θ))*In Im(1,0)=sin(θ)*1.414*In, Im(1,1)=(0.707*sin(θ)-1.224*cos(θ))*InIn is the rated current of the motor;
[0031] The step of calculating the discrete output matrix of the motor based on the second continuous state matrix, the continuous output matrix, the first continuous state matrix and the discrete sampling time in the motor parameters comprises:
[0032] The discrete output matrix Dd is:
[0033] Dd=Cd*B
[0034] Cd=C*Ad*Ts
[0035] Ad=1 / (IA*Ts)
[0036] Where Ts is the discrete sampling time; I is the unit matrix; Ad is the discrete state matrix of the motor; and Cd is another discrete output matrix of the motor.
[0037] Optionally, the electrical circuit based on the power model solves the discrete state equation and discrete output equation of the power model, including:
[0038] Obtaining electrical parameters of the electrical circuit based on the electrical circuit of the power model;
[0039] Generate a continuous state equation and a continuous output equation of the power model based on Kirchhoff's law and electrical parameters of the electrical circuit;
[0040] The continuous state space is discretized based on the backward Euler method to obtain the discrete state equation and the discrete output equation of the power model.
[0041] Optionally, the electrical parameters of the electrical circuit include a total number of nodes N n , total number of branches N b , the total number of power modules is N s , the total number of loops is N p , the total inductance L is N l The total number of capacitors is N c , the total number of measurement output modules is N o ;
[0042] The method of generating the continuous state equation and the continuous output equation of the power model based on Kirchhoff's law and the electrical parameters of the electrical circuit includes:
[0043] Extracting N based on Kirchhoff's law n-1 Kirchhoff's current equation and N p +N c Kirchhoff voltage equations, the total number of equations is N e , N e =N n-1 +N p +N c-1 ;
[0044] Generate the continuous state equation: x'(t) = Am*x(t) + Bm*u(t);
[0045] Generate continuous output equation: y(t)=Cm*x(t)+Dm*u(t);
[0046] Among them, x(t) is the continuous state variable of the system, x'(t) is the derivative of the continuous state variable of the system, and the array length is N l +N c ; u(t) is the power input variable; Am and Bm are continuous state matrices, and the dimension of Am matrix is N e ×N e , the Bm matrix dimension is N e ×N s ; Cm, Dm are continuous output matrices, the dimension of Cm matrix is N o ×N e , the dimension of Dm matrix is N o ×N s ;
[0047] The continuous state space is discretized based on the backward Euler method to obtain the discrete state equation and discrete output equation of the power model, including:
[0048] Discrete state equation: X(k+1)=As*X(k)+Bs*U(k)
[0049] Discrete output equation: Y(k+1)=Cs*X(k)+Ds*U(k),
[0050] Among them, X(k) is the discrete state variable of the system, and X(k+1) is the discrete state variable of the next iteration system. The calculation method is as follows:
[0051] X(k)=(I-Ts*Am)*x(t)-Bm*Ts*u(t), I is the unit matrix, Ts is the discrete sampling time; U(k) is the power input variable, U(k)=u(t); As and Bs are discrete state matrices, calculated as follows: As=1 / (I-Am*Ts), Bs=As*Ts*Bm; Cs and Ds are discrete output matrices, calculated as follows: Cs=Cm*As, Ds=Cm*Bs+Dm.
[0052] Optionally, the step of correcting the discrete output matrix and discrete state matrix of the electric power model based on the discrete output matrix of the motor includes:
[0053] Calculate the temporary matrix D temp , D temp_inv :
[0054] D temp =D s_temp *D
[0055] D temp_inv =D temp / (Im-D temp )
[0056] D s_tempw The matrix generated by extracting the 0th to No. rows and the 2nd to Nith columns of the discrete output matrix Dd of the motor has a matrix dimension of No*Ni-2, where o represents the total number of rows of Dd, and i represents the total number of columns of Dd; Im is a 2nd-order unit matrix;
[0057] The correction equations for correcting the discrete output matrix and discrete state matrix of the power model are:
[0058] Cs 修正 =Cs+Dtemp_inv*Cs
[0059] Ds 修正 =Ds+Dtemp_inv*Ds
[0060] As 修正 =As+Bs*Dd*Cs 修正
[0061] Bs 修正 =Bs+Bs*Dd*Ds 修正 .
[0062] Optionally, constructing a discrete state equation and a discrete output equation of the power model based on the discrete output matrix and state matrix of the modified power model includes:
[0063] Modified discrete state equation: X(k+1)=As 修正 *X(k)+Bs 修正 *U(k)
[0064] Corrected discrete output equation: Y(k+1)=Cs 修正 *X(k)+Ds 修正 *U(k).
[0065] Optionally, before calculating the discrete output matrix of the motor based on the motor parameters, the method further includes:
[0066] Calculating the current motor flux vector according to the motor flux vector calculated last time, the first continuous state matrix, the discrete sampling time, the second continuous state matrix, the AB phase voltage vector and the BC phase voltage vector; the AB phase voltage vector and the BC phase voltage vector are calculated based on the equivalent circuit model of the motor;
[0067] Update the motor rotor angle based on the rotor motion equations and the current motor flux vector.
[0068] Optionally, the construction of the equivalent circuit model of the motor includes: an equivalent controllable current source Ia on phase A, and an equivalent controllable current source Ib on phase B;
[0069] The first end of the equivalent controllable current source Ia is electrically connected to the A phase, the first end of the equivalent resistance Rca of the motor between the A phase and the C phase, and the first end of the equivalent resistance Rab of the motor between the A phase and the B phase;
[0070] The first end of the equivalent controllable current source Ib is electrically connected to the B phase, the second end of the equivalent resistance Rab between the A phase and the B phase of the motor, and the first end of the equivalent resistance Rbc between the B phase and the C phase of the motor;
[0071] The second end of the equivalent controllable current source Ia is electrically connected to phase C, the second end of the equivalent controllable current source Ib, the second end of the equivalent resistance Rca between phase A and phase C of the motor, and the second end of the equivalent resistance Rbc between phase B and phase C of the motor.
[0072] According to another aspect of the present invention, there is provided a modeling device for a power station generator motor, comprising:
[0073] An initialization unit, used to obtain motor parameters and construct an equivalent circuit model of the motor;
[0074] A calculation unit, used for calculating a discrete output matrix of the motor based on the motor parameters;
[0075] A solving unit, used for solving a discrete state equation and a discrete output equation of the power model based on an electrical circuit of the power model;
[0076] A correction unit, used for correcting the discrete output matrix and the discrete state matrix of the power model based on the discrete output matrix of the motor;
[0077] The construction unit is used to construct a discrete state equation and a discrete output equation of the power model based on the discrete output matrix and state matrix of the modified power model.
[0078] The embodiments of the present invention model the generator motor by constructing an equivalent circuit model of the motor, rather than just constructing an equivalent circuit model of the power model system, by calculating the discrete output matrix of the motor and the discrete state equation and discrete output equation of the power model, and correcting the discrete output matrix and discrete state matrix of the power model based on the discrete output matrix of the motor; the discrete state equation and discrete output equation of the power model constructed by the corrected discrete output matrix and state matrix of the power model have better robust performance.
[0079] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. 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 creative work.
[0081] Figure 1 It is a flow chart of a modeling method of a power station generator motor provided by the present invention;
[0082] Figure 2 is a circuit diagram of an equivalent circuit model of the motor provided by the present invention;
[0083] Figure 3 It is a flow chart of a sub-process of a modeling method of a power station generator motor provided by the present invention;
[0084] Figure 4 It is a flowchart of another sub-process of a modeling method of a power station generator motor provided by the present invention;
[0085] Figure 5 It is a flowchart of another sub-process of a modeling method of a power station generator motor provided by the present invention;
[0086] Figure 6 The present invention provides a device structure diagram of a modeling device for a power station generator motor. DETAILED DESCRIPTION
[0087] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0088] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0089] Figure 1 A flowchart of a modeling method for a power station generator motor is provided for the first embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0090] S101. Obtain motor parameters and build an equivalent circuit model of the motor.
[0091] Among them, the motor parameters include the parameters of the electrical components of the motor itself and the motion parameters of the motor. For example, the parameters of the electrical components in the motor include inductance, resistance, capacitance, rated voltage, rated current, rated power of the motor, etc.; the motion parameters of the motor include motor speed, motor rotor angle, etc.
[0092] The equivalent circuit of the motor can be obtained by deriving the equivalent circuit of the motor according to the motor model, and determining the parameters of each component in the equivalent circuit.
[0093] S102. Calculate a discrete output matrix of the motor based on the motor parameters.
[0094] The present application can derive a continuous state matrix and a continuous output matrix of the motor based on the motor parameters, and derive a discrete output matrix based on the continuous state matrix and the continuous output matrix.
[0095] S103 . Solve the discrete state equation and discrete output equation of the power model based on the electrical circuit of the power model.
[0096] The present application can construct an adjacency matrix of the model based on the electrical circuit of the power model, and generate circuit nodes, branches and loop types, and then establish the continuous state equation and continuous output equation of the power model according to the number of circuit nodes, branches and loops, and derive the discrete state equation and discrete output equation of the power model from the continuous state equation and continuous output equation.
[0097] S104. Correcting the discrete output matrix and discrete state matrix of the electric power model based on the discrete output matrix of the motor.
[0098] S105 . Constructing a discrete state equation and a discrete output equation of the power model based on the modified discrete output matrix and state matrix of the power model.
[0099] The present application introduces the discrete output matrix of the motor into the simulation model of the generator motor. During each iterative calculation process, the discrete output matrix and discrete state matrix of the power model are corrected by the discrete output matrix of the motor. Then, based on the corrected discrete output matrix and state matrix of the power model, the discrete state equation and discrete output equation of the power model are constructed to reduce the accumulation of iterative errors during the iterative calculation process, thereby improving the robust performance of the simulation model.
[0100] The embodiments of the present invention model the generator motor by constructing an equivalent circuit model of the motor, rather than just constructing an equivalent circuit model of the power model system, by calculating the discrete output matrix of the motor and the discrete state equation and discrete output equation of the power model, and correcting the discrete output matrix and discrete state matrix of the power model based on the discrete output matrix of the motor; the discrete state equation and discrete output equation of the power model constructed by the corrected discrete output matrix and state matrix of the power model have better robust performance.
[0101] In one embodiment, if Figure 2 The circuit diagram of the equivalent circuit model of the motor shown in FIG. 1 includes:
[0102] The equivalent controllable current source Ia on phase A and the equivalent controllable current source Ib on phase B;
[0103] The first end of the equivalent controllable current source Ia is electrically connected to the A phase, the first end of the equivalent resistance Rca of the motor between the A phase and the C phase, and the first end of the equivalent resistance Rab of the motor between the A phase and the B phase;
[0104] The first end of the equivalent controllable current source Ib is electrically connected to the B phase, the second end of the equivalent resistance Rab between the A phase and the B phase of the motor, and the first end of the equivalent resistance Rbc between the B phase and the C phase of the motor;
[0105] The second end of the equivalent controllable current source Ia is electrically connected to phase C, the second end of the equivalent controllable current source Ib, the second end of the equivalent resistance Rca between phase A and phase C of the motor, and the second end of the equivalent resistance Rbc between phase B and phase C of the motor.
[0106] It should be noted that the voltage vectors between phases AB, BC, and AC in the equivalent circuit, as well as the current vectors of phases A, B, and C can be determined based on the constructed equivalent circuit model of the motor and the parameters of each component in the model.
[0107] In one embodiment, the resistance values of the resistors Rab, Rbc, and Rca in the equivalent circuit model are the same, all being R. The calculation method of the R value is as follows:
[0108] R=Vn / (1.732*In)
[0109] Among them, Vn is the rated voltage of the motor, and In is the rated current of the motor.
[0110] In one embodiment, if Figure 3 As shown, step S102 includes the following steps S201 to S204.
[0111] S201. Calculate a first continuous state matrix of the motor based on the motor parameters including the inductance constant, the resistance constant, the motor speed, and the motor rated power.
[0112] The motor parameters include motor rated frequency Fn, motor speed wr, inductance constant, resistance constant, motor rated power, motor rated voltage, and motor rated current.
[0113] The first continuous state matrix of the motor is:
[0114] A=wt*(-W-Rinv)
[0115] Wherein, wt = 2*pi*Fn; W is the motor speed matrix, W(0,1) = wr, W(1,0) = -wr, other parameters in the matrix are 0, wr is the motor speed; Rinv = 1 / Rm, Rm is the resistance constant matrix.
[0116] S202. Calculate a second continuous state matrix of the motor based on the motor rotor angle, the motor excitation winding direct resistance, the motor direct inductance, the motor rated voltage, the motor rated current, and the motor rated frequency in the motor parameters.
[0117] The second continuous state matrix of the motor is:
[0118] B=Vm*wt
[0119] In the formula, Vm is a 5×3 matrix, and the calculation formulas for the parameters in the matrix are as follows:
[0120] Vm(0,0)=cos(θ)*0.544 / Vn, Vm(0,1)=(0.272*cos(θ)+0.471*sin(θ)) / Vn Vm(1,0)=sin(θ)*0.544 / Vn, Vm(1,1)=(0.272*sin(θ)-0.471*cos(θ)) / Vn
[0121] Vm(2,2)=Rm
[0122] Except for the above parameters, all other parameters in the Vm matrix are 0; θ is the motor rotor angle, and Vn is the rated voltage of the motor.
[0123] S203. Calculate a continuous output matrix of the motor based on the inductance constant and the rated current of the motor in the motor parameters.
[0124] The continuous output matrix of the motor is:
[0125] C=-Im*Linv_temp
[0126] Where Linv is the inverse matrix of the inductance constant matrix Lm, Linv = 1 / Lm; Linv_temp is the first two rows of the extracted matrix Linv, forming a 2×5 matrix; Im is a 2×2 matrix, and the parameters in the matrix are as follows:
[0127] Im(0,0)=cos(θ)*1.414*In, Im(0,1)=(0.707*cos(θ)+1.224*sin(θ))*In Im(1,0)=sin(θ)*1.414*In, Im(1,1)=(0.707*sin(θ)-1.224*cos(θ))*InIn is the rated current of the motor.
[0128] S204. Calculate a discrete output matrix of the motor based on the second continuous state matrix, the continuous output matrix, the first continuous state matrix and the discrete sampling time in the motor parameters.
[0129] The discrete output matrix Dd is:
[0130] Dd=Cd*B
[0131] Cd=C*Ad*Ts
[0132] Ad=1 / (IA*Ts)
[0133] Where Ts is the discrete sampling time; I is the unit matrix; Ad is the discrete state matrix of the motor; and Cd is another discrete output matrix of the motor.
[0134] In one embodiment, if Figure 5As shown, before step S102, steps S401-S402 are also included:
[0135] S401, calculating the current motor flux vector according to the motor flux vector calculated last time, the first continuous state matrix, the discrete sampling time, the second continuous state matrix, the AB phase voltage vector and the BC phase voltage vector;
[0136] S402: Update the motor rotor angle based on the rotor motion equation and the current motor flux vector.
[0137] In this application, the continuous equation of the motor can be discretized by the backward Euler method to generate the discrete state matrix and discrete output matrix of the motor:
[0138] Discrete state equation: Phi(k+1)=Ad*Phi(k)+Bd*S(k)
[0139] Discrete output equation: I(k)=Cd*Phi(k)+Dd*S(k)
[0140] Wherein: Phi(k) is the motor flux vector, Phi(k+1) is the motor flux vector of the next iteration, and all elements of Phi(0) are 0; the AB phase-to-phase voltage vector and the BC phase-to-phase voltage vector are calculated based on the equivalent circuit model of the motor, wherein S(k) is the AB phase-to-phase and BC phase-to-phase voltage vector, and all elements of S(0) are 0; Bd=Ad*B, and Bd is also the discrete state matrix of the motor.
[0141] It should be noted that the motor rotor angle θ needs to be updated in each iterative calculation. The specific updating method is to substitute the motor flux vector obtained in the previous calculation into the rotor motion equation to calculate the motor rotor angle θ of this iteration, and then update the discrete output matrix of the motor in this iterative calculation through the motor rotor angle of this iteration.
[0142] Similarly, the motor flux vector of this time can be calculated, and in the next iterative calculation, the motor rotor angle θ of the next iteration is updated by the motor flux vector of this time.
[0143] In one embodiment, if Figure 4 As shown, step S103 includes the following steps S301 to S303.
[0144] S301. Obtain electrical parameters of the electrical circuit based on the electrical circuit of the power model.
[0145] The electrical parameters of the electrical circuit include the total number of nodes, the total number of branches, the total number of power modules, the total number of loops, the total number of inductors, and the total number of capacitors. In this application, the total number of nodes can be set as N n, total number of branches N b , the total number of power modules is N s , the total number of loops is N p , the total inductance L is N l The total number of capacitors is N c , the total number of measurement output modules is N o ;
[0146] S302: Generate a continuous state equation and a continuous output equation of the power model based on Kirchhoff's law and the electrical parameters of the electrical circuit.
[0147] Extracting N based on Kirchhoff's law n-1 Kirchhoff's current equation and N p +N c Kirchhoff voltage equations, the total number of equations is N e , N e =N n-1 +N p +N c-1 ;
[0148] Generate the continuous state equation: x'(t) = Am*x(t) + Bm*u(t);
[0149] Generate continuous output equation: y(t)=Cm*x(t)+Dm*u(t);
[0150] Among them, x(t) is the continuous state variable of the system, x'(t) is the derivative of the continuous state variable of the system, and the array length is N l +N c ; u(t) is the power input variable; Am and Bm are continuous state matrices, and the dimension of Am matrix is N e ×N e , the Bm matrix dimension is N e ×N s ; Cm, Dm are continuous output matrices, the dimension of Cm matrix is N o ×N e , the dimension of Dm matrix is N o ×N s .
[0151] S303 . Discretize the continuous state space based on the backward Euler method to obtain a discrete state equation and a discrete output equation of the power model.
[0152] Discrete state equation: X(k+1)=As*X(k)+Bs*U(k)
[0153] Discrete output equation: Y(k+1)=Cs*X(k)+Ds*U(k),
[0154] Among them, X(k) is the discrete state variable of the system, and X(k+1) is the discrete state variable of the next iteration system. The calculation method is as follows:
[0155] X(k)=(I-Ts*Am)*x(t)-Bm*Ts*u(t), I is the unit matrix, Ts is the discrete sampling time; U(k) is the power input variable, U(k)=u(t); As and Bs are discrete state matrices, calculated as follows: As=1 / (I-Am*Ts), Bs=As*Ts*Bm; Cs and Ds are discrete output matrices, calculated as follows: Cs=Cm*As, Ds=Cm*Bs+Dm.
[0156] In one embodiment, step S104 corrects the discrete output matrix and the discrete state matrix of the power model based on the discrete output matrix of the motor, including:
[0157] Calculate the temporary matrix D temp , D temp_inv :
[0158] D temp =D s_temp *D
[0159] D temp_inv =D temp / (Im-D temp )
[0160] D s_tempw The matrix generated by extracting the 0th to No. rows and the 2nd to Nith columns of the discrete output matrix Dd of the motor has a matrix dimension of No*Ni-2, where o represents the total number of rows of Dd, and i represents the total number of columns of Dd; Im is a 2nd-order unit matrix;
[0161] The correction equations for correcting the discrete output matrix and discrete state matrix of the power model are:
[0162] Cs 修正 =Cs+Dtemp_inv*Cs
[0163] Ds 修正 =Ds+Dtemp_inv*Ds
[0164] As 修正 =As+Bs*Dd*Cs 修正
[0165] Bs 修正 =Bs+Bs*Dd*Ds 修正 .
[0166] In one embodiment, based on the modified discrete output matrix and state matrix of the power model, the discrete state equation and discrete output equation of the power model are constructed, specifically:
[0167] Modified discrete state equation: X(k+1)=As 修正 *X(k)+Bs 修正 *U(k)
[0168] Corrected discrete output equation: Y(k+1)=Cs 修正 *X(k)+Ds 修正 *U(k).
[0169] In each iterative calculation process, the present application needs to first substitute the motor flux vector obtained in the last calculation into the rotor motion equation to calculate the motor rotor angle θ of this iteration; then update the motor's discrete output matrix Dd according to the motor rotor angle θ; calculate the discrete state equation and discrete output equation of the power model through the electrical circuit of the power model simulated by the generator motor; and correct the discrete state equation and discrete output equation of the power model based on the updated discrete output matrix Dd of the motor to obtain the discrete state equation and discrete output equation of the power model. The embodiment of the present application models the generator motor by constructing an equivalent circuit model of the motor, rather than only constructing an equivalent circuit model of the power model system, and corrects the discrete output matrix and discrete state matrix of the power model based on the discrete output matrix of the motor; so that the discrete state equation and discrete output equation of the power model obtained by constructing the discrete output matrix and state matrix of the corrected power model have better robust performance.
[0170] Figure 6 This is a schematic diagram of the structure of a modeling device for a power station generator motor provided by the third embodiment of the present invention. Figure 6 As shown, the device comprises:
[0171] Initialization unit 501, used to obtain motor parameters and construct an equivalent circuit model of the motor;
[0172] A calculation unit 502, configured to calculate a discrete output matrix of the motor based on the motor parameters;
[0173] A solving unit 503, used for solving a discrete state equation and a discrete output equation of the power model based on an electrical circuit of the power model;
[0174] A correction unit 504, configured to correct the discrete output matrix and the discrete state matrix of the power model based on the discrete output matrix of the motor;
[0175] The construction unit 505 is used to construct a discrete state equation and a discrete output equation of the power model based on the modified discrete output matrix and state matrix of the power model.
[0176] The calculation unit 502 is specifically used to calculate the first continuous state matrix of the motor based on the inductance constant, resistance constant, motor speed, and motor rated power in the motor parameters;
[0177] Calculate a second continuous state matrix of the motor based on the motor rotor angle, motor excitation winding direct resistance, motor direct inductance, motor rated voltage, motor rated current, and motor rated frequency among the motor parameters;
[0178] Calculate the continuous output matrix of the motor based on the inductance constant and the rated current of the motor in the motor parameters;
[0179] A discrete output matrix of the motor is calculated based on the second continuous state matrix, the continuous output matrix, the first continuous state matrix and the discrete sampling time in the motor parameters.
[0180] The solving unit 503 is specifically used to obtain electrical parameters of the electrical circuit based on the electrical circuit of the power model;
[0181] Generate a continuous state equation and a continuous output equation of the power model based on Kirchhoff's law and electrical parameters of the electrical circuit;
[0182] The continuous state space is discretized based on the backward Euler method to obtain the discrete state equation and the discrete output equation of the power model.
[0183] It also includes an updating unit 506, which is used to calculate the current motor flux vector according to the motor flux vector calculated last time, the first continuous state matrix, the discrete sampling time, the second continuous state matrix, the AB phase voltage vector and the BC phase voltage vector; the AB phase voltage vector and the BC phase voltage vector are calculated based on the equivalent circuit model of the motor;
[0184] Update the motor rotor angle based on the rotor motion equations and the current motor flux vector.
[0185] This embodiment models the generator motor by constructing an equivalent circuit model of the motor instead of just constructing an equivalent circuit model of the power model system, calculates the discrete output matrix of the motor and the discrete state equation and discrete output equation of the power model, and corrects the discrete output matrix and discrete state matrix of the power model based on the discrete output matrix of the motor; the discrete state equation and discrete output equation of the power model constructed by the corrected discrete output matrix and state matrix of the power model have better robust performance.
[0186] The modeling device for power station generator motor provided in the embodiment of the present invention can execute the modeling method for power station generator motor provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0187] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0188] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A modeling method for a power station generator motor, characterized in that: include: Obtain motor parameters and construct an equivalent circuit model of the motor; Calculate a discrete output matrix of the motor based on the motor parameters; Solving the discrete state equation and discrete output equation of the power model based on the electrical circuit of the power model; Modifying the discrete output matrix and the discrete state matrix of the power model based on the discrete output matrix of the motor; Based on the modified discrete output matrix and state matrix of the power model, a discrete state equation and a discrete output equation of the power model are constructed.
2. The modeling method of a power station generator motor according to claim 1, characterized in that: The step of calculating a discrete output matrix of the motor based on the motor parameters comprises: Calculate a first continuous state matrix of the motor based on the inductance constant, resistance constant, motor speed, and motor rated power in the motor parameters; Calculate a second continuous state matrix of the motor based on the motor rotor angle, motor excitation winding direct resistance, motor direct inductance, motor rated voltage, motor rated current, and motor rated frequency among the motor parameters; Calculate the continuous output matrix of the motor based on the inductance constant and the rated current of the motor in the motor parameters; A discrete output matrix of the motor is calculated based on the second continuous state matrix, the continuous output matrix, the first continuous state matrix and the discrete sampling time in the motor parameters.
3. The modeling method of a power station generator motor according to claim 2, characterized in that: The calculating a first continuous state matrix of the motor comprises: The first continuous state equation is: A=wt*(-W-Rinv) Where, wt = 2*pi*Fn; Fn is the rated frequency of the motor; W is the motor speed matrix, W(0,1) = wr, W(1,0) = -wr, other parameters in the matrix are 0, wr is the motor speed; Rinv = 1 / Rm, Rm is the resistance constant matrix; The second continuous state matrix of the motor is calculated based on the motor rotor angle, the motor excitation winding direct resistance, the motor direct inductance, the motor rated voltage, the motor rated current, and the motor rated frequency in the motor parameters, including: The second continuous state matrix is: B=Vm*wt In the formula, Vm is a 5×3 matrix, and the calculation formulas for the parameters in the matrix are as follows: Vm(0,0)=cos(θ)*0.544 / Vn, Vm(0,1)=(0.272*cos(θ)+0.471*sin(θ)) / Vn Vm(1,0)=sin(θ)*0.544 / Vn, Vm(1,1)=(0.272*sin(θ)-0.471*cos(θ)) / Vn Vm(2,2)=Rm In the Vm matrix, all parameters except the above parameters are 0; θ is the motor rotor angle, and Vn is the motor rated voltage; The method of calculating the continuous output matrix of the motor based on the inductance constant and the rated current of the motor in the motor parameters includes: The continuous output matrix of the motor is: C=-Im*Linv_temp Where Linv is the inverse matrix of the inductance constant matrix Lm, Linv = 1 / Lm; Linv_temp is the first two rows of the extracted matrix Linv, forming a 2×5 matrix; Im is a 2×2 matrix, and the parameters in the matrix are as follows: Im(0,0)=cos(θ)*1.414*In, Im(0,1)=(0.707*cos(θ)+1.224*sin(θ))*In Im(1,0)=sin(θ)*1.414*In, Im(1,1)=(0.707*sin(θ)-1.224*cos(θ))*In In is the rated current of the motor; The step of calculating the discrete output matrix of the motor based on the second continuous state matrix, the continuous output matrix, the first continuous state matrix and the discrete sampling time in the motor parameters comprises: The discrete output matrix Dd is: Dd=Cd*B Cd=C*Ad*Ts Ad=1 / (IA*Ts) Where Ts is the discrete sampling time; I is the unit matrix; Ad is the discrete state matrix of the motor; and Cd is another discrete output matrix of the motor.
4. The modeling method of a power station generator motor according to claim 1, characterized in that: The electrical circuit based on the power model solves the discrete state equation and the discrete output equation of the power model, including: Obtaining electrical parameters of the electrical circuit based on the electrical circuit of the power model; Generate a continuous state equation and a continuous output equation of the power model based on Kirchhoff's law and electrical parameters of the electrical circuit; The continuous state space is discretized based on the backward Euler method to obtain the discrete state equation and the discrete output equation of the power model.
5. The modeling method of a power station generator motor according to claim 4, characterized in that: The electrical parameters of the electrical circuit include the total number of nodes N n , total number of branches N b , the total number of power modules is N s , the total number of loops is N p , the total inductance L is N l The total number of capacitors is N c , the total number of measurement output modules is N o ; The method of generating the continuous state equation and the continuous output equation of the power model based on Kirchhoff's law and the electrical parameters of the electrical circuit includes: Extracting N based on Kirchhoff's law n-1 Kirchhoff's current equation and N p +N c Kirchhoff voltage equations, the total number of equations is N e , N e =N n-1 +N p +N c-1 ; Generate the continuous state equation: x'(t) = Am*x(t) + Bm*u(t); Generate continuous output equation: y(t)=Cm*x(t)+Dm*u(t); Among them, x(t) is the continuous state variable of the system, x'(t) is the derivative of the continuous state variable of the system, and the array length is N l +N c ; u(t) is the power input variable; Am and Bm are continuous state matrices, and the dimension of Am matrix is N e ×N e , the Bm matrix dimension is N e ×N s ; Cm, Dm are continuous output matrices, the dimension of Cm matrix is N o ×N e , the dimension of Dm matrix is N o ×N s ; The continuous state space is discretized based on the backward Euler method to obtain the discrete state equation and discrete output equation of the power model, including: Discrete state equation: X(k+1)=As*X(k)+Bs*U(k) Discrete output equation: Y(k+1)=Cs*X(k)+Ds*U(k), Among them, X(k) is the discrete state variable of the system, and X(k+1) is the discrete state variable of the next iteration system. The calculation method is as follows: X(k)=(I-Ts*Am)*x(t)-Bm*Ts*u(t), I is the unit matrix, Ts is the discrete sampling time; U(k) is the power input variable, U(k)=u(t); As and Bs are discrete state matrices, calculated as follows: As=1 / (I-Am*Ts), Bs=As*Ts*Bm; Cs and Ds are discrete output matrices, calculated as follows: Cs=Cm*As, Ds=Cm*Bs+Dm.
6. The modeling method of a power station generator motor according to claim 5, characterized in that: The method of correcting the discrete output matrix and the discrete state matrix of the electric power model based on the discrete output matrix of the motor includes: Calculate the temporary matrix D temp , D temp_inv : D temp =D s_temp *Dd D temp_inv =D temp / (Im-D temp ) D s_tempw The matrix generated by extracting the 0th to No. rows and the 2nd to Nith columns of the discrete output matrix Dd of the motor has a matrix dimension of No*Ni-2, where o represents the total number of rows of Dd, and i represents the total number of columns of Dd; Im is a 2nd-order unit matrix; The correction equations for correcting the discrete output matrix and discrete state matrix of the power model are: Cs 修正 =Cs+Dtemp_inv*Cs Ds 修正 =Ds+Dtemp_inv*Ds As 修正 =As+Bs*Dd*Cs 修正 Bs 修正 =Bs+Bs*Dd*Ds 修正 。 7. The modeling method of a power station generator motor according to claim 6, characterized in that: The discrete state equation and discrete output equation of the power model are constructed based on the discrete output matrix and state matrix of the modified power model, including: Modified discrete state equation: X(k+1)=As 修正 *X(k)+Bs 修正 *U(k) Corrected discrete output equation: Y(k+1)=Cs 修正 *X(k)+Ds 修正 *U(k).
8. The modeling method of a power station generator motor according to claim 3, characterized in that: Before calculating the discrete output matrix of the motor based on the motor parameters, the method further includes: Calculating the current motor flux vector according to the motor flux vector calculated last time, the first continuous state matrix, the discrete sampling time, the second continuous state matrix, the AB phase voltage vector and the BC phase voltage vector; the AB phase voltage vector and the BC phase voltage vector are calculated based on the equivalent circuit model of the motor; Update the motor rotor angle based on the rotor motion equations and the current motor flux vector.
9. The modeling method of a power station generator motor according to claim 1, characterized in that: The equivalent circuit model of the motor is constructed, including: an equivalent controllable current source Ia on phase A, and an equivalent controllable current source Ib on phase B; The first end of the equivalent controllable current source Ia is electrically connected to the A phase, the first end of the equivalent resistance Rca of the motor between the A phase and the C phase, and the first end of the equivalent resistance Rab of the motor between the A phase and the B phase; The first end of the equivalent controllable current source Ib is electrically connected to the B phase, the second end of the equivalent resistance Rab between the A phase and the B phase of the motor, and the first end of the equivalent resistance Rbc between the B phase and the C phase of the motor; The second end of the equivalent controllable current source Ia is electrically connected to phase C, the second end of the equivalent controllable current source Ib, the second end of the equivalent resistance Rca between phase A and phase C of the motor, and the second end of the equivalent resistance Rbc between phase B and phase C of the motor.
10. A modeling device for a power station generator motor, characterized in that: include: An initialization unit, used to obtain motor parameters and construct an equivalent circuit model of the motor; A calculation unit, used for calculating a discrete output matrix of the motor based on the motor parameters; A solving unit, used for solving a discrete state equation and a discrete output equation of the power model based on an electrical circuit of the power model; A correction unit, used for correcting the discrete output matrix and the discrete state matrix of the power model based on the discrete output matrix of the motor; The construction unit is used to construct a discrete state equation and a discrete output equation of the power model based on the discrete output matrix and state matrix of the modified power model.
