A simulation method, device, equipment and medium for an electromagnetic railgun
By dividing the electromagnetic railgun's track into N segments and using the finite element method combined with equivalent circuit analysis to update the equivalent load parameters in real time, the simulation error problem caused by constant load parameters is solved, and a more accurate simulation of the electromagnetic railgun's firing process is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XI AN JIAOTONG UNIV
- Filing Date
- 2022-11-30
- Publication Date
- 2026-06-30
AI Technical Summary
In the existing technology, the simulation method for electromagnetic railguns uses constant load parameter values for calculation, which leads to errors in the simulation process.
The finite element method combined with the equivalent circuit analysis method is adopted. The track is divided into N segments. The equivalent load parameters of the track are updated in real time according to the circuit parameters of the armature at each discrete time point. The mechanical equations of the armature and the circuit equations of the electromagnetic railgun are constructed, and the equivalent load parameters are corrected segment by segment.
By correcting the equivalent load parameters piece by piece, the simulation results are closer to the real situation, reducing simulation errors and improving the simulation accuracy of the electromagnetic railgun firing process.
Smart Images

Figure CN116306071B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electromagnetic railgun technology, and in particular to a simulation method, apparatus, equipment and medium for electromagnetic railguns. Background Technology
[0002] In an electromagnetic railgun, a pulse source applies a pulse current to two parallel rails and an armature in contact with the rails. The magnetic field generated by the current and the current in the armature interact to instantly produce a powerful electromagnetic force, which propels the armature and the projectile forward.
[0003] In existing technologies, numerical simulation software is commonly used to predict the projectile dynamics during launch. This includes simplifying the electromagnetic railgun based on constant load parameter values, forming a simplified circuit, and solving for the projectile dynamics. However, since the pulse current is not uniformly distributed in the rail and armature, and the current distribution is affected by velocity and frequency; the load parameters change with both current and armature variations. Therefore, using the aforementioned constant load parameter values for calculations during simulation will inevitably introduce certain errors. Summary of the Invention
[0004] The purpose of this invention is to provide a simulation method, apparatus, equipment, and medium for electromagnetic railguns, in order to overcome the problem that the use of constant load parameter values in the simulation process of existing technologies will lead to certain errors.
[0005] A simulation method for an electromagnetic railgun, the railgun comprising a pulse source and a load end, the pulse source being used to provide current excitation to the load end, the load end comprising a rail and an armature, the method comprising:
[0006] The mechanical equations of the armature are constructed, and the circuit equations of the electromagnetic railgun are constructed based on the equivalent circuit of the electromagnetic railgun.
[0007] The track is divided into N segments, and the armature is placed at the end of the i-th segment. The current equivalent load parameters of the track are updated according to the circuit parameters at each discrete time point; where i∈N, and the initial value of i is 1.
[0008] Substitute the current equivalent load parameters of the track into the circuit equation and the mechanical equation to calculate the discrete data between the armature current and the discrete time point and the discrete data between the armature speed and the discrete time point when the armature is set at the end of the i-th track segment.
[0009] If i < N, then drive the pulse source to provide current excitation to the load end based on the discrete data between the armature current when the armature is set at the end of the i-th track segment and the discrete time point. Let i = i + 1, and return to execute the step of setting the armature at the end of the i-th track segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point.
[0010] If i = N, then fit all the calculated armature velocities and discrete time points to obtain continuous data between armature velocity and time.
[0011] In one embodiment, the armature's circuit parameters include armature current and armature electromagnetic force. The step of placing the armature at the end of the i-th track segment and updating the track's current equivalent load parameters based on the circuit parameters at each discrete time point includes:
[0012] The armature is placed at the end of the i-th track segment, and the target armature current and target armature electromagnetic force are obtained at the target discrete time point; wherein, the target discrete time point is any one of the discrete time points when the armature is at the end of the i-th track segment;
[0013] The inductance gradient at each discrete time point is calculated based on the target armature current and the target armature electromagnetic force to obtain the inductance gradient at each discrete time point.
[0014] The mean value of the inductance gradient at each discrete time point is calculated, and the first mean value is used as the current equivalent load parameter of the track after the update.
[0015] In one embodiment, the step of placing the armature at the end of the i-th track segment and updating the current equivalent load parameters of the track based on the circuit parameters at each discrete time point includes:
[0016] The armature is placed at the end of the i-th track segment, and the track resistance value at the target discrete point is obtained from the predefined impedance matrix;
[0017] Calculate the ratio between the track resistance value at the target discrete point and the length of the first i-th track segment, and use the obtained ratio as the resistance gradient at the target discrete time point to obtain the resistance gradient at each discrete time point;
[0018] The mean value of the resistance gradient at each discrete time point is calculated, and the obtained second mean value is used as the current equivalent load parameter of the track after the update.
[0019] In one embodiment, the equivalent circuit of the electromagnetic railgun includes a pulse source equivalent circuit and a load terminal equivalent circuit. Constructing the circuit equations of the electromagnetic railgun based on its equivalent circuit includes:
[0020] Based on the equivalent circuit of the pulse source, the voltage equation of the pulse source is constructed according to Kirchhoff's voltage law;
[0021] Based on the equivalent circuit of the load terminal, the voltage equation of the load terminal is constructed according to Kirchhoff's voltage law.
[0022] In one embodiment, the mechanical equations for constructing the armature include:
[0023] The velocity equation of the armature is constructed based on the armature's movement distance;
[0024] The acceleration equation of the armature is constructed based on the frictional force and electromagnetic force acting on the armature.
[0025] In one embodiment, the driving pulse source provides current excitation to the load terminal based on discrete data between the armature current at the end of the i-th track segment and discrete time points, including:
[0026] The discrete data between the armature current and discrete time points are fitted to obtain the current-time function when the armature is set at the end of the i-th track segment;
[0027] The pulse source is driven to provide current excitation to the load terminal based on the current-time function.
[0028] In one embodiment, the method further includes:
[0029] When i = 1, the magnetic field of the electromagnetic railgun is set as an eddy current field;
[0030] When i > 1, the magnetic field where the electromagnetic railgun is located is set as a transient field.
[0031] A simulation device for an electromagnetic railgun, the electromagnetic railgun comprising a pulse source and a load end, the pulse source being used to provide current excitation to the load end, the load end comprising a rail and an armature, the device comprising:
[0032] An equation construction module is used to construct the mechanical equations of the armature and the circuit equations of the electromagnetic railgun based on the equivalent circuit of the electromagnetic railgun.
[0033] The simulation module is used to divide the track into N segments, place the armature at the end of the i-th segment, and update the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; where i∈N, and the initial value of i is 1; substitute the current equivalent load parameters of the track into the circuit equation and the mechanical equation to calculate the discrete data between the armature current and the discrete time point when the armature is placed at the end of the i-th segment; if i<N, then drive the pulse source to provide current excitation to the load end based on the discrete data between the armature current and the discrete time point when the armature is placed at the end of the i-th segment, let i=i+1, and return to execute the step of placing the armature at the end of the i-th segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; if i=N, then fit all the calculated discrete data between the armature speed and the discrete time point to obtain continuous data between the armature speed and time.
[0034] A computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of the electromagnetic railgun simulation method described above.
[0035] An electromagnetic railgun simulation device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the steps of the electromagnetic railgun simulation method described above.
[0036] Compared with the prior art, the present invention has the following beneficial technical effects:
[0037] This invention provides a simulation method, apparatus, equipment, and medium for an electromagnetic railgun. First, it constructs the mechanical equations of the armature and the circuit equations of the electromagnetic railgun based on its equivalent circuit. Compared to constant load parameter values, this invention employs a finite element method combined with an equivalent circuit analysis method. The track is divided into N segments, and the armature is placed at the end of the i-th segment. The equivalent load parameters of the track are updated in real time based on the circuit parameters of the armature at each discrete time point, thereby gradually approximating the true values of the equivalent load parameters segment by segment. Then, the current equivalent load parameters of the track are substituted into the circuit and mechanical equations to calculate the discrete data between the armature current and discrete time points when the armature is placed at the end of the i-th segment. If i < N, the driving pulse source provides current excitation to the load end based on the discrete data between the armature current when the armature is set at the end of the i-th track segment and discrete time points, i.e., simulating current changes. Let i = i + 1, and return to execute the step of setting the armature at the end of the i-th track segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point. If i = N, then fit all the calculated discrete data between the armature velocity and discrete time points to obtain continuous data between the armature velocity and time. Therefore, this invention, based on the finite element method combined with the equivalent circuit analysis method, considers the influence of current changes and the armature. When the armature moves a certain distance, the equivalent load parameters are corrected, thereby simulating an electromagnetic railgun firing process that is closer to reality. Attached Figure Description
[0038] Figure 1 This is a flowchart illustrating the simulation method of the electromagnetic railgun in an embodiment of the present invention.
[0039] Figure 2 This is a schematic diagram of the pulse source equivalent circuit in an embodiment of the present invention.
[0040] Figure 3 This is a schematic diagram of the equivalent circuit at the load end in an embodiment of the present invention.
[0041] Figure 4 This is a schematic diagram of the target armature electromagnetic force sampled in an embodiment of the present invention.
[0042] Figure 5 This is a schematic diagram of the track resistance values sampled in an embodiment of the present invention.
[0043] Figure 6 This is a schematic diagram of the structure of the simulation device for the electromagnetic railgun in an embodiment of the present invention.
[0044] Figure 7 This is a structural block diagram of the simulation device for the electromagnetic railgun in an embodiment of the present invention. Detailed Implementation
[0045] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0046] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0047] like Figure 1 The diagram shown illustrates a simulation method for an electromagnetic railgun in one embodiment. The railgun consists of a pulse source and a load end. The pulse source provides current excitation to the load end, which includes a rail and an armature. The magnetic field generated by the current and the current in the armature interact instantaneously to produce a powerful electromagnetic force, thereby propelling the armature forward.
[0048] The steps provided in the electromagnetic railgun simulation method of this embodiment include:
[0049] Step 102: Construct the mechanical equations of the armature and the circuit equations of the electromagnetic railgun based on the equivalent circuit of the electromagnetic railgun.
[0050] First, the principle behind constructing the circuit equations for an electromagnetic railgun will be explained. (See...) Figure 2 and Figure 3 , Figure 2 This is a schematic diagram of the equivalent circuit of a pulse source, including capacitor C1, diode D, thyristor T, inductor L1, wire resistance R0, wire inductance L0, and initial voltage U across the capacitor. C1 Load voltage value U a The capacitor C1, diode D, thyristor T, and inductor L1 form the equivalent model of a capacitive pulse source.
[0051] Figure 3 This is a schematic diagram of the equivalent circuit at the load end, including the inductance gradient L of the track.′ resistance gradient R ′ x is the armature travel distance, i.e., the length of the first i segments of the track. r The current flowing through the track is denoted as . The armature resistance and inductance are ignored in the equivalent circuit at the load end.
[0052] based on Figure 2 and Figure 3 The equivalent circuit is constructed as follows: The circuit equations for the electromagnetic railgun are:
[0053]
[0054] in, The voltage equation for the pulse source is based on Kirchhoff's voltage law. Figure 2 The equivalent circuit of the pulse source is solved.
[0055] The voltage equation at the load end is based on Kirchhoff's voltage law. Figure 3 The equivalent circuit of the load terminal is solved.
[0056] It is the expression for the relationship between capacitor current and voltage.
[0057] U elmo =L ′ i r v is an expression for solving the back electromotive force based on the inductance gradient, current, and armature velocity.
[0058] Next, the following mechanical equations for the armature are constructed:
[0059]
[0060] in, It is the velocity equation of the armature;
[0061] This is the acceleration equation for the armature; F fric F is the frictional force acting on the armature. x The electromagnetic force experienced by the armature.
[0062] Step 104: Divide the track into N segments, set the armature at the end of the i-th segment of the track, and update the current equivalent load parameters of the track according to the circuit parameters at each discrete time point.
[0063] Where i∈N, and the initial value of i is 1. That is to say, in this embodiment, the track is analyzed by finite element method combined with equivalent circuit, and the current equivalent load parameters of the track are updated in real time based on the position of the armature, so that the calculated value is close to the actual value. At the end of different segments of the track, the total duration is set to vary, that is, the number of discrete time points varies. It is actually based on the solution obtained when executing step 106 of segment i-1, and then called when executing step 104 of segment i. The specific solution process is detailed in step 106.
[0064] In this embodiment, when i = 1, the magnetic field of the current electromagnetic railgun is set as an eddy current field. When i > 1, the magnetic field of the current electromagnetic railgun is set as a transient field. This is because setting it as an eddy current field allows for the estimation of an initial equivalent load parameter before executing step 106 and subsequent steps, enabling the substitution of the transient field to obtain a more accurate equivalent load parameter.
[0065] In one specific embodiment, the equivalent load parameters include the inductance gradient, and the method for updating the current equivalent load parameters of the track based on the circuit parameters at each discrete time point includes:
[0066] (1) Set the armature at the end of the i-th track segment and obtain the target armature current and target armature electromagnetic force at the target discrete time point.
[0067] Here, the target discrete time point is any one of the discrete time points at the end of the i-th track segment. The target armature current and target armature electromagnetic force at the target discrete time point are obtained by sampling. In other words, the same operation is performed for each discrete time point within the i-th track segment.
[0068] (2) Calculate the inductance gradient of the target discrete time point based on the target armature current and the target armature electromagnetic force to obtain the inductance gradient of each discrete time point.
[0069] The specific calculation formula is as follows:
[0070]
[0071] Among them, F em For the target armature electromagnetic force, I r For the target armature current, I rmax This represents the peak current. The same operation is performed at each discrete time point within the i-th track segment. Applicable to transient fields, Suitable for eddy current fields.
[0072] (3) Calculate the mean value of the inductance gradient at each discrete time point, and use the first mean value result as the current equivalent load parameter of the updated track.
[0073] In one specific embodiment, the equivalent load parameters include the resistance gradient, and the method for updating the current equivalent load parameters of the track further includes:
[0074] (1) Set the armature at the end of the i-th track segment and obtain the track resistance value at the target discrete point from the predefined impedance matrix.
[0075] (2) Calculate the ratio between the track resistance value at the target discrete point and the length of the first i-th track segment. Use the obtained ratio as the resistance gradient at the target discrete time point to obtain the resistance gradient at each discrete time point.
[0076] For example, the length of the first segment of the track is the length of the first segment of the track, the length of the first two segments of the track is the sum of the lengths of the first and second segments of the track, and so on.
[0077] (3) Calculate the mean value of the resistance gradient at each discrete time point, and use the obtained second mean value as the current equivalent load parameter of the updated track.
[0078] For example, the impedance matrix is set in advance in Maxwell. In the initial calculation, the track length is set to 2m, divided into ten segments. The length of the first segment is 0.2m. An eddy current field is used, the excitation is 100kA, and the frequency is 100Hz.
[0079] Assuming the target armature electromagnetic force sampled at the target discrete time point is as follows: Figure 4 As shown, the x-direction represents the electromagnetic force that causes the armature to move forward, i.e., F(x) is the electromagnetic force of the target armature. When the magnetic field is an eddy current field, the inductance gradient of the target at discrete time points is:
[0080]
[0081] Then, the same operation is performed at each discrete time point within the i-th segment of the track, and the mean is calculated to update the current equivalent load parameters of the track. When the magnetic field is transient, it is achieved through... Perform the same operation on each discrete time point within the i-th segment of the track.
[0082] Assuming the track resistance value at the target discrete point is obtained from a predefined impedance matrix, as follows: Figure 5 As shown, where 0.030567 is the track resistance value and 0.11144 is the corresponding inductance value, the resistance gradient at the target discrete time points is:
[0083] R ′ x=0.030567÷0.2=0.152835mΩ / m
[0084] Then, the same operation is performed on each discrete time point within the i-th track segment, and the mean is calculated, which allows the current equivalent load parameters of the track to be updated.
[0085] Step 106: Substitute the current equivalent load parameters of the track into the circuit equation and the mechanical equation to calculate the discrete data between the armature current and the discrete time point and the discrete data between the armature speed and the discrete time point when the armature is set at the end of the i-th track segment.
[0086] That is, the equivalent load parameters calculated in step 104 are substituted into formulas (1) and (2) for calculation. Since the derivatives and initial value information of the equations are known, in a specific embodiment, the Runge-Kutta method is used for calculation, the principle of which is as follows:
[0087] Let the initial value problem be expressed as follows.
[0088] y ′ =f(t,y),y(t0)=y0
[0089] Therefore, "RK4" for this problem is given by the following equation:
[0090]
[0091] in:
[0092] k1=f(t n ,y n )
[0093]
[0094]
[0095] k4=f(t n +h,y n +hk3)
[0096] Thus, the next value (yn+1) is determined by the current value (yn) plus the time interval (h) and an estimated slope. This slope is a weighted average of the following slopes:
[0097] k1 is the slope at the beginning of the time period;
[0098] k2 is the slope at the midpoint of the time interval. The slope k1 is used to determine the value of y at the point tn+h / 2 using the Euler method.
[0099] k3 is also the slope at the midpoint, but this time the slope k2 is used to determine the y value;
[0100] k4 is the slope at the end of the time interval, and its y-value is determined by k3.
[0101] Step 108: Determine the relative sizes of i and N. If i < N, proceed to step 110; if i < N, proceed to step 110; if i = N, proceed to step 112.
[0102] Step 110: The drive pulse source provides current excitation to the load end based on the discrete data between the armature current when the armature is set at the end of the i-th track segment and the discrete time point, and lets i = i + 1. Return to step 104.
[0103] In one specific embodiment, the discrete data between the armature current and discrete time points are fitted to obtain the current-time function when the armature is set at the end of the i-th track segment. The driving pulse source provides current excitation to the load end based on the current-time function to adapt to driving the armature at the end of the (i+1)-th track segment. Then, returning to step 104, the finite element analysis combined with the equivalent circuit is continued, and the current equivalent load parameters of the track are continuously updated to make the calculated value approximate the actual value.
[0104] Step 112: Fit all the calculated armature velocities and discrete time points to obtain continuous data between armature velocities and time.
[0105] When i = N, the calculation ends. By fitting the discrete data between all armature velocities and discrete time points, continuous data between armature velocity and time can be obtained. Simultaneously, a graph of armature velocity versus time can be plotted, facilitating the viewing of simulation results.
[0106] Because it uses a piecewise solution method, the above-mentioned electromagnetic railgun simulation method avoids the problem of the total time being difficult to determine, as well as the situation where the specified track length is not reached when the calculation stops, compared to the method of first calculating the total time and then dividing the time equally before simulating.
[0107] The simulation method for the aforementioned electromagnetic railgun first constructs the mechanical equations of the armature and the circuit equations of the electromagnetic railgun based on its equivalent circuit. Compared to constant load parameter values, this invention employs a finite element method combined with equivalent circuit analysis. The track is divided into N segments, and the armature is placed at the end of the i-th segment. The equivalent load parameters of the track are updated in real-time based on the circuit parameters of the armature at each discrete time point, thereby gradually approximating the true values of the equivalent load parameters segment by segment. Then, the current equivalent load parameters of the track are substituted into the circuit and mechanical equations to calculate the discrete data between the armature current and discrete time points when the armature is placed at the end of the i-th segment. If i < N, the driving pulse source provides current excitation to the load end based on the discrete data between the armature current when the armature is set at the end of the i-th track segment and discrete time points, i.e., simulating current changes. Let i = i + 1, and return to execute the step of setting the armature at the end of the i-th track segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point. If i = N, then fit all the calculated discrete data between the armature velocity and discrete time points to obtain continuous data between the armature velocity and time. Therefore, this invention, based on the finite element method combined with the equivalent circuit analysis method, considers the influence of current changes and the armature. When the armature moves a certain distance, the equivalent load parameters are corrected, thereby simulating an electromagnetic railgun firing process that is closer to reality.
[0108] In one embodiment, such as Figure 6 As shown, a simulation device for an electromagnetic railgun is proposed. The electromagnetic railgun includes a pulse source and a load end. The pulse source is used to provide current excitation to the load end, and the load end includes a rail and an armature. The device includes:
[0109] Equation building module 602 is used to build the mechanical equations of the armature and the circuit equations of the electromagnetic railgun based on the equivalent circuit of the electromagnetic railgun.
[0110] The simulation module 604 is used to divide the track into N segments, place the armature at the end of the i-th segment, and update the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; where i∈N, and the initial value of i is 1; substitute the current equivalent load parameters of the track into the circuit equation and the mechanical equation to calculate the discrete data between the armature current and the discrete time point when the armature is placed at the end of the i-th segment; if i<N, the driving pulse source provides current excitation to the load end based on the discrete data between the armature current and the discrete time point when the armature is placed at the end of the i-th segment, let i=i+1, and return to execute the step of placing the armature at the end of the i-th segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; if i=N, fit all the calculated discrete data between the armature speed and the discrete time point to obtain the continuous data between the armature speed and time.
[0111] Figure 7 An internal structural diagram of a simulation device for an electromagnetic railgun in one embodiment is shown. Figure 7 As shown, the electromagnetic railgun simulation device includes a processor, memory, and network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement the electromagnetic railgun simulation method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to implement the electromagnetic railgun simulation method. Those skilled in the art will understand that... Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the simulation equipment for the electromagnetic railgun to which the present application is applied. A specific electromagnetic railgun simulation equipment may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0112] A simulation device for an electromagnetic railgun includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: constructing the mechanical equations of the armature and the circuit equations of the electromagnetic railgun based on its equivalent circuit; dividing the rail into N segments, placing the armature at the end of the i-th segment, and updating the current equivalent load parameters of the rail according to the circuit parameters at each discrete time point; substituting the current equivalent load parameters of the rail into the circuit equations and the mechanical equations, and calculating the electrical load when the armature is placed at the end of the i-th segment. Discrete data between armature current and discrete time points, and discrete data between armature velocity and discrete time points; if i < N, the drive pulse source provides current excitation to the load end based on the discrete data between armature current and discrete time points when the armature is set at the end of the i-th track segment, let i = i + 1, and return to execute the step of setting the armature at the end of the i-th track segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; if i = N, then fit all the calculated discrete data between armature velocity and discrete time points to obtain continuous data between armature velocity and time.
[0113] A computer-readable storage medium storing a computer program, which, when executed by a processor, performs the following steps: constructing the mechanical equations of an armature and the circuit equations of an electromagnetic railgun based on its equivalent circuit; dividing the track into N segments, placing the armature at the end of the i-th segment, and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; substituting the current equivalent load parameters of the track into the circuit equations and the mechanical equations, calculating the discrete data between the armature current and the discrete time point and the discrete data between the armature velocity and the discrete time point when the armature is placed at the end of the i-th segment; if i < N, then driving a pulse source to provide current excitation to the load end based on the discrete data between the armature current and the discrete time point when the armature is placed at the end of the i-th segment, setting i = i + 1, and returning to execute the steps of placing the armature at the end of the i-th segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; if i = N, then fitting all the calculated discrete data between the armature velocity and the discrete time point to obtain continuous data between the armature velocity and time.
[0114] It should be noted that the above-mentioned simulation method, apparatus, equipment and computer-readable storage medium for electromagnetic railguns belong to a general inventive concept, and the contents of the embodiments of the simulation method, apparatus, equipment and computer-readable storage medium for electromagnetic railguns are applicable to each other.
[0115] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0116] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0117] The above embodiments merely illustrate several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A simulation method for an electromagnetic railgun, characterized in that, The electromagnetic railgun includes a pulse source and a load end, the pulse source being used to provide current excitation to the load end, the load end including a rail and an armature, and the method comprising: The mechanical equations of the armature are constructed, and the circuit equations of the electromagnetic railgun are constructed based on the equivalent circuit of the electromagnetic railgun. The track is divided into N segments, and the armature is placed at the end of the i-th segment. The current equivalent load parameters of the track are updated according to the circuit parameters at each discrete time point; where i∈N, and the initial value of i is 1. Substitute the current equivalent load parameters of the track into the circuit equation and the mechanical equation to calculate the discrete data between the armature current and discrete time points and the discrete data between the armature speed and discrete time points when the armature is set at the end of the i-th track segment. If i < N, then drive the pulse source to provide current excitation to the load end based on the discrete data between the armature current when the armature is set at the end of the i-th track segment and the discrete time point. Let i = i + 1, and return to execute the step of setting the armature at the end of the i-th track segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point. If i = N, then fit all the calculated armature velocities and discrete time points to obtain continuous data between armature velocity and time.
2. The method according to claim 1, characterized in that, The armature circuit parameters include armature current and armature electromagnetic force. Updating the current equivalent load parameters of the track based on the circuit parameters at each discrete time point includes: The armature is placed at the end of the i-th track segment, and the target armature current and target armature electromagnetic force are obtained at the target discrete time point; wherein, the target discrete time point is any one of the discrete time points when the armature is at the end of the i-th track segment; The inductance gradient at each discrete time point is calculated based on the target armature current and the target armature electromagnetic force to obtain the inductance gradient at each discrete time point. The mean value of the inductance gradient at each discrete time point is calculated, and the first mean value is used as the current equivalent load parameter of the track after the update.
3. The method according to claim 2, characterized in that, The step of updating the current equivalent load parameters of the track based on the circuit parameters at each discrete time point includes: Obtain the track resistance value of the track at the target discrete point from a predefined impedance matrix; Calculate the ratio between the track resistance value at the target discrete point and the length of the first i-th track segment, and use the obtained ratio as the resistance gradient at the target discrete time point to obtain the resistance gradient at each discrete time point; The mean value of the resistance gradient at each discrete time point is calculated, and the obtained second mean value is used as the current equivalent load parameter of the track after the update.
4. The method according to claim 1, characterized in that, The equivalent circuit of the electromagnetic railgun includes a pulse source equivalent circuit and a load terminal equivalent circuit. The construction of the circuit equations for the electromagnetic railgun based on its equivalent circuit includes: Based on the equivalent circuit of the pulse source, the voltage equation of the pulse source is constructed according to Kirchhoff's voltage law; Based on the equivalent circuit of the load terminal, the voltage equation of the load terminal is constructed according to Kirchhoff's voltage law.
5. The method according to claim 1, characterized in that, The mechanical equations for constructing the armature include: The velocity equation of the armature is constructed based on the armature's movement distance; The acceleration equation of the armature is constructed based on the frictional force and electromagnetic force acting on the armature.
6. The method according to claim 1, characterized in that, The driving pulse source provides current excitation to the load terminal based on discrete data between the armature current at the end of the i-th track segment and discrete time points, including: The discrete data between the armature current and discrete time points are fitted to obtain the current-time function when the armature is set at the end of the i-th track segment; The pulse source is driven to provide current excitation to the load terminal based on the current-time function.
7. The method according to claim 1, characterized in that, The method further includes: When i = 1, the magnetic field of the electromagnetic railgun is set as an eddy current field; When i > 1, the magnetic field where the electromagnetic railgun is located is set as a transient field.
8. A simulation device for an electromagnetic railgun, characterized in that, The electromagnetic railgun includes a pulse source and a load end, the pulse source being used to provide current excitation to the load end, the load end including a rail and an armature, and the device comprising: An equation construction module is used to construct the mechanical equations of the armature and the circuit equations of the electromagnetic railgun based on the equivalent circuit of the electromagnetic railgun. The simulation module is used to divide the track into N segments, place the armature at the end of the i-th segment, and update the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; where i∈N, and the initial value of i is 1; substitute the current equivalent load parameters of the track into the circuit equation and the mechanical equation to calculate the discrete data between the armature current and the discrete time point when the armature is placed at the end of the i-th segment; if i<N, then drive the pulse source to provide current excitation to the load end based on the discrete data between the armature current and the discrete time point when the armature is placed at the end of the i-th segment, let i=i+1, and return to execute the step of placing the armature at the end of the i-th segment and updating the current equivalent load parameters of the track according to the circuit parameters at each discrete time point; if i=N, then fit all the calculated discrete data between the armature speed and the discrete time point to obtain continuous data between the armature speed and time.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 7.
10. A simulation device for an electromagnetic railgun, comprising a memory and a processor, characterized in that, The memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 7.