An electromagnetic design method, system, and electronic device for superconducting magnets

By obtaining the initial spatial magnetic field distribution and equivalent inductance of the superconducting magnet, the critical current of the magnet is solved iteratively using the modified load line method, and the gradient of structural parameter modification is obtained through the chain rule. This solves the problems of low computational efficiency and inability to perform closed-loop optimization in the existing technology, and realizes efficient and accurate optimization of the electromagnetic design of the superconducting magnet.

CN123116593APending Publication Date: 2026-11-17ELECTRIC POWER RES INST OF GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611319602.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing methods for calculating electromagnetic parameters of superconducting magnets are insufficient to meet practical engineering needs. The finite element method is inefficient and cannot be optimized in a closed loop. Analytical models lack accuracy and cannot be mapped to engineering performance indicators, making them unsuitable for rapid iterative design and engineering selection of magnets.

Method used

By obtaining the initial spatial magnetic field distribution and equivalent inductance of the target superconducting magnet, the critical current of the magnet is solved iteratively using the modified load line method, and the gradient of structural parameter modification is obtained through the chain rule, forming a complete closed-loop optimization process from parameter input to scheme output, realizing the integrated rapid analytical calculation of magnetic field and inductance.

Benefits of technology

This improves the efficiency of electromagnetic design for superconducting magnets, enables synchronous and high-precision calculation of magnetic field and inductance parameters for complex topological magnets, and ensures that the design scheme continuously approaches the optimal feasible solution under the drive of objective function and constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123116593A_ABST
    Figure CN123116593A_ABST
Patent Text Reader

Abstract

This invention discloses an electromagnetic design method, system, and electronic device for superconducting magnets, belonging to the field of electromagnetic design technology for superconducting magnets. The method comprises: obtaining the spatial magnetic field distribution and equivalent inductance under initial structural parameters; obtaining the critical winding magnetic field, central magnetic field, and critical current of the magnet based on the spatial magnetic field distribution; obtaining the operating current and energy storage capacity based on the equivalent inductance and critical current; when the energy storage capacity, central magnetic field, operating current, critical current, design target, and topological constraints are deemed unqualified, obtaining the structural parameter modification gradient through a chain rule; updating the structural parameters based on this gradient until the updated real-time energy storage capacity and real-time central magnetic field meet the design target and topological constraints, and outputting the electromagnetic design result. Therefore, by implementing this invention, the problems of electromagnetic design relying on finite element method, low simulation efficiency, and inability to perform closed-loop optimization in the prior art can be solved, thereby improving the design efficiency of superconducting magnets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electromagnetic design technology for superconducting magnets, and in particular to an electromagnetic design method, system, and electronic device for superconducting magnets. Background Technology

[0002] High-temperature superconducting magnets have important applications in large-scale electromagnetic equipment such as superconducting energy storage systems, controlled nuclear fusion devices, high-field scientific facilities, magnetic levitation systems, and high-energy particle accelerators. The toroidal configuration, with its compact structure, good magnetic field uniformity, and natural adaptability to large-scale system integration, has become one of the mainstream technologies for high-temperature superconducting magnets. Magnetic field distribution characteristics and inductance parameters are fundamental to evaluating the rationality of the magnet structure, calculating energy storage capacity, calibrating the critical current, and designing system control strategies. Their calculation accuracy and efficiency directly affect the magnet design quality and development cycle.

[0003] Currently, the main methods for calculating the electromagnetic parameters of superconducting magnets fall into two categories: finite element method (FEM) simulation and analytical calculation methods. The FEM method achieves high computational accuracy by numerically solving Maxwell's equations using a three-dimensional full model, but a single solution can take hours or even days, and even with dimensionality reduction strategies, it still requires minutes. Analytical calculation methods, on the other hand, establish closed-form expressions for magnetic field and inductance through mathematical derivation, offering the advantage of high computational speed. However, existing analytical models are mostly designed for simple geometries such as solenoids, with few research results addressing complex circumferential topologies. Furthermore, most of these methods only cover magnetic field solutions and have not yet formed a complete analytical calculation system for inductance parameters.

[0004] However, existing methods for calculating the electromagnetic parameters of superconducting magnets are insufficient to meet practical engineering needs. The finite element method (FEM) is computationally inefficient, making it difficult to incorporate the speed requirements of multiple iterations in magnet optimization. Furthermore, it relies heavily on closed-source commercial simulation software, hindering the establishment of an independent and controllable electromagnetic optimization design system. Simplified analytical models offer speed advantages but lack accuracy, while high-fidelity models suffer from computational redundancy. The balance between accuracy and speed is difficult to achieve, failing to meet the demands of rapid iterative magnet design and engineering selection. More importantly, both the FEM and existing analytical models are limited to calculating single electromagnetic parameters and have not yet established a systematic mapping between these parameters and engineering performance indicators such as the critical current degradation characteristics, energy storage capacity, and operational margin of superconducting tapes. They also cannot be deeply integrated with gradient optimization algorithms to form a complete and rapid optimization process oriented towards engineering design goals. Summary of the Invention

[0005] This invention provides an electromagnetic design method, system, and electronic device for superconducting magnets, which can solve the problems of electromagnetic design relying on finite element method, low simulation efficiency, and inability to perform closed-loop optimization in the prior art, thereby improving the design efficiency of superconducting magnets.

[0006] To address the aforementioned technical problems, in a first aspect, this invention discloses an electromagnetic design method for superconducting magnets, comprising: Obtain the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under the initial structural parameters; The initial critical winding magnetic field and the initial central magnetic field of the target superconducting magnet are obtained based on the initial spatial magnetic field distribution, and the initial critical magnet current of the target superconducting magnet is obtained based on the initial critical winding magnetic field. The initial operating current and initial energy storage capacity of the target superconducting magnet are obtained based on the initial equivalent inductance and the initial critical current of the magnet. When the initial structural parameters are deemed unqualified based on the initial energy storage capacity, the initial central magnetic field, the initial operating current, the initial magnet critical current, the design target parameters of the target superconducting magnet, and the topological constraints, the structural parameter modification gradient of the target superconducting magnet is obtained through the chain rule based on the initial spatial magnetic field distribution, the initial equivalent inductance, and the initial magnet critical current. The updated structural parameters corresponding to the initial structural parameters are obtained by modifying the gradient according to the structural parameters. When the updated structural parameters are deemed qualified according to the real-time energy storage capacity, real-time central magnetic field, design target parameters and topological constraints, the electromagnetic design results of the target superconducting magnet are obtained according to the updated structural parameters.

[0007] This invention discloses an electromagnetic design method for superconducting magnets. First, the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under initial structural parameters are obtained as the basis for subsequent electromagnetic performance evaluation and gradient calculation. Then, based on the initial spatial magnetic field distribution, the initial critical winding magnetic field and the initial central magnetic field are obtained. The initial critical magnet current is then iteratively solved using the modified load line method based on the initial critical winding magnetic field. Next, the initial operating current and initial energy storage capacity are obtained based on the initial equivalent inductance and the initial critical magnet current, mapping the analytically calculated electromagnetic parameters to engineering performance indicators. When the initial structural parameters are deemed unqualified based on the energy storage capacity, central magnetic field, operating current, design target parameters, and topological constraints, the structural parameter modification gradient is obtained using the chain rule based on the initial spatial magnetic field distribution, initial equivalent inductance, and initial critical magnet current, to guide the optimization direction using gradient information. Finally, updated structural parameters are obtained based on the gradient, and the electromagnetic design result is output when the updated structural parameters are deemed qualified, thus forming a complete closed loop from parameter input to scheme output. In summary, this application solves the technical problems of low computational efficiency and inability to achieve closed-loop optimization due to reliance on finite element simulation in existing technologies, thereby improving the efficiency of electromagnetic design of superconducting magnets.

[0008] As a preferred example, obtaining the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under the initial structural parameters includes: The initial structural parameters of the target superconducting magnet are obtained, and each coil of the target superconducting magnet is discretized into straight line segments and arc segments according to the initial structural parameters; Each straight line segment and each arc segment is subjected to cross-sectional meshing and circumferential path segmentation to obtain several linear discrete micro-elements corresponding to each straight line segment and several arc segment discrete micro-elements corresponding to each arc segment. For any one of the linear discrete micro-elements and the arc-segment discrete micro-elements, obtain the geometric position information and current direction information of the discrete micro-element; Based on the geometric position information and the current direction information, each straight line segment and each arc segment are subjected to dimension reduction, discretization, and summation to obtain the local magnetic field distribution corresponding to each coil. The local magnetic field distribution of each coil is converted into a global magnetic field distribution, and all the global magnetic field distributions are superimposed to obtain the initial spatial magnetic field distribution of the target superconducting magnet under the initial structural parameters. Based on the geometric position information and the current direction information, a discrete summation operation is performed on each coil in sequence to obtain the mutual inductance coefficient between each pair of coils, forming a mutual inductance matrix. Based on the series-parallel connection relationship of the coils of the target superconducting magnet, the mutual inductance matrix is ​​transformed to obtain the initial equivalent inductance of the target superconducting magnet under the initial structural parameters.

[0009] The above scheme first obtains the initial structural parameters of the target superconducting magnet, and then discretizes each coil into straight line segments and arc segments based on these parameters, thereby decomposing the complex circumferential topology into several analytically computable geometric primitives. Next, it performs cross-sectional meshing and circumferential path segmentation on each straight line segment and arc segment to obtain discrete infinitesimal elements for each straight line and arc segment, discretizing the continuous current distribution into several small integral units. Then, it obtains the geometric position and current direction information of each discrete infinitesimal element, and performs dimension reduction discretization and summation on each geometric segment based on this information, thereby significantly reducing the computational load. Finally, it obtains the magnetic field distribution of each coil in the local coordinate system based on the summation results, and converts each local magnetic field distribution into... The global magnetic field distribution is superimposed to obtain the initial spatial magnetic field distribution of the target superconducting magnet under the initial structural parameters, achieving high-efficiency and high-precision calculation of the magnetic field distribution of the circumferential magnet. Simultaneously, based on the geometric position information and current direction information, discrete summation operations are performed on each coil sequentially to obtain the mutual inductance coefficients between each pair of coils, forming a mutual inductance matrix. Finally, the mutual inductance matrix is ​​transformed according to the series and parallel connection relationship of the coils to reduce the high-dimensional mutual inductance matrix to the equivalent inductance scalar of the system, obtaining the initial equivalent inductance of the target superconducting magnet. This constructs a fast analytical calculation scheme for the integrated magnetic field and inductance suitable for complex topologies, realizing synchronous, fast, and high-precision calculation of the magnetic field and inductance parameters of circumferential complex topology magnets.

[0010] As a preferred example, the step of obtaining the initial critical winding magnetic field and the initial central magnetic field of the target superconducting magnet based on the initial spatial magnetic field distribution, and obtaining the initial magnet critical current of the target superconducting magnet based on the initial critical winding magnetic field, includes: The magnetic field value at the geometric center of the target superconducting magnet is extracted based on the initial spatial magnetic field distribution, and the magnetic field value is used as the central magnetic field of the target superconducting magnet. For any candidate position in the winding region of the target superconducting magnet, the magnetic field vector corresponding to the candidate position is extracted from the initial spatial magnetic field distribution; Based on the strip width of the target superconducting magnet, the magnetic field vector is decomposed into a parallel component parallel to the strip width and a perpendicular component perpendicular to the strip width. Based on the parallel component, the perpendicular component, and the preset anisotropy correction coefficient, the equivalent magnetic field corresponding to the candidate position is synthesized. The maximum value among all the equivalent magnetic fields in the target superconducting magnet is selected as the initial dangerous winding magnetic field corresponding to the target superconducting magnet; The initial critical current of the target superconducting magnet under the initial structural parameters is obtained based on the initial dangerous winding magnetic field.

[0011] The above scheme extracts the magnetic field value at the geometric center of the target superconducting magnet based on the initial spatial magnetic field distribution, and uses this magnetic field value as the central magnetic field. Then, for any candidate position in the winding region, the magnetic field vector corresponding to the candidate position is extracted from the initial spatial magnetic field distribution to obtain the magnetic field direction and amplitude information of each candidate point. Next, based on the strip width, the magnetic field vector of each candidate point is decomposed into a parallel component parallel to the strip width and a perpendicular component perpendicular to the strip width to distinguish the differential influence of the magnetic field direction on the critical current degradation. Then, based on the parallel component, the perpendicular component, and the preset anisotropy correction coefficient, the equivalent magnetic field corresponding to the candidate position is synthesized to reflect the comprehensive suppression degree of the magnetic field at the candidate point on the strip critical current. Finally, the maximum value of the equivalent magnetic field at all candidate positions is selected as the initial dangerous winding magnetic field to lock the weakest link in the entire magnet that is most likely to fail first, improving the engineering accuracy of the magnet critical current prediction and providing reliable input for subsequent improved load line method iterations.

[0012] As a preferred example, obtaining the initial critical current of the target superconducting magnet under the initial structural parameters based on the initial dangerous winding magnetic field includes: The operating temperature of the target superconducting magnet, the degradation function of the superconducting tape critical current, the current convergence tolerance and the initial test current are obtained, and the current update operation is repeatedly performed until the difference between the initial tape critical current corresponding to the initial test current and the initial test current is less than or equal to the current convergence tolerance, so as to obtain the initial magnet critical current of the target superconducting magnet under the initial structural parameters. The current update operation includes: The actual equivalent magnetic field of the target superconducting magnet at the danger point under the initial test current is obtained by multiplying the initial test current and the initial dangerous winding magnetic field. Based on the actual equivalent magnetic field at the danger point and the operating temperature, the initial tape critical current of the target superconducting magnet is obtained through the superconducting tape critical current degradation function. When the difference between the initial strip critical current and the initial test current is greater than the current convergence tolerance, the initial test current is corrected to obtain the corrected test current, and the corrected test current is used as the initial test current. When the difference between the initial strip critical current and the initial test current is less than or equal to the current convergence tolerance, the initial test current is taken as the initial magnet critical current of the target superconducting magnet under the initial structural parameters.

[0013] The above scheme first obtains the operating temperature of the target superconducting magnet, the degradation function of the superconducting tape critical current, the set current convergence tolerance, and the initial test current to construct all the input conditions required for the improved load line equation. Then, it obtains the actual equivalent magnetic field at the danger point by multiplying the initial test current by the initial danger winding magnetic field, thereby establishing a quantitative correlation between the assumed value of the test current and the actual operating conditions at the danger point. Next, based on the actual equivalent magnetic field and the operating temperature, it obtains the tape critical current through the degradation function of the superconducting tape critical current to determine whether the tape can bear the load at the test current level. Finally, it compares the tape critical current with the test current to accurately lock the current-carrying limit of the magnet in the closed-loop cycle.

[0014] As a preferred example, obtaining the initial operating current and initial energy storage capacity of the target superconducting magnet based on the initial equivalent inductance and the initial magnet critical current includes: Obtain the operating margin coefficient of the target superconducting magnet; The initial operating current of the target superconducting magnet is obtained by multiplying the operating margin coefficient by the initial critical current of the magnet. Perform a square operation on the initial operating current to obtain the squared value of the initial operating current; The product of the initial equivalent inductance and the square of the initial operating current is used to obtain the product result, and half of the product result is used as the initial energy storage capacity of the target superconducting magnet.

[0015] The above scheme first obtains the operating margin coefficient of the target superconducting magnet to reduce the critical current to a safe operating range, thereby providing engineering safety redundancy for stable magnet operation. Then, it obtains the initial operating current by multiplying the operating margin coefficient by the initial critical current of the magnet, so as to convert the magnet's ultimate current-carrying capacity into the actual operating current. Next, it performs a square operation on the initial operating current to obtain the square value of the current, so as to reflect the square proportional relationship between energy storage and current. Finally, it obtains the product result by multiplying the initial equivalent inductance by the square value of the current, and takes half of the product result as the initial energy storage capacity, realizing the quantitative transformation from the underlying electromagnetic parameters to the top-level engineering performance, and establishing a complete engineering mapping link from critical current to operating current, and from equivalent inductance to energy storage capacity.

[0016] As a preferred example, the design target parameters include the target energy storage capacity and the target central magnetic field; the initial structural parameters include initial continuous structural parameters and initial fixed structural parameters; when the initial structural parameters are determined to be unqualified based on the initial energy storage capacity, the initial central magnetic field, the initial operating current, the initial magnet critical current, the design target parameters of the target superconducting magnet, and the topological constraints, the structural parameter modification gradient of the target superconducting magnet is obtained through a chain rule based on the initial spatial magnetic field distribution, the initial equivalent inductance, and the initial magnet critical current, including: When the initial energy storage capacity is less than the target energy storage capacity, or the initial central magnetic field is less than the target central magnetic field, or the initial operating current is greater than or equal to the initial magnet critical current, or the initial structural parameters do not meet the topological constraint conditions, the initial structural parameters are determined to be unqualified. When the initial structural parameters are determined to be unqualified, the partial derivatives of the initial dangerous winding magnetic field with respect to each of the initial continuous structural parameters are obtained as the first set of partial derivatives. Obtain the partial derivatives of the initial equivalent inductance with respect to each of the continuous structural parameters, and use them as the second set of partial derivatives; The derivative of the initial critical current of the magnet with respect to the magnetic field of the initial dangerous winding is obtained based on the degradation function of the critical current of the superconducting tape. Based on the first set of partial derivatives and the derivatives, the current gradient of the initial magnet critical current with respect to each of the initial continuous structure parameters is synthesized using the implicit function differentiation rule; Based on the second set of partial derivatives and the current gradient, the capacity gradient of the initial energy storage capacity with respect to each of the continuous structural parameters is synthesized using the product rule; The current gradient and the capacity gradient are used together as the structural parameter modification gradient of the target superconducting magnet.

[0017] The above scheme first obtains the partial derivatives of the initial dangerous winding magnetic field with respect to each initial continuous structural parameter as the first set of partial derivatives, thereby establishing the sensitivity information of the dangerous winding magnetic field as the structural parameters change. Simultaneously, it obtains the partial derivatives of the initial equivalent inductance with respect to each continuous structural parameter as the second set of partial derivatives to obtain the sensitivity information of the inductance parameter as the structural parameters change. Then, based on the degradation function of the superconducting tape critical current, it obtains the derivative of the initial magnet critical current with respect to the initial dangerous winding magnetic field to quantify the sensitivity of the tape's current-carrying capacity to the magnetic field. Next, based on the first set of partial derivatives and the derivative, it uses the implicit function differentiation rule to synthesize the current gradient of the initial magnet critical current with respect to each continuous structural parameter, thereby achieving efficient gradient transfer of the critical current to the structural parameters. Then, based on the second set of partial derivatives and the current gradient, it uses the product rule to synthesize the capacity gradient of the initial energy storage capacity with respect to each continuous structural parameter, thereby establishing the gradient link of the energy storage capacity with respect to the structural parameters. Finally, it uses each current gradient and each capacity gradient together as the structural parameter modification gradient to convert the rate of change of electromagnetic performance indicators into search direction information required by the optimization algorithm, providing core driving data for subsequent gradient optimization.

[0018] As a preferred example, the step of modifying the gradient according to the structural parameters to obtain the updated structural parameters corresponding to the initial structural parameters, so as to obtain the electromagnetic design results of the target superconducting magnet according to the updated structural parameters when the updated structural parameters are deemed qualified based on the real-time energy storage capacity, real-time central magnetic field, design target parameters, and topological constraints, includes: When the initial structural parameters are determined to be unqualified, the gradient of the structural parameter modification is used as the search direction to update the initial continuous structural parameters in the initial structural parameters, thereby obtaining the updated continuous structural parameters; Based on the updated continuous structural parameters and the initial fixed structural parameters, the updated structural parameters corresponding to the target superconducting magnet are obtained; The real-time energy storage capacity, real-time central magnetic field, real-time equivalent inductance, real-time operating current, and real-time critical current of the target superconducting magnet under the updated structural parameters are obtained. When the real-time energy storage capacity is greater than or equal to the target energy storage capacity, the real-time central magnetic field is greater than or equal to the target central magnetic field, the real-time operating current is less than the real-time magnet critical current, and the updated structural parameters satisfy the topological constraint conditions, the updated structural parameters, the real-time energy storage capacity, the real-time central magnetic field, the real-time equivalent inductance, the real-time operating current, and the real-time magnet critical current are taken as the electromagnetic design results of the target superconducting magnet.

[0019] The above scheme first updates the initial continuous structural parameters by using the gradient of structural parameter modification as the search direction when the initial structural parameters are deemed unqualified. Specifically, a quadratic programming subproblem is constructed using the gradient information to solve for the optimal update step size and direction, resulting in the updated continuous structural parameters. This transforms the gradient information into a specific parameter adjustment scheme. Then, updated structural parameters are synthesized based on the updated continuous structural parameters and the initial fixed structural parameters to form a complete candidate design scheme. Next, the real-time energy storage capacity, real-time central magnetic field, real-time equivalent inductance, real-time operating current, and real-time critical current of the target superconducting magnet under the updated structural parameters are obtained to evaluate whether the updated design scheme meets all engineering requirements. When the real-time energy storage capacity is greater than or equal to the target energy storage capacity, the real-time central magnetic field is greater than or equal to the target central magnetic field, the real-time operating current is less than the real-time critical current of the magnet, and the updated structural parameters meet the topological constraints, the updated structural parameters and all corresponding real-time performance data are output as the electromagnetic design results. This locks the candidate scheme that meets all constraints as the final design scheme, achieving a fully automatic closed loop from structural parameter updating to scheme qualification determination, significantly reducing manual intervention.

[0020] As a preferred example, the step of obtaining updated structural parameters corresponding to the initial structural parameters by modifying the gradient according to the structural parameters, so as to obtain the electromagnetic design results of the target superconducting magnet based on the updated structural parameters when the updated structural parameters are deemed qualified according to the real-time energy storage capacity, real-time central magnetic field, design target parameters, and topological constraints, further includes: When the updated structural parameters are deemed unqualified, the initial structural parameters are updated to the updated structural parameters, and the structural parameter update operation is repeated until the initial structural parameters are deemed qualified, thereby obtaining the electromagnetic design result of the target superconducting magnet; wherein, the structural parameter update operation includes: Obtain the initial spatial magnetic field distribution, initial equivalent inductance, initial central magnetic field, initial operating current, initial magnet critical current, and initial energy storage capacity corresponding to the initial structural parameters; When the initial energy storage capacity is greater than or equal to the target energy storage capacity, the initial central magnetic field is greater than or equal to the target central magnetic field, the initial operating current is less than the initial magnet critical current, and the initial structural parameters satisfy the topological constraint conditions, the initial structural parameters, the initial energy storage capacity, the initial central magnetic field, the initial equivalent inductance, the initial operating current, and the initial magnet critical current are taken as the electromagnetic design results of the target superconducting magnet; When the initial energy storage capacity is less than the target energy storage capacity, or the initial central magnetic field is less than the target central magnetic field, or the initial operating current is greater than or equal to the initial magnet critical current, or the initial structural parameters do not meet the topological constraint conditions, the initial structural parameters are corrected to obtain the corrected structural parameters, and the initial structural parameters are updated to the corrected structural parameters.

[0021] When the updated structural parameters are deemed unqualified, the above scheme updates the initial structural parameters to these updated parameters, using the result of the current iteration as the starting point for the next iteration, thus establishing a continuous optimization loop. The structural parameter update operation is then repeated until the initial structural parameters are deemed qualified, resulting in the electromagnetic design result. Specifically, the data update operation includes: acquiring the initial spatial magnetic field distribution, initial equivalent inductance, initial central magnetic field, initial operating current, initial magnet critical current, and initial energy storage capacity corresponding to the current initial structural parameters. When the initial energy storage capacity is greater than or equal to the target energy storage capacity, the initial central magnetic field is greater than or equal to the target central magnetic field, the initial operating current is less than the initial magnet critical current, and the initial structural parameters satisfy the topological constraints, the current initial structural parameters and all corresponding performance data are output as the electromagnetic design result. That is, once the current scheme satisfies all constraints, the loop immediately terminates and the result is output. If the current scheme is still unqualified, the loop judgment mechanism continues to the next iteration, achieving adaptive search of the scheme space. In summary, the above-mentioned scheme solves the technical problems of termination upon single optimization failure, lack of fault tolerance mechanism and continuous search capability in the prior art. It ensures that the design scheme continuously approaches the optimal feasible solution under the joint drive of objective function and constraints, and finally converges more steadily to a scheme that satisfies all engineering constraints, thereby improving the probability and efficiency of obtaining a design scheme that satisfies engineering constraints.

[0022] Secondly, the present invention discloses an electromagnetic design system for superconducting magnets, including a magnetic field inductance module, a critical current module, a current capacity module, an electromagnetic verification module, and a design optimization module; The magnetic field and inductance module is used to obtain the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under the initial structural parameters. The critical current module is used to obtain the initial dangerous winding magnetic field and the initial central magnetic field of the target superconducting magnet according to the initial spatial magnetic field distribution, so as to obtain the initial magnet critical current of the target superconducting magnet according to the initial dangerous winding magnetic field. The current capacity module is used to obtain the initial operating current and initial energy storage capacity of the target superconducting magnet based on the initial equivalent inductance and the initial magnet critical current. The electromagnetic verification module is used to obtain the structural parameter modification gradient of the target superconducting magnet by means of the chain rule when the initial structural parameters are determined to be unqualified based on the initial energy storage capacity, the initial central magnetic field, the initial operating current, the initial magnet critical current, the design target parameters and topological constraints of the target superconducting magnet. The design optimization module is used to modify the gradient according to the structural parameters to obtain the updated structural parameters corresponding to the initial structural parameters, so that when the updated structural parameters are deemed qualified according to the real-time energy storage capacity, real-time central magnetic field, design target parameters and topological constraints corresponding to the updated structural parameters, the electromagnetic design result of the target superconducting magnet can be obtained according to the updated structural parameters.

[0023] This invention discloses an electromagnetic design system for superconducting magnets. First, it acquires the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under initial structural parameters, serving as the basis for subsequent electromagnetic performance evaluation and gradient calculation. Then, based on the initial spatial magnetic field distribution, it acquires the initial critical winding magnetic field and the initial central magnetic field, using the modified load line method to iteratively solve for the initial magnet critical current. Next, based on the initial equivalent inductance and the initial magnet critical current, it acquires the initial operating current and initial energy storage capacity, mapping the analytically calculated electromagnetic parameters to engineering performance indicators. When the initial structural parameters are deemed unqualified based on the energy storage capacity, central magnetic field, operating current, design target parameters, and topological constraints, it acquires the structural parameter modification gradient using the chain rule based on the initial spatial magnetic field distribution, initial equivalent inductance, and initial magnet critical current, utilizing gradient information to guide the optimization direction. Finally, it acquires updated structural parameters based on the gradient, and outputs the electromagnetic design result when the updated structural parameters are deemed qualified, thus forming a complete closed loop from parameter input to scheme output. In summary, this application solves the technical problems of low computational efficiency and inability to achieve closed-loop optimization due to reliance on finite element simulation in existing technologies, thereby improving the efficiency of electromagnetic design of superconducting magnets.

[0024] Thirdly, the present invention discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement an electromagnetic design method for a superconducting magnet as described in the first aspect of the present invention. Attached Figure Description

[0025] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0026] Figure 1 This is a flowchart illustrating an electromagnetic design method for superconducting magnets disclosed in an embodiment of the present invention. Figure 2 This is a schematic diagram of a D-type coil structure and discrete magnet modeling disclosed in an embodiment of the present invention; Figure 3 This is a schematic diagram of an electromagnetic design system for superconducting magnets disclosed in an embodiment of the present invention. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms in the specification, claims and foregoing description of the drawings of this application include and have, and any variations thereof, and are intended to cover non-exclusive inclusion.

[0029] In the description of the embodiments of this application, technical terms such as "first," "second," etc., are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0030] References to embodiments herein mean that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0031] In the description of the embodiments of this application, the terms and / or are merely a description of the relationship between associated objects, indicating that there can be three relationships, such as A and / or B, which can represent: A existing alone, A and B existing simultaneously, and B existing alone.

[0032] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple groups" refers to two or more (including two groups), and "multiple pieces" refers to two or more (including two pieces).

[0033] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as installation, connection, linking, and fixing should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0034] Reference Figure 1 To address the problems of existing electromagnetic design relying on finite element methods, low simulation efficiency, and inability to perform closed-loop optimization, and to improve the design efficiency of superconducting magnets, this embodiment provides an electromagnetic design method for superconducting magnets, including: Step 101: Obtain the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under the initial structural parameters; Step 102: Obtain the initial critical winding magnetic field and the initial central magnetic field of the target superconducting magnet based on the initial spatial magnetic field distribution, so as to obtain the initial magnet critical current of the target superconducting magnet based on the initial critical winding magnetic field; Step 103: Obtain the initial operating current and initial energy storage capacity of the target superconducting magnet based on the initial equivalent inductance and the initial critical current of the magnet; Step 104: When the initial structural parameters are determined to be unqualified based on the initial energy storage capacity, the initial central magnetic field, the initial operating current, the initial magnet critical current, the design target parameters of the target superconducting magnet, and the topological constraints, the structural parameter modification gradient of the target superconducting magnet is obtained by using the chain rule based on the initial spatial magnetic field distribution, the initial equivalent inductance, and the initial magnet critical current. Step 105: Modify the gradient according to the structural parameters to obtain the updated structural parameters corresponding to the initial structural parameters, so that when the updated structural parameters are deemed qualified according to the real-time energy storage capacity, real-time central magnetic field, design target parameters and topological constraints corresponding to the updated structural parameters, the electromagnetic design results of the target superconducting magnet are obtained according to the updated structural parameters.

[0035] In this embodiment, the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under initial structural parameters are obtained as the basis data for subsequent electromagnetic performance evaluation and gradient calculation. Then, based on the initial spatial magnetic field distribution, the initial critical winding magnetic field and the initial central magnetic field are obtained, and the initial critical magnet current is solved iteratively using the modified load line method based on the initial critical winding magnetic field. Next, based on the initial equivalent inductance and the initial critical magnet current, the initial operating current and initial energy storage capacity are obtained, mapping the analytically calculated electromagnetic parameters to engineering performance indicators. When the initial structural parameters are deemed unqualified based on the energy storage capacity, central magnetic field, operating current, design target parameters, and topological constraints, the structural parameter modification gradient is obtained using the chain rule based on the initial spatial magnetic field distribution, initial equivalent inductance, and initial critical magnet current, to guide the optimization direction using gradient information. Finally, updated structural parameters are obtained based on the gradient, and the electromagnetic design result is output when the updated structural parameters are deemed qualified, thus forming a complete closed loop from parameter input to scheme output. In summary, this application solves the technical problem of low computational efficiency and inability to achieve closed-loop optimization due to reliance on finite element simulation in existing technologies, improving the efficiency of superconducting magnet electromagnetic design.

[0036] In this embodiment, step 101 includes: Step 1011: Obtain the initial structural parameters of the target superconducting magnet, and discretize each coil of the target superconducting magnet into straight line segments and arc segments according to the initial structural parameters; Step 1012: Perform cross-sectional meshing and circumferential path segmentation on each of the straight line segments and each of the arc segments to obtain several linear discrete micro-elements corresponding to each of the straight line segments and several arc segment discrete micro-elements corresponding to each of the arc segments. Step 1013: For any one of the linear discrete micro-elements and the arc discrete micro-elements, obtain the geometric position information and current direction information of the discrete micro-element; Step 1014: Based on the geometric position information and the current direction information, perform dimension reduction, discretization, and summation on each of the straight line segments and each of the arc segments to obtain the local magnetic field distribution corresponding to each of the coils; Step 1015: Convert the local magnetic field distribution of each coil into a global magnetic field distribution, and superimpose all the global magnetic field distributions to obtain the initial spatial magnetic field distribution of the target superconducting magnet under the initial structural parameters; Step 1016: Perform discrete summation operation on each coil sequentially according to the geometric position information and the current direction information to obtain the mutual inductance coefficient between each pair of coils and form a mutual inductance matrix; Step 1017: Perform matrix transformation on the mutual inductance matrix according to the series-parallel connection relationship of the coils of the target superconducting magnet to obtain the initial equivalent inductance of the target superconducting magnet under the initial structural parameters.

[0037] In this embodiment, the magnet design target of the target superconducting magnet is determined; wherein, the target energy storage capacity is set. Target center magnetic field Operating margin η, energy storage margin γ, insulation margin ζ, maximum allowable current Insulation voltage level Maximum wire length for a single-disc coil And the upper and lower limits of structural variables, determining the initial structural parameters For circumferential D-type magnets, the number of circumferential units M and the number of turns of a single disc coil can be set. Number of double-pancake coils Circumferential unit spacing Length H of the straight segment, radius of the arc segment , and arc angle , .

[0038] It is important to note that when establishing a parametric structural model of the superconducting magnet, the inner radius, outer radius, coil height, number of coil turns, number of coil layers, number of circumferential units, winding spacing, strip width, strip thickness, and insulation layer thickness should be used as design structural parameters. These design structural parameters are uniformly expressed as follows: Among them, the It represents any one of the structural parameters in the design structure parameters.

[0039] For circumferential D-type high-temperature superconducting magnets, the following structural parameter vector can be selected: Where θ is the structural parameter vector to be optimized, and M is the number of circumferential elements. For the number of turns of a single disc coil, This refers to the number of double-pane coils in the circumferential unit. H represents the circumferential unit spacing, and H represents the height of the straight section of the coil. Depending on the magnet configuration, the variables can also be expanded to include interlayer spacing, inter-panel spacing, bending radius, coil tilt angle, or strip specifications.

[0040] In this embodiment, the high-temperature superconducting toroidal magnet is applied in scenarios such as energy storage, controlled nuclear fusion, and high-field magnets, and operates under quasi-static or steady-state electromagnetic conditions with low-frequency, high-current operation. Furthermore, the extremely high superconducting current density eliminates the need for ferromagnetic materials to enhance the magnetic field. Based on this, the toroidal high-temperature superconducting magnet is composed of several symmetrically arranged toroidal units (denoted as...). Each circumferential unit contains several high-temperature superconducting coils; and the coil structures include D-shaped, circular, and racetrack-shaped, all of which can be modeled as a combination of several straight line segments and circular arc segments. This embodiment uses a circumferential D-shaped magnet as an example for illustration.

[0041] Specifically, such as Figure 2 As shown, each D-type coil is a double pancake coil (DPC), and each DPC consists of two single pancake coils (SPCs). The parameterized topology of the D-type coil can be viewed as a combination of a straight line and several circular arcs: the length of the inner straight line segment is denoted as h, and the inner radius of each arc segment is denoted as t. Arc angle is denoted as The coordinates of the curvature centers of each arc segment in the rz plane of the magnet cylindrical coordinate system are ( , The internal radius of a magnet is defined as follows: That is, the vertical distance from the inner side of the coil to the center of the magnet; the distance of each SPC from the center of the circumferential unit is denoted as... (1 ≤ m ≤ 2) The coil thickness along the strip stacking direction is denoted as t.

[0042] In this embodiment, the circumferential magnet structure is discretized and modeled, and the coil cross-section and circumferential path are discretized. Specifically, the discretization is as follows: Cross-section discretization: Each SPC cross-section is divided into an n × m array, where the number of discretization points along the strip stacking direction (thickness direction) is n with a step size of Δt; the number of discretization points along the width direction is m with a step size of Δw.

[0043] Circumferential Discretization: Discretizing each geometric segment t along the circumferential path of the coil into... There are units, with line element length Δl, and for arc segment Δl = ·Δθ.

[0044] After performing the discretization, this embodiment respectively focuses on the center inside the straight line segment of the coil and each arc segment. Establish a local Cartesian coordinate system at the center of curvature, with a discrete point array (i, j, k) (1 ≤ i ≤ n, 1 ≤ j ≤ m, 1 ≤ k ≤ ...). Position vector in their respective local coordinate systems It can be represented as: Among them, the , , These are the discrete sampling coordinates in the thickness direction, width direction, and height direction of the straight segment of the winding cross section, respectively, where i, j, and k are the corresponding discrete point numbers.

[0045] The current density vector of the discrete point array (i, j, k) in the local coordinate system It can be represented as: In this embodiment, the This represents the structure parameters generated after the k-th iteration.

[0046] In this embodiment, to facilitate understanding of the calculation principle of this step, the physical assumptions used in this embodiment will be explained first; specifically, three core assumptions applicable to high-temperature superconducting toroidal magnets are proposed: 1) Quasi-static assumption: The magnet operates under quasi-static conditions, and the time-varying effects of displacement current and source current can be ignored, i.e. ( , The field quantity changes almost synchronously with the excitation source; where J represents the current density vector in the superconducting winding or conductor region, with units of A / m²; and D represents the electric displacement vector, with units of C / m². This indicates that under quasi-static conditions, the current is continuous and there is no charge accumulation. This indicates that the effect of displacement current changing with time on the magnetic field calculation is ignored.

[0047] 2) Air medium assumption: The magnet is in a stationary state, and the surrounding medium can be treated as a linear, homogeneous, and isotropic electromagnetic medium.

[0048] 3) Far-field approximation assumption: The effects of uneven current distribution within the superconducting tape and the shielding current effect are limited to the near region of the coil and have little impact on the magnetic field calculation in the far-field region, thus ensuring the effectiveness of the far-field calculation.

[0049] Based on the above assumptions, the quasi-static electromagnetic field in an unbounded, stationary linear medium has an analytical solution: in, r = x - x 'The position vector from source point x' to field point x. r = | r |;A represents the magnetic vector potential, with units of Wb / m or T·m; μ represents the magnetic permeability of the medium, which can be taken as μ=μ0 for air or vacuum media; V' represents the volume integral region where the current source is located; B represents the magnetic induction intensity vector, with units of T.

[0050] Furthermore, the magnet inductance can also be obtained by integrating the static magnetic energy throughout the entire space: Wherein, E represents a magnetic field; L represents an inductance; I represents a current; and V represents a voltage.

[0051] Starting from the aforementioned quasi-static electromagnetic field equations and discrete model, the analytical formula for the magnetic field of a straight line segment in its local Cartesian coordinate system can be derived. B l As shown in the following formula: Wherein, Δt, Δw, and Δh represent the discrete step lengths in the winding thickness direction, strip width direction, and straight segment height direction, respectively; n, m, and p represent the number of discrete points in the thickness direction, width direction, and straight segment height direction, respectively; R represents the distance between the source point x_i,j,k and the field point (x,y,z); and y represents the coordinates of the field point in the local Cartesian coordinate system along the strip width direction.

[0052] The arc segments were derived. Analytical formula of magnetic field in its local Cartesian coordinate system B r,t As shown in the following formula: Among them, the This represents the i-th discrete sampling coordinate in the thickness direction of the arc segment winding section, i.e., the radial thickness offset relative to the reference radius of the arc segment; therefore + This represents the actual radius of curvature corresponding to the discrete source point.

[0053] In this embodiment, the above two equations are essentially still triple discrete integrals. During dynamic electromagnetic processes, the superconducting current mainly changes along the width direction of the strip, while its distribution in the thickness and circumferential directions is relatively uniform. Based on this, a simplified assumption for current distribution is introduced: ignoring the slight differences in current in non-width directions, the volumetric current density is... J ( x ijk Transformed to only width coordinates w j Related surface current distribution K j =∫ J d t .

[0054] In this embodiment, for the straight line segment of the SPC single-pane coil, the position vector in the local rectangular coordinate system is... r = ( x + t , y - w , z -h ) is the source point (- t , w , h Arrival point ( x , y , z The position vector of ); then, according to the formula for the analytical solution of the quasi-static electromagnetic field, the magnetic field generated by the straight line segment is the integral domain Ω = [0, T ] × [- W / 2, W / 2] × [- H / 2, H The triple integral over [ / 2], where T is the thickness of the SPC cable in the stacking direction, W is the strip width, and H is the length of the straight segment, i.e.: Ω = [0, T ] × [- W / 2, W / 2] × [- H / 2, H / 2] In the formula, R 2 = ( t + x ) 2 + ( w - y ) 2 + ( h - z ) 2 Transforming the integral into a discrete summation form yields the analytical formula for the magnetic field described above; while introducing auxiliary variables... u = t + x , v = w - y , l = h - z Combining the simplified assumption of superconducting current distribution J = K / T, and the integral transform formula = Then the analytical formula for the magnetic field can be simplified to: Wherein, u, v, and l are auxiliary variables introduced to simplify the integration of the magnetic field of the straight segment; u=t+x represents the relative coordinates of the thickness direction formed between the source point thickness direction coordinate and the field point x coordinate; v=wy represents the relative coordinates of the width direction formed between the source point width direction coordinate and the field point y coordinate; l=hz represents the relative coordinates of the height direction formed between the source point height direction coordinate and the field point z coordinate; t, w, and h represent the integration variables of the source point in the winding thickness direction, the strip width direction, and the straight segment height direction, respectively; x, y, and z represent the coordinates of the field point in the local Cartesian coordinate system, respectively; K represents the equivalent surface current density, which is obtained by integrating the volume current density J along the winding thickness direction; when the current distribution in the thickness direction is approximately uniform, J=K / T, where T is the winding thickness; a² is an auxiliary square term introduced in the integral transformation, used to represent the sum of squares of the remaining relative coordinates other than the integrated variable; for example, when integrating the variable u, a²=v²+l²; where a² is only used for simplifying the integral formula and is not a magnet structure parameter.

[0055] Further combining with the integral transform formula: The above magnetic field analytical formula can be simplified to the following single integral: Meanwhile, the above single integral formula can be transformed into a discrete summation form of B in the strip width direction, which is the following formula: In the formula, vector = (y- (, h / 2-z) = (y- (, h / 2+z) = (y- , θk); where, , , , This is an auxiliary boundary function defined in the process of simplifying the analytical integral of the magnetic field. It is used to represent the boundary contribution term obtained by substituting the upper and lower limits of the integral variable into the analytical original function. , , The input vectors corresponding to the auxiliary boundary functions are used to characterize the relative positional relationships between the field points and the line segment height boundary, width discrete points, and arc segment angle discrete points, respectively; This represents the j-th discrete sampling coordinate in the strip width direction.

[0056] In this embodiment, for the arc segment of the SPC single-pane coil, the source point in the local rectangular coordinate system is (( r +t sin θ , w , ( r + t cos θ ), the site is ( x , y , z The magnetic field integral domain is Ω = [0, T ] × [- W / 2, W / 2] × [ α , β Similarly, based on the analytical solution of the quasi-static electromagnetic field, the magnetic field is a triple integral: Wherein, α and β represent the starting angle and ending angle of the SPC single-pane coil arc segment in the local coordinate system, respectively, and [α,β] represents the angle integration range of the arc segment.

[0057] Transforming this integral into a discrete summation form yields the analytical formula for the magnetic field in its local Cartesian coordinate system. Similarly, combining the simplifying assumptions about the superconducting current distribution and the integral transformation formula: The formula for the magnetic field as a triple integral can be simplified to a double discrete summation form, as shown in the following equation: In this embodiment, vector = (y- (, h / 2-z) = (y- (, h / 2+z) = (y- , θk); where x is the current integration variable; X is the quadratic auxiliary function introduced in the integral transform; X=x²+bx+a; a and b are the constant term and the coefficient of the first term in this quadratic form, respectively, and their specific values ​​are determined by the relative coordinate relationship between the source point and the field point; it should be noted that X, a, and b are only used for analytical integration simplification and are not part of the magnet structure parameters; the This represents the number of discrete points or discrete units divided along the circumferential angle direction of the t-th arc segment.

[0058] By using the above-mentioned dimension reduction discretization and summation, that is, using single summation for straight line segments and double summation for arc segments, the local magnetic field distribution of each straight line segment and each arc segment in their respective local coordinate system can be obtained.

[0059] In this embodiment, the magnetic fields of each segment are transformed from the local Cartesian coordinate system to the coordinate system of the magnet center through coordinate transformation and linearly superimposed to obtain the magnetic field distribution of a single D-type SPC coil. B SPC Then, by performing coordinate transformation and superposition on the magnetic field of each SPC in the DPC array, the magnetic field distribution of a single circumferential unit is obtained. B unit : In this embodiment, based on rotational symmetry, the magnetic field of the circumferential unit is rotated and superimposed to obtain the magnetic field distribution of the entire circumferential magnet. B mt ,in β s = 2sπ / N unit (1 ≤ s ≤ N unit ) represents the rotation angle of each circumferential element: Among them, the β s This represents the rotation angle of the s-th circumferential element relative to the reference circumferential element.

[0060] in, Q 1. Q 2. Q 3. Q The expression for 4 is as follows: Wherein, ξ and η are auxiliary variables used to represent the relative coordinate components after integral transformation; u is an auxiliary variable in the thickness direction, usually obtained by combining the source point thickness direction coordinates and the field point coordinates, used to represent the relative position of the thickness direction when the upper and lower limits of integration are substituted.

[0061] After the above coordinate transformation and superposition process, the initial spatial magnetic field distribution B(x,θ,I) of the target superconducting magnet under the initial structural parameters is obtained.

[0062] In this embodiment, if the details of the current distribution within the conductor cross-section are ignored, and the coil is considered equivalent to the current along the centerline of loop C, the inductance integral formula can be simplified to the Newman formula: Where dl and dl' represent the minute line element vectors at two different positions on the closed path C; This represents the loop integral along the closed path C.

[0063] To construct the inductance matrix distribution of the magnet, we first examine the circumferential unit. p , q Any two SPC single-pie coils SPC1, SPC2 (i∈ U p , j∈ U q , U p (representing the SPC set of the circumferential element p), the pie spacing from the center of the circumferential element is... d m1 , d m2 And the rotation angle difference between the two circumferential elements is Δ β 12 = β p – β q The mutual inductance between two SPC coils can be obtained based on the discrete method and the Newman formula. M 12 : In the formula, ( x 1, z 1, J 1,x , J 1,z ) represents the centerline current of SPC1 at discrete points k The coordinates and current density components at point 1. Specifically, when Δ... β = 0, d m1 = d m2 At that time, the above formula degenerates into SPC self-inductance. L SPC By calculating the mutual inductance between each SPC one by one, the inductance matrix at the SPC level can be constructed. M SPC The above, Represents the set of SPC single-pane coils contained in the circumferential element q; j∈ This indicates that the j-th SPC single-pane coil belongs to the circumferential unit q; the , These represent the rotation angles of circumferential elements p and q relative to the reference circumferential element, respectively; Δ = - This represents the rotational angle difference between the two circumferential units involved in the mutual inductance calculation; The aforementioned... , These represent the components of the centerline current density of SPC1 and SPC2 in the local x-direction, respectively. , These represent the components of the centerline current density of SPC1 and SPC2 in the local z-direction, respectively. , These represent the coordinates of the discrete points on the centerlines of SPC1 and SPC2 in the local z-direction, respectively.

[0064] In this embodiment, considering the modular design of the magnet, the coils in the same unit are usually connected in series. Therefore, the focus is more on the inductance matrix between the circumferential units. M unit It can be derived from M SPC Derived from matrix transformation: In summary, given the structural parameter θ, the above analytical calculation methods for magnetic field and inductance are used to calculate the spatial magnetic field distribution, inductance, central magnetic field, and maximum equivalent magnetic field in the winding region under the current structure, as shown below: In the formula, B(x,θ,I) is the magnetic induction intensity at spatial location x, with structural parameter θ and current I. This represents the magnetic field distribution under a unit current. Center of the magnet; The central magnetic field; Ωw represents the maximum magnetic field in the winding region; L represents the superconducting winding region; and L represents the magnet inductance. Let M be the equivalent inductance; s be the inductance matrix; and s be the coil connection vector. The superscript T indicates transpose. Through the above matrix transformation, the inductance matrix at the SPC level is reduced to the equivalent inductance matrix at the circumferential unit level, thereby obtaining the scalar equivalent inductance of the magnet. This is the initial equivalent inductance of the target superconducting magnet under the initial structural parameters.

[0065] The above implementation method obtains the initial structural parameters of the target superconducting magnet, and discretizes each coil into straight line segments and arc segments according to the initial structural parameters, thereby decomposing the circumferential complex topology into several analytically computable geometric primitives; then, each straight line segment and each arc segment is subjected to cross-sectional meshing and circumferential path segmentation to obtain each straight line discrete infinitesimal element and each arc segment discrete infinitesimal element, discretizing the continuous current distribution into several small integral units; then, the geometric position information and current direction information of each discrete infinitesimal element are obtained, and each geometric segment is subjected to dimension reduction discretization and summation according to the information, thereby significantly reducing the amount of computation; then, the magnetic field distribution of each coil in the local coordinate system is obtained according to the summation result, and each local magnetic field distribution is converted into The global magnetic field distribution is superimposed to obtain the initial spatial magnetic field distribution of the target superconducting magnet under the initial structural parameters, achieving high-efficiency and high-precision calculation of the magnetic field distribution of the circumferential magnet. Simultaneously, based on the geometric position information and current direction information, discrete summation operations are performed on each coil sequentially to obtain the mutual inductance coefficients between each pair of coils, forming a mutual inductance matrix. Finally, the mutual inductance matrix is ​​transformed according to the series and parallel connection relationship of the coils to reduce the high-dimensional mutual inductance matrix to the equivalent inductance scalar of the system, obtaining the initial equivalent inductance of the target superconducting magnet. This constructs a fast analytical calculation scheme for the integrated magnetic field and inductance suitable for complex topologies, realizing synchronous, fast, and high-precision calculation of the magnetic field and inductance parameters of circumferential complex topology magnets.

[0066] In this embodiment, step 102 includes: Step 1021: Extract the magnetic field value at the geometric center of the target superconducting magnet based on the initial spatial magnetic field distribution, and use the magnetic field value as the central magnetic field of the target superconducting magnet; Step 1022: For any candidate position in the winding region of the target superconducting magnet, extract the magnetic field vector corresponding to the candidate position from the initial spatial magnetic field distribution; Step 1023: Decompose the magnetic field vector into a parallel component parallel to the strip width and a perpendicular component perpendicular to the strip width according to the strip width of the target superconducting magnet; Step 1024: Based on the parallel component, the perpendicular component, and the preset anisotropy correction coefficient, synthesize the equivalent magnetic field corresponding to the candidate position; Step 1025: Select the maximum value among all the equivalent magnetic fields in the target superconducting magnet as the initial dangerous winding magnetic field corresponding to the target superconducting magnet; Step 1026: Obtain the initial critical current of the target superconducting magnet under the initial structural parameters based on the initial dangerous winding magnetic field; wherein, the operating temperature of the target superconducting magnet, the degradation function of the superconducting tape critical current, the set current convergence tolerance, and the initial test current are obtained, and the current update operation is repeatedly performed until the difference between the initial tape critical current corresponding to the initial test current and the initial test current is less than or equal to the current convergence tolerance, thereby obtaining the initial critical current of the target superconducting magnet under the initial structural parameters; wherein, the current update operation includes: obtaining the target superconducting magnet based on the product of the initial test current and the initial dangerous winding magnetic field. The actual equivalent magnetic field at the danger point under the initial test current; based on the actual equivalent magnetic field at the danger point and the operating temperature, the initial tape critical current of the target superconducting magnet is obtained through the superconducting tape critical current degradation function; when the difference between the initial tape critical current and the initial test current is greater than the current convergence tolerance, the initial test current is corrected to obtain the corrected test current, and the corrected test current is used as the initial test current; when the difference between the initial tape critical current and the initial test current is less than or equal to the current convergence tolerance, the initial test current is used as the initial magnet critical current of the target superconducting magnet under the initial structural parameters.

[0067] In this embodiment, the critical current of the high-temperature superconducting tape is related to the magnitude, direction, and operating temperature of the local magnetic field. Since the magnetic field perpendicular to the tape's width and the magnetic field parallel to the tape's width have different effects on the degradation of the critical current, this embodiment decomposes the local magnetic field in the winding region into parallel and perpendicular components: In the formula, B|| represents the magnetic field component parallel to the wide face of the superconducting tape. ε represents the magnetic field component perpendicular to the wide face of the superconducting tape; e|| is the unit vector in the parallel direction; κ is the anisotropy correction coefficient; The equivalent magnetic field after integrating the effects of parallel and perpendicular fields; This represents the maximum equivalent magnetic field within the winding region; Represents the maximum equivalent magnetic field under unit current; the Represents the winding region.

[0068] In this embodiment, the critical current degradation characteristics of the superconducting tape can be obtained using a modified Kim model or by fitting measured data. For example: In the formula, Here, T is the critical current function of the superconducting tape; T is the operating temperature. (T) is the self-field critical current at temperature T; α represents the temperature-dependent characteristic magnetic field; α is the fitting exponent of the critical current degradation model.

[0069] In this embodiment, the critical current of the magnet is determined by the modified load line method: In the formula, This is the critical current of the magnet; This represents the maximum equivalent magnetic field at the danger point when a critical current is applied to the magnet; the... ( ) represents the critical current function of the strip; this equation is a modified load line equation, and its intersection point is used to determine the critical current of the magnet; this equation indicates that when a critical current is passed through the magnet... At this point, the maximum equivalent magnetic field generated by the self-field at the critical point of the winding makes the critical current of the strip exactly equal to the magnet current. Therefore, the limitations on the critical current by parallel fields, perpendicular fields, and their coupling effects can be considered simultaneously.

[0070] The above implementation method extracts the magnetic field value at the geometric center of the target superconducting magnet based on the initial spatial magnetic field distribution, and uses this magnetic field value as the central magnetic field. Then, for any candidate position in the winding region, the magnetic field vector corresponding to the candidate position is extracted from the initial spatial magnetic field distribution to obtain the magnetic field direction and amplitude information of each candidate point. Then, based on the strip width, the magnetic field vector of each candidate point is decomposed into a parallel component parallel to the strip width and a perpendicular component perpendicular to the strip width to distinguish the differential influence of the magnetic field direction on the critical current degradation. Then, based on the parallel component, the perpendicular component, and the preset anisotropy correction coefficient, the equivalent magnetic field corresponding to the candidate position is synthesized to reflect the comprehensive suppression degree of the magnetic field at the candidate point on the strip critical current. Finally, the maximum value of the equivalent magnetic field at all candidate positions is selected as the initial dangerous winding magnetic field to lock the weakest link in the entire magnet that is first to experience quench, thereby improving the engineering accuracy of the magnet critical current prediction and providing a reliable input for subsequent improved load line method iteration.

[0071] In this embodiment, step 103 includes: Step 1031: Obtain the operating margin coefficient of the target superconducting magnet; Step 1032: Obtain the initial operating current of the target superconducting magnet based on the product of the operating margin coefficient and the initial critical current of the magnet; Step 1033: Perform a square operation on the initial operating current to obtain the square value of the initial operating current; Step 1034: Obtain the product result based on the product of the initial equivalent inductance and the square of the initial operating current, and use half of the product result as the initial energy storage capacity of the target superconducting magnet.

[0072] In this embodiment, the operating margin coefficient η of the target superconducting magnet is obtained. The operating margin coefficient η is a positive number less than 1, used to derate the critical current of the magnet to a safe operating range, so as to ensure that the magnet will not lose quench even if it is subjected to slight disturbances during operation. The specific value of the operating margin coefficient is determined according to the actual engineering situation, and is typically selected between 0.6 and 0.9.

[0073] Specifically, the initial operating current of the target superconducting magnet is obtained by multiplying the operating margin coefficient η by the initial critical current of the magnet: From the above formula, it can be seen that the operating current The operating margin coefficient η and the critical current of the magnet Multiplying these values ​​yields the operating current, which is the rated current of the magnet during actual operation. This value is less than the critical current to ensure operating margin. If the magnet contains multiple modules, the operating current of each module is the same.

[0074] In this embodiment, the initial operating current... Perform a square operation to obtain the square value of the initial operating current. : In this embodiment, the product of the initial equivalent current and the square of the initial operating current is obtained, and half of this product is taken as the initial energy storage capacity E of the target superconducting magnet. As shown in the above formula, the energy storage capacity E is equal to half the product of the equivalent inductance and the square of the operating current; this formula establishes a quantitative mapping relationship between electromagnetic parameters (equivalent inductance) and engineering performance indicators (energy storage capacity); and for a multi-module magnet system containing n modules, the sum of the energy storage capacities of each module is the total energy storage capacity E of the system. tot : In this embodiment, the total energy storage capacity of the system must meet the energy storage constraint condition, that is, the total energy storage capacity E of the system. tot It should be greater than or equal to the product of the target energy storage capacity required by the design task and the energy storage margin coefficient γ, so as to ensure that the design requirements are met when considering the energy storage margin: In the formula, γ is the energy storage margin coefficient, which is used to provide additional redundancy in terms of energy storage capacity to ensure that the magnet has sufficient energy storage margin in actual operation.

[0075] The above implementation method obtains the operating margin coefficient of the target superconducting magnet to reduce the critical current to a safe operating range, thereby providing engineering safety redundancy for stable magnet operation. Then, the initial operating current is obtained by multiplying the operating margin coefficient and the initial critical current of the magnet to convert the magnet's ultimate current-carrying capacity into the actual operating current. Next, the square operation is performed on the initial operating current to obtain the square value of the current, so as to reflect the square proportional relationship between energy storage and current. Finally, the product result is obtained by multiplying the initial equivalent inductance and the square value of the current, and half of the product result is used as the initial energy storage capacity. This realizes the quantitative transformation from the underlying electromagnetic parameters to the top-level engineering performance, and establishes a complete engineering mapping link from critical current to operating current and from equivalent inductance to energy storage capacity.

[0076] In this embodiment, the design target parameters include the target energy storage capacity and the target central magnetic field; the initial structural parameters include initial continuous structural parameters and initial fixed structural parameters; step 104 includes: Step 1041: When the initial energy storage capacity is less than the target energy storage capacity, or the initial central magnetic field is less than the target central magnetic field, or the initial operating current is greater than or equal to the initial magnet critical current, or the initial structural parameters do not meet the topological constraint conditions, the initial structural parameters are determined to be unqualified. Step 1042: When the initial structural parameters are determined to be unqualified, obtain the partial derivatives of the initial dangerous winding magnetic field with respect to each of the initial continuous structural parameters, and use them as the first set of partial derivatives; Step 1043: Obtain the partial derivatives of the initial equivalent inductance with respect to each of the continuous structural parameters, and use them as the second set of partial derivatives; Step 1044: Obtain the derivative of the initial critical current of the magnet with respect to the magnetic field of the initial dangerous winding based on the degradation function of the critical current of the superconducting tape; Step 1045: Based on the first set of partial derivatives and the derivatives, synthesize the current gradient of the initial magnet critical current with respect to each of the initial continuous structure parameters using the implicit function differentiation rule; Step 1046: Based on the second set of partial derivatives and the current gradient, synthesize the capacity gradient of the initial energy storage capacity with respect to each of the continuous structural parameters using the product rule; Step 1047: Use the current gradient and the capacity gradient together as the structural parameter modification gradient of the target superconducting magnet.

[0077] In this embodiment, a comprehensive judgment is made based on the obtained initial energy storage capacity, initial central magnetic field, initial operating current, initial magnet critical current, target energy storage capacity, and target central magnetic field, combined with topological constraints. The topological constraints may include critical current constraints, maximum equivalent magnetic field constraints, insulation voltage constraints, single-pane coil wire quantity constraints, and structural variable boundary constraints.

[0078] If any of the above conditions are not met, i.e., the initial energy storage capacity is less than the target energy storage capacity, the initial central magnetic field is less than the target central magnetic field, the initial operating current is less than the initial magnet critical current, or the initial structural parameters do not meet the topological constraints, the initial structural parameters are deemed unqualified and the optimization and update process begins.

[0079] In this embodiment, when the initial structural parameters are determined to be unqualified, the chain rule is used to establish key design indicators for continuous structural parameters. Gradient relationship: Among them, the Represents the energy storage capacity E as a continuous structural parameter vector. The gradient; Indicates the central magnetic field For continuous structure parameter vectors The gradient; Represents the equivalent magnetic field For continuous structure parameter vectors The gradient; Represents the maximum equivalent magnetic field For continuous structure parameter vectors The gradient; Represents the critical current of a magnet For continuous structure parameter vectors The gradient; Represents the magnetic field at the center of a unit current. For continuous structural parameters The gradient.

[0080] In this embodiment, the derivation process of the above gradient relationship is as follows: First, based on the equivalent magnetic field =sqrt( +k² )get =( +κ² ) / ; Secondly, in each iteration, the location of the maximum equivalent magnetic field x* is re-identified in the winding region; when the location of the maximum value is determined, (x*,θ); where, if the position of the maximum value changes after an iteration, the gradient is recalculated with the new x* in the next round; Furthermore, under linear medium conditions, the maximum equivalent magnetic field b per unit current is defined. ),make ( ,I)=I·b( The critical current satisfies the implicit equation F( ); , )= - ( ·b( ),T)=0; regarding its relation Find the total derivative, we have (∂F / ∂) )∇ +∂F / ∂ =0, where ∂F / ∂ =1- '·b,∂F / ∂ =- '· ·∇ b, therefore ∇ =[ · ' / (1-b· ')]∇ b; among which, Represents the critical current function of superconducting tapes For equivalent magnetic field The first derivative.

[0081] Finally, by E( )=η²L( ) ²( Applying the product rule and chain rule to 2, we get ∇ E=η²[ ²∇ L+2L ∇ ] / 2; where, ∇ L、∇ and ∇ It can be directly differentiated from the analytical expressions for magnetic field and inductance. In this embodiment, the... , These are integer-type discrete structure parameters and continuous structure parameters, respectively. In the formula, Indicates the structural parameters Find the gradient; x* is the critical point with the largest equivalent magnetic field in the winding region; when the maximum equivalent magnetic field switches from one critical point to another, the maximum equivalent magnetic field function remains continuous but may be piecewise differentiable; the gradient of the corresponding active critical point is used before and after the switch, and the gradient of the active critical point or its convex combination is used as the generalized gradient at the switching critical point; This represents the derivative of the critical current function of the strip with respect to the equivalent magnetic field.

[0082] If the inverse function form is used Let (I,T) represent the equivalent magnetic field that the strip can withstand under a current I. Then the equation of the load line and its gradient are: In the formula, Representing temperature T and current The equivalent magnetic field that the strip can withstand under certain conditions is given. This gradient relationship is used to further transfer the change of the maximum equivalent magnetic field with respect to structural parameters into a change in the critical current. Among them, the inductance gradient, the central magnetic field gradient, and the maximum equivalent magnetic field gradient can be obtained by differentiating the analytical expressions, automatic differentiation, or finite difference-assisted differentiation. Since each function evaluation is based on the analytical model, the gradient calculation cost is significantly lower than that of repeated finite element solutions.

[0083] The above implementation method obtains the partial derivatives of the initial dangerous winding magnetic field with respect to each initial continuous structural parameter as the first set of partial derivatives, thereby establishing the sensitivity information of the dangerous winding magnetic field as the structural parameters change; simultaneously, it obtains the partial derivatives of the initial equivalent inductance with respect to each continuous structural parameter as the second set of partial derivatives, to obtain the sensitivity information of the inductance parameter as the structural parameters change; then, it obtains the derivative of the initial magnet critical current with respect to the initial dangerous winding magnetic field according to the superconducting tape critical current degradation function, to quantify the sensitivity of the tape's current carrying capacity to the magnetic field; then, based on the first set of partial derivatives and the derivatives, it uses the implicit function differentiation rule to synthesize the current gradient of the initial magnet critical current with respect to each continuous structural parameter, thereby achieving efficient gradient transfer of the critical current to the structural parameters; then, based on the second set of partial derivatives and the current gradient, it uses the product rule to synthesize the capacity gradient of the initial energy storage capacity with respect to each continuous structural parameter, thereby establishing the gradient link of the energy storage capacity with respect to the structural parameters; finally, it uses each current gradient and each capacity gradient together as the structural parameter modification gradient, to convert the rate of change of electromagnetic performance indicators into search direction information required by the optimization algorithm, providing core driving data for subsequent gradient optimization.

[0084] In this embodiment, step 105 includes: Step 1051: When the initial structural parameters are determined to be unqualified, the gradient of the structural parameter modification is used as the search direction to update the initial continuous structural parameters in the initial structural parameters to obtain the updated continuous structural parameters. Step 1052: Based on the updated continuous structural parameters and the initial fixed structural parameters, obtain the updated structural parameters corresponding to the target superconducting magnet; Step 1053: Obtain the real-time energy storage capacity, real-time central magnetic field, real-time equivalent inductance, real-time operating current, and real-time critical current of the target superconducting magnet under the updated structural parameters; Step 1054: When the real-time energy storage capacity is greater than or equal to the target energy storage capacity, the real-time central magnetic field is greater than or equal to the target central magnetic field, the real-time operating current is less than the real-time magnet critical current, and the updated structural parameters satisfy the topological constraint conditions, the updated structural parameters, the real-time energy storage capacity, the real-time central magnetic field, the real-time equivalent inductance, the real-time operating current, and the real-time magnet critical current are taken as the electromagnetic design results of the target superconducting magnet; Step 1055: When the updated structural parameters are determined to be unqualified, the initial structural parameters are updated to the updated structural parameters, and the structural parameter update operation is repeated until the initial structural parameters are determined to be qualified, thereby obtaining the electromagnetic design result of the target superconducting magnet; wherein, the structural parameter update operation includes: obtaining the initial spatial magnetic field distribution, initial equivalent inductance, initial central magnetic field, initial operating current, initial magnet critical current, and initial energy storage capacity corresponding to the initial structural parameters; when the initial energy storage capacity is greater than or equal to the target energy storage capacity, the initial central magnetic field is greater than or equal to the target central magnetic field, and the initial operating current is less than the initial magnet critical current... When the initial structural parameters satisfy the topological constraints, the initial structural parameters, the initial energy storage capacity, the initial central magnetic field, the initial equivalent inductance, the initial operating current, and the initial magnet critical current are used as the electromagnetic design results of the target superconducting magnet. When the initial energy storage capacity is less than the target energy storage capacity, or the initial central magnetic field is less than the target central magnetic field, or the initial operating current is greater than or equal to the initial magnet critical current, or the initial structural parameters do not satisfy the topological constraints, the initial structural parameters are corrected to obtain the corrected structural parameters, and the initial structural parameters are updated to the corrected structural parameters.

[0085] In this embodiment, when the initial structural parameters are deemed unqualified, the obtained structural parameter modification gradients (including current gradient and capacity gradient) are used as the search direction, and a sequential quadratic programming method is employed to update the initial continuous structural parameters, resulting in updated continuous structural parameters. Specifically, the sequential quadratic programming method constructs the following optimization sub-problem: In the formula, Φ( () represents the comprehensive optimization objective function; , , , , These are the weighting coefficients for energy storage, central magnetic field, cost, volume, and mechanical performance indicators, respectively. For target energy storage capacity; The target's central magnetic field; Cost or usage of strip material; and As a normalized benchmark; For economic indicators; ρ is a variance-type index of the fluctuation along the path. The smaller the value, the more uniform the curvature and electromagnetic force distribution, and the more stable the mechanical force. C is the closed integral path at the center of the coil. The length of path C; This represents the average / expected value of r / ρ along path C.

[0086] In this embodiment, the obtained updated continuous structural parameters are combined with the initial fixed structural parameters (i.e., the unchanged parts of the initial structural parameters, such as the number of circumferential units M, the number of turns of a single disc coil, and other integer discrete parameters) to obtain the updated structural parameters corresponding to the target superconducting magnet.

[0087] In this embodiment, for the updated structural parameters, the process of obtaining the magnetic field distribution and inductance is repeated: First, the real-time spatial magnetic field distribution and real-time equivalent inductance are obtained based on the updated structural parameters; then, the real-time central magnetic field, real-time maximum equivalent magnetic field, and real-time magnet critical current are obtained; then, the real-time operating current and real-time energy storage capacity are obtained. When the real-time energy storage capacity is greater than or equal to the target energy storage capacity, the real-time central magnetic field is greater than or equal to the target central magnetic field, the real-time operating current is less than the real-time magnet critical current, and the updated structural parameters satisfy the topological constraint conditions, the updated structural parameters, the real-time energy storage capacity, the real-time central magnetic field, the real-time equivalent inductance, the real-time operating current, and the real-time magnet critical current are used as the electromagnetic design results of the target superconducting magnet.

[0088] Specifically, a comprehensive judgment is made based on the obtained real-time energy storage capacity, real-time central magnetic field, real-time operating current, real-time magnet critical current, real-time equivalent inductance, as well as the design target parameters (target energy storage capacity, target central magnetic field) and topological constraints. When all conditions are met, i.e., the real-time energy storage capacity is greater than or equal to the target energy storage capacity, the real-time central magnetic field is greater than or equal to the target central magnetic field, the real-time operating current is less than the real-time magnet critical current, and the updated structural parameters meet the topological constraints, the updated structural parameters and the corresponding real-time energy storage capacity, real-time central magnetic field, real-time equivalent inductance, real-time operating current, real-time magnet critical current, and real-time maximum equivalent magnetic field are output as the electromagnetic design results of the target superconducting magnet.

[0089] Specifically, if any of the above conditions are not met, the updated structural parameters are deemed unqualified. In this case, the initial structural parameters are updated to the updated structural parameters, which are then used as the new initial structural parameters. This process of updating structural parameters is repeated. This iterative process continues until the structural parameters are deemed qualified, at which point the electromagnetic design results of the target superconducting magnet are obtained.

[0090] The data update operation includes: obtaining the initial spatial magnetic field distribution, initial equivalent inductance, initial central magnetic field, initial operating current, initial magnet critical current, and initial energy storage capacity corresponding to the initial structural parameters.

[0091] At the start of each iteration, for the current initial structural parameters, the initial spatial magnetic field distribution and initial equivalent inductance are obtained, as well as the initial central magnetic field and initial magnet critical current. The initial operating current and initial energy storage capacity are then obtained. If the initial energy storage capacity corresponding to the current initial structural parameters is greater than or equal to the target energy storage capacity, the initial central magnetic field is greater than or equal to the target central magnetic field, the initial operating current is less than the initial magnet critical current, and the initial structural parameters satisfy the topological constraints, then the current initial structural parameters and the corresponding initial energy storage capacity, initial central magnetic field, initial equivalent inductance, initial operating current, initial magnet critical current, and initial maximum equivalent magnetic field are output as the electromagnetic design results of the target superconducting magnet.

[0092] In the optimization process, a two-stage combined optimization method is preferred. The first stage uses NSGA-II for global search, with discrete variables encoded as integers and continuous variables encoded as real numbers. For discrete variables, after crossover and mutation operations, integer rounding, upper and lower bound truncation, and structural feasibility repair are performed to ensure that they always satisfy integer constraints. The final output is a Pareto feasible solution set composed of both integer and continuous variables. In the formula, It is a Pareto non-dominated solution set; Let m be the i-th candidate solution in the Pareto solution set; m is the number of candidate solutions in the Pareto solution set.

[0093] The second stage selects one or more candidate solutions from the Pareto solution set as initial points for local optimization. For the i-th candidate solution, it is denoted as... During the local refinement process, integer discrete variables are fixed, and only continuous variables are used as optimization variables. The gradient of the aforementioned key design indices with respect to continuous variables is used to perform local refinement using a sequential quadratic programming method. Among them, the Indicates Centered on, with The local search region is a continuous variable at the neighborhood scale; The term represents the fixed integer discrete structure parameters in the i-th Pareto candidate solution; This indicates the upper limit of the allowable mechanical performance indicators; Indicates volume evaluation indicators; This indicates the upper limit of the allowable volume index; This indicates the magnet's energy storage capacity under the corresponding structural parameters; Indicates the target energy storage capacity; Indicates the operating current of the magnet; η represents the operating current margin coefficient; This represents the critical current of the magnet under the corresponding structural parameters; and These represent the lower and upper boundaries of the continuous structural parameters, respectively.

[0094] When further adjustments to discrete variables are needed, instead of updating discrete parameters using continuous gradients, an integer neighborhood is constructed near the current discrete solution, or NSGA-II is invoked again for discrete search. The integer neighborhood can be represented as: In the formula, D is the integer feasible region of the discrete parameters; δ represents the integer perturbation vector of the discrete structural parameters, used to adjust the current discrete parameters. Generate a neighborhood of candidate integers nearby; Let represent the i-th component of the integer perturbation vector δ, with values ​​of -1, 0, or 1, representing decreasing the i-th discrete structural parameter by one step, keeping it unchanged, or increasing it by one step, respectively. For each candidate combination in the integer neighborhood, the discrete variables are fixed and a local optimization of the continuous variables is performed once. Then, the scheme with the optimal objective function is selected from the schemes that satisfy all constraints.

[0095] When the initial structural parameters are deemed unqualified, the above implementation method uses the structural parameter modification gradient as the search direction to update the initial continuous structural parameters. Specifically, a quadratic programming subproblem is constructed using the gradient information to solve for the optimal update step size and direction, resulting in the updated continuous structural parameters. This transforms the gradient information into a specific parameter adjustment scheme. Then, updated structural parameters are synthesized based on the updated continuous structural parameters and the initial fixed structural parameters to form a complete candidate design scheme. The real-time energy storage capacity, real-time central magnetic field, real-time equivalent inductance, real-time operating current, and real-time magnet critical current of the target superconducting magnet under the updated structural parameters are then obtained to evaluate whether the updated design scheme meets all engineering requirements. When the real-time energy storage capacity is greater than or equal to the target energy storage capacity, the real-time central magnetic field is greater than or equal to the target central magnetic field, the real-time operating current is less than the real-time magnet critical current, and the updated structural parameters satisfy the topological constraints, the updated structural parameters and all corresponding real-time performance data are output as the electromagnetic design result. This locks the candidate scheme that satisfies all constraints as the final design scheme, realizing the transformation from structural parameters to the final design scheme. The fully automated closed-loop system from data update to scheme qualification determination significantly reduces manual intervention. When the updated structural parameters are deemed unqualified, the initial structural parameters are updated to these updated parameters, using the result of this iteration as the starting point for the next iteration, thus establishing a continuous optimization loop. The structural parameter update operation is then repeated until the initial structural parameters are deemed qualified, resulting in the electromagnetic design result. Specifically, the data update operation includes: acquiring the initial spatial magnetic field distribution, initial equivalent inductance, initial central magnetic field, initial operating current, initial magnet critical current, and initial energy storage capacity corresponding to the current initial structural parameters. When the initial energy storage capacity is greater than or equal to the target energy storage capacity, the initial central magnetic field is greater than or equal to the target central magnetic field, the initial operating current is less than the initial magnet critical current, and the initial structural parameters meet the topological constraints, the current initial structural parameters and all corresponding performance data are output as the electromagnetic design result. That is, once the current scheme meets all constraints, the loop immediately terminates and the result is output. If the current scheme is still unqualified, the loop judgment mechanism continues to the next iteration, realizing adaptive search of the scheme space. In summary, the above-mentioned scheme solves the technical problems of termination upon single optimization failure, lack of fault tolerance mechanism and continuous search capability in the prior art. It ensures that the design scheme continuously approaches the optimal feasible solution under the joint drive of objective function and constraints, and finally converges more steadily to a scheme that satisfies all engineering constraints, thereby improving the probability and efficiency of obtaining a design scheme that satisfies engineering constraints.

[0096] On the other hand, refer to Figure 3 This embodiment also provides an electromagnetic design system for superconducting magnets, including a magnetic field inductance module 301, a critical current module 302, a current capacity module 303, an electromagnetic verification module 304, and a design optimization module 305. The magnetic field and inductance module 301 is used to obtain the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under the initial structural parameters. The critical current module 302 is used to obtain the initial dangerous winding magnetic field and the initial central magnetic field of the target superconducting magnet according to the initial spatial magnetic field distribution, so as to obtain the initial magnet critical current of the target superconducting magnet according to the initial dangerous winding magnetic field; The current capacity module 303 is used to obtain the initial operating current and initial energy storage capacity of the target superconducting magnet based on the initial equivalent inductance and the initial magnet critical current. The electromagnetic verification module 304 is used to obtain the structural parameter modification gradient of the target superconducting magnet by means of the chain rule when the initial structural parameters are determined to be unqualified based on the initial energy storage capacity, the initial central magnetic field, the initial operating current, the initial magnet critical current, the design target parameters and topological constraints of the target superconducting magnet. The design optimization module 305 is used to modify the gradient according to the structural parameters to obtain the updated structural parameters corresponding to the initial structural parameters, so as to obtain the electromagnetic design result of the target superconducting magnet according to the updated structural parameters when the updated structural parameters are deemed qualified based on the real-time energy storage capacity, real-time central magnetic field, design target parameters and topological constraints.

[0097] It should be noted that the device embodiments described above are merely illustrative, and some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can specifically be implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0098] Based on the above embodiment of an electromagnetic design method for superconducting magnets, 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. When the processor executes the computer program, it implements an electromagnetic design method for superconducting magnets according to any embodiment of the present invention.

[0099] For example, in this embodiment, the computer program can be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the terminal device.

[0100] The terminal device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and memory. The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0101] Based on the above-described method embodiments, another embodiment of the present invention provides a computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to execute an electromagnetic design method for superconducting magnets as described in any of the above-described method embodiments of the present invention.

[0102] The modules / units integrated in the device / terminal equipment, if implemented as software functional units and sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0103] This invention provides an electromagnetic design method, system, and electronic device for superconducting magnets. The method acquires the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under initial structural parameters, serving as the basis for subsequent electromagnetic performance evaluation and gradient calculation. Then, based on the initial spatial magnetic field distribution, it acquires the initial critical winding magnetic field and the initial central magnetic field. The initial critical magnet current is then iteratively solved using the modified load line method based on the initial critical winding magnetic field. Next, based on the initial equivalent inductance and the initial critical magnet current, it acquires the initial operating current and initial energy storage capacity, mapping the analytically calculated electromagnetic parameters to engineering performance indicators. When the initial structural parameters are deemed unqualified based on the energy storage capacity, central magnetic field, operating current, design target parameters, and topological constraints, a structural parameter modification gradient is acquired using the chain rule based on the initial spatial magnetic field distribution, initial equivalent inductance, and initial critical magnet current, guiding the optimization direction using gradient information. Finally, updated structural parameters are acquired based on the gradient, and the electromagnetic design result is output when the updated structural parameters are deemed qualified, thus forming a complete closed loop from parameter input to scheme output. In summary, this application solves the technical problems of low computational efficiency and inability to achieve closed-loop optimization due to reliance on finite element simulation in existing technologies, thereby improving the efficiency of electromagnetic design of superconducting magnets.

[0104] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method of electromagnetic design for a superconducting magnet, characterized by, include: Obtain the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under the initial structural parameters; The initial critical winding magnetic field and the initial central magnetic field of the target superconducting magnet are obtained based on the initial spatial magnetic field distribution, and the initial critical magnet current of the target superconducting magnet is obtained based on the initial critical winding magnetic field. The initial operating current and initial energy storage capacity of the target superconducting magnet are obtained based on the initial equivalent inductance and the initial critical current of the magnet. When the initial structural parameters are deemed unqualified based on the initial energy storage capacity, the initial central magnetic field, the initial operating current, the initial magnet critical current, the design target parameters of the target superconducting magnet, and the topological constraints, the structural parameter modification gradient of the target superconducting magnet is obtained through the chain rule based on the initial spatial magnetic field distribution, the initial equivalent inductance, and the initial magnet critical current. The updated structural parameters corresponding to the initial structural parameters are obtained by modifying the gradient according to the structural parameters. When the updated structural parameters are deemed qualified according to the real-time energy storage capacity, real-time central magnetic field, design target parameters and topological constraints, the electromagnetic design results of the target superconducting magnet are obtained according to the updated structural parameters.

2. The electromagnetic design method for superconducting magnets according to claim 1, characterized in that, The acquisition of the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under the initial structural parameters includes: The initial structural parameters of the target superconducting magnet are obtained, and each coil of the target superconducting magnet is discretized into straight line segments and arc segments according to the initial structural parameters; Each straight line segment and each arc segment is subjected to cross-sectional meshing and circumferential path segmentation to obtain several linear discrete micro-elements corresponding to each straight line segment and several arc segment discrete micro-elements corresponding to each arc segment. For any one of the linear discrete micro-elements and the arc-segment discrete micro-elements, obtain the geometric position information and current direction information of the discrete micro-element; Based on the geometric position information and the current direction information, each straight line segment and each arc segment are subjected to dimension reduction, discretization, and summation to obtain the local magnetic field distribution corresponding to each coil. The local magnetic field distribution of each coil is converted into a global magnetic field distribution, and all the global magnetic field distributions are superimposed to obtain the initial spatial magnetic field distribution of the target superconducting magnet under the initial structural parameters. Based on the geometric position information and the current direction information, a discrete summation operation is performed on each coil in sequence to obtain the mutual inductance coefficient between each pair of coils, forming a mutual inductance matrix. Based on the series-parallel connection relationship of the coils of the target superconducting magnet, the mutual inductance matrix is ​​transformed to obtain the initial equivalent inductance of the target superconducting magnet under the initial structural parameters.

3. The electromagnetic design method for superconducting magnets according to claim 2, characterized in that, The step of obtaining the initial critical winding magnetic field and the initial central magnetic field of the target superconducting magnet based on the initial spatial magnetic field distribution, and obtaining the initial critical magnet current of the target superconducting magnet based on the initial critical winding magnetic field, includes: The magnetic field value at the geometric center of the target superconducting magnet is extracted based on the initial spatial magnetic field distribution, and the magnetic field value is used as the central magnetic field of the target superconducting magnet. For any candidate position in the winding region of the target superconducting magnet, the magnetic field vector corresponding to the candidate position is extracted from the initial spatial magnetic field distribution; Based on the strip width of the target superconducting magnet, the magnetic field vector is decomposed into a parallel component parallel to the strip width and a perpendicular component perpendicular to the strip width. Based on the parallel component, the perpendicular component, and the preset anisotropy correction coefficient, the equivalent magnetic field corresponding to the candidate position is synthesized. The maximum value among all the equivalent magnetic fields in the target superconducting magnet is selected as the initial dangerous winding magnetic field corresponding to the target superconducting magnet; The initial critical current of the target superconducting magnet under the initial structural parameters is obtained based on the initial dangerous winding magnetic field.

4. The electromagnetic design method for superconducting magnets according to claim 3, characterized in that, The step of obtaining the initial critical current of the target superconducting magnet under the initial structural parameters based on the initial dangerous winding magnetic field includes: The operating temperature of the target superconducting magnet, the degradation function of the superconducting tape critical current, the current convergence tolerance and the initial test current are obtained, and the current update operation is repeatedly performed until the difference between the initial tape critical current corresponding to the initial test current and the initial test current is less than or equal to the current convergence tolerance, so as to obtain the initial magnet critical current of the target superconducting magnet under the initial structural parameters. The current update operation includes: The actual equivalent magnetic field of the target superconducting magnet at the danger point under the initial test current is obtained by multiplying the initial test current and the initial dangerous winding magnetic field. Based on the actual equivalent magnetic field at the danger point and the operating temperature, the initial tape critical current of the target superconducting magnet is obtained through the superconducting tape critical current degradation function. When the difference between the initial strip critical current and the initial test current is greater than the current convergence tolerance, the initial test current is corrected to obtain the corrected test current, and the corrected test current is used as the initial test current. When the difference between the initial strip critical current and the initial test current is less than or equal to the current convergence tolerance, the initial test current is taken as the initial magnet critical current of the target superconducting magnet under the initial structural parameters.

5. The electromagnetic design method for superconducting magnets according to claim 1, characterized in that, The step of obtaining the initial operating current and initial energy storage capacity of the target superconducting magnet based on the initial equivalent inductance and the initial magnet critical current includes: Obtain the operating margin coefficient of the target superconducting magnet; The initial operating current of the target superconducting magnet is obtained by multiplying the operating margin coefficient by the initial critical current of the magnet. Perform a square operation on the initial operating current to obtain the squared value of the initial operating current; The product of the initial equivalent inductance and the square of the initial operating current is used to obtain the product result, and half of the product result is used as the initial energy storage capacity of the target superconducting magnet.

6. The electromagnetic design method for superconducting magnets according to claim 1, characterized in that, The design target parameters include the target energy storage capacity and the target central magnetic field; the initial structural parameters include initial continuous structural parameters and initial fixed structural parameters; when the initial structural parameters are deemed unqualified based on the initial energy storage capacity, the initial central magnetic field, the initial operating current, the initial magnet critical current, the design target parameters of the target superconducting magnet, and the topological constraints, the structural parameter modification gradient of the target superconducting magnet is obtained through a chain rule based on the initial spatial magnetic field distribution, the initial equivalent inductance, and the initial magnet critical current, including: When the initial energy storage capacity is less than the target energy storage capacity, or the initial central magnetic field is less than the target central magnetic field, or the initial operating current is greater than or equal to the initial magnet critical current, or the initial structural parameters do not meet the topological constraint conditions, the initial structural parameters are determined to be unqualified. When the initial structural parameters are determined to be unqualified, the partial derivatives of the initial dangerous winding magnetic field with respect to each of the initial continuous structural parameters are obtained as the first set of partial derivatives. Obtain the partial derivatives of the initial equivalent inductance with respect to each of the continuous structural parameters, and use them as the second set of partial derivatives; The derivative of the initial critical current of the magnet with respect to the magnetic field of the initial dangerous winding is obtained based on the degradation function of the critical current of the superconducting tape. Based on the first set of partial derivatives and the derivatives, the current gradient of the initial magnet critical current with respect to each of the initial continuous structure parameters is synthesized using the implicit function differentiation rule; Based on the second set of partial derivatives and the current gradient, the capacity gradient of the initial energy storage capacity with respect to each of the continuous structural parameters is synthesized using the product rule; The current gradient and the capacity gradient are used together as the structural parameter modification gradient of the target superconducting magnet.

7. The electromagnetic design method for superconducting magnets according to claim 6, characterized in that, The step of modifying the gradient according to the structural parameters to obtain the updated structural parameters corresponding to the initial structural parameters, so as to obtain the electromagnetic design results of the target superconducting magnet according to the updated structural parameters when the updated structural parameters are deemed qualified based on the real-time energy storage capacity, real-time central magnetic field, design target parameters and topological constraints, including: When the initial structural parameters are determined to be unqualified, the gradient of the structural parameter modification is used as the search direction to update the initial continuous structural parameters in the initial structural parameters, thereby obtaining the updated continuous structural parameters; Based on the updated continuous structural parameters and the initial fixed structural parameters, the updated structural parameters corresponding to the target superconducting magnet are obtained; The real-time energy storage capacity, real-time central magnetic field, real-time equivalent inductance, real-time operating current, and real-time critical current of the target superconducting magnet under the updated structural parameters are obtained. When the real-time energy storage capacity is greater than or equal to the target energy storage capacity, the real-time central magnetic field is greater than or equal to the target central magnetic field, the real-time operating current is less than the real-time magnet critical current, and the updated structural parameters satisfy the topological constraint conditions, the updated structural parameters, the real-time energy storage capacity, the real-time central magnetic field, the real-time equivalent inductance, the real-time operating current, and the real-time magnet critical current are taken as the electromagnetic design results of the target superconducting magnet.

8. The electromagnetic design method for superconducting magnets according to claim 7, characterized in that, The step of modifying the gradient according to the structural parameters to obtain the updated structural parameters corresponding to the initial structural parameters, so as to obtain the electromagnetic design results of the target superconducting magnet according to the updated structural parameters when the updated structural parameters are deemed qualified based on the real-time energy storage capacity, real-time central magnetic field, design target parameters and topological constraints, and the updated structural parameters: When the updated structural parameters are deemed unqualified, the initial structural parameters are updated to the updated structural parameters, and the structural parameter update operation is repeated until the initial structural parameters are deemed qualified, thereby obtaining the electromagnetic design result of the target superconducting magnet; wherein, the structural parameter update operation includes: Obtain the initial spatial magnetic field distribution, initial equivalent inductance, initial central magnetic field, initial operating current, initial magnet critical current, and initial energy storage capacity corresponding to the initial structural parameters; When the initial energy storage capacity is greater than or equal to the target energy storage capacity, the initial central magnetic field is greater than or equal to the target central magnetic field, the initial operating current is less than the initial magnet critical current, and the initial structural parameters satisfy the topological constraint conditions, the initial structural parameters, the initial energy storage capacity, the initial central magnetic field, the initial equivalent inductance, the initial operating current, and the initial magnet critical current are taken as the electromagnetic design results of the target superconducting magnet; When the initial energy storage capacity is less than the target energy storage capacity, or the initial central magnetic field is less than the target central magnetic field, or the initial operating current is greater than or equal to the initial magnet critical current, or the initial structural parameters do not meet the topological constraint conditions, the initial structural parameters are corrected to obtain the corrected structural parameters, and the initial structural parameters are updated to the corrected structural parameters.

9. An electromagnetic design system for superconducting magnets, characterized in that, It includes a magnetic field inductance module, a critical current module, a current capacity module, an electromagnetic verification module, and a design optimization module; The magnetic field and inductance module is used to obtain the initial spatial magnetic field distribution and initial equivalent inductance of the target superconducting magnet under the initial structural parameters. The critical current module is used to obtain the initial dangerous winding magnetic field and the initial central magnetic field of the target superconducting magnet according to the initial spatial magnetic field distribution, so as to obtain the initial magnet critical current of the target superconducting magnet according to the initial dangerous winding magnetic field. The current capacity module is used to obtain the initial operating current and initial energy storage capacity of the target superconducting magnet based on the initial equivalent inductance and the initial magnet critical current. The electromagnetic verification module is used to obtain the structural parameter modification gradient of the target superconducting magnet by means of the chain rule when the initial structural parameters are determined to be unqualified based on the initial energy storage capacity, the initial central magnetic field, the initial operating current, the initial magnet critical current, the design target parameters and topological constraints of the target superconducting magnet. The design optimization module is used to modify the gradient according to the structural parameters to obtain the updated structural parameters corresponding to the initial structural parameters, so that when the updated structural parameters are deemed qualified according to the real-time energy storage capacity, real-time central magnetic field, design target parameters and topological constraints corresponding to the updated structural parameters, the electromagnetic design result of the target superconducting magnet can be obtained according to the updated structural parameters.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements an electromagnetic design method for a superconducting magnet as described in any one of claims 1 to 8.