Disclosure of Invention
The embodiment of the invention provides a motor equivalent circuit modeling method, a device/terminal device and a computer readable storage medium, which can effectively solve the problem that the prior art can not accurately obtain the motor impedance parameter directly and improve the modeling accuracy of a motor equivalent circuit model.
An embodiment of the present invention provides a motor equivalent circuit modeling method, including:
testing impedance characteristic curves of three-phase common-mode impedance and three-phase differential-mode impedance of the motor to obtain three-phase common-mode impedance parameters of the motor and three-phase differential-mode impedance parameters of the motor;
decoupling the three-phase common-mode impedance parameters of the motor and the three-phase differential-mode impedance parameters of the motor to obtain single-phase common-mode impedance parameters of the motor and single-phase differential-mode impedance parameters of the motor;
generating a motor single-phase common-mode equivalent circuit model and a motor single-phase differential-mode equivalent circuit model according to the motor single-phase common-mode impedance parameters and the motor single-phase differential-mode impedance parameters;
and generating a motor equivalent circuit model according to the motor single-phase common mode equivalent circuit model and the motor single-phase differential mode equivalent circuit model in combination with a motor actual structure model.
Further, decoupling the three-phase common-mode impedance parameter of the motor and the three-phase differential-mode impedance parameter of the motor to obtain a single-phase common-mode impedance parameter of the motor and a single-phase differential-mode impedance parameter of the motor, including:
generating a single-phase common-mode impedance parameter and a single-phase differential-mode impedance parameter of the motor by the following formulas:
wherein, Z cM3 Representing the three-phase common-mode impedance parameter, Z, of the motor DM3 Representing the three-phase differential mode impedance parameter, Z, of the motor cm Representing a single-phase common-mode impedance parameter, Z, of the motor dm Representing the single-phase differential mode impedance parameter of the motor.
Further, a motor single-phase common-mode equivalent circuit model and a motor single-phase differential-mode equivalent circuit model are built according to the motor single-phase common-mode impedance parameters and the motor single-phase differential-mode impedance parameters, and the method comprises the following steps:
fitting the single-phase common-mode impedance parameters of the motor according to a vector fitting method to generate a single-phase common-mode network function of the motor;
fitting the motor single-phase differential mode impedance parameters according to a vector fitting method to generate a motor single-phase differential mode network function;
generating a motor single-phase common mode equivalent circuit model according to the motor single-phase common mode network function;
and generating a motor single-phase differential mode equivalent circuit model according to the motor single-phase differential mode network function.
Further, fitting the motor single-phase common-mode impedance parameter according to a vector fitting method to generate a motor single-phase common-mode network function, including:
fitting the motor single-phase common-mode impedance parameters for a plurality of times according to a vector fitting method to generate poles, residue numbers, constant terms and first-order terms of a plurality of motor single-phase common-mode network functions;
and generating the single-phase common mode network function of each motor according to the pole, the residue, the constant term and the first term of the single-phase common mode network function of each motor.
Further, fitting the motor single-phase difference mode impedance parameter according to a vector fitting method to generate a motor single-phase difference mode network function, including:
fitting the motor single-phase differential analog impedance parameters for a plurality of times according to a vector fitting method to generate poles, residue numbers, constant terms and first-order terms of a plurality of motor single-phase differential analog network functions;
and generating each motor single-phase differential mode network function according to the pole, the residue, the constant term and the first order term of each motor single-phase differential mode network function.
Further, generating a motor single-phase common-mode equivalent circuit model according to the motor single-phase common-mode network function includes:
generating an equivalent circuit of each motor single-phase common mode network function according to the pole, the residue, the constant term and the first term of each motor single-phase common mode network function;
connecting equivalent circuits of the single-phase common-mode network functions of each motor in series to obtain a single-phase common-mode equivalent circuit model of the motor;
the equivalent circuit of the motor single-phase common mode network function is generated according to the pole, the reserved number, the constant term and the first order term of the motor single-phase common mode network function, and comprises the following steps:
if the values of the pole and the reserved number in the motor single-phase common mode network function are zero and the values of the constant terms and the first order term coefficients in the motor single-phase common mode network function are not zero, generating a first equivalent circuit according to all constant terms and first order term coefficients with the values not being zero in the motor single-phase common mode network function;
if the numerical values of the poles and the residuals in the motor single-phase common-mode network function are real numbers and the numerical values of the constant terms and the first-order term coefficients in the motor single-phase common-mode network function are zero, generating a second equivalent circuit according to all the poles and the residuals of which the numerical values are real numbers in the motor single-phase common-mode network function;
and if the values of the poles and the reserved numbers in the motor single-phase common-mode network function are complex conjugates and the values of the constant term and the first-order term coefficient in the motor single-phase common-mode network function are zero, generating a third equivalent circuit according to all the poles and the reserved numbers which have the values of the complex conjugates in the motor single-phase common-mode network function.
Further, generating a motor single-phase differential mode equivalent circuit model according to the motor single-phase differential mode network function includes:
generating an equivalent circuit of each motor single-phase differential mode network function according to the pole, the residue, the constant term and the first-order term of each motor single-phase differential mode network function;
connecting equivalent circuits of the single-phase differential mode network functions of each motor in series to obtain a single-phase differential mode equivalent circuit model of the motor;
the equivalent circuit of the motor single-phase differential mode network function is generated according to the pole, the residue, the constant term and the first order term of the motor single-phase differential mode network function, and comprises the following steps: if the values of the poles and the reserved numbers in the motor single-phase differential mode network function are zero and the values of the constant terms and the first-order term coefficients in the motor single-phase differential mode network function are not zero, generating a fourth equivalent circuit according to all the constant terms and the first-order term coefficients with the values not being zero in the motor single-phase differential mode network function;
if the numerical values of the poles and the residue numbers in the motor single-phase difference mode network function are real numbers and the numerical values of the constant term and the first-order term coefficient in the motor single-phase difference mode network function are zero, generating a fifth equivalent circuit according to all the poles and the residue numbers, of which the numerical values are real numbers, in the motor single-phase difference mode network function;
and if the values of the poles and the reserved numbers in the motor single-phase difference mode network function are conjugate complex numbers and the values of the constant terms and the first-order term coefficients in the motor single-phase difference mode network function are zero, generating a sixth equivalent circuit according to all the poles and the reserved numbers which have the values of the conjugate complex numbers in the motor single-phase difference mode network function.
On the basis of the above method item embodiments, the present invention correspondingly provides apparatus item embodiments;
the embodiment of the invention provides a motor equivalent circuit modeling device which comprises a motor testing module, a parameter decoupling module and a circuit building module, wherein the motor testing module is used for testing the equivalent circuit of a motor;
the motor test module is used for testing amplitude-frequency characteristic curves of three-phase common-mode impedance and three-phase differential-mode impedance of the motor to obtain three-phase common-mode impedance parameters and three-phase differential-mode impedance parameters of the motor;
the parameter decoupling module is used for decoupling the three-phase common-mode impedance parameters of the motor and the three-phase differential-mode impedance parameters of the motor to obtain single-phase common-mode impedance parameters of the motor and single-phase differential-mode impedance parameters of the motor;
the circuit building module is used for building a motor single-phase common-mode equivalent circuit model and a motor single-phase differential-mode equivalent circuit model according to the motor single-phase common-mode impedance parameters and the motor single-phase differential-mode impedance parameters; and generating a motor equivalent circuit model according to the motor single-phase common mode equivalent circuit model and the motor single-phase differential mode equivalent circuit model in combination with a motor actual structure model.
Another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the processor implements the motor equivalent circuit modeling method according to the above embodiment of the present invention.
Another embodiment of the present invention provides a storage medium, where the storage medium includes a stored computer program, and when the computer program runs, the storage medium is controlled to execute an apparatus where the storage medium is located to execute the motor equivalent circuit modeling method according to the embodiment of the present invention.
The invention has the following beneficial effects:
the invention provides a motor equivalent circuit modeling method, a device, terminal equipment and a storage medium, wherein the motor equivalent circuit modeling method obtains a motor three-phase common-mode impedance parameter and a motor three-phase differential-mode impedance parameter by testing impedance characteristic curves of motor three-phase common-mode impedance and motor three-phase differential-mode impedance, then decouples the motor three-phase common-mode impedance parameter and the motor three-phase differential-mode impedance parameter to obtain a motor single-phase common-mode impedance parameter and a motor single-phase differential-mode impedance parameter, and builds a motor single-phase common-mode equivalent circuit model and a motor single-phase differential-mode equivalent circuit model according to the motor single-phase common-mode impedance parameter and the motor single-phase differential-mode impedance parameter; generating a motor equivalent circuit model according to the motor single-phase common mode equivalent circuit model and the motor single-phase differential mode equivalent circuit model in combination with a motor actual structure model; according to the method, the motor single-phase common-mode impedance parameter and the motor single-phase differential-mode impedance parameter are obtained by decoupling the motor three-phase common-mode impedance parameter and the motor three-phase differential-mode impedance parameter, the problem that the built motor equivalent circuit model is inaccurate due to the fact that the motor impedance parameter is directly obtained in the prior art is solved, and modeling accuracy of the motor equivalent circuit model is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a method for modeling an equivalent circuit of a motor according to an embodiment of the present invention includes:
step S1: testing impedance characteristic curves of three-phase common-mode impedance and three-phase differential-mode impedance of the motor to obtain three-phase common-mode impedance parameters of the motor and three-phase differential-mode impedance parameters of the motor;
step S2: decoupling the three-phase common-mode impedance parameters of the motor and the three-phase differential-mode impedance parameters of the motor to obtain single-phase common-mode impedance parameters of the motor and single-phase differential-mode impedance parameters of the motor;
and step S3: generating a motor single-phase common-mode equivalent circuit model and a motor single-phase differential-mode equivalent circuit model according to the motor single-phase common-mode impedance parameters and the motor single-phase differential-mode impedance parameters;
and step S4: and generating a motor equivalent circuit model according to the motor single-phase common mode equivalent circuit model and the motor single-phase differential mode equivalent circuit model in combination with a motor actual structure model.
And S1, testing impedance characteristic curves of three-phase common mode impedance and three-phase differential mode impedance of the permanent magnet synchronous motor according to a common mode differential mode measurement method to obtain three-phase common mode impedance parameters and three-phase differential mode impedance parameters of the motor.
For step S2, the following equation can be derived from the motor structure model shown in fig. 2:
the following formula can be derived from the above formula:
and decoupling the three-phase common-mode impedance parameters of the motor and the three-phase differential-mode impedance parameters of the motor obtained by the step S1 according to the formula to obtain single-phase common-mode impedance parameters of the motor and single-phase differential-mode impedance parameters of the motor.
And S3, generating the following formula according to the motor single-phase common-mode impedance parameter obtained in the step S2:
wherein, f(s)
1 ) Representing the single-phase common-mode impedance parameter of the motor, s1 representing the frequency point of the test,
the number of the remaining numbers is represented,
represents the pole, e
1 Representing the coefficient of a first order term, d
1 Represents a constant term, n
1 Representing the current fitting order, N
1 Representing the total order of fitting, wherein the total order of fitting is not less than twice of the number of peak points;
after an initial pole, a fitting order and a frequency range are set by adopting a vector fitting method, the pole is obtained through iterative calculation
Residue number
Coefficient of first order term e
1 And a constant term d
1 (ii) a Wherein for a smooth function the initial pole should be chosen to be realCounting; for a function containing resonance points, the initial poles comprise conjugate complex number pairs, the imaginary part of the complex number poles is not less than one hundred times of the real part, and the number of the initial poles is not less than twice of the number of peak points of the fitted function;
comparing the result obtained by fitting with the standard result, wherein the result and the standard result are basically consistent;
fitting the motor single-phase common-mode impedance parameters for a plurality of times according to a vector fitting method to generate poles, residue numbers, constant terms and first-order terms of a plurality of motor single-phase common-mode network functions;
generating a single-phase common-mode network function of each motor according to the pole, the residue, the constant term and the first term of the single-phase common-mode network function of each motor;
generating an equivalent circuit of each motor single-phase common mode network function according to the pole, the residue, the constant term and the first term of each motor single-phase common mode network function;
connecting equivalent circuits of the single-phase common-mode network functions of each motor in series to obtain a single-phase common-mode equivalent circuit model of the motor;
the equivalent circuit of the motor single-phase common mode network function is generated according to the pole, the reserved number, the constant term and the first order term of the motor single-phase common mode network function, and comprises the following steps:
(1) If the values of the pole and the reserved number in the motor single-phase common mode network function are zero and the values of the constant terms and the first order term coefficients in the motor single-phase common mode network function are not zero, generating a function of a first equivalent circuit according to all constant terms and first order term coefficients with the values not being zero in the motor single-phase common mode network function as follows:
f(s 1 )=d 1 +e 1 s 1
the first equivalent circuit diagram corresponding to the first equivalent circuit function is shown in fig. 3, wherein the value of the parameter R in fig. 3 corresponds to d in the equivalent circuit function of the constant term and the first order term in the single-phase common mode network function of the motor 1 The parameter L in FIG. 3 corresponds to e in the equivalent circuit function of the constant term and the first order term in the single-phase common mode network function of the motor 1 。
(2) If the numerical values of the poles and the residuals in the single-phase common-mode network function of the motor are real numbers and the numerical values of the constant terms and the first order terms in the single-phase common-mode network function of the motor are zero, generating a function of a second equivalent circuit according to all the poles and the residuals of which the numerical values are real numbers in the single-phase common-mode network function of the motor as follows:
the second equivalent circuit diagram corresponding to the second equivalent circuit function is shown in fig. 4, and at this time, the RC is a parallel circuit, and the impedance of the corresponding RC parallel circuit under the current circuit can be obtained as follows:
further solving to obtain the corresponding RC parameter under the current circuit as
(3) If the values of the poles and the residuals in the motor single-phase common-mode network function are complex conjugates and the values of the constant term and the first-order term coefficient in the motor single-phase common-mode network function are zero, generating a function of a third equivalent circuit according to all the poles and the residuals of the motor single-phase common-mode network function with the values of the complex conjugates as follows:
a third equivalent circuit diagram corresponding to the third equivalent circuit function is shown in fig. 5, wherein,
and
is a set of pairs of conjugate complex numbers of the residue,
and
a set of conjugate complex pairs of poles; from this equivalent circuit function and fig. 5, the corresponding RCL parameter values in fig. 5 can be derived as follows:
wherein the content of the first and second substances,
further, the following formula is generated according to the motor single-phase differential mode impedance parameter obtained in the step S2:
wherein, f(s)
2 ) Representing a single-phase differential-mode impedance parameter, s, of the motor
2 The frequency points of the test are represented by,
the number of the remaining numbers is represented,
represents the pole, e
1 Representing the coefficient of a first order term, d
2 Denotes a constant term, n
2 Representing the current fitting order, N
2 Representing the total order of fitting, wherein the total order of fitting is not less than twice of the number of peak points;
after an initial pole, a fitting order and a frequency range are set by adopting a vector fitting method, the pole is obtained through iterative calculation
Residue number
Coefficient of first order term e
2 And a constant term d
2 ;
Comparing the result obtained by fitting with the standard result, wherein the result and the standard result are basically consistent;
fitting the motor single-phase differential analog impedance parameters for a plurality of times according to a vector fitting method to generate poles, residue numbers, constant terms and first-order terms of a plurality of motor single-phase differential analog network functions;
generating a single-phase differential mode network function of each motor according to the pole, the residue, the constant term and the first term of the single-phase differential mode network function of each motor;
generating an equivalent circuit of each motor single-phase differential mode network function according to the pole, the residue, the constant term and the first-order term of each motor single-phase differential mode network function;
connecting equivalent circuits of the single-phase differential mode network functions of each motor in series to obtain a single-phase differential mode equivalent circuit model of the motor;
the equivalent circuit of the motor single-phase differential mode network function is generated according to the pole, the residue, the constant term and the first order term of the motor single-phase differential mode network function, and comprises the following steps:
(1) If the values of the poles and the reserved numbers in the motor single-phase differential mode network function are zero and the values of the constant terms and the first-order term coefficients in the motor single-phase differential mode network function are not zero, generating the function of a fourth equivalent circuit according to all the constant terms and the first-order term coefficients with the values not being zero in the motor single-phase differential mode network function as follows:
f(s 2 )=d 2 +e 2 s 2
the fourth equivalent circuit diagram corresponding to the fourth equivalent circuit function is shown in fig. 3, wherein the value of the parameter R in fig. 3 corresponds to d in the equivalent circuit function of the constant term and the first order term in the single-phase common mode network function of the motor 2 The parameter L in FIG. 3 corresponds to e in the equivalent circuit function of the constant term and the first order term in the single-phase common mode network function of the motor 2 。
(2) If the values of the poles and the residue in the single-phase difference mode network function of the motor are real numbers and the values of the constant term and the first order term coefficient in the single-phase difference mode network function of the motor are zero, generating a function of a fifth equivalent circuit according to all the poles and the residue, the values of which are real numbers, in the single-phase difference mode network function of the motor as follows:
a fifth equivalent circuit diagram corresponding to the fifth equivalent circuit function is shown in fig. 4, where the RC is a parallel circuit, and the impedance of the corresponding RC parallel circuit under the current circuit is obtained as follows:
further solving to obtain the corresponding RC parameters under the current circuit as follows:
(3) If the values of the poles and the residuals in the motor single-phase difference mode network function are conjugate complex numbers and the values of the constant term and the first order term coefficient in the motor single-phase difference mode network function are zero, generating a sixth equivalent circuit function according to all the poles and the residuals of which the values in the motor single-phase difference mode network function are conjugate complex numbers as follows:
a sixth equivalent circuit diagram corresponding to the sixth equivalent circuit function is shown in fig. 5, wherein,
and
is a set of pairs of conjugate complex numbers of the residue,
and
a set of conjugate complex pairs of poles; from this equivalent circuit function and fig. 5, the corresponding RCL parameter values in fig. 5 can be derived as follows:
wherein the content of the first and second substances,
and S4, generating a final motor equivalent circuit model by combining the motor actual structure model according to each motor single-phase common mode equivalent circuit model and each motor single-phase differential mode equivalent circuit model obtained in the step S3.
On the basis of the above embodiment of the method item, the present invention correspondingly provides an embodiment of an apparatus item.
As shown in fig. 6, an embodiment of the present invention provides a motor equivalent circuit modeling apparatus, including: the device comprises a motor test module, a parameter decoupling module and a circuit building module;
the motor test module is used for testing impedance characteristic curves of three-phase common-mode impedance and three-phase differential-mode impedance of the motor to obtain three-phase common-mode impedance parameters and three-phase differential-mode impedance parameters of the motor;
the parameter decoupling module is used for decoupling the three-phase common-mode impedance parameters of the motor and the three-phase differential-mode impedance parameters of the motor to obtain single-phase common-mode impedance parameters of the motor and single-phase differential-mode impedance parameters of the motor;
the circuit building module is used for building a motor single-phase common-mode equivalent circuit model and a motor single-phase differential-mode equivalent circuit model according to the motor single-phase common-mode impedance parameters and the motor single-phase differential-mode impedance parameters; and generating a motor equivalent circuit model according to the motor single-phase common mode equivalent circuit model and the motor single-phase differential mode equivalent circuit model in combination with a motor actual structure model.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection therebetween, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement without inventive effort.
It can be clearly understood by those skilled in the art that, for convenience and brevity, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
On the basis of the embodiment of the method item, the invention correspondingly provides an embodiment of the terminal equipment item.
An embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the processor implements a motor equivalent circuit modeling method according to any one of the present invention. The terminal device may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor, a memory.
The terminal device may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing device. The terminal device may include, but is not limited to, a processor, a memory.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is the control center of the terminal device and connects the various parts of the whole terminal device using various interfaces and lines.
The memory may be used to store the computer program, and the processor may implement various functions of the terminal device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
On the basis of the above method item embodiments, the invention correspondingly provides storage medium item embodiments.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored computer program, and when the computer program runs, a device in which the storage medium is located is controlled to execute a motor equivalent circuit modeling method according to any one of the present invention.
The storage medium is a computer-readable storage medium, in which the computer program is stored, which computer program, when being executed by a processor, is adapted to carry out the steps of the above-mentioned respective method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.