A high-precision wave simulation method

By discretely processing the initial and boundary conditions in the spatiotemporal coordinate system, the field solution is directly calculated in the spatiotemporal domain, and the grid dependence and error accumulation problems of traditional grid-type methods are solved, achieving high-precision and high-efficiency fluctuation simulation.

CN118627319BActive Publication Date: 2024-11-05FUZHOU HAIKE NEW QUALITY TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411106858.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-05
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

Traditional grid-like methods have problems such as grid dependence, error accumulation and high computational cost when simulating one-dimensional sound waves, resulting in limited accuracy and efficiency.

Method used

The initial value and boundary value are used as boundary conditions in the space-time coordinate system to perform discrete processing. The general solution is established by the separation variable method and the field solution is directly calculated in the space-time domain to avoid grid generation and error accumulation.

Benefits of technology

It significantly improves the calculation accuracy and efficiency, reduces the complexity and error accumulation of grid division, and reduces the demand for computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627319B_ABST
    Figure CN118627319B_ABST
Patent Text Reader

Abstract

The present invention discloses a high-precision wave simulation method, which belongs to the field of wave simulation, including the simulation of one-dimensional detection sound waves, establishing the control equation of sound wave propagation, and using the separation of variables method to obtain the general solution of the control equation; introducing the time axis on the basis of Cartesian coordinates to establish a space-time coordinate system; in the space-time coordinate system, the initial value and boundary value are both regarded as boundary conditions for discretization; the space-time coordinates and boundary values ​​of the discrete points are brought into the general solution to establish a group of linear algebraic equations. The undetermined coefficients that meet the initial conditions and boundary conditions are obtained by solving the linear algebraic equations; and then the field solutions of any time and space are calculated according to the general solution. The present invention adopts the above-mentioned high-precision wave simulation method, which does not need to construct a grid and avoids the discretization error generated in the grid division process; through the joint solution of time and space, the error accumulation problem caused by the traditional time difference method over time is effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wave simulation technology, and in particular to a high-precision wave simulation method. Background Art

[0002] For one-dimensional acoustic wave problems, traditional mesh-based methods (such as finite difference method and finite element method) have some limitations and challenges when dealing with specific physical situations or improving simulation accuracy, mainly including:

[0003] Grid dependency: The accuracy of the solution depends greatly on the quality of the grid division. If the grid is too coarse, the traditional grid method may not be able to accurately capture the detailed features of the waveform, such as peaks and troughs, resulting in inaccurate simulation results. On the contrary, if a too fine grid is used, although the accuracy of the results can be improved, the computational cost will be significantly increased. Especially when large-scale problems need to be dealt with, this increase in cost becomes a key factor restricting computational efficiency. In addition, if the grid is not divided properly, it may also cause instability in the calculation process, such as numerical oscillation and other problems. Therefore, when applying traditional grid methods, it is necessary to carefully select the appropriate time step and space step to ensure the stability and accuracy of the calculation.

[0004] Error accumulation: When solving transient problems, the mainstream numerical method mainly uses the time difference method for the time part. Due to the truncation error, the calculation results of the time difference method will cause error accumulation over time, thus affecting the calculation accuracy.

[0005] High technical cost: In order to improve the accuracy of simulation, the traditional numerical method is to increase the density of the grid, that is, to use a finer grid for calculation. However, this method directly leads to a significant increase in the demand for computing resources, including computing time and memory usage. When dealing with large-scale or complex physical problems, the computing resources required for high-density grids may far exceed the processing power of ordinary computing devices, thus limiting the scope of application of such methods. Summary of the invention

[0006] The purpose of the present invention is to provide a high-precision fluctuation simulation method to solve the problems mentioned in the above background technology.

[0007] To achieve the above object, the present invention provides a high-precision fluctuation simulation method, comprising the following steps:

[0008] S1. Based on the simulation of one-dimensional detection sound waves, the control equation of sound wave propagation is established, and the general solution of the control equation is obtained by using the separation of variables method;

[0009] S2. Introduce the time axis based on the card coordinates to establish a space-time coordinate system;

[0010] S3. In the space-time coordinate system, the initial value and boundary value are both regarded as boundary conditions and discretized as follows: Points and points;

[0011] S4. Substitute the space-time coordinates and boundary values ​​of the discrete points into the simplified general solution, establish a system of linear algebraic equations, and obtain the undetermined coefficients that satisfy the initial conditions and boundary conditions;

[0012] S5. Then, based on the general solution, calculate the field solution at any time and space.

[0013] Preferably, the control equation in S1 is expressed as follows:

[0014] ;

[0015] in, The distance the sound wave travels, represents the time it takes for a sound wave to propagate. Indicates the distance of sound waves and time Pressure fluctuations or displacements, is the speed of sound waves in a medium.

[0016] Preferably, the expression of the general solution in S1 is as follows:

[0017] ;

[0018] in, is the order, is the coefficient to be determined.

[0019] Preferably, in S4, the linear algebraic equation system is expressed as The matrix operation form of for The matrix expression is as follows:

[0020] ;

[0021] for The matrix expression is as follows:

[0022] ;

[0023] in, is the coefficient to be determined, middle , ,matrix for The matrix consists of boundary values ​​and initial values.

[0024] Preferably, by left division of the matrix Obtain the unknown coefficients that satisfy the initial and boundary conditions.

[0025] Therefore, the present invention adopts the above-mentioned high-precision wave simulation method, and discretizes the initial value and boundary value as boundary conditions in the space-time coordinate system to obtain the undetermined coefficients that meet the initial conditions and boundary conditions. By directly arranging points in the space-time domain to calculate the field solution, the complexity and discretization error in the grid generation and grid division process are avoided. At the same time, through the joint solution of time and space, the error accumulation problem caused by the traditional time difference method over time is effectively avoided.

[0026] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is an overall flow chart of an embodiment of the present invention;

[0028] Figure 2 A schematic diagram of a calculation area according to an embodiment of the present invention;

[0029] Figure 3 A schematic diagram of time-space point distribution according to an embodiment of the present invention;

[0030] Figure 4 A schematic diagram of the boundary points of an embodiment of the present invention;

[0031] Figure 5 A comparison diagram of the solution of the first embodiment of the present invention and the analytical solution;

[0032] Figure 6 For Example 1, the number of space-time grids is Comparison of the results of the central difference method and the analytical solution;

[0033] Figure 7 For Example 1, the number of space-time grids is Comparison of the results of the central difference method and the analytical solution;

[0034] Figure 8 A comparison diagram of the solution of the second embodiment of the present invention and the analytical solution;

[0035] Fig. 9 This is a comparison chart of the results of the central difference method and the analytical solution of Example 2. DETAILED DESCRIPTION

[0036] Example

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] Reference Figure 1 The present invention discloses a high-precision fluctuation simulation method, comprising the following steps:

[0039] S1. Based on the simulation of one-dimensional detection sound waves, the control equation of sound wave propagation is established, and the general solution of the control equation is obtained by using the separation of variables method;

[0040] The control equation is expressed as follows:

[0041] (1)

[0042] in, The distance the sound wave travels, represents the time it takes for a sound wave to propagate. Indicates the distance of sound waves and time Pressure fluctuations or displacements, is the speed of sound waves in a medium.

[0043] The general solution of the governing equation is obtained by using the separation of variables method for the one-dimensional wave equation. The general solution is as follows:

[0044] (2)

[0045] in, is the order, is the unknown coefficient. These terms are exponential growth or decay, which is not consistent with the wave phenomenon in physical systems. This solution may be more related to systems with growth or decay patterns rather than describing systems with fluctuations or vibrations. In order to save computational costs, these four terms are discarded in this method, and the general solution of the wave equation used is expressed as follows:

[0046] (3)

[0047] S2, such as Figure 2 , based on the Cartesian coordinates, the time axis is introduced to establish the space-time coordinate system;

[0048] S3. In the space-time coordinate system, the initial value and boundary value are both regarded as boundary conditions and discretized as follows: Points and Points, such as Figure 3 As shown;

[0049] S4. Substitute the space-time coordinates and boundary values ​​of the discrete points into equation (3) to establish a linear algebraic equation system and express it as The matrix operation form of for The matrix is ​​expressed as follows:

[0050] (4)

[0051] matrix for The matrix consists of boundary values ​​and initial values. for The matrix expression is as follows:

[0052] ;

[0053] in, is the coefficient to be determined, middle , , by left division of the matrix The unknown coefficients that satisfy the initial and boundary conditions can be obtained. Then, through equation (3), the field solution at any time and space in the study area can be obtained.

[0054] S5. Then, based on the general solution, the field solution in any time and space of the computational domain is obtained.

[0055] Embodiment 1

[0056] Simulates the propagation of waves (especially sound waves) in water, with a wave speed of approximately , the equation expression is as follows:

[0057] (6)

[0058] Calculation area , the boundary conditions are expressed as follows:

[0059] (1)

[0060] (2)

[0061] The initial conditions are expressed as follows:

[0062] (9)

[0063] Calculation area and points Figure 4 shown.

[0064] The analytical solution of this embodiment is expressed as follows:

[0065] (10)

[0066] First, the boundary is discretized and 153 points are placed on the space-time boundary, of which 51 points are initial conditions and 102 points are boundary conditions. , its semi-analytical solution is shown as follows:

[0067] (11)

[0068] Introduction As a characteristic length, by introducing the characteristic length, the pathological nature of the system can be effectively reduced. This method compares the numerical results and analytical solutions calculated based on the initial value and boundary value. Figure 5 shown. Figure 5 The results of Nakamoto's method are in good agreement with the analytical solution, with the maximum absolute error being only .

[0069] In a method similar to the present embodiment, the point density is similar (the number of spatiotemporal grids is ), this case is simulated by the central difference method in the finite difference method. The numerical results of the central difference method and the analytical solution are compared. Figure 6 As shown in the simulation results, the numerical solution and analytical solution have a poorer fit than this method, and the maximum absolute error is This embodiment increases the number of spatiotemporal grids in the central difference method to , the numerical results of the central difference method and the analytical solution are compared. Figure 7 As shown, the numerical solution and the analytical solution are relatively close, and the maximum absolute error between the result of the central difference method and the analytical solution is The CPU time required for its calculation is approximately , and the CPU time required for calculation using this method is only Therefore, the calculation accuracy and efficiency can be significantly improved by using the present invention to calculate the one-dimensional wave problem.

[0070] Embodiment 2

[0071] Simulates the propagation of waves (especially sound waves) in air, with a wave speed of approximately , the equation expression is as follows:

[0072] (12)

[0073] Calculation area , the boundary conditions are expressed as follows:

[0074] (13)

[0075] (14)

[0076] The initial conditions are expressed as follows:

[0077] (15)

[0078] Calculation area and points are shown in Figure 4 .

[0079] The analytical solution of this case is expressed as follows:

[0080] (16)

[0081] First, the boundary is discretized and 153 points are placed on the space-time boundary, of which 51 points are initial conditions and 102 points are boundary conditions. , its semi-analytical solution is as follows The numerical results and analytical solutions calculated by this method based on the initial and boundary values ​​are compared. Figure 8 shown. Figure 8 The results of Nakamoto's method are in good agreement with the analytical solution, with the maximum absolute error being only The CPU time required for its calculation is approximately .

[0082] In a method similar to the present embodiment, the point density is similar (the number of spatiotemporal grids is ), this case class is simulated by the central difference method in the finite difference method. The numerical results of the central difference method and the analytical solution are compared. Fig. 9 As shown in the simulation results, the numerical solution and analytical solution have a poorer fit than this method, and the maximum absolute error is , the error is large. This embodiment increases the number of spatiotemporal grids in the central difference method to , the maximum absolute error and CPU calculation time of the numerical results and analytical solutions of the central difference method are shown in Table 1. Table 1 shows that as the scale of the grid increases, the CPU time required for the central difference method calculation increases rapidly, while the calculation accuracy does not change significantly, which means that the central difference method cannot calculate the case corresponding to its initial conditions and boundary conditions.

[0083] Table 1 Numerical calculation results of central difference method under different grid sizes

[0084]

[0085] From the above two cases, it can be seen that in one-dimensional wave problems, the accuracy and efficiency of the method in this embodiment are better than the central difference method.

[0086] Therefore, the present invention adopts the above-mentioned high-precision wave simulation method, and discretizes the initial value and boundary value as boundary conditions in the space-time coordinate system to obtain the undetermined coefficients that meet the initial conditions and boundary conditions. By directly arranging points in the space-time domain to calculate the field solution, the complexity and discretization error in the grid generation and grid division process are avoided. At the same time, through the joint solution of time and space, the error accumulation problem caused by the traditional time difference method over time is effectively avoided.

[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. A high-precision wave simulation method, Features: The following steps are involved: S1. Based on the simulation of one-dimensional detection sound waves, the control equation of sound wave propagation is established, and the general solution of the control equation is obtained by using the separation of variables method; The general solution is expressed as follows: in, Indicates the distance of sound waves and time Pressure fluctuations or displacements, is the order, is the coefficient to be determined; S2. Introduce the time axis based on the card coordinates to establish a space-time coordinate system; S3. In the space-time coordinate system, the initial value and boundary value are both regarded as boundary conditions and discretized as follows: Points and points; S4. Substitute the space-time coordinates and boundary values ​​of the discrete points into the general solution, establish a system of linear algebraic equations, and obtain the unknown coefficients that satisfy the initial conditions and boundary conditions; S5. Then, based on the general solution, calculate the field solution at any time and space.

2. A high-precision wave simulation method according to claim 1, It is characterized in that The control equation in S1 is expressed as follows: in, The distance the sound wave travels, represents the time it takes for a sound wave to propagate. Indicates the distance of sound waves and time Pressure fluctuations or displacements, is the speed of sound waves in a medium.

3. A high-precision wave simulation method according to claim 1, Features: In S4, the linear algebraic equation system is expressed as The matrix operation form of for The matrix expression is as follows: for The matrix expression is as follows: in, is the coefficient to be determined, middle , ,matrix for The matrix consists of boundary values ​​and initial values.

4. A high-precision wave simulation method according to claim 3, Features: By matrix left division Obtain the unknown coefficients that satisfy the initial and boundary conditions.