Permanent magnet motor topology optimization method and device

By constructing an explicit geometrically expressed basis structure and combining transmission transformation, polynomial transformation and Boolean operation, the problem of poor manufacturability of the topological optimization results of permanent magnet motors is solved, the integrity of the rotor structure and the stability of the permanent magnet are achieved, and the motor is improved reliability and manufacturing.

CN118468487BActive Publication Date: 2024-11-05ZHEJIANG UNIV CITY COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410910667.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-05
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The results obtained by the existing permanent magnet motor topology optimization method are poor in manufacturability, and there are problems such as zigzag boundaries, checkerboard phenomena and rotor core segmentation, which is difficult to meet the needs of industrial applications.

Method used

Using preset optimization algorithm, the permanent magnet and air-based structure with explicit geometric expression is optimized to ensure the rotor structure by constructing permanent magnet and air-based structures with explicit geometric expression, combining transmission transformation, polynomial transformation and Boolean operation. Integrity and permanent magnet stability, topological optimization using gene algorithms.

Benefits of technology

It significantly improves the manufacturability of the topological optimization results of permanent magnet motors, avoids serrated boundaries and checkerboard phenomena, ensures the integrity of the rotor core and the mechanical stability of the permanent magnets, and improves the operating reliability of the motor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118468487B_ABST
    Figure CN118468487B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for topological optimization of a permanent magnet motor, and belongs to the technical field of motor design. The method comprises: taking the area where the rotor core of the permanent magnet motor is located as the optimization area, constructing a first number of permanent magnet-based structures with explicit geometric expressions of permanent magnets in the optimization area, and constructing a second number of air-based structures with explicit geometric expressions of air holes; using a preset optimization algorithm, taking the topological transformation parameters of each permanent magnet-based structure and each air-based structure in the topological transformation process as optimization variables, taking the integrity of the rotor structure and the stability of the permanent magnet in the permanent magnet motor as constraints, taking the optimal performance parameters of the permanent magnet motor as the optimization target, combining the topological transformation process of each permanent magnet-based structure and each air-based structure, and topologically optimizing the distribution of permanent magnets and air holes in the area where the rotor core is located. The embodiment of the present invention can improve the manufacturability of the topological optimization results of the permanent magnet motor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor design, and in particular to a method and device for topology optimization of a permanent magnet motor. Background Art

[0002] Among the structural optimization methods of permanent magnet motors, topology optimization uses the material distribution form as the design variable. It can obtain a disruptive geometric structure without prior knowledge. It is the highest level of structural optimization. Topology optimization has been proven to effectively improve the performance of permanent magnet motors. The most widely used topology optimization method is the normalized Gaussian network (NGnet). NGnet uses the material properties of the grid unit as the optimization variable and updates the material properties according to the weighted calculation results of the normalized Gaussian function. However, the manufacturability of the optimization results obtained based on NGnet is poor. For example, there will be problems such as jagged boundaries, checkerboard phenomena, and the rotor core being divided. It is difficult to meet the application needs of industrialization and it is difficult to directly produce permanent magnet motors based on the optimization results. Summary of the invention

[0003] The present invention provides a permanent magnet motor topology optimization method and device to improve the manufacturability of the permanent magnet motor topology optimization result, which is conducive to the industrial application and promotion.

[0004] In a first aspect, an embodiment of the present invention provides a permanent magnet motor topology optimization method, comprising:

[0005] The area where the rotor core of the permanent magnet motor is located is taken as the optimization area, and within the optimization area, a first number of permanent magnet-based structures of permanent magnets with explicit geometric expressions are constructed, and a second number of air-based structures of air holes with explicit geometric expressions are constructed;

[0006] A preset optimization algorithm is adopted, with the topological transformation parameters of each of the permanent magnet-based structures and each of the air-based structures in the topological transformation process as optimization variables, the integrity of the rotor structure and the stability of the permanent magnets in the permanent magnet motor as constraints, and the optimal performance parameters of the permanent magnet motor as the optimization goal. Combined with the topological transformation processes of each of the permanent magnet-based structures and each of the air-based structures, the distribution of permanent magnets and air holes in the rotor of the permanent magnet motor in the area where the rotor core is located is topologically optimized; wherein, the integrity of the rotor structure refers to that the rotor core is a complete core that has not been divided; and the stability of the permanent magnet structure refers to that the edges between any two adjacent vertices in the permanent magnet are not completely exposed to the air holes.

[0007] Optionally, the topological transformation process of each of the permanent magnet-based structures and each of the air-based structures includes:

[0008] Each permanent magnetic base structure is deformed by transmission transformation to obtain a deformed permanent magnetic base structure;

[0009] Deforming each air-based structure through a polynomial transformation to obtain a deformed air-based structure;

[0010] Wherein, the topological transformation parameters include: transmission transformation parameters of each of the permanent magnet-based structures, and polynomial transformation parameters of each of the air-based structures.

[0011] Optionally, after deforming each permanent magnetic base structure by transmission transformation, it further comprises:

[0012] Performing Boolean operations on each deformed permanent magnet base structure to obtain a permanent magnet distribution set;

[0013] After deforming each air-based structure by a polynomial transformation, it also includes:

[0014] Perform Boolean operations on each deformed air-based structure to obtain an air hole distribution set;

[0015] The topological transformation parameters further include: Boolean operation parameters in the process of performing Boolean operation on each deformed permanent magnet-based structure, and Boolean operation parameters in the process of performing Boolean operation on each deformed air-based structure.

[0016] Optionally, after obtaining the permanent magnet distribution set and the air hole distribution set, the method further includes:

[0017] Based on random numbers, the permanent magnet distribution set and the air hole distribution set are superimposed to obtain a new permanent magnet distribution set and a new air hole distribution set;

[0018] Wherein, the topology transformation parameters also include: the random number.

[0019] Optionally, the random number is greater than 0 and less than 1; and superimposing the permanent magnet distribution set and the air hole distribution set based on the random number includes:

[0020] If rand < 0.5, then:

[0021] EC PM_new =(EC PM -EC air )∪(EC PM ∩EC air ), and EC air_new =EC air -E PM ;

[0022] If rand>0.5, then:

[0023] EC PM_new=EC PM -E air , and EC air_new =(EC air -EC PM )∪(EC PM ∩E air );

[0024] Wherein, rand represents the random number, EC PM represents the permanent magnet distribution set, EC air represents the air hole distribution set, EC PM_new represents the new set of permanent magnet distribution, EC air_new Represents a new set of air hole distribution.

[0025] Optionally, the integrity of the rotor structure in the permanent magnet motor is expressed by the following formula:

[0026] poly_residual(X)= poly_bg - EC PM_new (X)- EC air_new (X);

[0027] If the number of connected regions contained in poly_residual(X*) is greater than 1, it means that the permanent magnet and air hole distribution obtained based on X* does not meet the integrity constraint of the rotor structure;

[0028] Wherein, X represents an optimization variable, X* represents a set of determined optimization variable values, poly_residual represents the geometric area remaining after removing the area represented by the new set of permanent magnet distribution and the area represented by the new set of air hole distribution from the optimization area, and poly_bg represents the optimization area.

[0029] Optionally, the permanent magnet stability constraint conditions include:

[0030] If there exists e = (u, v), e EC air_new (X*), it means that the permanent magnet and air hole distribution based on X* does not meet the stability constraint of the permanent magnet; where X* represents a set of determined optimization variable values, (u, v) represents any pair of adjacent vertices of the permanent magnet, and e = (u, v) represents an edge of the permanent magnet.

[0031] Optionally, the preset optimization algorithm is a genetic algorithm;

[0032] Genetic algorithms are used to perform topological optimization on the distribution of permanent magnets and air holes in the rotor core of a permanent magnet motor, including:

[0033] Initializing multiple chromosomes by random method to obtain an initial population; wherein the number of bits of genes in each of the chromosomes is equal to the number of optimization variables;

[0034] Taking the initial population as the current population, performing an iteration step to obtain the next generation population;

[0035] Determine whether the stop condition is met;

[0036] If yes, determining the optimal distribution of permanent magnets and air holes in the region where the rotor core is located according to the chromosomes in the next generation population;

[0037] If not, the next generation population is used as the current population and the iterative step is performed again;

[0038] Wherein, the iterative step comprises:

[0039] For each chromosome in the current population, based on the specific value of each optimization variable in the chromosome, topological transformation is performed on each permanent magnet-based structure and each air-based structure to obtain a rotor structure corresponding to the chromosome;

[0040] For each chromosome in the current population, determine whether the rotor structure corresponding to the chromosome satisfies each constraint condition; if so, retain the chromosome; if not, discard the chromosome;

[0041] For each of the retained chromosomes, calculating the fitness of the chromosome according to a fitness function; wherein the fitness function is determined according to the optimization target;

[0042] According to the fitness of each of the retained chromosomes, based on the roulette wheel selection method, each of the retained chromosomes is selected to obtain a population to be processed;

[0043] Performing gene crossover processing on at least part of the chromosomes in the population to be processed to obtain a crossover population;

[0044] Gene mutation processing is performed on at least part of the chromosomes in the crossover population to obtain the next generation population.

[0045] Optionally, the performance parameters of the permanent magnet motor being optimal include: the average torque of the permanent magnet motor being the highest and the torque fluctuation being the smallest;

[0046] The constraint conditions in the optimization process also include: the magnet volume of the permanent magnet is smaller than a preset volume.

[0047] In a second aspect, an embodiment of the present invention further provides a permanent magnet motor topology optimization device, comprising:

[0048] A base structure construction module is used to take the area where the rotor core of the permanent magnet motor is located as an optimization area, and to construct a first number of permanent magnet base structures of permanent magnets with explicit geometric expressions, and to construct a second number of air base structures of air holes with explicit geometric expressions in the optimization area;

[0049] The optimization module is used to adopt a preset optimization algorithm, take the topological transformation parameters of each of the permanent magnet-based structures and each of the air-based structures in the topological transformation process as optimization variables, take the integrity of the rotor structure and the stability of the permanent magnets in the permanent magnet motor as constraints, take the optimal performance parameters of the permanent magnet motor as the optimization goal, and combine the topological transformation processes of each of the permanent magnet-based structures and each of the air-based structures to topologically optimize the distribution of permanent magnets and air holes in the rotor of the permanent magnet motor in the area where the rotor core is located; wherein the integrity of the rotor structure refers to that the rotor core is a complete core that has not been divided; the stability of the permanent magnet structure refers to that the edges between any two adjacent vertices in the permanent magnet are not completely exposed to the air holes.

[0050] The embodiment of the present invention provides a "visual" permanent magnet motor topology optimization method, which can significantly improve the manufacturability of the permanent magnet motor topology optimization result, as follows:

[0051] 1) Taking the base structure with explicit geometric expression (including permanent magnet base structure and air base structure) as the minimum optimization unit and the topological transformation parameters as the optimization variables, the optimization results can be free of jagged boundaries and checkerboard phenomena, and the permanent magnet motor can be manufactured without post-processing.

[0052] 2) Geometric constraints were constructed, and topology optimization was performed based on the integrity constraints of the rotor structure. This can ensure that the geometric structure of the rotor in the optimization result is intact, and the rotor core is not divided into multiple separate parts, thereby ensuring that the permanent magnet motor can be manufacturable. Topology optimization was performed based on the stability constraints of the permanent magnets, thereby ensuring the mechanical stability of the permanent magnets in the optimization result, and avoiding as much as possible the displacement or even falling off of the permanent magnets due to vibration and other problems during the operation of the motor, thereby ensuring the operational reliability of the permanent magnet motor.

[0053] 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

[0054] 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.

[0055] Figure 1 It is a schematic flow chart of a permanent magnet motor topology optimization method provided by an embodiment of the present invention;

[0056] Figure 2 is a structural schematic diagram of a built-in synchronous permanent magnet motor provided by an embodiment of the present invention;

[0057] Figure 3 is a structural schematic diagram of an optimization area provided by an embodiment of the present invention;

[0058] Figure 4 is a schematic flow chart of another permanent magnet motor topology optimization method provided by an embodiment of the present invention;

[0059] Figure 5 is a schematic diagram of a permanent magnet-based structure and an air-based structure in an optimized region provided by an embodiment of the present invention;

[0060] Figure 6 is a schematic diagram of an optimization result provided by an embodiment of the present invention;

[0061] Figure 7 is another schematic diagram of optimization results provided by an embodiment of the present invention;

[0062] Figure 8 is another schematic diagram of optimization results provided by an embodiment of the present invention;

[0063] Fig. 9 It is a comparison diagram of the torque waveforms of the three optimization results and the torque fluctuation reference curve;

[0064] Fig.10 It is a structural schematic diagram of a permanent magnet motor topology optimization device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0065] 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.

[0066] 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 numbers 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.

[0067] As pointed out in the background technology, the permanent magnet motor structure obtained by the topology optimization method used in the related art has poor manufacturability. The reasons for the above problems are briefly explained below. The traditional topology optimization algorithm is an "implicit" geometry with grid cells as the minimum optimization unit. The optimization results have low manufacturability and are not completely suitable for the optimization design of permanent magnet motors. Taking the normalized Gaussian network (NGnet) as an example, NGnet uses the material properties of the grid cells as optimization variables and updates the material properties according to the weighted calculation results of the normalized Gaussian function. However, the optimization results obtained based on NGnet have poor manufacturability, which is mainly manifested in: (1) The optimization results are mostly step-shaped non-smooth approximate boundaries, accompanied by checkerboard phenomena, and cannot be directly imported into engineering drawing software. They need to rely on complex geometric reconstruction technology for post-processing, which has huge computing resource consumption, large reconstruction model errors, and poor scalability for hexahedral grid structures. (2) Traditional algorithms are difficult to ensure the structural integrity of the rotor core, and the core is easily divided in the optimization results; (3) Traditional algorithms are difficult to ensure the mechanical stability of the permanent magnet in the optimization results.

[0068] To solve the above technical problems, the embodiment of the present invention provides a new topology optimization algorithm, which can effectively improve and enhance the performance parameters of the permanent magnet motor and improve the manufacturability of the topology optimization results of the permanent magnet motor. The permanent magnet motor topology optimization method can be applied to the rotor structure design requirements of the permanent magnet motor. The method can be executed by a permanent magnet motor topology optimization device, which can be implemented in the form of hardware and / or software. Figure 1 Schematic diagram of a flow chart of a permanent magnet motor topology optimization method provided by an embodiment of the present invention. Figure 1 , the permanent magnet motor topology optimization method includes:

[0069] S110. Taking the area where the rotor core of the permanent magnet motor is located as the optimization area, constructing a first number of permanent magnet-based structures of permanent magnets with explicit geometric expression, and constructing a second number of air-based structures of air holes with explicit geometric expression in the optimization area.

[0070] Exemplarily, the permanent magnet motor can be a built-in permanent magnet motor, such as a built-in synchronous permanent magnet motor, which is an efficient and compact motor type and is widely used in new energy vehicles. The built-in permanent magnet motor can provide higher power density and better power performance, so that electric vehicles can perform well in terms of cruising range, acceleration performance, etc. Its compact design and lightweight characteristics help to reduce the overall weight of electric vehicles, improve the energy efficiency of vehicles, and thus reduce energy consumption and emissions. In addition, the structural design of the built-in permanent magnet motor is more flexible, which can better match the overall layout of electric vehicles and improve the space utilization of vehicles. The manufacturing constraints of the built-in permanent magnet motor are very harsh. The permanent magnet motor topology optimization method provided in the embodiment of the present invention is used to improve the performance, efficiency and power density of the built-in permanent magnet motor through structural optimization, and at the same time, the manufacturability of the optimization results can be effectively improved, which is conducive to promoting the development of the new energy vehicle industry.

[0071] Among them, the first number and the second number are both positive integers, and the designer can set the specific values ​​of the first number and the second number according to actual needs. The permanent magnet-based structure and the air-based structure with explicit geometric expression are the minimum optimization units, and the permanent magnet-based structure and the air-based structure can select any one or more topological transformation methods for morphological transformation. In the subsequent optimization process, the topological transformation parameters involved in the topological transformation process of each base structure are used as optimization variables, which is equivalent to converting the optimization problem of the geometric structure into a parameter optimization problem, which can avoid the shape distortion of the optimization result caused by improper selection of the optimized part of the geometric structure, and can also avoid the influence of improper selection of the size range of the part to be optimized on the optimization result. Using the topological transformation parameters as optimization variables can improve the diversity of the optimization results; using the base structure as the minimum optimization unit can avoid problems that are not conducive to manufacturing, such as jagged boundaries in the optimization results.

[0072] S120. Using a preset optimization algorithm, taking the topological transformation parameters of each permanent magnet-based structure and each air-based structure in the topological transformation process as optimization variables, taking the integrity of the rotor structure and the stability of the permanent magnets in the permanent magnet motor as constraints, taking the optimal performance parameters of the permanent magnet motor as the optimization goal, and combining the topological transformation processes of each permanent magnet-based structure and each air-based structure, topological optimization is performed on the distribution of permanent magnets and air holes in the permanent magnet motor rotor in the area where the rotor core is located.

[0073] Among them, the performance parameters of the permanent magnet motor can be torque, power density and cost, etc. The optimization target (or optimal performance parameter) can include: at least one of the following: minimum torque fluctuation, minimum cost, maximum average torque, maximum efficiency and maximum power density. Using a preset optimization algorithm, combined with the topological transformation process of each permanent magnet-based structure and each air-based structure, each topological transformation parameter is optimized, and the final topological transformation parameter optimization result is applied to each permanent magnet-based structure and each air-based structure, and the final distribution of permanent magnets and air holes in the area where the rotor core is located (such as setting position, shape and size) can be obtained. The preset optimization algorithm can be an intelligent optimization algorithm such as a genetic algorithm (or genetic algorithm), a particle swarm algorithm, simulated annealing or taboo search, which can be selected according to actual needs and is not limited here.

[0074] Exemplarily, the integrity of the rotor structure and the stability of the permanent magnet in the permanent magnet motor are both geometric constraints in the optimization process. Specifically, the integrity of the rotor structure means that the rotor core is a complete core that has not been divided; the integrity constraint of the rotor structure is used to determine whether the rotor core in the optimization result is complete. If the rotor core is divided into two or more pieces in the rotor structure corresponding to the optimization variable, the integrity constraint of the rotor structure is not satisfied, and the motor structure corresponding to the optimization variable cannot be processed and manufactured. The stability of the permanent magnet structure means that the edges between any two adjacent vertices in the permanent magnet are not completely exposed to the air hole; the stability constraint of the permanent magnet is used to determine whether the permanent magnet in the optimization result is firmly embedded in the rotor core. When the permanent magnet contacts the air hole over a large area, for example, when the edges between two adjacent vertices in the permanent magnet are completely exposed to the air hole, there is a greater risk of permanent magnet displacement or falling off during operation, and the stability constraint of the permanent magnet is not satisfied. The above-mentioned geometric constraints are all constraints set based on manufacturability.

[0075] The embodiment of the present invention provides a "visual" permanent magnet motor topology optimization method, which can significantly improve the manufacturability of the permanent magnet motor topology optimization result, as follows:

[0076] 1) Taking the base structure with explicit geometric expression (including permanent magnet base structure and air base structure) as the minimum optimization unit and the topological transformation parameters as the optimization variables, the optimization results can be free of jagged boundaries and checkerboard phenomena, and the permanent magnet motor can be manufactured without post-processing.

[0077] 2) Geometric constraints were constructed, and topology optimization was performed based on the integrity constraints of the rotor structure. This can ensure that the geometric structure of the rotor in the optimization result is intact, and the rotor core is not divided into multiple separate parts, thereby ensuring that the permanent magnet motor can be manufacturable. Topology optimization was performed based on the stability constraints of the permanent magnets, thereby ensuring the mechanical stability of the permanent magnets in the optimization result, and avoiding as much as possible the displacement or even falling off of the permanent magnets due to vibration and other problems during the operation of the motor, thereby ensuring the operational reliability of the permanent magnet motor.

[0078] The following first provides an illustrative description of the topological transformation process of each permanent magnet-based structure and each air-based structure, and then provides an illustrative description of the specific optimization process.

[0079] In the embodiment of the present invention, the core material in the rotor is defined as the background material, and the geometric area surrounded by the outer contour of the rotor core is the optimization area (denoted as poly_bg). The distribution of permanent magnets and air holes in the rotor is optimized by optimizing the topological transformation parameters. The optimization area itself can remain unchanged during the optimization process. The base structure with "explicit" geometric expression is used as the minimum optimization unit, and the base structure representing the distribution of air materials is defined as the air base structure, which can be expressed as {EC11,EC12,……, EC1 k air}, where k air represents the number of air-based structures, i.e., the second quantity. The base structure that characterizes the distribution of permanent magnet materials is defined as the permanent magnet base structure, which can be expressed as {EC21, EC22,…, EC2 k PM}, where k PM The number of permanent magnet base structures is the first number. The selection of the base structure shape is mainly based on the process. For example, the preparation process of linear permanent magnets is relatively simple, so a rectangle / trapezoidal shape is selected as the shape of the permanent magnet base structure.

[0080] In one embodiment, optionally, the topological transformation process of the permanent magnet-based structure includes:

[0081] Each permanent magnetic base structure is deformed by transmission transformation to obtain the deformed permanent magnetic base structure, which is denoted as {EC2'1, EC2'2, …, EC2' k PM}.

[0082] Specifically, the transmission transformation matrix M of each permanent magnetic base structure is established q The perspective transformation is a linear matrix transformation that can achieve the position transformation of points by introducing homogeneous coordinates. The perspective transformation can be expressed as a 3x3 matrix. The 8 degrees of freedom in the matrix jointly determine the transformation method of the base structure. The perspective transformation matrix M q It can be expressed as:

[0083] ; Among them, [s x , s y ] defines the degree of scaling, θ controls the rotation angle, ϕ defines the shear angle, [t x , t y ] is the translation vector and [E, F] is the projection vector.

[0084] According to the transmission transformation matrix M q Transmission transformation is performed on each permanent magnetic base structure in turn to obtain the deformed permanent magnetic base structures EC2'1, EC2'2, ..., EC2' k PM For any point (x_ PM , y_ PM ), after the transmission transformation, we first get the homogeneous coordinates ; Then normalize the secondary coordinates to obtain the corresponding new point (x ’ PM , y ’ PM ).

[0085] In one embodiment, optionally, the topology transformation process of the air-based structure includes:

[0086] Each air-based structure is deformed by polynomial transformation to obtain the deformed air-based structure, which is denoted as {EC1'1, EC1'2, ..., EC1' k air}.

[0087] Specifically, taking the quadratic polynomial as an example, the quadratic polynomial is defined, and the air-based structure is transformed nonlinearly in sequence to obtain the deformed air-based structures EC1'1, EC1'2, ..., EC1' k air For any point (x_ air , y_ air ), after binomial transformation, the corresponding new point (x ’ air ,y ’ air ):

[0088] x ’ air = a1+ b1*x_ air + c1*(x_ air ) 2 ;

[0089] y’ air = a2+ b2*y_ air + c2*(y_ air ) 2 ;

[0090] Among them, the parameters [a1, b1, c1, a2, b2, c2] determine the morphology of the air-based structure after the transformation. By changing the above six parameters, a variety of air-based structures can be obtained.

[0091] Correspondingly, the topological transformation parameters include: transmission transformation parameters of each permanent magnet-based structure, and polynomial transformation parameters of each air-based structure.

[0092] In the process of topology optimization using traditional algorithms in related technologies, implicit geometry with grid units as the minimum optimization unit is used, and the optimization results are often accompanied by irregular permanent magnet structures. The existing magnetization method is difficult to achieve the preparation of permanent magnets of arbitrary shapes, resulting in the difficulty of manufacturing the topology optimization results of permanent magnet motors. In an embodiment of the present invention, the change in the morphology of permanent magnets is characterized by transmission transformation, which can effectively avoid the appearance of irregular permanent magnet structures in the optimization results, which is beneficial to improving the manufacturability of permanent magnet motors. In addition, the change in the morphology of air holes can be characterized by polynomial transformation, which can improve the diversity of hole changes.

[0093] Based on the above embodiments, optionally, after each permanent magnet-based structure is deformed by transmission transformation, the method further includes: performing Boolean operation on each deformed permanent magnet-based structure to obtain a permanent magnet distribution set (using EC PM denoted by ). And, after deforming each air-based structure by polynomial transformation, it also includes: performing Boolean operations on each deformed air-based structure to obtain an air hole distribution set (using EC air denoted by ). Accordingly, the topological transformation parameters also include: Boolean operation parameters in the process of performing Boolean operation on each deformed permanent magnet-based structure, and Boolean operation parameters in the process of performing Boolean operation on each deformed air-based structure. In this embodiment, the diversity of the distribution of each material can be increased by Boolean operation (or Boolean operation). For example, with k PM =N as an example, each deformed permanent magnetic base structure can be Boolean operated in pairs, and the number of Boolean operation parameters corresponding to the permanent magnetic base structure is N*(N-1) / 2. Alternatively, each deformed permanent magnetic base structure can be Boolean operated in sequence, and the number of Boolean operation parameters corresponding to the permanent magnetic base structure is N-1; for example, for each deformed permanent magnetic base structure: the first permanent magnetic base structure EC2'1 and the second permanent magnetic base structure EC2'2 are Boolean operated, and the operation result EC2' 1-2The Boolean operation is performed with the third permanent magnetic base structure EC2'3, and so on. The Boolean operation parameters of the deformed air base structure are similar and will not be described in detail. In short, the number of Boolean operation parameters can be determined according to the Boolean operation method of each base structure.

[0094] On the basis of the above embodiments, optionally, after obtaining the permanent magnet distribution set and the air hole distribution set, it further includes: based on random numbers, superimposing the permanent magnet distribution set and the air hole distribution set to obtain a new permanent magnet distribution set and a new air hole distribution set. Correspondingly, the topological transformation parameters also include: random numbers.

[0095] Among them, the superposition processing of the permanent magnet distribution set and the air hole distribution set can be understood as: redistributing the intersection of the permanent magnet distribution set and the air hole distribution set to determine the specific ownership of the intersection part, and obtaining a new permanent magnet distribution set (using EC PM_new denoted) and a new set of air hole distributions (using EC air_new denoted by ). Different random numbers may correspond to different redistribution methods to improve the diversity of transformation results.

[0096] Specifically, the random number can be represented by rand, and the range of the random number can be set to: 0<rand<1. Based on the random number, the permanent magnet distribution set and the air hole distribution set are superimposed, specifically including:

[0097] If rand < 0.5, then:

[0098] EC PM_new =(EC PM -EC air )∪(EC PM ∩EC air ), and EC air_new =EC air -E PM ;

[0099] If rand>0.5, then:

[0100] EC PM_new =EC PM -E air , and EC air_new =(EC air -EC PM )∪(EC PM ∩E air );

[0101] Among them, rand represents a random number, EC PM represents the permanent magnet distribution set, EC airrepresents the air hole distribution set, EC PM_new represents the new set of permanent magnet distribution, EC air_new Indicates a new set of air hole distribution. This embodiment specifies different intersection location attributes based on different random number ranges.

[0102] In summary, the topological transformation parameters may include: transmission transformation parameters of each permanent magnet-based structure, polynomial transformation parameters of each air-based structure, Boolean operation parameters in the Boolean operation process of each deformed permanent magnet-based structure, Boolean operation parameters in the Boolean operation process of each deformed air-based structure and random numbers. The optimization variable can be expressed as: X=[x1, x2, …, x m ], m is the total number of the above parameters. According to the performance parameters of the permanent magnet motor, an objective function F(X) based on the optimization variables can be constructed. The specific optimization target can be min F(X) or max F(X).

[0103] Each constraint condition is exemplified below, but is not intended to limit the present invention.

[0104] In one embodiment, optionally, the integrity of the rotor structure can be expressed by the following formula:

[0105] poly_residual(X)= poly_bg - EC PM_new (X)- EC air_new (X);

[0106] The integrity constraint of the rotor structure can be implemented using the following rules: If the number of connected regions contained in poly_residual(X*) is greater than 1, it indicates that the rotor structure corresponding to the permanent magnet and air hole distribution obtained based on X* does not meet the integrity constraint of the rotor structure, or X* is illegal and should be discarded.

[0107] Where X represents the optimization variable, X* represents a set of determined optimization variable values, poly_residual represents the geometric area remaining after removing the area represented by the new set of permanent magnet distribution and the area represented by the new set of air hole distribution from the optimization area, and poly_bg represents the optimization area. It can be understood that in this article, the parameter with (X) means that the parameter can change with the change of the value of the optimization variable X, and the parameter with (X*) represents the specific result obtained by the parameter under X*.

[0108] In one embodiment, optionally, the permanent magnet stability constraint condition may adopt the following rule:

[0109] If there exists e = (u, v), e EC air_new(X*), it means that the rotor structure corresponding to the permanent magnet and air hole distribution obtained based on X* does not meet the permanent magnet stability constraint condition; where (u, v) represents any pair of adjacent vertices of the permanent magnet in the rotor structure, and e = (u, v) represents an edge of the permanent magnet.

[0110] Based on the above embodiments, optionally, the preset optimization algorithm may be a genetic algorithm. The genetic algorithm is used to perform topological optimization on the distribution of permanent magnets and air holes in the rotor of the permanent magnet motor in the area where the rotor core is located, including:

[0111] 1) Use a random method to initialize multiple chromosomes to obtain an initial population; the number of genes in each chromosome is equal to the number of optimization variables.

[0112] For example, when encoding the chromosome, the optimization variable may be normalized to a number in the interval [0, 1] and encoded using a decimal encoding method.

[0113] In the process of population initialization, the population is initialized by random method, that is, a random number is generated in the interval (0,1) for each gene in the gene sequence of each chromosome by computer.

[0114] 2) Take the initial population as the current population and perform an iterative step to obtain the next generation population;

[0115] 3) Determine whether the stopping condition is met; if so, determine the optimal distribution of permanent magnets and air holes in the area where the rotor core is located based on the chromosomes in the next generation population; if not, use the next generation population as the current population and perform the iteration step again.

[0116] The stopping condition may be that the number of iterations reaches a preset number threshold; or, there is no rotor structure with better performance parameters in the results of consecutive preset generations, and the preset generation number is, for example, 5. The optimal distribution of permanent magnets and air holes in the region where the rotor core is located is determined according to the chromosomes in the next generation population, and specifically, the topological transformation parameters corresponding to the chromosome with the highest fitness in the next generation population are used as the optimal topological transformation parameters, and the rotor structure obtained by transforming each base structure based on the optimal topological transformation parameters is determined as the optimal distribution of permanent magnets and air holes in the region where the rotor core is located.

[0117] The iteration steps may specifically include:

[0118] 1) For each chromosome in the current population, based on the specific values ​​of each optimization variable in the chromosome, each permanent magnet-based structure and each air-based structure are topologically transformed to obtain the rotor structure corresponding to the chromosome.

[0119] Among them, each bit in the optimization variable can be first denormalized to obtain the topological transformation parameters corresponding to the chromosome, and then each permanent magnet-based structure and each air-based structure can be topologically transformed based on the topological transformation parameters to obtain the rotor structure corresponding to the new set of permanent magnet distribution and the new set of air hole distribution.

[0120] 2) For each chromosome in the current population, determine whether the rotor structure corresponding to the chromosome satisfies each constraint condition; if so, retain the chromosome; if not, discard the chromosome.

[0121] Among them, chromosomes that meet all constraints are retained, and chromosomes that do not meet at least one constraint are discarded.

[0122] 3) For each retained chromosome, the fitness of the chromosome is calculated according to the fitness function; wherein the fitness function is determined according to the optimization objective.

[0123] Among them, a specific objective function based on the optimization variables can be formulated based on the optimization goal, and the fitness function can be determined according to the objective function, such as the objective function itself or its inverse, etc., which can be set according to the specific optimization goal and is not specifically limited here.

[0124] 4) According to the fitness of each retained chromosome, based on the roulette wheel selection method, each retained chromosome is selected to obtain the population to be processed.

[0125] Among them, the chromosome individual with greater fitness has a greater probability of being selected; when the roulette wheel is stable, the individual to which the arrow points is selected as the seed.

[0126] 5) Performing gene crossover processing on at least part of the chromosomes in the population to be processed to obtain a crossover population.

[0127] The two chromosomes that cross randomly select the crossover point to exchange chromosomes, forming a new chromosome that replaces the original "old" individual, while the non-crossed individual remains unchanged. The chromosome genes of the crossover parents are exchanged with each other, thus producing two new chromosomes.

[0128] 6) Performing gene mutation processing on at least part of the chromosomes in the crossover population to obtain the next generation population.

[0129] Exemplarily, an adaptive mutation operator is used to increase population diversity through mutation operations.

[0130] The following is a detailed description of the topology optimization method of permanent magnet motors based on their specific structure. Figure 2 is a schematic diagram of the structure of a built-in synchronous permanent magnet motor provided by an embodiment of the present invention, see Figure 2The permanent magnet motor may include: a stator core 11 (red part), a stator coil 12 (yellow part), a rotor core 13 (blue part), a permanent magnet 14 (green part in the blue area) and an air hole 15 (white part in the blue area). Figure 3 is a schematic diagram of the structure of an optimization area provided by an embodiment of the present invention. Figure 3 The optimization area poly_bg can select one-twelfth of the rotor area, which is a 30° sector arc, corresponding to half of a pair of rotor poles, and perform topological optimization on the distribution of permanent magnet material and air material in this area.

[0131] Figure 4 FIG. 1 is a flow chart of another method for topology optimization of a permanent magnet motor provided by an embodiment of the present invention. Figure 4 , the permanent magnet motor topology optimization method includes:

[0132] S210: Determine an optimization area.

[0133] The optimized area poly_bg can be found in Figure 3 shown.

[0134] S220. Determine M and N.

[0135] For example, k air =M,k PM =N, such as Figure 5 As shown, M=4 and N=1 can be set.

[0136] S230. Determine the shape of each base structure.

[0137] The base structure is a geometric structure and can have different shapes. Different base structures can give different material properties. In practical applications, the shape of the base structure can be selected according to the needs of processing and manufacturing. For example, see Figure 5 , a rectangular base structure can be used as a permanent magnet base structure, and a circular base structure can be used as an air base structure.

[0138] S240, randomly generating N permanent magnet-based structures and M air-based structures in the optimization region.

[0139] S250, determining optimization variables according to M and N, and generating an initial population.

[0140] Among them, the number of optimization variables is related to M and N.

[0141] S260, updating each base structure according to the optimization variable represented by each chromosome, and generating a rotor structure corresponding to each chromosome.

[0142] S270. Retain the chromosomes whose rotor structures satisfy the constraint conditions.

[0143] S280. Select, crossover and mutate the retained chromosomes to obtain the next generation population.

[0144] S290, determine whether the stop condition is met; if so, end the iteration; if not, return to execute S260 based on the next generation population and perform the next iteration.

[0145] The embodiment of the present invention provides a complete permanent magnet motor topology optimization method based on S210-S290. Among them, S210-S240 can be used as the initial construction steps of the base structure, which are the specific detailed implementation steps of S110, and S250-S290 can be used as the optimization main program, which are the specific detailed implementation steps of S120.

[0146] In the following, in conjunction with a specific embodiment, the optimization of the torque parameters of the permanent magnet motor is taken as an example to illustrate the specific process of optimizing the topology structure of the permanent magnet motor.

[0147] The performance parameters of the permanent magnet motor are optimal, that is, the optimization objectives may specifically include: the average torque of the permanent magnet motor is the highest and the torque fluctuation is the smallest. The optimization area is Figure 3 The twelfth rotor area is shown. The optimization goal is to increase the average torque and reduce the torque fluctuation. The optimization goal calculation formula is: min F(X), F(X)= w1×T avr (X) / T avr_Ref + w2×T rip (X) / T rip_Ref ; The constraints in the optimization process also include: the volume of the permanent magnet is smaller than the preset volume, expressed as: V mag (X) ≤ V mag_Ref Among them, T avr (X), T avr_Ref , T rip (X), T rip_Ref 、V mag (X), V mag_Ref , w1 and w2 represent the average torque, the average torque reference value, the torque fluctuation, the torque fluctuation reference value, the magnet volume, the preset volume, the weight coefficient of the average torque and the weight coefficient of the torque fluctuation respectively.

[0148] First, follow the Figure 5 As shown, base structures are established to represent permanent magnets and air respectively. The shape of the base structure is selected according to the requirements of processing and manufacturing. A rectangular base structure is used to represent permanent magnets, and a circular base structure is used to represent air. The number of permanent magnet base structures and air base structures is N and M respectively. In this example, N=1 and M=4.

[0149] Next, define the optimization variables of the topology optimization problem. For permanent magnets, each permanent magnet base structure requires eight parameters to determine its transmission transformation form, so define PT = [PT1, …, PT 8*N ] is the transmission transformation parameter. For air holes, each air-based structure requires six parameters to determine its polynomial transformation form, so we define NR = [NR1,……,NR 6*M ] is the polynomial transformation parameter. For M deformed air-based structures, a Boolean operation needs to be performed between each pair of air-based structures, so BO is defined as air =[BO11,……, BO1 M×(M-1) / 2 ] is the Boolean operation parameter of the air-based structure. Similarly, BO is defined PM =[BO21,……, BO2 N×(N-1) / 2 ] is the Boolean operation parameter of the permanent magnet-based structure. After the permanent magnet and air-based structures are transformed and Boolean operated, the random number rand is introduced to judge the material properties of the overlapping area and determine which material properties the overlapping area of ​​the two materials should belong to. Therefore, the optimization variable of this optimization problem is X=[ PT1,……, PT 8*N ,NR1,……,NR 6*M , BO11,……, BO1 M×(M-1) / 2 , BO21,……, BO2 N×(N-1) / 2 , rand ].

[0150] Then, the genetic algorithm is used to solve the optimization problem. The specific steps are as follows:

[0151] 1) Chromosome encoding

[0152] First, the optimization variables are normalized to numbers in the interval [0, 1]. Using decimal encoding, the number of chromosome bits is 6*M+8*N+M×(M-1) / 2+ N×(N-1) / 2+1.

[0153] 2) Initialize the population

[0154] The population is initialized using a random method, that is, for a certain bit of a chromosome bit string, the computer generates a random number in the interval (0,1).

[0155] 3) Generate a new set EC of permanent magnet distribution based on chromosomes PM_new and the new set of air hole distribution EC air_new .

[0156] First, the current chromosome X now Each optimization variable in is denormalized.

[0157] Then, each permanent magnet structure EC PM={EC21, EC22,……, EC2 N} Perform transmission transformation in sequence to obtain the permanent magnetic base structure EC after each deformation PM ={EC2'1, EC2'2, ..., EC2' N}; For each air-based structure EC air ={EC11,EC12,……,EC1 M} Perform binomial transformation in sequence to obtain the air-based structure EC' after each deformation air ={EC1'1, EC1'2, ..., EC1' M Then, the permanent magnetic base structures EC ' PM and each deformed air-based structure EC' air Perform Boolean operations to obtain the permanent magnet distribution set EC PM and the air hole distribution set EC air Then, the permanent magnet distribution set EC obtained at this time PM and the air hole distribution set EC air Perform superposition operation to obtain new permanent magnet distribution sets EC PM _new and the new set of air hole distribution EC air_new .

[0158] 4) Determine whether the rotor structure meets various constraints.

[0159] First, the core geometry poly_residual(X now ). Then detect poly_residual(X now ) contains the number of connected areas. If the number of connected areas is greater than 1, it means that the core structure is incomplete and cannot be processed and manufactured. now It is unreasonable and should be discarded.

[0160] The rotor structure is then judged according to the permanent magnet stability constraint conditions and the magnet volume constraint conditions, and the chromosomes corresponding to the rotor structure that meet all the constraint conditions are retained.

[0161] 5) Calculate fitness

[0162] For a rotor structure that satisfies each constraint condition, the torque fluctuation and average torque corresponding to the rotor structure are calculated, and the fitness of the chromosome corresponding to the rotor structure is calculated according to the fitness function. The fitness function is, for example, the same as the objective function.

[0163] 6) Select

[0164] According to the roulette wheel selection method, chromosome individuals are selected. Individuals with greater fitness have a greater probability of being selected. When the roulette wheel is stable, the individual to which the arrow points is selected as the seed.

[0165] 7) Cross

[0166] The individuals selected through step 6) enter the crossover process. The two chromosomes that cross randomly select the crossover point and exchange chromosomes to form a new chromosome, replacing the original "old" individual, while the non-mating individual remains unchanged. The chromosomes of the crossover parents are exchanged with each other, thus producing two new chromosomes.

[0167] 8) Mutation

[0168] Use adaptive mutation operators to increase population diversity through mutation operations.

[0169] 9) Update population

[0170] The population obtained based on steps 6)-8) is the updated next generation population. Whether to continue iteration can be determined based on the stopping condition.

[0171] The three optimization results obtained based on the above steps can be found in Figure 6-Figure 8 The comparison diagram of the torque waveforms corresponding to the three optimization results and the torque fluctuation reference curve drawn based on the torque fluctuation reference value can be seen in Fig. 9 . Fig. 9 For example, Figure 6-Figure 8 The torque waveforms corresponding to the three optimization results in are optimization result 1, optimization result 2 and optimization result 3, respectively, and the torque fluctuation reference curve is the reference curve in the figure. The torque fluctuation reference value is, for example, the maximum acceptable torque fluctuation ratio, see Fig. 9 It can be seen that the final torque fluctuations of the permanent magnet motor structures corresponding to the three optimization results are all smaller than the torque fluctuation reference value, indicating that the optimization method can achieve the optimization goal of improving the performance of the permanent magnet motor. Figure 6-Figure 8 In all the optimization results, there was no abnormally shaped permanent magnet structure, no rotor core splitting, and no large-area contact between permanent magnet and air holes, indicating that this optimization method can also take into account the manufacturability and stability of the permanent magnet motor.

[0172] In summary, the embodiments of the present invention provide a permanent magnet motor topology optimization method taking manufacturability into consideration, and propose an optimization algorithm based on transmission transformation, polynomial transformation and Boolean operation, which can effectively improve the manufacturability of the optimization results.

[0173] An embodiment of the present invention further provides a permanent magnet motor topology optimization device, which is used to implement the permanent magnet motor topology optimization method provided by any embodiment of the present invention, and has corresponding beneficial effects. Fig.10Schematic diagram of a topology optimization device for a permanent magnet motor provided by an embodiment of the present invention. Fig.10 The permanent magnet motor topology optimization device includes: a base structure building module 110 and an optimization module 120.

[0174] Among them, the base structure construction module 110 is used to take the area where the rotor core of the permanent magnet motor is located as the optimization area, and in the optimization area, construct a first number of permanent magnet base structures with explicit geometric expressions of permanent magnets, and construct a second number of air base structures with explicit geometric expressions of air holes. The optimization module 120 is used to adopt a preset optimization algorithm, take the topological transformation parameters of each permanent magnet base structure and each air base structure in the topological transformation process as optimization variables, take the integrity of the rotor structure and the stability of the permanent magnet in the permanent magnet motor as constraints, take the optimal performance parameters of the permanent magnet motor as the optimization target, and combine the topological transformation process of each permanent magnet base structure and each air base structure to perform topological optimization on the distribution of permanent magnets and air holes in the rotor of the permanent magnet motor in the area where the rotor core is located. Among them, the integrity of the rotor structure means that the rotor core is a complete core that has not been divided; the stability of the permanent magnet structure means that the edges between any two adjacent vertices in the permanent magnet are not completely exposed to the air holes.

[0175] Based on the permanent magnet motor topology optimization device provided by the embodiment of the present invention, a "display" permanent magnet motor topology optimization method can be implemented, which can significantly improve the manufacturability of the permanent magnet motor topology optimization results, as follows:

[0176] 1) Taking the base structure with explicit geometric expression (including permanent magnet base structure and air base structure) as the minimum optimization unit and the topological transformation parameters as the optimization variables, the optimization results can be free of jagged boundaries and checkerboard phenomena, and the permanent magnet motor can be manufactured without post-processing.

[0177] 2) Geometric constraints were constructed, and topology optimization was performed based on the integrity constraints of the rotor structure. This can ensure that the geometric structure of the rotor in the optimization result is intact, and the rotor core is not divided into multiple separate parts, thereby ensuring that the permanent magnet motor can be manufacturable. Topology optimization was performed based on the stability constraints of the permanent magnets, thereby ensuring the mechanical stability of the permanent magnets in the optimization result, and avoiding as much as possible the displacement or even falling off of the permanent magnets due to vibration and other problems during the operation of the motor, thereby ensuring the operational reliability of the permanent magnet motor.

[0178] 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.

[0179] 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 permanent magnet motor topology optimization method, characterized in that: include: The area where the rotor core of the permanent magnet motor is located is taken as the optimization area, and within the optimization area, a first number of permanent magnet-based structures of permanent magnets with explicit geometric expressions are constructed, and a second number of air-based structures of air holes with explicit geometric expressions are constructed; A preset optimization algorithm is adopted, the topological transformation parameters of each of the permanent magnet-based structures and each of the air-based structures in the topological transformation process are used as optimization variables, the integrity of the rotor structure and the stability of the permanent magnets in the permanent magnet motor are used as constraints, and the optimal performance parameters of the permanent magnet motor are used as the optimization goal. Combined with the topological transformation processes of each of the permanent magnet-based structures and each of the air-based structures, the distribution of the permanent magnets and air holes in the rotor of the permanent magnet motor in the area where the rotor core is located is topologically optimized; wherein the integrity of the rotor structure refers to that the rotor core is a complete core body that has not been divided; the stability of the permanent magnet structure refers to that the edges between any two adjacent vertices in the permanent magnet are not completely exposed in the air holes; The topological transformation process of each of the permanent magnet-based structures and each of the air-based structures includes: Each permanent magnetic base structure is deformed by transmission transformation to obtain a deformed permanent magnetic base structure; Deforming each air-based structure through a polynomial transformation to obtain a deformed air-based structure; Wherein, the topological transformation parameters include: transmission transformation parameters of each of the permanent magnet-based structures, and polynomial transformation parameters of each of the air-based structures; After each permanent magnet base structure is deformed by transmission transformation, it also includes: Performing Boolean operations on each deformed permanent magnet base structure to obtain a permanent magnet distribution set; After deforming each air-based structure by a polynomial transformation, it also includes: Perform Boolean operations on each deformed air-based structure to obtain an air hole distribution set; The topological transformation parameters further include: Boolean operation parameters during the Boolean operation of each deformed permanent magnet-based structure, and Boolean operation parameters during the Boolean operation of each deformed air-based structure; After obtaining the permanent magnet distribution set and the air hole distribution set, the method further includes: Based on random numbers, the permanent magnet distribution set and the air hole distribution set are superimposed to obtain a new permanent magnet distribution set and a new air hole distribution set; Wherein, the topology transformation parameters also include: the random number.

2. The method for topology optimization of a permanent magnet motor according to claim 1, characterized in that: The random number is greater than 0 and less than 1; and the superposition of the permanent magnet distribution set and the air hole distribution set based on the random number includes: like rand <0.5, then: EC PM_new =( EC PM - EC air )∪( EC PM ∩ EC air ),and EC air_new = EC air - E PM ; like rand >0.5, then: EC PM_new = EC PM - E air ,and EC air_new =( EC air - EC PM )∪( EC PM ∩ E air ); in, rand represents the random number, EC PM represents the permanent magnet distribution set, EC air represents the air hole distribution set, EC PM_new represents the new set of permanent magnet distribution, EC air_new Represents a new set of air hole distribution.

3. The method for topology optimization of a permanent magnet motor according to claim 2, characterized in that: The integrity of the rotor structure in the permanent magnet motor is expressed by the following formula: poly_residual ( X )= poly_bg - EC PM_new ( X )- EC air_new ( X ); like poly_residual ( X* ) contains more than 1 connected regions, indicating that X* The obtained permanent magnet and air hole distribution does not satisfy the integrity constraints of the rotor structure; in, X represents the optimization variable, X* represents a set of determined optimization variable values, poly_residual represents the geometric area remaining after removing the area represented by the new set of permanent magnet distribution and the area represented by the new set of air hole distribution from the optimization area, poly_bg represents the optimized region.

4. The method for topology optimization of a permanent magnet motor according to claim 2, characterized in that: Permanent magnet stability constraints include: If exists e =( u , v ), e EC air_new ( X* ), it indicates that based on X* The obtained permanent magnet and air hole distribution does not satisfy the permanent magnet stability constraint condition; among them, X* represents a set of determined optimization variable values, ( u , v ) represents any pair of adjacent vertices of a permanent magnet, e =( u , v ) represents one side of the permanent magnet.

5. The method for topology optimization of a permanent magnet motor according to claim 1, characterized in that: The preset optimization algorithm is a genetic algorithm; Genetic algorithms are used to perform topological optimization on the distribution of permanent magnets and air holes in the rotor core of a permanent magnet motor, including: Initializing multiple chromosomes by random method to obtain an initial population; wherein the number of bits of genes in each of the chromosomes is equal to the number of optimization variables; Taking the initial population as the current population, performing an iteration step to obtain the next generation population; Determine whether the stop condition is met; If yes, determining the optimal distribution of permanent magnets and air holes in the region where the rotor core is located according to the chromosomes in the next generation population; If not, the next generation population is used as the current population and the iterative step is performed again; Wherein, the iterative step comprises: For each chromosome in the current population, based on the specific value of each optimization variable in the chromosome, topological transformation is performed on each permanent magnet-based structure and each air-based structure to obtain a rotor structure corresponding to the chromosome; For each chromosome in the current population, determine whether the rotor structure corresponding to the chromosome satisfies each constraint condition; if so, retain the chromosome; if not, discard the chromosome; For each of the retained chromosomes, calculating the fitness of the chromosome according to a fitness function; wherein the fitness function is determined according to the optimization target; According to the fitness of each of the retained chromosomes, based on the roulette wheel selection method, each of the retained chromosomes is selected to obtain a population to be processed; Performing gene crossover processing on at least part of the chromosomes in the population to be processed to obtain a crossover population; Gene mutation processing is performed on at least part of the chromosomes in the crossover population to obtain the next generation population.

6. The method for topology optimization of a permanent magnet motor according to any one of claims 1 to 5, characterized in that: The optimal performance parameters of the permanent magnet motor include: the average torque of the permanent magnet motor is the highest and the torque fluctuation is the smallest; The constraint conditions in the optimization process also include: the magnet volume of the permanent magnet is smaller than a preset volume.

7. A permanent magnet motor topology optimization device, characterized in that: include: A base structure construction module is used to take the area where the rotor core of the permanent magnet motor is located as an optimization area, and to construct a first number of permanent magnet base structures of permanent magnets with explicit geometric expressions, and to construct a second number of air base structures of air holes with explicit geometric expressions in the optimization area; An optimization module is used to adopt a preset optimization algorithm, take the topological transformation parameters of each of the permanent magnet-based structures and each of the air-based structures in the topological transformation process as optimization variables, take the integrity of the rotor structure and the stability of the permanent magnets in the permanent magnet motor as constraints, take the optimal performance parameters of the permanent magnet motor as the optimization goal, and combine the topological transformation processes of each of the permanent magnet-based structures and each of the air-based structures to perform topological optimization on the distribution of permanent magnets and air holes in the rotor of the permanent magnet motor in the area where the rotor core is located; wherein the integrity of the rotor structure refers to that the rotor core is a complete core that has not been divided; the stability of the permanent magnet structure refers to that the edges between any two adjacent vertices in the permanent magnet are not completely exposed in the air holes; The topological transformation process of each of the permanent magnet-based structures and each of the air-based structures includes: Each permanent magnetic base structure is deformed by transmission transformation to obtain a deformed permanent magnetic base structure; Deforming each air-based structure through a polynomial transformation to obtain a deformed air-based structure; Wherein, the topological transformation parameters include: transmission transformation parameters of each of the permanent magnet-based structures, and polynomial transformation parameters of each of the air-based structures; After each permanent magnet base structure is deformed by transmission transformation, it also includes: Performing Boolean operations on each deformed permanent magnet base structure to obtain a permanent magnet distribution set; After deforming each air-based structure by a polynomial transformation, it also includes: Perform Boolean operations on each deformed air-based structure to obtain an air hole distribution set; The topological transformation parameters further include: Boolean operation parameters during the Boolean operation of each deformed permanent magnet-based structure, and Boolean operation parameters during the Boolean operation of each deformed air-based structure; After obtaining the permanent magnet distribution set and the air hole distribution set, the method further includes: Based on random numbers, the permanent magnet distribution set and the air hole distribution set are superimposed to obtain a new permanent magnet distribution set and a new air hole distribution set; Wherein, the topology transformation parameters also include: the random number.