Current density field prediction method and device, electronic equipment and storage medium

Through the ResUnet-Trans-CGAN model and transfer learning strategy, the 'pseudo oscillation' problem of current density field prediction in electromagnetic orbital transmitters is solved, high-precision and second-level calculations are achieved, and the prediction ability of the current density field is improved. It is suitable for Complex non-linear scenes.

CN118690598APending Publication Date: 2024-09-24HEBEI UNIV OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410687862.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The traditional order reduction method is difficult to apply to strongly nonlinear and multi-variable scenarios such as electromagnetic orbital launchers, and the order reduction process causes the physical quantities on the data points to lose their spatial connection and translational invariance, resulting in a 'pseudo oscillation' phenomenon in the numerical solution. Affects the accurate prediction of current density fields.

Method used

The current density field prediction method based on ResUnet-Trans-CGAN is used to establish a three-dimensional finite element simulation model, which is divided into a stable stage and a 'pseudo-oscillation' stage. Data preprocessing and model training are performed, and transfer learning strategies are used to improve the model generalization ability. , achieving second-level calculation and high-precision prediction of the current density field.

Benefits of technology

It improves the feature extraction capability of complex current distribution, improves the extrapolation prediction accuracy, realizes the second-level calculation of the current density field of high-speed electromagnetic orbital transmitters, provides new ideas for structural optimization and reliability design, and reduces calculation time and Resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690598A
    Figure CN118690598A
Patent Text Reader

Abstract

The invention provides a current density field prediction method and device, electronic equipment and a storage medium, and the method comprises the steps: building a three-dimensional finite element simulation model of an electromagnetic track emitter, carrying out the calculation to obtain a current density field under different armature conductivities in an emission process, and dividing the current density field into a stable stage and a pseudo-oscillation stage according to a numerical solution; preprocessing the data; establishing a current density field prediction model based on ResUnit-Transs-CGAN, training the model by using the training set, and testing the prediction precision of the model by using the test set; and based on the trained current density field prediction model, predicting a current density field of a'pseudo oscillation 'stage at a high speed in reference conductivity, and superposing a numerical simulation result obtained in the stable stage and a numerical prediction result obtained in the'pseudo oscillation' stage to obtain a current density field of the whole emission process. According to the method, a transfer learning training strategy from low conductivity to high conductivity is introduced, the model generalization ability is further improved, and higher extrapolation prediction precision is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of current density field distribution prediction, and in particular, relates to a current density field prediction method, device, electronic device and storage medium. Background Art

[0002] During the launch of the electromagnetic rail launcher, the current distribution on the contact surface of the pivot rail is extremely uneven, and the current density is close to the material's bearing limit. During the current rising stage, the current gathers on the rail surface, causing the rail surface temperature to rise sharply, causing material ablation, while also causing the rail's mechanical strength to decrease, seriously affecting the launch stability and reliability. Therefore, analyzing the current distribution characteristics on the rail cross section and the pivot rail contact surface during the launch process is the main basis for controlling temperature rise and ablation, and is of great significance to the structural optimization and reliability design of the electromagnetic rail launcher.

[0003] Domestic and foreign research teams used different numerical simulation methods to establish a three-dimensional electromagnetic rail launcher model that takes into account the influence of armature motion speed, and simulated the field distribution, launch characteristics at low speed, and armature motion characteristics at high speed. Among them, the finite element method was used to add a velocity term to the electromagnetic field control equation to consider the influence of armature motion. At this time, the speed is reflected in the convection term of the equation. The increase in speed will increase the unit Peclet number (Pe). When Pe>1, "pseudo-oscillation" of the numerical solution may occur when solving the equation.

[0004] In addition to numerical simulation methods, the order reduction model can reduce the difficulty of solving complex systems and improve the efficiency of modeling and solving by reducing the order of partial differential equations while ensuring a certain degree of accuracy. However, traditional order reduction methods are difficult to apply to strong nonlinear and multivariable scenarios such as electromagnetic orbital launchers, and the order reduction process causes the physical quantities at the data points to lose spatial connection and translation invariance. Summary of the invention

[0005] In view of this, the present application aims to propose a current density field prediction method, device, electronic device and storage medium to solve the problem that traditional order reduction methods are difficult to apply to strongly nonlinear and multivariable scenarios such as electromagnetic rail launchers, and the order reduction process causes the physical quantities at the data points to lose spatial connection and translation invariance.

[0006] To achieve the above purpose, the technical solution of this application is implemented as follows:

[0007] In a first aspect, the present application provides a current density field prediction method, comprising:

[0008] Data acquisition, establishment of a three-dimensional finite element simulation model of the electromagnetic rail launcher, calculation of the current density field under different armature conductivity during the launch process, and division into a stable stage and a "pseudo-oscillation" stage according to the numerical solution;

[0009] Data preprocessing: normalize and standardize the data and divide it into training set and test set;

[0010] Model construction and training: Establish a current density field prediction model based on ResUnet-Trans-CGAN, use the training set to train the model, use the test set to test the prediction accuracy of the model, and evaluate whether the model has learned the potential current distribution law in the data;

[0011] Extrapolated prediction, based on the trained current density field prediction model, predicts the current density field in the "pseudo-oscillation" stage at high speed when the benchmark conductivity is high. The numerical simulation results obtained in the stable stage are superimposed with the numerical prediction results obtained in the "pseudo-oscillation" stage to obtain the current density field of the entire emission process.

[0012] In the second aspect, based on the same inventive concept, the present application also provides a current density field prediction device, comprising:

[0013] An acquisition module is configured to establish a three-dimensional finite element simulation model of an electromagnetic rail launcher, calculate the current density field under different armature conductivities during the launch process, and divide it into a stable stage and a "pseudo-oscillation" stage according to a numerical solution;

[0014] A preprocessing module is configured to normalize and standardize the data and divide it into a training set and a test set;

[0015] The model building module is configured to establish a current density field prediction model based on ResUnet-Trans-CGAN, train the model using the training set, test the prediction accuracy of the model using the test set, and evaluate whether the model has learned the potential current distribution law in the data;

[0016] The prediction module is configured to predict the current density field in the "pseudo-oscillation" stage at high speed when the reference conductivity is based on the trained current density field prediction model, and the numerical simulation results obtained in the stable stage are superimposed with the numerical prediction results obtained in the "pseudo-oscillation" stage to obtain the current density field of the entire emission process.

[0017] In the third aspect, based on the same inventive concept, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the current density field prediction method as described in the first aspect is implemented.

[0018] In a fourth aspect, based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the current density field prediction method as described in the first aspect.

[0019] Compared with the prior art, the current density field prediction method, device, electronic device and storage medium described in this application have the following beneficial effects:

[0020] The current density field prediction method, device, electronic device and storage medium described in the present application establish a current density field prediction model based on ResUnet-Trans-CGAN to improve the feature extraction capability of complex current distribution. At the same time, a transfer learning training strategy from low conductivity to high conductivity is introduced to further enhance the generalization capability of the model and achieve higher extrapolation prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0022] Figure 1 This is a schematic diagram of the current density field prediction model described in the embodiment of the present application;

[0023] Figure 2 This is a schematic diagram of the ResUnet-Transformer generator structure described in the embodiment of the present application;

[0024] Figure 3 This is a schematic diagram of the discriminator network structure described in an embodiment of the present application;

[0025] Figure 4 This is a schematic diagram of the current density field extrapolation prediction method described in an embodiment of the present application;

[0026] Figure 5 A schematic diagram of the excitation current and the geometric model of the electromagnetic track transmitter described in an embodiment of the present application;

[0027] Figure 6 This is a diagram showing the prediction results of the track cross-section current density field described in the embodiment of the present application;

[0028] Figure 7 This is a diagram showing the prediction results of the current density field on the pivot-rail contact surface described in the embodiment of the present application;

[0029] Figure 8 This is a diagram showing the prediction results of the current density field on the contact surface of the pivot rail under different rail structures described in the embodiments of the present application;

[0030] Fig. 9 It is a diagram of the excitation current and numerical simulation results described in the embodiment of the present application;

[0031] Fig.10This is a numerical simulation result diagram of current density at different times under the reference conductivity described in the embodiment of the present application;

[0032] Fig.11 This is a prediction result diagram of the track cross section described in the embodiment of the present application;

[0033] Fig.12 This is a prediction result diagram of the pivot rail contact surface described in the embodiment of the present application;

[0034] Fig.13 This is a diagram showing the extrapolation prediction results of the track cross-section current density field described in the embodiment of the present application;

[0035] Fig.14 This is a diagram of the prediction result of the current density field extrapolation of the pivot-rail contact surface described in the embodiment of the present application;

[0036] Fig.15 This is a schematic diagram of the structure of the current density field extrapolation prediction device described in an embodiment of the present application;

[0037] Fig.16 A schematic diagram of the hardware structure of the electronic device described in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0039] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0040] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0041] Calculating the current density field during the launch process using the finite element method is one of the necessary conditions for achieving a refined design of the electromagnetic rail launcher structure, but there are problems such as long calculation time, difficulty in high-speed calculation, or even inability to calculate.

[0042] The prediction method described in this application first takes the excitation current, armature conductivity, track structure parameters and time t as input, and establishes a current density field prediction model based on the conditional generative adversarial network (CGAN). Secondly, in order to improve the prediction ability of complex field distribution, the RseUnet-Trans network is constructed as the feature generator of CGAN. Finally, the model interpolation prediction accuracy is verified by using a low-speed electromagnetic track launcher example.

[0043] The results show that the mean absolute percentage error (MAPE) of the model on the test set is less than 1.5%. The extrapolation prediction ability of the model is verified by using a high-speed electromagnetic rail launcher example. The results show that the use of a transfer learning training strategy from low conductivity to high conductivity can improve the model's extrapolation prediction accuracy and generalization ability, and the extrapolation prediction MAPE on the test set is less than 2.5%.

[0044] The prediction method described in this application can realize the second-level calculation of the current density field, providing a new idea for the optimization design and digitization of high-speed electromagnetic rail launchers.

[0045] See also Figure 4 As shown, this embodiment provides a current density field prediction method, which specifically includes the following steps:

[0046] Step S101, data acquisition, establishing a three-dimensional finite element simulation model of the electromagnetic rail launcher, calculating the current density field under different armature conductivities during the launch process, and dividing it into a stable stage and a "pseudo-oscillation" stage according to the numerical solution.

[0047] Step S102: data preprocessing: normalizing and standardizing the data and dividing it into a training set and a test set.

[0048] Step S103, model construction and training, establish a current density field prediction model based on ResUnet-Trans-CGAN, train the model using the training set, test the prediction accuracy of the model using the test set, and evaluate whether the model has learned the potential current distribution law in the data.

[0049] Step S104, extrapolation prediction, based on the trained current density field prediction model, predicts the current density field in the "pseudo-oscillation" stage at high speed when the reference conductivity is high, and superimposes the numerical simulation results obtained in the stable stage with the numerical prediction results obtained in the "pseudo-oscillation" stage to obtain the current density field of the entire emission process.

[0050] 1. Current density field prediction based on ResUnet-Trans-CGAN

[0051] In this embodiment, a one-to-one mapping of the excitation current, armature conductivity, track structure parameters and time t to the corresponding current density field is established, so the generator G only takes the conditional variable y as input.

[0052] 1.1. Establish a current density field prediction model based on ResUnet-Trans-CGAN

[0053] The current density field prediction model based on ResUnet-Trans-CGAN is as follows Figure 1 As shown in the figure, it includes two parts: training phase and testing phase. In the training phase, the excitation current, armature conductivity, track structure parameters and time t are first combined into the conditional variable y, which is transformed into the dimension by the fully connected layer and then input into G to generate the current density field G(y); then the numerical simulation calculation value of the current density is matrixed to form the real image x, and the conditional variable y is combined with the generated image G(y) or the real image x and input into D; finally, D judges the input data and outputs the probability that the image is the real image. G and D are trained in an adversarial manner and the neural network parameters are updated alternately.

[0054] In the test phase, the D part is discarded, and the excitation current, armature conductivity, track structure parameters and time t are input into G to directly generate the current density field under the corresponding conditions, such as Figure 1 Shown in the dashed box.

[0055] 1.2. ResUnet-Transformer Generator

[0056] The original CGAN generator is a fully connected neural network with a simple structure. In order to improve the model's ability to extract features of complex current distribution, this embodiment establishes a ResUnet-Transformer generator based on residual network, U-Net and Transformer. The main structure consists of an encoder, a decoder and a bottleneck module, such as Figure 2 shown.

[0057] Specifically, the encoder consists of three residual blocks and three maximum pooling layers. A batch normalization (BN) layer is added to each residual block to standardize the features of each batch of training data, thereby improving the training stability and convergence speed of the model. The number of feature channels of the input feature image is doubled after the convolution operation in the residual block to extract richer abstract features. Then a 2×2 maximum pooling layer is used for downsampling to reduce the feature image size, increase the receptive field size, and enhance the robustness to interference with the input image, thereby reducing the risk of overfitting and the amount of computation.

[0058] The bottleneck module consists of a residual block, which is responsible for connecting the encoder and the decoder. The decoder consists of three residual blocks and three upsampling layers. The abstract feature information of the image is restored by upsampling the image. When upsampling, the number of feature channels of the image is halved after passing through the residual block. This process is repeated three times in the decoder to decode the features to the size of the original image. Finally, a 1×1 convolutional layer is used to adjust the number of channels of the feature map to 1, and the Tanh activation function is used to limit the output result to (-1, 1).

[0059] The decoder can directly learn the features partially extracted by the encoder through long skip connections and feature cascades before each pooling operation of the encoder. This design helps prevent the loss of some features caused by multiple pooling downsampling and improves prediction accuracy. The Transformer module is introduced in the long skip connection before the third pooling operation of the encoder. First, the position of each pixel of the input feature image is encoded. Then, the relationship between the pixels of the feature image is processed through the multi-head self-attention mechanism, focusing on the spatial features of the extracted feature image to enhance global perception, avoid feature loss, and improve the precision of image prediction results. Finally, two feedforward neural networks are used to transform the dimension of the feature image and fuse it with the upsampled feature image, so that the fused feature image contains both high-level and low-level features.

[0060] In summary, the ResUnet-Transformer generator is improved on the basis of the original U-Net model and has the following advantages:

[0061] ① Using the residual block in ResNet to replace two consecutive convolution operations speeds up the transmission of gradient information, improves the model's expressiveness, and reduces the difficulty of network training.

[0062] ②Introducing the Transformer module in the long skip connection before the third pooling operation of the encoder can make full use of the Transformer's advantages in capturing global features, thereby improving the performance of the model.

[0063] 1.3 Discriminator

[0064] The discriminator D of the ResUnet-Trans-CGAN model is mainly composed of convolutional layers. The specific structure is as follows Figure 3As shown in the figure. The input of D is the current density field and the conditional variable y. The y dimension is transformed into a tensor of the same size as the current density field (batch×1×256×64), and is superimposed with the current density field by channel as the input of D. The input image is downsampled by 4 convolution operations, and batch normalization and LeakyReLU activation are performed after each convolution operation. Finally, the output of the convolutional network is expanded using a fully connected layer, outputting a scalar value, and the Sigmoid function is used to limit the result between (0, 1), indicating the probability of judging that the image is a real image.

[0065] Since the task of the generator G is not only to deceive the discriminator D, but also to generate a current density field close to the real one, the loss function of the generator G is additionally increased by the L1 loss function, which is expressed as

[0066] L1(G)=E||G(y)-x||1

[0067] The final overall objective function can be written as

[0068]

[0069] Where λ is the weight of the L1 loss function.

[0070] 1.4. Extrapolation prediction method of current density field at high speed

[0071] The electromagnetic field control equation of the electromagnetic rail launcher is a convection-diffusion equation, and the velocity is reflected in the convection term of the equation. The Peclet number is a dimensionless parameter used to measure the degree of dominance of the convection term in the equation, reflecting the stability of the numerical solution of the equation. Its calculation formula is:

[0072]

[0073] In the formula, h c is the unit grid size, σ is the conductivity, v is the armature motion speed, and μ is the relative magnetic permeability.

[0074] It can be seen from the formula that Pe is proportional to the grid unit size, speed, conductivity and magnetic permeability. As the speed increases, Pe gradually increases. When Pe>1, the "principal element dominance" characteristic of the discrete equation matrix will be weakened, resulting in the matrix becoming ill-conditioned and the numerical solution showing "pseudo-oscillations" that do not exist physically. In order to avoid the "pseudo-oscillation" phenomenon, very fine grid division must be used. However, under the conditions of high speed, high magnetic permeability and high conductivity, the calculation amount of the grid division that makes Pe<1 is too large, and the consumption of computer resources is too high, which is not advisable in practice.

[0075] In order to obtain the current density field of the entire launch process of the high-speed electromagnetic rail launcher, this application uses a deep neural network to extract the current density field distribution characteristics and learn the current density distribution law, so as to extrapolate the current density field at high speed to the "pseudo-oscillation" stage.

[0076] Since the training of deep neural networks requires a large amount of data, but the time for stable numerical simulation under the baseline conductivity of the high-speed electromagnetic rail launcher is too short, the amount of data available for training is insufficient. Therefore, this application performs numerical simulation according to 100%, 80%, 60% and 40% armature conductivity, and prolongs the time for stable numerical simulation by reducing the armature conductivity, thereby obtaining more training data.

[0077] It should be noted that there is no practical engineering significance in performing numerical simulation by reducing the conductivity of the armature. However, the prediction under different conductivities can be regarded as a task of solving multiple tasks with similar control equations. The deep neural network can learn from it the law of change of current distribution with conductivity, thereby improving the extrapolated prediction accuracy under the baseline conductivity.

[0078] 2 Calculation Example

[0079] 2.1 Electromagnetic field control equations and dynamic equations

[0080] When considering the influence of the armature motion speed, the armature control equation of the electromagnetic rail launcher obtained in the Eulerian coordinate system is:

[0081]

[0082] Where A is the vector magnetic potential and φ is the scalar potential.

[0083] Considering the influence of armature rail friction resistance and air resistance during armature motion, the armature dynamics equation is:

[0084]

[0085] In the formula, m a , a and x are the mass, acceleration and displacement of the armature respectively; F em is the armature electromagnetic thrust, which is related to the current density J and the magnetic flux density B; F f is the friction resistance of the armature rail, which is related to the friction coefficient μf and the armature electromagnetic contact pressure F N,em , Armature mechanical preload pressure F N,p Related to; F air is the air resistance, which is related to the armature motion parameters and aerodynamic shape; γ is the specific heat ratio of air; ρ0 is the initial air density; S is the cross-sectional area of ​​the armature; L is the circumference of the armature section; C f is the viscous friction coefficient.

[0086] Under the combined effect of the electromagnetic thrust of the armature, the friction resistance of the armature rail and the air resistance, the resultant force on the armature is F, and the acceleration of the armature motion is a. Therefore, by integrating the acceleration a of the armature motion, the armature motion speed can be obtained as:

[0087]

[0088] 2.2 Example 1 Interpolation prediction of current density field of low-speed electromagnetic track transmitter

[0089] An electromagnetic rail launcher with a low launch speed can complete the numerical simulation of the entire launch process. Therefore, the low-speed electromagnetic rail launcher is used as a calculation example to train the ResUnet-Trans-CGAN model, and the current density field on the track cross section and the pivot-rail contact surface is predicted respectively to test its ability to learn the spatiotemporal distribution characteristics of the current, so as to verify the effectiveness and accuracy of the prediction method proposed in this embodiment.

[0090] 2.2.1 Establishment of the interpolation data set of the track cross-section current density field

[0091] The armature test launcher (Okaloosa Armature Tester, OAT) and MCA 103 armature of the Florida State Laboratory in the United States are used as research objects. The armature model parameters are shown in Table 1. The launch data of the test number SLK018 is used. The armature mass is 249.72g, and the excitation current from 0 to 1.0ms is as follows. Figure 5 According to the electromagnetic field control equation, dynamic equation, pivot rail model parameters and excitation current, a finite element simulation model of the electromagnetic rail launcher under ideal contact conditions was established using commercial software, as shown in Figure 5 (b) As shown in the figure, considering the skin effect and proximity effect, the mesh on the inner side of the track is more detailed. Considering that the physical field changes more drastically at the contact surface of the pivot rail, the mesh here is refined and solved using a transient solver.

[0092] In this embodiment, the armature acceleration time is short and the outlet velocity is low, and the numerical solution under each conductivity does not have the "pseudo-oscillation" problem. The numerical simulation calculates the outlet velocity to be 245.7 m / s, and the armature outlet velocity measured in the launch test is 247.0 m / s. The numerical simulation result of the armature outlet velocity is only 0.53% smaller than the experimental measurement, which can meet the actual engineering calculation requirements. It can be seen that the finite element model established in this application is correct and can provide reliable training data for the deep learning model.

[0093] In order to verify the learning ability of the ResUnet-Trans-CGAN model on the spatiotemporal characteristics of the current density field, the influence of the excitation current and conductivity on the current distribution is first considered. Figure 5The track section shown in (b) is the observation angle, and the time step is set to 0.001ms. The armature conductivity (1.86e7 S / m) in Table 1 is used as the benchmark, and numerical simulations are performed at 100%, 80%, 60% and 40% armature conductivity. In order to reduce model parameters and training costs, while clearly displaying the detailed characteristics of the generated current density field, the numerical simulation results of the current density on the track section are interpolated and matrixed to form a single-channel cloud map composed of real field values ​​with a resolution of 256×64, and finally 4000 sets of sample data are obtained. The Monte Carlo method is used to extract the excitation current value i, armature conductivity σ, current time t and current density field Iiσt under corresponding conditions each time to form {(i, σ, t), Iiσt} data pairs.

[0094] Table 1 shows the parameters of the pivot model.

[0095] Model parameters Numeric Track length l / mm 220.00 Track width h / mm 31.75 Track thickness w / mm 6.35 Track spacing s / mm 25.00 Track conductivityσ / (S / m) 5.80e7 Track relative permeability μ 1.00 Armature length la / mm 28.59 Armature width ha / mm 25.00 Armature conductivity σa / (S / m) 1.86e7 Armature relative magnetic permeability μa 1.00

[0096] Before model training, the data needs to be normalized and standardized to convert the data range to [-1, 1], thereby improving model performance and accelerating the convergence speed during training. The training set and test set are divided in a ratio of 8:2.

[0097] MSE and mean absolute percentage error (MAPE) are used as performance evaluation indicators of the model, and the calculation formulas are

[0098]

[0099] In the formula, y i and are the true value and predicted value of the i-th sample respectively, and N is the number of samples.

[0100] 2.2.2 Analysis of track cross-section current density field interpolation prediction performance

[0101] This example builds an electromagnetic rail launcher current density field prediction model based on the Pytorch deep learning framework, and uses GPU to accelerate model training. The hardware configuration is: NVIDIA Tesla A800, 80GB video memory.

[0102] The commonly used Adaptive Moment Estimation (Adam) optimizer is used to minimize the loss function. In order to further improve the convergence speed of model training, this embodiment uses the cosine annealing algorithm based on the Adam optimizer to adaptively adjust the learning rate so that the learning rate gradually decreases as the number of training steps increases. The formula for dynamically changing learning rate is:

[0103]

[0104] In the formula, and Represents the range of learning rate variation, Τ cur Represents the Epoch number experienced after the most recent restart, Τ i Represents the total number of Epochs in each adjustment period.

[0105] Appropriate hyperparameters can speed up model training, prevent model overfitting, and improve prediction accuracy. Hyperparameters are tuned for Epoch, Batch-size, initial learning rate, Dropout, and L1 loss function weight λ. Hyperparameters are tuned according to the hyperparameter value range shown in Table 2. Finally, it is determined that when Epoch is 200, Batch-size is 4, initial learning rate is 2×10-4, Dropout is 0.5, and λ is 50, the comprehensive prediction performance of the model is the best.

[0106] Table 2 Hyperparameter variable values

[0107] Hyperparameters Value range Optimal value Epoch [100,200,300,500] 200 Batch-size [1,4,16,32] 4 Initial learning rate [2×10-2,2×10-3,2×10-4] 2×10-4 Dropout [0.1,0.3,0.5,0.6] 0.5 λ [10,30,50,80,100] 50

[0108] Too large a dataset will increase the data processing cost and training time, but the prediction accuracy will not be significantly improved. Therefore, the model parameters are kept unchanged to verify the impact of the dataset size on the model performance. The prediction results under different sample numbers are shown in Table 3.

[0109] When the number of training set samples is 400 and 800, the prediction effect is poor and does not meet the accuracy requirements. When the number of training set samples is 1200, 1600, and 2000, the error is significantly reduced. However, when the number of samples changes from 1600 to 2000, the error does not decrease significantly. When the number of training set samples is 3200, the error of the test set is further reduced than when the number of samples is 2000, and the MAPE value of the current density field can reach 0.9%, but the training time is longer. Therefore, in order to ensure the training speed and prediction accuracy, subsequent experiments are carried out with a training sample number of 1600.

[0110] Table 3 Prediction error and training time of the model under different training set sample numbers

[0111]

[0112]

[0113] Table 4 Current density field prediction results under different model structures

[0114]

[0115] In order to analyze the impact of the model structure on the prediction accuracy, this embodiment conducts relevant experiments from the aspects of the number of convolutional layers, short residual mechanism, Dropout layer, cosine annealing algorithm, etc. of the ResUnet-Transformer generator, and the results are shown in Table 4. It can be seen from the experimental results that:

[0116] ① Regarding the number of convolution layers, the deeper the network, the better the prediction effect of the model. When the number of convolution layers of the generator G is 19, the prediction effect is poor and the training time is long. When the number of convolution layers of the model is reduced to 15, the prediction effect is significantly improved and the training time is significantly shortened. When the number of convolution layers of the model is reduced to 11, although the training time is further shortened, the prediction effect becomes worse.

[0117] ②The short residual mechanism can promote the back propagation of gradients, improve prediction accuracy, and save network training time.

[0118] ③Introducing the Dropout layer can improve the generalization ability of the model and improve the prediction effect, but it will slightly increase the amount of calculation and algorithm time.

[0119] ④The cosine annealing algorithm can adaptively adjust the learning rate during model training and improve prediction accuracy.

[0120] To verify the advancedness of the ResUnet-Trans-CGAN proposed in this example, it is compared with CGAN using a transposed convolutional network as a generator and Unet-CGAN using U-Net as a generator. To verify the impact of the adversarial loss function on the prediction results, it is compared with ResUnet-Transformer using only the MSE loss function. 1,600 sets of training data are used, and the hyperparameters and data preprocessing settings of each model are the same. The generalization ability of the model is verified using the test set. The prediction error and training time of each model are shown in Table 5.

[0121] Table 5 Prediction error and training time of different algorithm models

[0122] Algorithm Model MSE MAPE / % Training time / h CGAN <![CDATA[1.31×10 -3 ]]> 9.3 2.62 UNet-CGAN <![CDATA[0.42×10 -3 ]]> 4.1 3.12 ResUnet-Transformer <![CDATA[0.20×10 -3 ]]> 2.3 2.87 ResUnet-Trans-CGAN <![CDATA[0.06×10 -3 ]]> 1.4 3.98

[0123] By comparison, it can be found that the structure of the CGAN model using transposed convolution is relatively simple, and the training time is the shortest under the same number of samples, but the prediction accuracy is the lowest. The long jump connection in the UNet-CGAN model can fuse image features at different levels of abstraction, and the prediction effect is significantly improved. Compared with ResUnet-Transformer, the ResUnet-Trans-CGAN model proposed in this embodiment has an additional adversarial loss function, so it is more accurate. However, since the model is more complex, the training time is also significantly increased.

[0124] On the benchmark conductivity test set, the ResUnet-Trans-CGAN model proposed in this embodiment is used to predict the track current density field at different times and compare it with the numerical simulation results, as shown in Figure 2. Figure 6 As shown. The first row in the figure is the results of numerical simulation calculations at different times, the second row is the neural network prediction results at different times, and the third row is the point-by-point absolute value error. Affected by the transient skin effect, the current is first concentrated at the two sharp corners on the inner side of the track. As time increases, the current gradually diffuses to the inside of the track, and the maximum current density also gradually moves from the two sharp corners to the inside of the track. The prediction results show that the ResUnet-Trans-CGAN model proposed in this embodiment can well learn the temporal and spatial distribution changes of the track current, and the prediction accuracy is also very high at places with high current density change rates such as near the track surface.

[0125] 2.2.3 Prediction of current density field at the pivot-rail contact surface

[0126] During the electromagnetic launch process, the armature-rail contact surface works under extreme conditions, and its current distribution is extremely uneven, resulting in more Joule heat in the current concentrated distribution area, causing melting damage to the armature and rail, greatly affecting the state of electromagnetic launch. Therefore, it is necessary to further study the current distribution at the armature-rail contact surface to guide the improvement of current distribution and improve the current tolerance of the armature and rail.

[0127] Studies have shown that in addition to the excitation current and material conductivity, the current distribution at the pivot-rail contact surface is also affected by the pivot-rail structural parameters. The prediction results in the previous section show that the ResUnet-Trans-CGAN model proposed in this embodiment can well learn the temporal and spatial distribution variation of the field and can achieve high-precision prediction of the current density field. Therefore, on the basis of considering the excitation current and conductivity, the influence of the track structure parameters on the current distribution is further considered, and the ResUnet-Trans-CGAN model is used to predict the current distribution on the pivot-rail contact surface.

[0128] by Figure 5 The contact surface of the armature and rail shown in (b) is the observation angle, the time step is set to 0.01ms, the rail structure parameters shown in Table 6 are used as variables, and the armature conductivity (1.86e7 S / m) in Table 1 is used as the benchmark. Numerical simulations are performed at 100%, 80%, 60% and 40% armature conductivity. The current density field at the contact surface of the armature and rail is extracted to form a single-channel cloud map with a resolution of 256×256, which is composed of {(i,σ,h,w,t),Iiσhwt} data pairs, and finally 3000 sets of sample data are obtained under each armature conductivity.

[0129] Table 6 Track structure parameter values

[0130] Structural parameters Value range Step Length Track width h / mm 29.75-39.75 2.00 Track thickness w / mm 5.05-7.65 0.65

[0131] Before model training, the dimensions of the input layer, output layer of the generator, and input layer of the discriminator need to be adjusted to adapt to the new data set. Using the same method for data preprocessing and hyperparameter tuning, it was finally determined that when Epoch was 200, Batch-size was 4, Dropout was 0.4, initial learning rate was 2×10-4, and λ was 80, the comprehensive prediction performance of the model was the best.

[0132] On the benchmark conductivity test set, the prediction results at different times under the same track parameter setting conditions are compared with the finite element simulation results, such as Figure 7 As shown in the figure, the prediction results of the ResUnet-Trans-CGAN model have high accuracy. As time goes by, the current density on the contact surface of the armature and rail gradually increases. Since the armature launch speed is low in this case, the influence of the velocity skin effect on the current distribution is not obvious. The transient skin effect dominates, and the maximum current density is distributed on both sides of the armature tail and gradually diffuses to the inside.

[0133] On the benchmark conductivity test set, the prediction results under different track structure parameters at the same time are compared with the finite element simulation results, such as Figure 8 As shown in the figure, each column corresponds to a different track structure parameter. It can be observed from the figure that under different track structure parameters, the current at the contact surface of the pivot rail is concentrated on both sides of the armature tail, but with the increase of track thickness and track width, the maximum current density decreases. Therefore, appropriately increasing the track thickness and track width during design can effectively reduce the maximum current density passing through the contact surface of the pivot rail.

[0134] 2.3 Example 2: Extrapolation prediction of current density field of high-speed electromagnetic rail launcher

[0135] It is difficult to perform high-precision and stable numerical simulation on an electromagnetic rail launcher with a high launch speed. Therefore, the high-speed electromagnetic rail launcher is used as a calculation example to train the ResUnet-Trans-CGAN current density field extrapolation prediction model proposed in this embodiment to achieve the current density field extrapolation in the stage where stable numerical simulation is difficult at high speed.

[0136] 2.3.1 Establishment of extrapolation dataset

[0137] The 40mm×50mm medium-caliber orbital launcher developed by the Agency for Defense Development (ADD) of South Korea was used as the research object. The launch data of test number #26 was used to verify that the armature mass was 300g and the exit velocity could reach more than 2000m / s. The test excitation current, such as Fig. 9 (a) shown.

[0138] According to the parameters of the central rail model and the excitation conditions in the launch test, the finite element simulation model of the electromagnetic rail launcher is established, and the time step is set to 0.001ms. The numerical simulation calculation value of the electromagnetic thrust under the reference conductivity (2.50e7 S / m) is as follows: Fig. 9 As shown in (b), the numerical solution "pseudo-oscillation" phenomenon appears after 1.4ms. At this time, the simulation calculation value of the velocity is 901.36m / s. Fig. 9 (c) is 2.90% smaller than the experimental measurement value of 928.25 m / s, which shows that the finite element model is correct and can provide reliable training data. After numerical simulation, the electromagnetic thrust and current density field data under different armature conductivities are obtained. The calculation results of electromagnetic thrust under different armature conductivities are shown in Fig. 9 As shown in (d), at 40% armature conductivity, the entire launch process can be fully simulated. However, at other armature conductivity, the numerical solution showed different degrees of "pseudo-oscillation" phenomenon, resulting in negative values ​​of the calculated armature electromagnetic thrust. The current density field of the track section at different times under the reference armature conductivity is shown in Figure 2. Fig.10 As shown in the figure, in the stable stage of the numerical solution, the current in the track section changes regularly; in the "pseudo-oscillation" stage of the numerical solution, the current distribution characteristics in the track section are abnormal.

[0139] After the above numerical simulation, 9500 sets of sample data were obtained in the stable calculation stage under different armature conductivity. The first 80% of the data in the stable numerical simulation stage under each armature conductivity was taken as the training set, and the last 20% of the data was taken as the extrapolation test set. The same data preprocessing method was used before model training.

[0140] 2.3.2 Analysis of current density field extrapolation prediction performance

[0141] The model uses the same method as in Example 1 to tune hyperparameters. It is finally determined that when Epoch is 200, Batch-size is 8, Dropout is 0.4, initial learning rate is 2×10-4, and λ is 80, the model has the best comprehensive prediction performance.

[0142] The prediction results of the ResUnet-Trans-CGAN model are compared with the numerical simulation results at 1.30ms and 1.35ms in the test set, respectively. Fig.11 , Fig.12 In the test set, the average MAPE of the current density field prediction results at the track section is 1.83%, and the average MAPE of the current density field prediction results at the hinge-rail contact surface is 3.47%, indicating that the model has a high extrapolation prediction accuracy.

[0143] Using the trained ResUnet-Trans-CGAN model, the current density field of the "pseudo-oscillation" stage (1.4-2.0ms) of the numerical solution under the reference armature conductivity is extrapolated and predicted. The current density field of the track section at different times is predicted, such as Fig.13 As shown. Since stable numerical solutions at high speeds are difficult to obtain, the accuracy of the prediction results cannot be verified at present. Analysis of the prediction results shows that in the "pseudo-oscillation" stage of the numerical solution, with the increase of time and speed, the current distribution is changing dynamically, and the maximum current density gradually decreases. The current tends to be concentrated at the two sharp corners on the inner surface of the track, gradually diffusing into the track, and the current density shows an obvious gradient downward trend from the two sharp corners on the inner side of the track to the center part close to the outer side of the track.

[0144] The extrapolation prediction results of the current density field at the hinge-rail contact surface are as follows Fig.14 As shown in the figure, the current density on the armature-rail contact surface does not change significantly, and the current is concentrated at the end of the armature tail. This is because at 1.4ms, the excitation current waveform is approximately in the constant current stage, and the simulated calculated value of the armature speed has reached 901.36m / s at this time, and the speed skin effect is obvious, so the current density amplitude at the end of the armature tail is much higher than that in the head area.

[0145] From the above prediction results, it can be seen that the current distribution on the contact surface between the electromagnetic rail launcher rail and the armature rail is extremely uneven under high-speed conditions, which makes the strong current part have a higher temperature rise, making it more prone to material melting, adhesion and peeling, and the resulting wear will affect the stable operation of the armature in the chamber.

[0146] 3.3.3 Training Strategy

[0147] The original training strategy used in Example 1 and Example 2 is to train the model based on the stable numerical simulation sample data under different conductivities, and then extrapolate the prediction of the current density field under the reference conductivity. In order to improve the convergence speed and prediction performance of the model, this embodiment further introduces a migration training strategy for the neural network model parameters from predicting the current density field under low conductivity to that under the reference conductivity. Specifically:

[0148] First, ResUnet-Trans-CGAN is trained based on numerical simulation data at 40% benchmark conductivity. After training, the current network parameters are saved; then they are used as the initial values ​​of the network parameters at 60% benchmark conductivity. Similarly, the network parameters trained at 60% benchmark conductivity are used as the initial values ​​of the network parameters at 80% benchmark armature conductivity. Using this strategy, the extrapolated prediction of the current density field at the benchmark armature conductivity is finally achieved.

[0149] The prediction results of the ResUnet-Trans-CGAN model under the two training strategies are compared. As shown in Table 7, for the track section, the migration training strategy reduces the MAPE value by about 9.6% and 16.9% respectively compared with the original training strategy, and the prediction effect is better. From the comparison of training time, it can be seen that compared with the original training strategy, the migration training strategy increases the training speed of the model by 13.1% and 17.0% respectively. For the pivot-rail contact surface, the migration training strategy reduces the MAPE value by about 25.8% and 30.0% respectively compared with the original training strategy, and increases the training speed by 13.4% and 22.1% respectively. Overall, the migration training strategy can improve the accuracy of extrapolation prediction and speed up model training.

[0150] Table 7 Prediction results of ResUnet-Trans-CGAN model under different training strategies

[0151]

[0152] In the ResUnet-Trans-CGAN model of the transfer training strategy, predictions under different conductivities can be regarded as solving multiple tasks with similar control equations. Although the initial training error of the network is high at 40% armature conductivity, the initial training error of the network at 60%, 80% and baseline armature conductivity will gradually decrease. And the number of required iterations decreases with the transfer learning training process, which accelerates the optimization process of network parameters and improves the convergence speed of model training.

[0153] 3 Conclusions based on the above examples

[0154] In view of the problem that the finite element method is used to calculate the current density field of the electromagnetic rail launcher, which takes a long time and is difficult to calculate stably at high speed, this embodiment proposes a high-speed current density field prediction method based on ResUnet-Trans-CGAN. The specific conclusions are as follows:

[0155] 1) A current density field prediction method based on CGAN is proposed. Taking the excitation current, armature conductivity, track structure parameters and time t as input, the current density field under the corresponding parameters can be directly generated.

[0156] 2) Establish the generator of residual network, U-Net and Transformer, implement the RseUnet-Trans-CGAN model, and improve the feature extraction capability of complex current distribution. The model interpolation prediction accuracy is verified by using the example of low-speed electromagnetic orbit launcher. The results show that compared with CGAN, Unet-CGAN and ResUnet-Transformer, the ResUnet-Trans-CGAN proposed in this embodiment has a current density field interpolation prediction MAPE value of less than 1.5% on the test set, which has higher accuracy. After the model training is completed, it can be called multiple times, which can realize efficient exploration in the design domain.

[0157] 3) Taking the high-speed electromagnetic rail launcher as a calculation example, a transfer learning training strategy from low conductivity to high conductivity is introduced to further improve the generalization ability of the model and achieve higher extrapolation prediction accuracy. The results show that after using the transfer learning training strategy, the error MAPE of the ResUnet-Trans-CGAN extrapolation prediction of the current density cloud map on the test set is reduced from less than 3.5% to less than 2.5%. The model can directly generate the current density cloud map in the stage of numerical simulation that is difficult to stabilize at high speed, which is helpful for the refined design of the electromagnetic rail launcher structure.

[0158] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0159] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application further provides a current density field prediction device.

[0160] like Fig.15 As shown, the current density field prediction device comprises:

[0161] The acquisition module 11 is configured to establish a three-dimensional finite element simulation model of the electromagnetic rail launcher, calculate the current density field under different armature conductivities during the launch process, and divide it into a stable stage and a "pseudo-oscillation" stage according to the numerical solution;

[0162] A preprocessing module 12 is configured to normalize and standardize the data and divide it into a training set and a test set;

[0163] The model building module 13 is configured to establish a current density field prediction model based on ResUnet-Trans-CGAN, train the model using a training set, test the prediction accuracy of the model using a test set, and evaluate whether the model has learned the potential current distribution law in the data;

[0164] The prediction module 14 is configured to predict the current density field in the "pseudo-oscillation" stage at high speed when the reference conductivity is used based on the trained current density field prediction model, and to superimpose the numerical simulation results obtained in the stable stage with the numerical prediction results obtained in the "pseudo-oscillation" stage to obtain the current density field of the entire emission process.

[0165] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0166] The device of the above embodiment is used to implement the corresponding current density field prediction method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0167] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the current density field prediction method as described in any of the above embodiments is implemented.

[0168] Fig.16 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0169] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0170] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0171] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0172] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0173] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0174] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0175] The electronic device of the above embodiment is used to implement the corresponding current density field prediction method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0176] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the current density field prediction method described in any of the above embodiments.

[0177] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0178] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the current density field prediction method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0179] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0180] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0181] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0182] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A current density field prediction method, characterized in that: include: Data acquisition, establishment of a three-dimensional finite element simulation model of the electromagnetic rail launcher, calculation of the current density field under different armature conductivity during the launch process, and division into a stable stage and a "pseudo-oscillation" stage according to the numerical solution; Data preprocessing: normalize and standardize the data and divide it into training set and test set; Model construction and training: Establish a current density field prediction model based on ResUnet-Trans-CGAN, use the training set to train the model, use the test set to test the prediction accuracy of the model, and evaluate whether the model has learned the potential current distribution law in the data; Extrapolated prediction, based on the trained current density field prediction model, predicts the current density field in the "pseudo-oscillation" stage at high speed when the reference conductivity is high. The numerical simulation results obtained in the stable stage are superimposed with the numerical prediction results obtained in the "pseudo-oscillation" stage to obtain the current density field of the entire emission process.

2. The current density field prediction method according to claim 1, characterized in that: The current density field prediction model includes a training phase and a testing phase; In the training phase, the excitation current, armature conductivity, track structure parameters and time are combined into conditional variables, which are transformed into dimensions by the fully connected layer and then input into the generator to obtain a generated image. The numerical simulation calculation value of the current density is then matrixed to form a real image, and the conditional variables and the generated image or the real image are combined and input into the discriminator to judge the input data and output the probability that the image is a real image. The generator and the discriminator are trained in an adversarial manner and the neural network parameters are updated alternately. In the testing phase, the discriminator part is discarded, and the excitation current, armature conductivity, track structure parameters and time are input into the generator to generate the current density field under corresponding conditions.

3. The current density field prediction method according to claim 2, characterized in that: During the training stage, a migration training strategy is introduced to migrate the neural network model parameters from the predicted current density field under low conductivity to the baseline conductivity. Based on the stable numerical simulation sample data under different conductivities, the model is trained together to extrapolate the prediction of the current density field under baseline conductivity.

4. The current density field prediction method according to claim 2, characterized in that: The generator consists of an encoder, a decoder and a bottleneck module; The encoder consists of three residual blocks and three maximum pooling layers. A batch normalization layer is added to each residual block to standardize the features of each batch of training data. The number of feature channels of the input feature image is doubled after the convolution operation in the residual block, and then a 2×2 maximum pooling layer is used for downsampling. The bottleneck module is composed of a residual block to connect the encoder and the decoder. The decoder is composed of three residual blocks and three upsampling layers. The abstract feature information of the image is restored by upsampling the image. When upsampling, the number of feature channels of the image is halved after passing through the residual block, and the feature is decoded to the size of the original image. A 1×1 convolution layer is then used to adjust the number of channels of the feature map to 1, and the Tanh activation function is used to limit the output result to between (-1, 1); The decoder is cascaded with the features before each pooling operation of the encoder through a long skip connection to learn the features partially extracted by the encoder, and a Transformer module is introduced in the long skip connection before the third pooling operation of the encoder.

5. The current density field prediction method according to claim 4, characterized in that: The position of each pixel of the input feature image is encoded, and the relationship between the pixels of the feature image is processed through a multi-head self-attention mechanism, focusing on the spatial features of the extracted feature image. The feature image is transformed in dimension through a feedforward neural network and fused with the upsampled feature image, so that the fused feature image contains both high-level and low-level features.

6. The current density field prediction method according to claim 2, characterized in that: The discriminator is composed of a convolutional layer. The input of the discriminator is the current density field and the conditional variable y. The y dimension is transformed into a tensor of the same size as the current density field and superimposed with the current density field by channel as the input of the discriminator. The input image is downsampled by 4 convolution operations, and batch normalization and LeakyReLU activation are performed after each convolution operation. The fully connected layer is used to expand the convolutional network output, output a scalar value, and the Sigmoid function is used to limit the result between (0, 1) to indicate the probability of judging that the image is a real image.

7. The current density field prediction method according to claim 2, characterized in that: Add the L1 loss function based on the loss function of the generator, and the expression is: L1(G)=E||G(y)-x||1; The overall objective function formula is: Where λ is the weight of the L1 loss function.

8. A current density field prediction device, characterized in that: include: An acquisition module is configured to establish a three-dimensional finite element simulation model of an electromagnetic rail launcher, calculate the current density field under different armature conductivities during the launch process, and divide it into a stable stage and a "pseudo-oscillation" stage according to a numerical solution; A preprocessing module is configured to normalize and standardize the data and divide it into a training set and a test set; The model building module is configured to establish a current density field prediction model based on ResUnet-Trans-CGAN, train the model using the training set, test the prediction accuracy of the model using the test set, and evaluate whether the model has learned the potential current distribution law in the data; The prediction module is configured to predict the current density field in the "pseudo-oscillation" stage at high speed when the reference conductivity is based on the trained current density field prediction model, and the numerical simulation results obtained in the stable stage are superimposed with the numerical prediction results obtained in the "pseudo-oscillation" stage to obtain the current density field of the entire emission process.

9. 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 program, the current density field prediction method described in any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium, characterized in that: in, The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the current density field prediction method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Multiphase medium material microstructure three-dimensional fracture whole process simulation method based on space-time sequence prediction

    CN121171439A