Multi-scale self-adaptive wave simulation forecasting method, device, equipment and medium
Through the multi-scale adaptive wave simulation and forecasting method, a triangular grid calculation model is constructed and solved in parallel, which solves the problem of wave data acquisition and calculation efficiency in offshore engineering, and improves the reliability and calculation efficiency of the wave simulation and forecast model.
Patent Information
- Application Number
- CN202410726238.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-03
AI Technical Summary
In the construction of coastal and offshore engineering projects, there is a lack of actual wave measurement points and the actual wave measurement points in the open sea are far away from the coast, which makes it difficult to obtain long-term wave data series. It is difficult for the calculation model to consider the influence of complex nearshore terrain and water depth, and there are problems in computational efficiency and parallel computing. .
A multi-scale adaptive wave simulation forecasting method is used to construct a triangular grid calculation model, perform grid point numbering and discretization, obtain algebraic equations, solve the coefficient matrix in parallel, and optimize computing resource matching to improve the reliability of the simulation forecast model.
It realizes multi-scale simulation of complex nearshore areas, improves the reliability of the wave simulation forecast model, can calculate any long-term sequence of wave parameters, adapts to computing resources of different scales, and improves computing efficiency.
Smart Images

Figure CN118586237A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wave simulation forecasting, and in particular to a multi-scale adaptive wave simulation forecasting method, device, equipment and medium. Background Art
[0002] Coastal and nearshore engineering construction has always been an important part of development. In the process of development towards the deep sea, it is increasingly affected by complex geological and hydrological environments, which adds difficulties to engineering construction. How to predict and discover potential problems in construction faster and more intuitively? Due to the lack of wave measurement points near the coast, and the wave measurement points are often in the open sea, far away from the coast, especially the acquisition of long-term wave data series for analysis by nearshore construction ships is a major difficulty in wave simulation technology, and the calculation of long-term wave data is computationally intensive. How to establish a computational model from the open sea to the coast and obtain wave parameters that take into account the complex terrain changes and water depth of the coast, there are problems with computational efficiency and model parallel computing, and there are relatively few studies at present. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a multi-scale adaptive wave simulation forecasting method, device, equipment, and medium, which can improve the reliability of the wave simulation forecasting model.
[0004] In a first aspect, an embodiment of the present invention provides a multi-scale adaptive wave simulation forecasting method, comprising:
[0005] Constructing a calculation model according to preset parameters, wherein the calculation model is a simulation model for predicting waves;
[0006] Constructing a computational grid, wherein the computational grid is a triangular grid, and the triangular grid includes a large-scale grid, a medium-scale grid, and a small-scale grid;
[0007] Numbering the grid points of the computational grid;
[0008] Obtain the calculation model corresponding to the grid point numbered 1, and discretize it to obtain an algebraic equation;
[0009] Performing parallel solving processing on the coefficient matrix in the algebraic equation to obtain a solution result;
[0010] Post-processing is performed according to the solution result to obtain a forecast result.
[0011] In some embodiments of the present invention, in constructing a calculation model according to preset parameters, the calculation model is:
[0012]
[0013] is the scale-dependent function, is the wave group velocity, where λ i is the scale factor, E is the energy density spectrum function E(x,y,σ,θ), N is the action density, is the coordinate vector, is the velocity vector, u x represents the component in the x direction, u y represents the component in the y direction, c σ and c θ are the propagation speed of the spectrum space frequency σ and angle θ, S tot is a non-conservative source-sink term, representing all physical processes that generate, dissipate or redistribute wave energy at a certain point, i is the scale number, n is the total number of scales, and t is time;
[0014] In some embodiments of the present invention, the obtaining the calculation model corresponding to the grid point numbered 1 and discretizing the calculation model may discretize the calculation model into:
[0015]
[0016] Δt is the time change, f i,, is the x-component of the ith scale of f at point 1; f i,, is the x-component of the ith scale of f at point 2; f i,, is the x-component of the ith scale of f at point 3; f i,, is the y component of the i-th scale of f at point 1; f i,, is the y component of the i-th scale of f at point 2; f i,, is the y component of the i-th scale of f at point 3; u i,, The x component at point 1; u i,x,2 The x component at point 2; u i,, The x component at point 3; u i,, The x component at point 1; u i,y,2 The x component at point 2; u i,, The x component at point 3; is the quantity at time step 1 at the nth time step; is the quantity at time step 2 at the nth time step; is the quantity at time step 3 at nth time; , They are The x, y components of , They are The x, y components of , They are The x, y components of , They are The x, y components of
[0017] In some embodiments of the present invention, the performing parallel solving of the coefficient matrix in the algebraic equation to obtain a solution result includes:
[0018] Performing parallel assembly on the coefficient matrix;
[0019] Adjusting the coefficient matrix after parallel assembly;
[0020] The adjusted coefficient matrix is solved in parallel to obtain the solution result.
[0021] In some embodiments of the present invention, the parallel assembly of the coefficient matrix includes:
[0022] When the computational grid is partitioned according to the preset partitions, each partition performs matrix coefficient calculation, and the calculation results of each partition are summarized;
[0023] or,
[0024] The computational grid is partitioned according to the automatically calculated partitions, a scale factor of the computational grid and a computational time of the computational grid are calculated at a first time step, an average value of the computational time corresponding to different scale factors is calculated according to the scale factor and the computational time to obtain a computational amount, and partitions are performed according to a preset number and an arrangement order of the scale factors based on the computational amount corresponding to each scale factor.
[0025] In some embodiments of the present invention, the adjusting the coefficient matrix after parallel assembly includes:
[0026] Adjusting the coefficient matrix according to a preset partition order sequence;
[0027] or,
[0028] The distance length between the calculation grid and any preset line segment is obtained, the distance lengths are arranged from large to small as a target order, and the coefficient matrix is adjusted according to the target order.
[0029] In some embodiments of the present invention, the step of performing parallel solving on the adjusted coefficient matrix includes:
[0030] A vector parallel iterative solution is performed on any of the computational grids.
[0031] In a second aspect, an embodiment of the present invention provides a multi-scale adaptive wave simulation and forecasting device, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the multi-scale adaptive wave simulation and forecasting method as described in the first aspect above.
[0032] In a third aspect, an embodiment of the present invention provides an electronic device comprising the multi-scale adaptive wave simulation and forecasting device as described in the second aspect above.
[0033] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the multi-scale adaptive wave simulation and forecasting method as described in the first aspect above.
[0034] The multi-scale adaptive wave simulation forecasting method according to the embodiment of the present invention has at least the following beneficial effects: constructing a calculation model according to preset parameters, the calculation model is a simulation model for forecasting waves; constructing a calculation grid, the calculation grid is a triangular grid, and the triangular grid includes a large-scale grid, a mesoscale grid and a small-scale grid; numbering the grid points of the calculation grid; obtaining the calculation model corresponding to the grid point numbered 1, and discretizing it to obtain an algebraic equation; performing parallel solution processing on the coefficient matrix in the algebraic equation to obtain a solution result; performing post-processing according to the solution result to obtain a forecast result. Starting from wave simulation, the large-scale, mesoscale and small-scale wave simulation solvers, inputs, parallel solutions and simulation methods are nested, and any complex nearshore area is simulated at multiple scales. Through parallel solution, the preset computing resources can be matched for optimal calculation, thereby calculating the wave parameter problem of any long time series, and improving the reliability of the wave simulation forecasting model. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flow chart of a multi-scale adaptive wave simulation forecasting method provided by an embodiment of the present invention;
[0036] Figure 2 It is a structural diagram of a multi-scale adaptive wave simulation and forecasting device provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0037] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0038] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0039] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0040] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0041] The control method of the embodiment of the present invention is further described below based on the accompanying drawings.
[0042] Reference Figure 1 , Figure 1 A flowchart of a multi-scale adaptive wave simulation and forecasting method provided by an embodiment of the present invention, the multi-scale adaptive wave simulation and forecasting method includes but is not limited to the following steps:
[0043] Step S110, constructing a calculation model according to preset parameters, the calculation model is a simulation model used to forecast waves;
[0044] Step S120, constructing a computational grid, which is a triangular grid, and the triangular grid includes a large-scale grid, a medium-scale grid, and a small-scale grid; by setting scale parameters and scale-related functions on grids of different scales, multi-scale adaptation is achieved, and a numerical model is constructed and solved through a unified computational equation;
[0045] Step S130, numbering the grid points of the calculation grid;
[0046] Step S140, obtaining a calculation model corresponding to the grid point numbered 1, and discretizing it to obtain an algebraic equation;
[0047] Step S150, performing parallel solving processing on the coefficient matrix in the algebraic equation to obtain a solution result;
[0048] Step S160, performing post-processing according to the solution result to obtain a forecast result.
[0049] In another embodiment, in constructing a calculation model according to preset parameters, the calculation model is:
[0050]
[0051] is the scale-dependent function, is the wave group velocity, where λ i It is a preset scale factor. Different scale factors can be realized in different grid partitions and partition boundary areas according to the grid partition and setting. The function realizes the local refraction and diffraction refinement analysis, and realizes attenuation at the intersection boundary by setting a smaller scale coefficient outside the boundary grid points;
[0052] E is the energy density spectrum function E(x,y,σ,θ), N is the action density, is the coordinate vector, is the velocity vector, u x represents the component in the x direction, u y represents the component in the y direction, c σ and c θ are the propagation speed of the spectrum space frequency σ and angle θ, S tot is a non-conservative source-sink term, representing all physical processes that generate, dissipate or redistribute wave energy at a certain point, i is the scale number, n is the total number of scales, and t is time;
[0053] The calculation model corresponding to the grid point numbered 1 is obtained, and the calculation model is discretized into:
[0054]
[0055] Δt is the time change, f i,, is the x-component of the ith scale of f at point 1; f i,, is the x-component of the ith scale of f at point 2; f i,, is the x-component of the ith scale of f at point 3; f i,, is the y component of the i-th scale of f at point 1; fi,, is the y component of the i-th scale of f at point 2; f i,, is the y component of the i-th scale of f at point 3; u i,, The x component at point 1; u i,x,2 The x component at point 2; u i,, The x component at point 3; u i,, The x component at point 1; u i,y,2 The x component at point 2; u i,, The x component at point 3; is the quantity at time step 1 at the nth time step; is the quantity at time step 2 at the nth time step; is the quantity at time step 3 at nth time; , They are The x, y components of , They are The x, y components of , They are The x, y components of , They are The x, y components of
[0056] It should be noted that the multi-scale adaptive wave simulation and prediction method includes a multi-scale adaptive wave simulation solver, parameter input, grid division, parallel solution, output and other modules.
[0057] (S1) The calculation model is is the scale-dependent function, where λ i is the scale factor, E is the energy density spectrum function E(x,y,σ,θ), N is the action density, is the coordinate vector, is the velocity vector, c σ and c θ is the propagation speed of σ and θ in the spectrum space, S tot is a non-conservative source / sink term representing all physical processes that generate, dissipate or redistribute wave energy at a point;
[0058] (S2) The computational grid in the multi-scale adaptive wave simulation forecasting method can be composed of unstructured triangular grids of multiple scales, such as large-scale (usually 0.5°×0.5° in latitude and longitude), medium-scale (kilometer to hundred-meter grids) and small-scale grids (10m×10m in magnitude);
[0059] (S3) For any triangular grid point, grid numbers 1, 2 and 3, the calculation model of the grid number 1 position is discretized as
[0060]
[0061] (S4) performing parallel solving processing on the coefficient matrix in the algebraic equation, including parallel assembly and adjustment of the coefficient matrix Ax=b and parallel solving of the matrix equation Ax=b, wherein the matrix is divided into blocks according to a preset parallel number;
[0062] The output of the simulation forecasting method (S5) corresponds to the wind field parameters in each time period, and outputs the spectral density, direction, wave and other parameters of all grid points;
[0063] It can be understood that in step S3, after the computational model is discretized, the computational model is converted into an algebraic equation. The coefficients in the algebraic equation will affect the physical quantities at the grid points, so they are organized into a matrix, called a coefficient matrix. The matrix depends on the value of the physical quantity, so it needs to be recalculated in each iteration. Parallel solving of the matrix can increase the solution speed. The solution is completed until the residuals of all grid points in the solution domain meet the requirements. That is, the physical quantities of each grid point at a specific time step or condition are obtained. Then other parameters are derived from the basic physical quantity solution. The final prediction result is obtained.
[0064] In another embodiment, the coefficient matrix in the algebraic equation is solved in parallel to obtain a solution result, including:
[0065] Parallel assembly of coefficient matrices;
[0066] Adjust the coefficient matrix after parallel assembly;
[0067] The adjusted coefficient matrix is solved in parallel to obtain the solution.
[0068] In another embodiment, the coefficient matrix is assembled in parallel, including:
[0069] When the computational grid is partitioned according to the preset partitions, matrix coefficients are calculated for each partition, and the calculation results of each partition are summarized;
[0070] or,
[0071] The computational grid is partitioned according to the automatically calculated partitions. At the first time step, the scale factor of the computational grid is calculated, as well as the computational time of the computational grid. According to the scale factor and the computational time, the average value of the computational time corresponding to different scale factors is calculated to obtain the computational amount. Based on the computational amount corresponding to each scale factor, the partitions are performed according to the preset arrangement order of the quantitative scale factors.
[0072] It should be noted that the parallel solution processing of the coefficient matrix in the algebraic equation includes parallel assembly and adjustment of the coefficient matrix Ax=b and parallel solution of the matrix equation Ax=b, wherein the matrix is divided into blocks according to a preset parallel number;
[0073] The coefficient assembly includes:
[0074] Parallel assembly of coefficients, including solving unstructured grids in partitions that are either pre-defined or automatically computed.
[0075] If the preset partitioning mode is followed, the matrix coefficients are calculated for each partition, and then the calculations are summarized at the end;
[0076] If the partitioning mode is automatically calculated, in the first time step, the scale factor of the grid and the calculation time on the grid are calculated, and the average calculation time corresponding to different scale factors is summarized and calculated. Finally, according to the estimated calculation amount corresponding to each scale factor, the scale factor is arranged from large to small according to the preset number to ensure that the calculation amount of each partition is basically the same.
[0077] In another embodiment, adjusting the coefficient matrix after parallel assembly includes:
[0078] Adjust the coefficient matrix according to the preset partition order sequence;
[0079] or,
[0080] The distance length of the calculation grid from any preset line segment is obtained, the distance length is arranged from large to small as the target order, and the coefficient matrix is adjusted according to the target order.
[0081] It should be noted that the coefficient adjustment can be adjusted in two ways: by partition order and grid point order;
[0082] If the partition order is based on the preset partition order sequence, the coefficient matrix is adjusted;
[0083] If the adjustment is made according to the order of grid points, the adjustment is made according to any preset order, and the distance between the grid points and any preset line segments is adjusted from large to small.
[0084] In another embodiment, the adjusted coefficient matrix is solved in parallel, including:
[0085] Perform vector parallel iterative solution on any computational grid.
[0086] It should be noted that the equation Ax = b is solved in parallel, and the equation is discretized into Ax = b, where A is the corresponding The coefficient of x is the N of all computing nodes n The vector composed of the equation, b is the vector composed of other terms in the equation (such as F n discrete terms, including all N n-1 Item).
[0087] include:
[0088] S1. Initialize the computing thread pool. The thread pool can be controlled by multiple machines in parallel or by a single machine in parallel. The computing efficiency value of each thread in the thread pool is calculated according to the preset number of cycles.
[0089] S2, divide Ax=b into blocks according to the preset parallel number, A=[A 1 ,…,A i ,…] T , x=[x 1 ,…,x i ,…] T , b=[b 1 ,…,b i ,…] T , the number of rows of each i-block matrix is determined according to the execution efficiency of each thread according to the total efficiency ratio, and the temporary variables involved in the calculation process are also divided into blocks in the same way;
[0090] S3. Initialize calculation parameters: c and α are preset parameters;
[0091] S4, Parallel Computing Perform thread solving for each i, i represents the i-th block, and N represents all blocks;
[0092] S5. For n = [1, 2, 3, ...], start the loop;
[0093] S6. Calculation coefficient
[0094] S7, Parallel Computing Perform thread solving for each i is a matrix with 0 elements;
[0095] S8. Parallel Computing Perform thread solving for each i;
[0096] S9. Parallel Computing Perform thread solving for each i;
[0097] S10. Check the residuals of each preset partition from large to small scale Whether the requirements are met, if not, continue with S5 iteration;
[0098] S11. If the residuals of the previous multiple large-scale grids meet the requirements, the matrix rows and columns corresponding to the remaining small-scale grids are reassembled into Ax=b, and iterate again from S2 until the residuals of all grid points in the solution domain meet the requirements and the solution is completed.
[0099] Furthermore, for any grid point, a vector parallel iterative solution method is adopted to perform parallel calculation.
[0100] Furthermore, the wave input of the computational model includes: wind field, flow field and other data; the input of the scale model includes: wave height, period and wave direction, which are calculated according to each time step of the scale, and the calculation adopts the preset grid point position. For the results of the scale model calculation, the wave height, period and wave direction of the preset grid point position are calculated respectively; a distributed cluster server method can be used to improve the efficiency of data processing and calculation, the main server realizes the scheduling and distribution of simulation forecast data, and the distributed server realizes the simulation calculation of each scale model sub-module.
[0101] like Figure 2 As shown, Figure 2 The present invention also provides a multi-scale adaptive wave simulation and forecasting device, comprising:
[0102] The processor 201 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0103] The memory 202 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 202 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 202, and the processor 201 calls and executes the multi-scale adaptive wave simulation forecasting method of the embodiment of the present application;
[0104] Input / output interface 203, used to implement information input and output;
[0105] The communication interface 204 is used to realize the communication interaction between the present apparatus and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);
[0106] Bus 205 , which transmits information between various components of the device (e.g., processor 201 , memory 202 , input / output interface 203 , and communication interface 204 );
[0107] The processor 201 , the memory 202 , the input / output interface 203 and the communication interface 204 are connected to each other in communication within the device via the bus 205 .
[0108] An embodiment of the present application also provides an electronic device, including the multi-scale adaptive wave simulation and forecasting device as described above.
[0109] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned multi-scale adaptive wave simulation forecasting method is implemented.
[0110] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0111] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0112] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A multi-scale adaptive wave simulation forecasting method, characterized in that: include: Constructing a calculation model according to preset parameters, wherein the calculation model is a simulation model for predicting waves; Constructing a computational grid, wherein the computational grid is a triangular grid, and the triangular grid includes a large-scale grid, a medium-scale grid, and a small-scale grid; Numbering the grid points of the computational grid; Obtain the calculation model corresponding to the grid point numbered 1, and discretize it to obtain an algebraic equation; Performing parallel solving processing on the coefficient matrix in the algebraic equation to obtain a solution result; Post-processing is performed according to the solution result to obtain a forecast result.
2. The multi-scale adaptive wave simulation forecasting method according to claim 1, characterized in that: In the calculation model constructed according to the preset parameters, the calculation model is: is the scale-dependent function, is the wave group velocity, where λ i is the scale factor, E is the energy density spectrum function E(x,y,σ,θ), N is the action density, is the coordinate vector, is the velocity vector, u x represents the component in the x direction, u y represents the component in the y direction, c σ and c θ are the propagation speed of the spectrum space frequency σ and angle θ, S tot is a non-conservative source-sink term, representing all physical processes that generate, dissipate or redistribute wave energy at a certain point, i is the scale number, n is the total number of scales, and t is time; 3. The multi-scale adaptive wave simulation forecasting method according to claim 1, characterized in that: The calculation model corresponding to the grid point numbered 1 is obtained and discretized to discretize the calculation model into: Δt is the time change, f i,x,1 is the x-component of the ith scale of f at point 1; f i,x,2 is the x-component of the ith scale of f at point 2; f i,x,3 is the x-component of the ith scale of f at point 3; f i,y,1 is the y component of the i-th scale of f at point 1; f i,y,2 is the y component of the i-th scale of f at point 2; f i,y,3 is the y component of the i-th scale of f at point 3; u i,x,1 The x component at point 1; u i,x,2 The x component at point 2; u i,x,3 The x component at point 3; u i,y,1 The x component at point 1; u i,y,2 The x component at point 2; u i,y,3 The x component at point 3; is the quantity at time step 1 at the nth time step; is the quantity at time step 2 at the nth time step; is the quantity at time step 3 at nth time; They are The x, y components of They are The x, y components of They are The x, y components of They are The x, y components of 4. The multi-scale adaptive wave simulation forecasting method according to claim 1, characterized in that: The performing parallel solving processing on the coefficient matrix in the algebraic equation to obtain a solution result includes: Performing parallel assembly on the coefficient matrix; Adjusting the coefficient matrix after parallel assembly; The adjusted coefficient matrix is solved in parallel to obtain the solution result.
5. The multi-scale adaptive wave simulation forecasting method according to claim 4, characterized in that: The parallel assembly of the coefficient matrix comprises: When the computational grid is partitioned according to the preset partitions, each partition performs matrix coefficient calculation, and the calculation results of each partition are summarized; or, The computational grid is partitioned according to the automatically calculated partitions, a scale factor of the computational grid and a computational time of the computational grid are calculated at a first time step, an average value of the computational time corresponding to different scale factors is calculated according to the scale factor and the computational time to obtain a computational amount, and partitions are performed according to a preset number and an arrangement order of the scale factors based on the computational amount corresponding to each scale factor.
6. The multi-scale adaptive wave simulation forecasting method according to claim 4, characterized in that: The step of adjusting the coefficient matrix after parallel assembly includes: Adjusting the coefficient matrix according to a preset partition order sequence; or, The distance length between the calculation grid and any preset line segment is obtained, the distance lengths are arranged from large to small as a target order, and the coefficient matrix is adjusted according to the target order.
7. The multi-scale adaptive wave simulation forecasting method according to claim 4, characterized in that: The parallel solving of the adjusted coefficient matrix includes: A vector parallel iterative solution is performed on any of the computational grids.
8. A multi-scale adaptive wave simulation and forecasting device, characterized in that: It comprises at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the multi-scale adaptive wave simulation and forecasting method as described in any one of claims 1 to 7.
9. An electronic device, characterized in that: It includes the multi-scale adaptive wave simulation and forecasting device as described in claim 8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the multi-scale adaptive wave simulation and forecasting method as described in any one of claims 1 to 7.
