Magnetic fluid numerical simulation method, device and non-volatile storage medium
By determining the Riemann problem model and five-wave model of magnetic fluid in simulating extreme environments and modifying them, the problem of simulation failure caused by numerical oscillation of magnetic fluid is solved, and accurate magnetic fluid simulation in extreme environments is achieved.
Patent Information
- Application Number
- CN202410645141.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-23
AI Technical Summary
When simulating extreme environments, the numerical oscillation phenomenon of magnetic fluid results in the inability to correctly simulate extreme environments. Existing technologies have not been able to effectively solve this problem.
By determining the Riemann problem model of the target magnetic fluid in the preset simulation environment, and determining the five-wave model based on this model, the movement information and specific heat capacity of the target magnetic fluid at the material interface under the pull framework are used to determine the left fast wave and right fast wave. The model is modified so that the fast wave speed is better than the Alfvén wave speed, thereby modifying the five-wave model to avoid unphysical phenomena.
It achieves accurate magnetic fluid numerical simulation in extreme environments, avoids numerical oscillations, and ensures the physics and accuracy of simulation results.
Smart Images

Figure CN118228640B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electrical digital data processing, and in particular, to a magnetic fluid numerical simulation method, device and non-volatile storage medium. Background Art
[0002] At present, in the fields of nuclear fusion, aerospace, etc., the products produced usually need to work in various extreme environments, so it is necessary to verify the working conditions of the products in extreme environments in advance. Since extreme environments are usually difficult to construct directly, it is usually necessary to simulate the extreme environments to determine the working conditions of the products in specific environments. And when simulating extreme environments, it is usually necessary to simulate the state of the magnetic fluid in the simulated extreme environment. However, in the related technology, when simulating the state of the magnetic fluid under extreme physical conditions such as high temperature, high pressure or rarefied gas, non-physical numerical oscillation phenomena often occur, such as the numerical solution of density or pressure is negative, which will cause the numerical method to fail, that is, it is impossible to correctly simulate the extreme environment.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method, device and non-volatile storage medium for numerical simulation of magnetic fluid, so as to at least solve the technical problem that in the related art, when simulating the state of magnetic fluid in extreme environment, non-physical numerical oscillation phenomenon will occur, resulting in the inability to correctly simulate extreme environment.
[0005] According to one aspect of an embodiment of the present application, a method for numerical simulation of magnetic fluid is provided, comprising: determining a Riemann problem model of a target magnetic fluid in a preset simulation environment; determining a five-wave model corresponding to the target magnetic fluid based on the Riemann problem model, wherein the five-wave model comprises a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model; and correcting the left fast wave model and the right fast wave model based on motion information of the target magnetic fluid at a material interface and a target specific heat capacity under a Pull-type framework, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the corrected five-wave model is used to determine a numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment.
[0006] Optionally, the step of correcting the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity information under the pull-type framework includes: determining the modulus of the acoustic impedance of the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity information under the pull-type framework; and correcting the left fast wave model and the right fast wave model according to the modulus of the acoustic impedance.
[0007] Optionally, the modulus of the acoustic impedance of the left fast wave model and the right fast wave model is determined by the following formula:
[0008] ,
[0009] represents the modulus of acoustic impedance of the left fast wave model and the right fast wave model, represents density, Indicates the corrected fast wave speed represents the speed before correction of the left fast wave indicated by the left fast wave model or the right fast wave indicated by the right fast wave model, represents the inverse of the target specific heat capacity, represents the material interface moving speed under the pull-type framework, represents the initial flow velocity. The subscript K of each parameter in the formula is used to indicate whether each parameter corresponds to the left fast wave or the right fast wave. L represents the left fast wave and R represents the right fast wave.
[0010] Optionally, the target specific heat capacity is determined in the following manner: determining the density information, internal energy information and pressure information of the target magnetic fluid; determining the value range of the inverse of the target specific heat capacity based on the density information, internal energy information and pressure information of the target magnetic fluid; determining the target specific heat capacity based on the value range of the inverse of the target specific heat capacity.
[0011] Optionally, the value range of the inverse of the target specific heat capacity is determined by:
[0012] ,
[0013] Indicates the reciprocal of the density indicated by the density information, represents the internal energy indicated by the internal energy information, represents the pressure indicated by the pressure information. The subscript K of each parameter in the formula is used to indicate whether each parameter corresponds to the left fast wave or the right fast wave. L represents the left fast wave, and R represents the right fast wave. Indicates the preset minimum density inverse, Indicates the preset minimum internal energy.
[0014] Optionally, determining the Riemann problem model of the target magnetic fluid includes: determining the density information, velocity information, magnetic field information, total energy information and magnetic tension information of the target magnetic fluid; determining the expression of the target magnetic fluid equation model based on the density information, velocity information, magnetic field information, total energy information and magnetic tension information of the target magnetic fluid; determining the Riemann problem model based on the target magnetic fluid equation model.
[0015] Optionally, the density values of the target magnetic fluid corresponding to the left fast wave model, the left Alfvén wave model, the entropy wave model, the right Alfvén wave model and the right fast wave model are different.
[0016] Optionally, the environment type of the preset simulation environment includes a harsh environment, and the harsh environment is an environment in which an environmental parameter is greater than a preset environmental parameter threshold, wherein the environmental parameter includes at least one of the following: temperature, pressure, and magnetic field strength.
[0017] According to another aspect of an embodiment of the present application, a magnetic fluid numerical simulation device is also provided, including: a first processing module, used to determine the Riemann problem model of the target magnetic fluid in a preset simulation environment; a second processing module, used to determine the five-wave model corresponding to the target magnetic fluid based on the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model; a third processing module, used to correct the left fast wave model and the right fast wave model based on the motion information of the target magnetic fluid at the material interface under the Pull framework and the target specific heat capacity, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the corrected five-wave model is used to determine the numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment.
[0018] According to another aspect of an embodiment of the present application, a non-volatile storage medium is provided, in which a program is stored, wherein when the program is running, a device where the non-volatile storage medium is located is controlled to execute a magnetic fluid numerical simulation method.
[0019] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the magnetic fluid numerical simulation method is executed when the program is run.
[0020] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, and the computer program implements a magnetic fluid numerical simulation method when executed by a processor.
[0021] In an embodiment of the present application, a Riemann problem model is used to determine the target magnetic fluid in a preset simulation environment; a five-wave model corresponding to the target magnetic fluid is determined based on the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model, and a right fast wave model; the left fast wave model and the right fast wave model are corrected based on the motion information of the target magnetic fluid at the material interface under the Pull-type framework and the target specific heat capacity, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model. The modified five-wave model is used to determine the numerical simulation results of the target magnetic fluid. The numerical simulation results of the target magnetic fluid are at least used to characterize the state of the target magnetic fluid in a preset simulation environment. By correcting the left fast wave model and the right fast wave model, the purpose of avoiding the non-physical phenomenon that the fast wave is slower than the Alfvén wave in the numerical simulation results of the magnetic fluid is achieved, thereby achieving the technical effect of accurately simulating the extreme environment, and further solving the technical problem of being unable to correctly simulate the extreme environment due to the non-physical numerical oscillation phenomenon that occurs when simulating the state of the magnetic fluid in the extreme environment in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 It is an unreasonable five-wave structure diagram provided according to the embodiment of the present application;
[0024] Figure 2 It is a structural schematic diagram of a computer terminal (mobile device) provided according to an embodiment of the present application;
[0025] Figure 3 It is a schematic flow chart of a magnetic fluid numerical simulation method provided according to an embodiment of the present application;
[0026] Figure 4 It is a schematic diagram for comparing numerical results for a strong shock wave problem provided in an embodiment of the present application;
[0027] Figure 5 It is a schematic diagram for comparing numerical results of a rotor problem provided in an embodiment of the present application;
[0028] Figure 6 It is a structural schematic diagram of a magnetic fluid numerical simulation device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] Magnetohydrodynamics mainly studies the interaction between conductive fluids and electromagnetic fields. It has a wide range of applications in science and engineering fields such as inertial confinement fusion, magnetic confinement fusion, laboratory physics and astrophysics. By characterizing the physical laws and properties of plasma and accurately describing the propagation and interaction of waves, computational MHD has become an important tool for exploring the complex behavior of magnetohydrodynamics. Although the computational MHD method has made great progress after decades of development, when simulating extreme environments under extreme physical conditions such as high temperature, high pressure or rarefied gas, non-physical numerical oscillation phenomena often occur in related technologies, such as negative numerical solutions of density or pressure, which will cause the numerical method to fail and fail to simulate the state of magnetic fluids in extreme environments, resulting in failure to simulate the target extreme environment normally. To overcome this difficulty, a method of mixing multi-wave and few-wave solvers is provided in the related technology, but this hybrid format often makes the material interface unclear. Given that the movement of plasma frequently occurs in harsh environments such as near-vacuum, ultra-high density and ultra-high temperature, accurately simulating the state of magnetic fluids in extreme environments is of great significance for simulating extreme environments and developing various products in extreme environments.
[0032] Specifically, a set of MHD equations has seven eigenvalues, including two fast waves, two Alfvén waves, two slow waves and one entropy wave. The high-resolution five-wave approximate Riemann solver ignores the two slow waves of MHD, and uses the remaining five waves and the determined wave speed to divide the Riemann fan into 6 regions in an orderly manner. According to the physical characteristics of the physical quantity fast wave, Alfvén wave and entropy wave, the approximate shock wave jump condition is designed, and then the physical quantity expressions of different regions are given. In addition, in the actual numerical calculation of the relevant technology, such as Figure 1 As shown, the unphysical phenomenon of Alfvén waves exceeding fast waves often occurs. At the same time, the calculation of the wave speed of Alfvén waves requires that the density of the internal area of the Riemann fan be positive. Figure 1 The vertical axis represents time, the horizontal axis represents the distance from the material interface, negative values represent the left side of the material interface, and positive values represent the right side. The above phenomena and requirements also lead to the characteristics of the two-dimensional five-wave corner point solver, such as complex theoretical process and low efficiency.
[0033] In order to solve the above problems, an embodiment of the present application provides a five-wave Riemann solver that maintains positiveness, wherein maintaining positiveness means that physical quantities such as density and pressure are all positive in different Riemann fan regions. Detailed description is given below.
[0034] It should be noted that the method of maintaining the correctness is to construct a technology that satisfies physical constraints through mathematical theory. Mathematically, it refers to designing a more reasonable wave velocity estimation, and physically it is understood as introducing enough numerical viscosity. At present, two effective wave velocity estimation methods are popular in fluid mechanics, the Euler method and the Laplace method. The Euler method refers to designing a sufficiently large wave velocity to meet the physical characteristics of the Riemann solution region through the known convection velocity and the speed of sound. The method is easy to operate, but when calculating multi-dimensional problems, it often fails because the wave velocity estimation is still not large enough, especially for magnetic fluid problems. Another is the Laplace method, which usually converts the Riemann solution to the Laplace coordinates, obtains the expression of the solution region by means of the speed of sound, carries out the numerical error analysis mechanism, and increases the numerical viscosity to avoid the occurrence of non-physical phenomena. This method is a thorough method of maintaining the correctness, but for the Riemann solution of multiple waves, the mathematical theoretical analysis work needs to perform a large amount of algebraic operations. Relying on the development of the computing power of various electronic devices at present, the embodiment of the present application mainly focuses on the Laplace method of maintaining the correctness, carries out the mathematical mechanism analysis of maintaining the correctness, and designs a one-dimensional five-wave HLLD Riemann solution.
[0035] According to an embodiment of the present application, a method embodiment of a magnetic fluid numerical simulation method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0036] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 2 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a magnetic fluid numerical simulation method. Figure 2 As shown, the computer terminal 20 (or mobile device 20) may include one or more (202a, 202b, ..., 202n are used to illustrate) processors 202 (the processor 202 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 204 for storing data, and a transmission module 206 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 2 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations are shown.
[0037] It should be noted that the one or more processors 202 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 20 (or mobile device). As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0038] The memory 204 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the magnetic fluid numerical simulation method in the embodiment of the present application. The processor 202 executes various functional applications and data processing by running the software programs and modules stored in the memory 204, that is, realizing the above-mentioned magnetic fluid numerical simulation method. The memory 204 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 204 may further include a memory remotely arranged relative to the processor 202, and these remote memories may be connected to the computer terminal 20 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0039] The transmission device 206 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 20. In one example, the transmission device 206 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 206 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0040] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 20 (or mobile device).
[0041] Under the above operating environment, the embodiment of the present application provides a magnetic fluid numerical simulation method, such as Figure 3 As shown, the method comprises the following steps:
[0042] Step S302, determining a Riemann problem model of a target magnetic fluid in a preset simulation environment;
[0043] In the technical solution provided in step S302, determining the Riemann problem model of the target magnetic fluid includes: determining the density information, velocity information, magnetic field information, total energy information and magnetic tension information of the target magnetic fluid; determining the expression of the target magnetic fluid equation model based on the density information, velocity information, magnetic field information, total energy information and magnetic tension information of the target magnetic fluid; determining the Riemann problem model based on the target magnetic fluid equation model.
[0044] As an optional implementation, the magnetic fluid numerical simulation method provided in the embodiment of the present application can be divided into an estimation step and a correction step, wherein the estimation step corresponds to step S302 and step S304, and the correction step corresponds to step S306.
[0045] Specifically, in the estimation step, we first need to determine the magnetic fluid equation model in Laplace form.
[0046] ,
[0047] in They represent the density, velocity, magnetic field, total energy, and magnetic tension of the magnetic fluid respectively. The subscripts represent the components of each parameter in the x-axis, y-axis, and z-axis directions of the preset spatial rectangular coordinate system. Then, the Riemann problem shown below can be established based on the established magnetic fluid equation:
[0048] ,
[0049] in They represent the initial states of the left and right sides of the material interface respectively.
[0050] U is a function with x and t as independent variables. U(x, 0) represents the value of U when x takes different values when t is equal to 0. The absolute value of x represents the distance from the material interface. A negative value indicates the left side of the material interface, and a positive value indicates the right side of the material interface.
[0051] Step S304, determining a five-wave model corresponding to the target magnetic fluid according to the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model;
[0052] Optionally, in the embodiment of the present application, the five-wave approximation is used to adopt the following wave velocity estimation expression:
[0053] ,
[0054] In the above expression They represent the acoustic impedance of the left fast wave, left Alfvén wave, entropy wave, right Alfvén wave and right fast wave, respectively. express, It represents the density value of different waves. The value of K is L or R, L represents left and R represents right.
[0055] It should be noted that, from the above formulas, it can be seen that the density values of the target magnetic fluid corresponding to the left fast wave model, the left Alfvén wave model, the entropy wave model, the right Alfvén wave model and the right fast wave model are different.
[0056] Step S306, the left fast wave model and the right fast wave model are corrected according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity under the pull framework, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the corrected five-wave model is used to determine the numerical simulation results of the target magnetic fluid, and the numerical simulation results of the target magnetic fluid are at least used to characterize the state of the target magnetic fluid in a preset simulation environment.
[0057] The preset simulation environment may be any specified environment, such as various harsh environments. A harsh environment refers to an environment type in which one or several environmental parameters are greater than a preset environmental parameter threshold. For example, one or several of the temperature, pressure, or magnetic field strength exceeds the corresponding preset environmental parameter threshold.
[0058] It should be noted that determining the numerical simulation results of the target magnetic fluid in a preset harsh environment is of great significance in the field of industrial production, especially in some high-end production fields and scientific research fields. For example, in the nuclear industry or aerospace industry, the actual application environment of the products produced is often a variety of harsh environments. If the state of these products in these harsh environments cannot be accurately simulated, it is difficult to guarantee the quality of the products produced. By determining the state of the target magnetic fluid in a specified harsh environment, it is helpful to determine the state of various products in the specified harsh environment.
[0059] In the technical solution provided in step S306, the step of correcting the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity information under the pull-type framework includes: determining the modulus of the acoustic impedance of the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity information under the pull-type framework; and correcting the left fast wave model and the right fast wave model according to the modulus of the acoustic impedance.
[0060] As an optional implementation, the modulus of the acoustic impedance of the left fast wave model and the right fast wave model is determined by the following formula:
[0061] ,
[0062] represents the norm of the acoustic impedance of the left fast wave model and the right fast wave model, represents density, Indicates the corrected fast wave speed represents the speed before correction of the left fast wave indicated by the left fast wave model or the right fast wave indicated by the right fast wave model, represents the inverse of the target specific heat capacity, represents the material interface moving speed under the pull-type framework, represents the initial flow velocity, the subscript K of each parameter in the formula is used to indicate whether each parameter corresponds to the left fast wave or the right fast wave, L represents the left fast wave, and R represents the right fast wave. In some embodiments of the present application, the target specific heat capacity is determined by: determining the density information, internal energy information and pressure information of the target magnetic fluid; determining the value range of the reciprocal of the target specific heat capacity based on the density information, internal energy information and pressure information of the target magnetic fluid; determining the target specific heat capacity based on the value range of the reciprocal of the target specific heat capacity.
[0063] Specifically, the value range of the inverse of the target specific heat capacity is determined by the following method:
[0064] ,
[0065] Indicates the reciprocal of the density indicated by the density information, represents the internal energy indicated by the internal energy information, represents the pressure indicated by the pressure information. The subscript K of each parameter in the formula is used to indicate whether each parameter corresponds to the left fast wave or the right fast wave. L represents the left fast wave, and R represents the right fast wave. Indicates the preset minimum density inverse, In some embodiments of the present application, and The value range is 1-15.
[0066] In some embodiments of the present application, the environment type of the preset simulation environment includes a harsh environment, where the harsh environment is an environment in which environmental parameters are greater than preset environmental parameter thresholds, wherein the environmental parameters include at least one of the following: temperature, pressure, magnetic field strength, and gas density.
[0067] In order to verify the effect of the magnetic fluid numerical simulation method provided in the present application in harsh environments, the following two examples are also provided in the embodiments of the present application for illustration.
[0068] The first example is the strong shock wave problem, which is an important example in magnetic fluid to verify the robustness of numerical solutions. The initial conditions of this problem are as follows:
[0069] ,
[0070] The target output time is .
[0071] Figure 4 It is a schematic diagram of the solution results of the method provided in the embodiment of the present application under the strong shock wave problem. The dotted line labeled 1 is the numerical result using low resolution, the numbers 2 and 3 are the numerical results of the first-order and third-order formats after the method provided in the embodiment of the present application is improved, and the number 4 is the reference solution. Figure 4 The upper left corner represents density, the upper right corner represents the magnetic field in the shear direction, and the lower left and lower right corners represent the numerical results of local magnification of density and shear magnetic field, respectively.
[0072] The goal of the second example is to capture the propagation of rotational Alfven waves. It consists of a dense, rapidly rotating cylinder, initially stationary, with some light conductive fluid in the center. The problem is set up on a unit square, the surrounding fluid refers to the rest of the computational domain, which does not include the area initially occupied by the rotor, and a "taper" function. The "taper" function is used to connect the two regions, the rotor and the surrounding fluid, to reduce the initial rotation. It should be noted that in this example, the rotor is not in equilibrium due to the imbalance of centrifugal forces. At the same time, due to the effect of the magnetic field, the rotating circular dense fluid will be pinched into an oblate shape. The final output time .in . The initial values are as follows:
[0073] ,
[0074] r 0 = 0 . 1 , r 1 = 0 . 115 , f = ( r 1 − r ) / ( r 1 − r 0 ), r = [ x 2 + y 2 ] 1 / 2 . ,
[0075] Finally, the solution result of the method provided by the embodiment of the present application in this example is as follows: Figure 5 As shown. Figure 5 The darker the color, the greater the difference from the middle reference value. Figure 5 The upper left represents the density distribution in the solution results, the upper right represents the Mach number distribution, the lower left represents the pressure distribution, and the lower right represents the magnetic pressure distribution.
[0076] The invention adopts a Riemann problem model for determining the target magnetic fluid; determines the five-wave model corresponding to the target magnetic fluid according to the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model, and the five-wave model is used to describe the state of the target magnetic fluid; the left fast wave model and the right fast wave model are corrected according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity under the Pull-type framework, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the corrected five-wave model is a method of numerical simulation results of the magnetic fluid, and by correcting the left fast wave model and the right fast wave model, the purpose of avoiding the non-physical phenomenon that the fast wave is slower than the Alfvén wave in the numerical simulation results of the magnetic fluid is achieved, thereby achieving the technical effect of accurately simulating the extreme environment, and further solving the technical problem that the extreme environment cannot be correctly simulated due to the non-physical numerical oscillation phenomenon generated when simulating the state of the magnetic fluid in the extreme environment in the related technology.
[0077] In summary, by using the magnetic fluid numerical simulation method provided in the embodiment of the present application, an accurate numerical solution of the magnetic fluid can be obtained in extremely harsh environments, thereby achieving a correct simulation of extremely harsh environments, and further achieving the effect of accurately simulating the states of various products in extremely harsh environments.
[0078] For example, in the nuclear industry, aviation industry and other industries, the magnetic fluid numerical simulation method provided in this application can be used to simulate and verify the working conditions of the product in a preset extreme environment in the following way, so as to adjust the product in time to make the product more in line with actual needs.
[0079] The first step is to determine the working environment of the target product, where the environmental type of the working environment includes extreme environments;
[0080] The second step is to determine the preset simulation environment according to the working environment;
[0081] Specifically, the preset simulation environment refers to various environmental parameters of an actual working environment simulated by electronic devices such as computers.
[0082] The third step is to determine the Riemann problem model of the target magnetic fluid in the preset simulation environment;
[0083] The fourth step is to determine the five-wave model corresponding to the target magnetic fluid according to the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model;
[0084] The fifth step is to modify the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity under the pull-type framework, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the modified five-wave model is used to determine the numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment;
[0085] The sixth step is to determine the state of the target product in the working environment according to the state of the target magnetic fluid in the preset simulation environment represented by the numerical simulation result of the target magnetic fluid.
[0086] After determining the state of the target product in the working environment, it can be further determined whether the state of the target product meets the preset requirements. If not, the first to sixth steps above can be repeated after improving the target product.
[0087] The present application provides a magnetic fluid numerical simulation device, Figure 6 is a schematic diagram of the structure of the device, such as Figure 6As shown, the device includes: a first processing module 60, which is used to determine the Riemann problem model of the target magnetic fluid in a preset simulation environment; a second processing module 62, which is used to determine the five-wave model corresponding to the target magnetic fluid according to the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model; a third processing module 64, which is used to correct the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface under the Pull-type framework and the target specific heat capacity, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the corrected five-wave model is used to determine the numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment.
[0088] In some embodiments of the present application, the first processing module 60 determines the Riemann problem model of the target magnetic fluid, including: determining the density information, velocity information, magnetic field information, total energy information and magnetic tension information of the target magnetic fluid; determining the expression of the target magnetic fluid equation model based on the density information, velocity information, magnetic field information, total energy information and magnetic tension information of the target magnetic fluid; determining the Riemann problem model based on the target magnetic fluid equation model.
[0089] In some embodiments of the present application, the density values of the target magnetic fluid corresponding to the left fast wave model, the left Alfvén wave model, the entropy wave model, the right Alfvén wave model and the right fast wave model are different.
[0090] In some embodiments of the present application, the step of the third processing module 64 correcting the left fast wave model and the right fast wave model based on the motion information of the target magnetic fluid at the material interface and the target specific heat capacity information under the pull framework includes: determining the modulus of the acoustic impedance of the left fast wave model and the right fast wave model based on the motion information of the target magnetic fluid at the material interface and the target specific heat capacity information under the pull framework; and correcting the left fast wave model and the right fast wave model based on the modulus of the acoustic impedance.
[0091] In some embodiments of the present application, the modulus of the acoustic impedance of the left fast wave model and the right fast wave model is determined by the following formula:
[0092] ,
[0093] represents the modulus of acoustic impedance of the left fast wave model and the right fast wave model, represents density, Indicates the corrected fast wave speed represents the speed before correction of the left fast wave indicated by the left fast wave model or the right fast wave indicated by the right fast wave model, represents the inverse of the target specific heat capacity, represents the material interface moving speed under the pull-type framework, represents the initial flow velocity, the subscript K of each parameter in the formula is used to indicate whether each parameter corresponds to the left fast wave or the right fast wave, L represents the left fast wave, and R represents the right fast wave. In some embodiments of the present application, the target specific heat capacity is determined by: determining the density information, internal energy information and pressure information of the target magnetic fluid; determining the value range of the reciprocal of the target specific heat capacity based on the density information, internal energy information and pressure information of the target magnetic fluid; determining the target specific heat capacity based on the value range of the reciprocal of the target specific heat capacity.
[0094] In some embodiments of the present application, the target specific heat capacity is determined by: determining the density information, internal energy information and pressure information of the target magnetic fluid; determining the value range of the inverse of the target specific heat capacity based on the density information, internal energy information and pressure information of the target magnetic fluid; determining the target specific heat capacity based on the value range of the inverse of the target specific heat capacity.
[0095] In some embodiments of the present application, the value range of the inverse of the target specific heat capacity is determined by the following method:
[0096] ,
[0097] Indicates the reciprocal of the density indicated by the density information, represents the internal energy indicated by the internal energy information, represents the pressure indicated by the pressure information. The subscript K of each parameter in the formula is used to indicate whether each parameter corresponds to the left fast wave or the right fast wave. L represents the left fast wave, and R represents the right fast wave. Indicates the preset minimum density inverse, Indicates the preset minimum internal energy.
[0098] In some embodiments of the present application, the environment type of the preset simulation environment includes a harsh environment, where the harsh environment is an environment in which environmental parameters are greater than preset environmental parameter thresholds, wherein the environmental parameters include at least one of the following: temperature, pressure, and magnetic field strength.
[0099] It should be noted that the various modules in the above-mentioned magnetic fluid numerical simulation device can be program modules (for example, a set of program instructions that implement a certain specific function) or hardware modules. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.
[0100] An embodiment of the present application provides a non-volatile storage medium, in which a program is stored, wherein when the program is running, a device where the non-volatile storage medium is located is controlled to execute the following magnetic fluid numerical simulation method: determining a Riemann problem model of a target magnetic fluid in a preset simulation environment; determining a five-wave model corresponding to the target magnetic fluid based on the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model; correcting the left fast wave model and the right fast wave model based on motion information of the target magnetic fluid at a material interface and a target specific heat capacity under a Pull-type framework, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the corrected five-wave model is used to determine a numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment.
[0101] An embodiment of the present application provides an electronic device, including: a memory and a processor, the processor is used to run a program stored in the memory, wherein the following magnetic fluid numerical simulation method is executed when the program is run: determining a Riemann problem model of a target magnetic fluid in a preset simulation environment; determining a five-wave model corresponding to the target magnetic fluid based on the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model; correcting the left fast wave model and the right fast wave model based on motion information of the target magnetic fluid at a material interface and a target specific heat capacity under a Pull-type framework, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the corrected five-wave model is used to determine a numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment.
[0102] The embodiment of the present application provides a computer program product, including a computer program, which implements the following magnetic fluid numerical simulation method when executed by a processor: determining a Riemann problem model of a target magnetic fluid in a preset simulation environment; determining a five-wave model corresponding to the target magnetic fluid based on the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model; correcting the left fast wave model and the right fast wave model based on motion information of the target magnetic fluid at a material interface and a target specific heat capacity under a Pull-type framework, so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the corrected five-wave model is used to determine a numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment.
[0103] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0104] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0105] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0106] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0107] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0108] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A magnetic fluid numerical simulation method, characterized in that: include: Determine the Riemann problem model of the target magnetic fluid in a preset simulation environment; Determine a five-wave model corresponding to the target magnetic fluid according to the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model; The left fast wave model and the right fast wave model are modified according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity under the pull-type framework, including: Determine the acoustic impedance modulus of the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity information under the pull-type framework; Modifying the left fast wave model and the right fast wave model according to the modulus of the acoustic impedance; The modulus of the acoustic impedance of the left fast wave model and the right fast wave model is determined by the following formula: , represents the module of the acoustic impedance of the left fast wave model and the right fast wave model, represents density, represents the modified fast wave speed, represents the speed of the left fast wave indicated by the left fast wave model or the right fast wave indicated by the right fast wave model before correction, represents the target specific heat capacity, represents the material interface moving speed under the pull-type framework, represents the initial flow velocity, the subscript K of each parameter in the formula is used to indicate whether the parameter corresponds to the left fast wave or the right fast wave, L represents the left fast wave, and R represents the right fast wave; The left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the modified five-wave model is used to determine the numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment.
2. The magnetic fluid numerical simulation method according to claim 1, characterized in that: The target specific heat capacity is determined by: Determine the density information, internal energy information and pressure information of the target magnetic fluid; Determining a value range of the inverse of the target specific heat capacity according to the density information, internal energy information and pressure information of the target magnetic fluid; The target specific heat capacity is determined according to a value range of the inverse of the target specific heat capacity.
3. The magnetic fluid numerical simulation method according to claim 2, characterized in that: The value range of the reciprocal of the target specific heat capacity is determined by the following method: , represents the inverse of the density indicated by the density information, represents the internal energy indicated by the internal energy information, represents the pressure indicated by the pressure information, the subscript K of each parameter in the formula is used to indicate whether the parameter corresponds to the left fast wave or the right fast wave, L represents the left fast wave, R represents the right fast wave, Indicates the preset minimum density inverse, Indicates the preset minimum internal energy.
4. The magnetic fluid numerical simulation method according to claim 1, characterized in that: The Riemann problem model for determining the target magnetic fluid includes: Determining density information, velocity information, magnetic field information, total energy information and magnetic tension information of the target magnetic fluid; Determining an expression of the target magnetic fluid equation model according to the density information, velocity information, magnetic field information, total energy information and magnetic tension information of the target magnetic fluid; The Riemann problem model is determined according to the target magnetic fluid equation model.
5. The magnetic fluid numerical simulation method according to claim 1, characterized in that: The density values of the target magnetic fluid corresponding to the left fast wave model, the left Alfvén wave model, the entropy wave model, the right Alfvén wave model and the right fast wave model are different.
6. The magnetic fluid numerical simulation method according to claim 1, characterized in that: The environment type of the preset simulation environment includes a harsh environment, and the harsh environment is an environment in which the environmental parameters are greater than the preset environmental parameter threshold, wherein the environmental parameters include at least one of the following: temperature, pressure, and magnetic field strength.
7. A magnetic fluid numerical simulation device, characterized in that: include: A first processing module is used to determine a Riemann problem model of a target magnetic fluid in a preset simulation environment; A second processing module is used to determine a five-wave model corresponding to the target magnetic fluid according to the Riemann problem model, wherein the five-wave model includes a left fast wave model, a left Alfvén wave model, an entropy wave model, a right Alfvén wave model and a right fast wave model; The third processing module is used to correct the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity under the pull-type framework, including: determining the modulus of the acoustic impedance of the left fast wave model and the right fast wave model according to the motion information of the target magnetic fluid at the material interface and the target specific heat capacity under the pull-type framework; correcting the left fast wave model and the right fast wave model according to the modulus of the acoustic impedance; the modulus of the acoustic impedance of the left fast wave model and the right fast wave model is determined by the following formula: represents the module of the acoustic impedance of the left fast wave model and the right fast wave model, represents density, represents the modified fast wave speed, represents the speed of the left fast wave indicated by the left fast wave model or the right fast wave indicated by the right fast wave model before correction, represents the target specific heat capacity, represents the material interface moving speed under the pull-type framework, represents the initial flow velocity, the subscript K of each parameter in the formula is used to indicate whether the each parameter is a parameter corresponding to the left fast wave or a parameter corresponding to the right fast wave, L represents the left fast wave, and R represents the right fast wave; so that the left fast wave indicated by the left fast wave model is faster than the left Alfvén wave indicated by the left Alfvén wave model, and the right fast wave indicated by the right fast wave model is faster than the right Alfvén wave indicated by the right Alfvén wave model, wherein the modified five-wave model is used to determine the numerical simulation result of the target magnetic fluid, and the numerical simulation result of the target magnetic fluid is at least used to characterize the state of the target magnetic fluid in the preset simulation environment.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the magnetic fluid numerical simulation method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the magnetic fluid numerical simulation method described in any one of claims 1 to 6 is executed when the program is run.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the magnetic fluid numerical simulation method according to any one of claims 1 to 6 when being executed by a processor.
Citation Information
Patent Citations
Space environment ground-based simulation plasma generating device and plasma generating method achieved through device
CN105836165A
A fluid-solid coupling high-precision numerical simulation method based on continuous medium mechanics
CN109902376A
Magnetic field-seepage field coupling flow simulation method for nano magnetic fluid
CN112417719A
Numerical simulation method and device for improving shock wave stability, equipment and storage medium
CN117217133A
Electromagnetic field simulator, method for operating electromagnetic field simulator, and non-transitory computer readable medium
US20190286767A1
