Method and system for constructing unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on discontinuous Galerkin method
By using block-based AMR and Hilllbert space filling curve sorting technology in the discontinuous Galerkin method, a non-structured grid adaptive subdivision and efficient parallel algorithm framework is constructed, which solves the problem caused by the large amount of calculation of the discontinuous Galerkin method. The problem of low efficiency is solved and efficient parallel computing is achieved.
Patent Information
- Application Number
- CN202311065020.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-23
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-08-23
AI Technical Summary
Although the existing discontinuous Galerkin method has high accuracy, the large-scale increase in calculation amount leads to a reduction in calculation efficiency, which limits the expansion of its application fields.
Block-based AMR is used as an adaptive strategy, combining the advantages of structured and unstructured grids to build an adaptive subdivision and efficient parallel high-precision algorithm framework for unstructured grids based on the discontinuous Galerkin method. Adapt to thinning and Hilbert space filling curve sorting, dynamically balance CPU load, and improve computing efficiency.
It achieves improved computing efficiency while maintaining high accuracy, is suitable for complex graphics boundaries and large-scale parallel computing, reduces the window waiting period of multi-core parallel computing, and improves the processing speed of computing tasks.
Smart Images

Figure CN117194859B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of high-precision algorithm and high-efficiency calculation. Background Art
[0002] With the development of computer technology, the simulation and calculation of physical processes and phenomena in the field of fluid and structural mechanics through numerical simulation methods has become a mainstream research method, and methods such as finite element and finite volume have been rapidly developed and applied. However, some more complex physical phenomena involving strong discontinuities and strong transients have put forward higher requirements on the accuracy of numerical simulation algorithms. Traditional numerical methods can no longer meet them and need the support of high-precision algorithms. In terms of grids, although structured grids have fast generation speed, simple data structure and high parallel computing efficiency, their application scope is relatively narrow and only applies to regular boundary shapes. Unstructured grids can process complex graphics and have good adaptability, but their parallel computing efficiency is low.
[0003] As a theoretically complete high-precision algorithm, the discontinuous Galerkin method has received more and more attention. On the basis of the traditional finite element method, the restriction of the continuity of the unit basis function on the unit boundary is removed. By selecting the appropriate unit basis function, i.e., adaptive p refinement, high precision can be easily achieved, and thus it has made rapid progress and development. However, the high-precision characteristics of this numerical method also bring about a large-scale increase in the amount of calculation, greatly reducing the calculation efficiency, and to a certain extent limiting the further expansion of its application field.
[0004] In the discontinuous Galerkin method, each unit is only associated with adjacent units. The numerical format is compact and has great advantages in efficient parallel computing simulations. It also has the ability to process unstructured grids. Therefore, the field of efficient computing of high-precision algorithms has become a research hotspot.
[0005] In summary, how to improve the computational efficiency of high-precision algorithms such as the discontinuous Galerkin algorithm becomes of great significance. Summary of the invention
[0006] The present invention solves the problem that although the existing discontinuous Galerkin method has the characteristic of high precision, the large-scale increase in the amount of calculation causes a significant reduction in the calculation efficiency.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] The present invention adopts block-based AMR as an adaptive strategy, combines the advantages of structured and unstructured grids, and provides a method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method, wherein the grid adaptation is adaptive h refinement, and the method is:
[0009] S1. selecting indicator variables according to flow field characteristics, and formulating adaptive criteria according to the indicator variables;
[0010] S2, searching for the area of the flow field characteristic details concerned according to the adaptive criterion, and marking the indicator variables on the blocks at the corresponding positions of the area to obtain the block subdivision level of each area;
[0011] S3, comparing the block subdivision level of each area with the current level to obtain the judgment condition and level difference condition for subdivision or merging;
[0012] S4, performing a subdivision or merging operation according to the judgment condition of subdivision or merging and the level difference condition to obtain a new grid after subdivision or merging;
[0013] S5, performing L2 projection on the numerical solution on the original blocks grid onto the subdivided or merged new grid to obtain a projected blocks grid;
[0014] S6. Use the Hillbert space filling curve to sort the block grids in all regions of the flow field to obtain a sorting graph;
[0015] S7, splitting the sorting graph according to different regional weights, and assigning the splitting results to each computing core, after each computing core is assigned, using the data of adjacent blocks to process the information interaction layer grid of the projected blocks grid to obtain a processed blocks grid;
[0016] S8, using a discontinuous Galerkin solver to perform numerical calculations on the processed blocks grid;
[0017] S9, communicate between different CPU loads, initialize the variables in the thread, and enter the next time increment step at the same time, repeat steps S2 to S8 until the calculation is terminated, and obtain an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method.
[0018] Furthermore, in a preferred embodiment, the marking indicator variable in the above step S2 is an indicator variable marking grid subdivision.
[0019] Furthermore, in another preferred embodiment, the marking indicator variable in the above step S2 may also be an indicator variable for grid merging.
[0020] Furthermore, in another preferred embodiment, the judgment condition for the subdivision in the above step S3 is that the blocks subdivision level of each area is greater than the current level.
[0021] Furthermore, in another preferred embodiment, the judgment condition for merging in the above step S3 is that the blocks subdivision level of each area is smaller than the current level.
[0022] Furthermore, in another preferred embodiment, the level difference condition in the above step S3 is that the level difference between adjacent blocks is not greater than 1.
[0023] Furthermore, in a preferred embodiment, the processing in the above step S7 includes filling in values or defining boundary conditions.
[0024] The method for constructing an unstructured grid adaptive subdivision and an efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in the present invention can be fully implemented by computer software. Therefore, correspondingly, the present invention also provides a construction system for an unstructured grid adaptive subdivision and an efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method, and the system comprises:
[0025] A storage device for selecting indicator variables according to flow field characteristics and formulating adaptive criteria according to the indicator variables;
[0026] A storage device for finding the area of the flow field characteristic details concerned according to the adaptive criterion, marking the indicator variables on the blocks at the corresponding positions of the area, and obtaining the block subdivision level of each area;
[0027] A storage device for comparing the blocks subdivision level of each area with the current level to obtain judgment conditions for subdivision or merging and level difference conditions;
[0028] A storage device for performing a subdivision or merging operation according to the judgment condition of the subdivision or merging and the level difference condition to obtain a new grid after the subdivision or merging;
[0029] A storage device for performing L2 projection of the numerical solution on the original blocks grid onto the subdivided or merged new grid to obtain the projected blocks grid;
[0030] A storage device for sorting the block grids of all regions in the flow field using the Hillbert space filling curve to obtain a sorting graph;
[0031] A storage device for splitting the sorting graph according to different regional weights and allocating the split results to each computing core. After the allocation of each computing core, the information interaction layer grid of the projected blocks grid is processed using the data of adjacent blocks to obtain the processed blocks grid;
[0032] A storage device for performing numerical calculations on the processed blocks grid using a discontinuous Galerkin solver;
[0033] It is used to communicate between different CPU loads, initialize variables within the thread, and enter the next time increment step at the same time. The above steps are repeated until the calculation is terminated, and a storage device for the unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method is obtained.
[0034] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for constructing a non-structured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method as described above is executed.
[0035] The present invention also provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes any one of the above-mentioned methods for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method.
[0036] The beneficial effects of the present invention are:
[0037] 1. The present invention provides a method for constructing an adaptive subdivision of unstructured grids and an efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method, wherein the attached discontinuous Galerkin method adopts a general framework of a conservation type partial differential equation, and can conveniently solve different problems by introducing the flux terms and source terms of interest. In addition, the algorithm framework adopts block-based AMR as an adaptive strategy. On the one hand, an unstructured grid is used to define the initial root blocks at the block level, which has the advantage of processing complex graphic boundaries. On the other hand, the structured grid divided inside the block has a simple data structure, which makes it have a high computational efficiency. Then, based on the block and quadtree structure, an algorithm framework for data communication between blocks with parent-adjacent relationships and between CPUs is established. While flexibly performing adaptive p and h refinement, the Hillbert space curve filling technology and SCF are used to dynamically balance the load between CPUs, so as to achieve a single CPU thread computing task balance, reduce the window waiting period of multi-core parallel computing, quickly process the computing tasks of the current time step and enter the calculation of the next time step. The present invention aims to solve the problem that although the existing discontinuous Galerkin method has the characteristics of high precision, the large-scale increase in the amount of calculation leads to a significant reduction in the calculation efficiency.
[0038] The invention is applicable to the grid adaptation and large-scale parallel technology of the discontinuous Galerkin method. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flow chart of a method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in the first implementation mode;
[0040] Figure 2 It is an internal relationship diagram of the block subdivision level quadtree structure described in Implementation Mode 1;
[0041] Figure 3 It is a diagram of four mutual rotation relationships between adjacent blocks described in the first embodiment;
[0042] Figure 4 It is a single block grid definition configuration diagram described in Implementation Mode 1;
[0043] Figure 5 is a communication relationship diagram between adjacent blocks described in implementation mode 1;
[0044] Figure 6 is a schematic diagram of recursive subdivision of the first three subdivision levels of the Hillbert curve in two-dimensional space described in the first embodiment;
[0045] Figure 7 It is the reordering of arbitrary nodes in the two-dimensional space by filling the Hillbert curve described in the first embodiment, and different colors of blocks represent partitions of different CPUs;
[0046] Figure 8 (a) is a square root block configuration diagram of a linear transport equation test example described in Implementation Example 11;
[0047] Figure 8 (b) is a configuration diagram of four root blocks with relative rotation in a shape distortion of the linear transport equation test example described in the eleventh embodiment;
[0048] Figure 8 (c) is a configuration diagram of three root blocks with relative rotation in the shape distortion of the linear transport equation test example described in the eleventh embodiment;
[0049] Fig. 9 (a) is a square root block numerical result diagram of the linear transport equation test example described in the eleventh embodiment;
[0050] Fig. 9 (b) is a numerical result diagram of the four root blocks with relative rotation in the shape distortion of the linear transport equation test example described in the eleventh embodiment;
[0051] Fig. 9(c) is a numerical result diagram of the shape distortion with relative rotation of three root blocks of the linear transport equation test example described in the eleventh embodiment;
[0052] Where, t = 1.0;
[0053] Fig.10 (a) is a density cloud diagram with adaptive blocks distribution for the Sedov point explosion problem of the Euler equation described in the eleventh embodiment;
[0054] Fig.10 (b) is a comparison diagram of the numerical solution and the exact solution of the y=0 section density of the Sedov point explosion problem of the Euler equation described in the eleventh embodiment;
[0055] Fig.11 It is a schematic diagram of the size parameters and flow field of the Euler equation supersonic flow around a triangular prism and a cylinder as described in the eleventh embodiment;
[0056] Fig.12 is a relative error table of numerical values and theoretical solutions of different adaptive subdivision levels β of the Euler equation supersonic triangular prism flow problem described in the eleventh embodiment;
[0057] Fig.13 (a) is a density gradient numerical schlieren diagram of the Euler equation supersonic triangular prism flow problem described in the eleventh embodiment;
[0058] Fig.13 (b) is a density cloud diagram with adaptive blocks distribution for the Euler equation supersonic triangular prism flow problem described in the eleventh embodiment;
[0059] Fig.14 is a comparison diagram between a numerical solution and a theoretical solution to the stagnation distance of the Euler equation for supersonic flow around a circular cylinder as described in the eleventh embodiment;
[0060] Fig.15 (a) is a density gradient numerical schlieren diagram of the Euler equation supersonic cylinder flow problem described in the eleventh embodiment;
[0061] Fig.15 (b) is a density cloud diagram with adaptive blocks distribution for the Euler equation supersonic cylinder flow problem described in the eleventh embodiment;
[0062] Fig.16 (a) is the trigonometric smoothing problem of the Euler equation described in the eleventh embodiment in the basis function polynomial space P 1 Density cloud map with adaptive blocks distribution;
[0063] Among them, the upper and lower subdivision levels min / max = 3 / 5;
[0064] Fig.16 (b) is the trigonometric smoothing problem of the Euler equation described in the eleventh embodiment in the basis function polynomial space P 1 Density cloud map with uniformly distributed blocks;
[0065] Among them, the upper and lower subdivision levels min / max = 5 / 5;
[0066] Fig.17 (a) is a partition diagram of one CPU with adaptive grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0067] Fig.17 (b) is a partition diagram of two CPUs with adaptive grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0068] Fig.17 (c) is a partition diagram of four CPUs with adaptive grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0069] Fig.17 (d) is a partition diagram of 8 CPUs with adaptive grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0070] Fig.17 (e) is a partition diagram of 16 CPUs with adaptive grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0071] Fig.17 (f) is a partition diagram of 32 CPUs with adaptive grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0072] Among them, the upper and lower subdivision levels min / max = 3 / 5;
[0073] Fig.18 (a) is a partition diagram of one CPU with uniform grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0074] Fig.18 (b) is a partition diagram of two CPUs with uniform grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0075] Fig.18 (c) is a partition diagram of four CPUs with uniform grid distribution for the trigonometric smoothing problem of the Euler equations described in the eleventh embodiment;
[0076] Fig.18(d) is a partition diagram of 8 CPUs with uniform grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0077] Fig.18 (e) is a partition diagram of 16 CPUs with uniform grid distribution for the trigonometric function smoothing problem of the Euler equations described in the eleventh embodiment;
[0078] Fig.18 (f) is a partition diagram of 32 CPUs with uniform grid distribution for the trigonometric smoothing problem of the Euler equations described in the eleventh embodiment;
[0079] Among them, the upper and lower subdivision levels min / max = 5 / 5;
[0080] Fig.19 It is a graph showing the time-consuming curve changes of different numerical precisions for the trigonometric function smoothing problem of the Euler equation described in the eleventh embodiment under the framework of an adaptive and parallel algorithm;
[0081] Fig. 20 The table of L1 and L2 errors and numerical precision of the trigonometric function smoothing problem described in the eleventh embodiment;
[0082] Fig.21 This is a data table of CPUs computing time consumption for the trigonometric function smoothing problem described in the eleventh implementation mode. DETAILED DESCRIPTION
[0083] The specific implementation mode of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.
[0084] Implementation method 1. See Figures 1 to 7 This embodiment is described. This embodiment adopts block-based AMR as an adaptive strategy, combines the advantages of structured and unstructured grids, and provides a method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method, wherein the grid adaptation is adaptive h refinement, and the method is:
[0085] S1. selecting indicator variables according to flow field characteristics, and formulating adaptive criteria according to the indicator variables;
[0086] S2, searching for the area of the flow field characteristic details concerned according to the adaptive criterion, and marking the indicator variables on the blocks at the corresponding positions of the area to obtain the block subdivision level of each area;
[0087] S3, comparing the block subdivision level of each area with the current level to obtain the judgment condition and level difference condition for subdivision or merging;
[0088] S4, performing a subdivision or merging operation according to the judgment condition of subdivision or merging and the level difference condition to obtain a new grid after subdivision or merging;
[0089] S5, performing L2 projection on the numerical solution on the original blocks grid onto the subdivided or merged new grid to obtain a projected blocks grid;
[0090] S6. Use the Hillbert space filling curve to sort the block grids in all regions of the flow field to obtain a sorting graph;
[0091] S7, splitting the sorting graph according to different regional weights, and assigning the splitting results to each computing core, after each computing core is assigned, using the data of adjacent blocks to process the information interaction layer grid of the projected blocks grid to obtain a processed blocks grid;
[0092] S8, using a discontinuous Galerkin solver to perform numerical calculations on the processed blocks grid;
[0093] S9, communicate between different CPU loads, initialize the variables in the thread, and enter the next time increment step at the same time, repeat steps S2 to S8 until the calculation is terminated, and obtain an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method.
[0094] In practical application, if Figure 1 As shown in the figure, first determine the grid subdivision and merging criteria: select appropriate indicator variables according to the flow field characteristics to formulate adaptive criteria for finding the area of the flow field feature details of interest, then mark the indicator variables of grid subdivision or merging on the blocks at the corresponding positions to determine the appropriate subdivision level; specifically: the numerical calculation of the relevant flow field physical variables is implemented using the discontinuous Galerkin method, which considers the following conservation system in two-dimensional space:
[0095]
[0096] Where U, F, G and S are the conservation vector, the flux vectors in the x and y directions and the source vector respectively. Considering a single unit Ω in the computational domain, the Galerkin form of the above equation can be written as:
[0097]
[0098] Where φ iThe polynomial space P K An element in a set of complete basis functions, n = (n x ,n y ) is the unit edge The outward unit normal, and is the numerical flux. Let the numerical solution be expressed as U h =∑ j=i,N k j φ j , the above equation can be written in matrix form:
[0099]
[0100] Where M is the mass matrix, is the time derivative of the k-matrix unknown, and R is the unified representation of the matrix on the right hand side.
[0101] Since the numerical flux is a single-valued function that depends on the solutions on both sides of the interface, it must satisfy the consistency, continuity and monotonicity conditions. Here, the Lax-Friedrichs flux is selected as follows:
[0102]
[0103] Where f can be F or G, and α is the maximum eigenvalue of the system Jacobian matrix.
[0104] Define L(U) as the operator of PDE (Partial differential equation). In this implementation, the third-order Runge-Kutta method is used to perform time stepping on the solution, which can be expressed as:
[0105] U (1) =U (n) +ΔtL(U n )
[0106]
[0107]
[0108] The discontinuous Galerkin method described above is a general framework for conservation partial differential equations. By bringing in the flux terms and source terms of interest, different problems can be easily solved.
[0109] Then perform subdivision and merging operations: compare the subdivision level of blocks in each area with the current level to determine whether subdivision or merging is required, and ensure that the level difference between adjacent blocks after the operation is not greater than 1. On this basis, implement subdivision and merging operations, and perform L2 projection of the numerical solution on the original blocks grid onto the new grid. Specifically: Since the block data structure is a derived type of modern Fortran, it contains some scalars representing block states, data arrays for storing intermediate variables and unknowns, and pointer links between other blocks. Pointers are associated with other blocks that have a relationship with the current block, such as its parent block, child blocks, and adjacent blocks at the same subdivision level. A bunch of interconnected blocks form a quadtree structure, such as Figure 2 As shown. The root blocks (yellow blocks) have no parent blocks and the subdivision level is 1. First, the root blocks are created according to the user-given data, and the adjacent relationships between them are calculated based on the topology. Then they may be recursively subdivided to generate child blocks (blue blocks) at the next subdivision level. Therefore, each root block generates a quadtree structure. The adjacent relationships of the new blocks are calculated based on the adjacent relationships of their parents and their positions at the same level. The terminals of the quadtree structure are defined as leaf blocks (green blocks), which need to be intermittently Galerkin solved.
[0110] In order to facilitate the processing of complex graphic boundaries, the initial root blocks used to describe the computational domain can be defined using an unstructured grid, so there is an arbitrary relative rotation relationship between adjacent blocks, represented by the array R. i Indicates the relative rotation times of the ith adjacent block in the counterclockwise direction relative to the current block, such as Figure 3 Therefore, the serial number of the neighbor block face (edge) connected to the i-th face (edge) of the current block can be calculated by the following formula, where P4(*)=mod(*-1,4)+1 is an operator used to map the action integer between 1 and 4.
[0111] I f =P4(i+2-R i );
[0112] Grid definition for a single block: Each block is discretized into Orthogonal units, whose node positions are given by bilinear interpolation of block configuration nodes, are structured grids with simple data structures, which are conducive to efficient calculation. seg =4 to N seg =4 as an example, Figure 4As shown. A layer of guard cells is defined at the edge of the block to realize the communication between adjacent blocks. The node positions are calculated by bilinear interpolation of the block configuration nodes corresponding to the adjacent positions. In each time step of solving the discontinuous Galerkin equation, only the actual cells in the block need to be solved, and the solutions of the guard cells are directly filled or assigned to the boundary conditions from the adjacent blocks to ensure the correct boundary flux at the boundary.
[0113] Communication between adjacent blocks: Communication between adjacent blocks is achieved by filling their corresponding protection units. In this implementation, a series of operators are defined as follows.
[0114] is the rotation operator, which rotates the solution counterclockwise N times; M comb is a combination operator that combines the solutions of the four sub-units into the solution of the parent unit; is a splitting operator that computes the solution of the Nth child cell from a given parent cell.
[0115] The above operators can be used to calculate the unknown solution of any unit. Similar to blocks, its internal units also have parent-child relationships. Figure 5 The filling process of three types of protection units is described as follows:
[0116] (1) Fill with adjacent blocks of the same subdivision level. Figure 5 In the communication between blocks A and B, the solution vector K of the target defending unit g is directly obtained from the corresponding unit g of the adjacent block. n Copy it and perform the corresponding rotation operation:
[0117]
[0118] (2) Fill with adjacent blocks of a higher subdivision level. Figure 5 Communicate from block A to C and combine the corresponding 4 sub-units in the adjacent blocks to get the solution of the target defending unit:
[0119]
[0120] (2) Fill with adjacent blocks of lower subdivision level. Figure 5 Communicate from block C to A and get the solution of the target defending unit by splitting the corresponding parent unit in the adjacent block:
[0121]
[0122] Communication between inherited blocks: Communication between inherited blocks is the communication between parent and child blocks realized in the process of segmentation and merging. When a block needs to be segmented, 4 child blocks will be generated, and their data will be inherited from the original parent block through L2 projection. In the opposite merging process, the parent block will inherit data from its 4 child blocks.
[0123] Dynamically balance CPU load: sort all regions in the flow field by using the Hillbert space filling curve, and then split and allocate them to each computing core according to the weight of different regions; specifically: use the Hilbert space curve filling technology to dynamically balance the load between CPUs and distribute computing tasks. The Hilbert space curve has the self-similar and recursive mapping characteristics between the coordinate sequence in high-dimensional space and one-dimensional space, such as Figure 6 As shown. Linear partitioning of the sequence in one-dimensional space ensures that the coordinates in the same partition in high-dimensional space are close to each other. First, a square root block containing all points is constructed, and then subdivision operations are performed until there is at most one point in each leaf block. The points are then sorted using the Hilbert space curve that passes through all leaf blocks. By appropriately weighting the curve at each point, the target blocks in the same partition are divided according to their adjacent relationship. The algorithm framework uses SCF technology for dynamic load balancing while flexibly performing adaptive p and h refinement. When the grid is locally subdivided and merged, the SCF technology can gradually change the partition with minimal data communication requirements. Figure 7 The process is demonstrated, where the green dots represent the points to be sorted and the lines connecting them represent the order.
[0124] CPU communication and thread initialization. Communication between different CPU loads is as follows: An object is defined in the communication algorithm between CPUs. It contains the following data structures:
[0125] An integer representing the target CPU process ID number with which to communicate;
[0126] A list that should be packaged and sent, indicating the blocks and their required communication data ID numbers;
[0127] A list of blocks and their required communication data ID numbers that should be accepted and overwritten from the target CPU process;
[0128] Two buffer arrays for storing data being sent and received.
[0129] Initialize the variables within the thread and enter the next time increment at the same time, repeating steps S2 to S8, specifically: Initialization: Initialize the global constants of the parallel algorithm; initialize the root blocks according to the given data; iteratively initialize the unknowns with the given initial conditions, calculate the subdivision and merge marks according to the adaptive criteria, and perform subdivision and load balancing in different CPU threads.
[0130] Solve the discontinuous Galerkin equation for a single time step: Calculate the critical time increments of all blocks according to the CFL condition; Exchange information between threads to fill the buffer blocks; Dump the solution into a temporary array; Exchange information between blocks to fill the guard cells; Solve the discontinuous Galerkin equation for each block and update the solution.
[0131] Check the subdivision criteria and perform the subdivision operation again. Output the solution file to the local hard disk to obtain the unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method.
[0132] This embodiment provides a method for constructing an adaptive subdivision of unstructured grids and an efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method, wherein the attached discontinuous Galerkin method adopts a general framework of a conservation type partial differential equation, and can conveniently solve different problems by introducing the flux terms and source terms of interest. In addition, the algorithm framework adopts block-based AMR as an adaptive strategy. On the one hand, an unstructured grid is used to define the initial root blocks at the block level, which has the advantage of processing complex graphic boundaries. On the other hand, the structured grid divided inside the block has a simple data structure, which makes it have a high computational efficiency. Then, based on the block and quadtree structure, an algorithm framework for data communication between blocks with parent-adjacent relationships and between CPUs is established. While flexibly performing adaptive p and h refinement, the Hillbert space curve filling technology and SCF are used to dynamically balance the load between CPUs, so as to achieve a balance of computing tasks for a single CPU thread, reduce the window waiting period of multi-core parallel computing, quickly process the computing tasks of the current time step, and enter the calculation of the next time step. The present invention solves the problem that although the existing discontinuous Galerkin method has the characteristics of high precision, the large-scale increase in the amount of calculation leads to a significant reduction in the calculation efficiency.
[0133] Implementation method 2. This implementation method is to illustrate the marking indicator variable of step S2 in the method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in Implementation method 1, and the marking indicator variable is an indicator variable for marking grid subdivision.
[0134] Implementation method three. This implementation method is to illustrate the marking indicator variable in step S2 in the method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in implementation method one. The marking indicator variable can also be an indicator variable for grid merging.
[0135] Implementation method 4. This implementation method is to illustrate the judgment conditions of the subdivision in step S3 in the method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in Implementation method 1, and the blocks subdivision level of each area is greater than the current level.
[0136] Implementation method 5. This implementation method is to illustrate the judgment conditions of the merger in step S3 in the method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in implementation method 1, and the blocks subdivision level of each area is less than the current level.
[0137] Implementation method six. This implementation method is to illustrate the level difference condition of step S3 in the method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in implementation method one, and the level difference condition is that the level difference between adjacent blocks is not greater than 1.
[0138] Implementation method seven. This implementation method is to illustrate the processing of step S7 in the method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in implementation method one, and the processing includes filling in values or defining boundary conditions.
[0139] Embodiment 8. This embodiment provides a system for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method, the system being:
[0140] A storage device for selecting indicator variables according to flow field characteristics and formulating adaptive criteria according to the indicator variables;
[0141] A storage device for finding the area of the flow field characteristic details concerned according to the adaptive criterion, marking the indicator variables on the blocks at the corresponding positions of the area, and obtaining the block subdivision level of each area;
[0142] A storage device for comparing the blocks subdivision level of each area with the current level to obtain judgment conditions for subdivision or merging and level difference conditions;
[0143] A storage device for performing a subdivision or merging operation according to the judgment condition of the subdivision or merging and the level difference condition to obtain a new grid after the subdivision or merging;
[0144] A storage device for performing L2 projection of the numerical solution on the original blocks grid onto the subdivided or merged new grid to obtain the projected blocks grid;
[0145] A storage device for sorting the block grids of all regions in the flow field using the Hillbert space filling curve to obtain a sorting graph;
[0146] A storage device for splitting the sorting graph according to different regional weights and allocating the split results to each computing core. After the allocation of each computing core, the information interaction layer grid of the projected blocks grid is processed using the data of adjacent blocks to obtain the processed blocks grid;
[0147] A storage device for performing numerical calculations on the processed blocks grid using a discontinuous Galerkin solver;
[0148] It is used to communicate between different CPU loads, initialize variables within the thread, and enter the next time increment step at the same time. The above steps are repeated until the calculation is terminated, and a storage device for unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method is obtained.
[0149] Implementation method nine. This implementation method provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for constructing a non-structured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method as described in any one of implementation methods one to seven is executed.
[0150] Implementation method ten. This implementation method provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program. When the processor runs the computer program stored in the memory, the processor executes the method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method as described in any one of implementation methods one to seven.
[0151] Implementation method 11. See Figures 8 to 21 This embodiment is to illustrate the verification of any one of the embodiments 1 to 7 based on the unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework of the discontinuous Galerkin method:
[0152] The linear transport equation is used for verification, and the linear transport equation is:
[0153]
[0154] The initial condition is u(x,y,0)=[cos(2πx)-1][cos(2πy)-1], the computational domain is [0,1]×[0,1], and the external boundary condition is periodic. Three groups of root blocks are used to test the performance of the adaptive algorithm framework. The first group is a square root block covering the entire computational domain, and the second and third groups contain 4 and 3 root blocks with distorted shapes and relative rotation, respectively. Figure 8 The mean value of u in the discontinuous Galerkin unit is selected to set the upper and lower limit parameters of the adaptive subdivision criterion to 3.0 and 1.0 respectively, and the minimum and maximum subdivision levels are set to 3 and 5 respectively (which can be expressed as min / max=3 / 5). Fig. 9 The numerical results for t = 1.0 are given. The black line represents the unit boundary. The results are in good agreement with the exact solution, with L2 errors of 2.2e -8 , 2.7e -8 and 6.4e -8 , indicating that the algorithmic framework is able to handle inconsistent grids without losing accuracy.
[0155] The Euler problem example corresponding to the Euler equation is used to further verify the algorithm accuracy and efficiency of the parallel algorithm framework. Consider the Euler two-dimensional system as follows:
[0156]
[0157]
[0158] Where ρ, u, v are density and velocity components in x and y directions respectively, p is the fluid pressure, is the total energy, and e is the internal energy per unit mass. In order to make the above Euler equations closed, the ideal gas state equation is introduced as follows, where γ is the adiabatic index, which is taken as 1.4 here.
[0159] p = ρe(γ-1);
[0160] The two-dimensional Sedov point explosion problem is a typical strong impact low-density Euler example. Set the initial conditions:
[0161]
[0162] Where Δx and Δy are the mesh sizes in two directions, the computational domain is [-1.1, 1.1] × [-1.1, 1.1], defined by a square root block, and the external boundary condition is the outflow boundary condition. Set N seg=10, the minimum and maximum subdivision levels are set to 4 and 6 respectively (min / max=4 / 6), that is, the minimum of the computational domain grid is 1.1 / 40 and the maximum is 1.1 / 160. The upper and lower limit parameters of the subdivision criterion are set to 1.2 and 1.01 respectively, and the calculation time is t=1.0.
[0163] Among them, the results related to the Sedov point explosion problem, such as Fig.10 The numerical solution of the density of the profile is in good agreement with the exact solution, and the distribution of the adaptive blocks also proves that the subdivided area can track the peak area of the explosion wave well and can approach the exact solution well.
[0164] It can be seen that the unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method has good adaptability to the problem of strong discontinuous impact, and the adaptive region has good tracking and capturing capabilities for the area of interest.
[0165] The accuracy of the algorithm framework and the adaptive mesh subdivision are further verified using the supersonic flow problem:
[0166] First, consider the supersonic motion of a triangular prism. Its dimensions and flow field diagram are shown in the figure below. Fig.11 As shown, the supersonic flow field will eventually form an attached oblique shock wave at the vertex of the triangular prism, which forms an angle β with the triangular axis, and satisfies the following formula with the incoming flow Mach number Ma and the triangular prism half-vertex angle θ:
[0167]
[0168] The two-dimensional plane size parameters of the triangular prism are h = 0.5, θ = 20°, and the vertex coordinates are (0.5, 1.0). The computational domain is [0, 2] × [0, 2], and the left side is the inflow boundary, which is the same as the initial condition of the computational domain. Outflow boundary conditions are used on the right and upper and lower sides. The discontinuous Galerkin solver is used to perform numerical calculations on the above scenario. The Mach number Ma = 2 is selected, and the velocity divergence and curl are used to define the AMR adaptive criterion. The flow field details such as shock waves and vortices are tracked. N is set. seg =4, and the adaptive upper and lower subdivision levels are taken as min / max=1 / 2, 1 / 3, 1 / 4 and 1 / 5 for numerical calculation. The calculation is stopped after the shock wave structure is stable. According to the above formula, the theoretical value of β in this working condition is 53.46°. The relative error table of β values and theoretical solutions at different adaptive subdivision levels is obtained, as shown in Fig.12 It is shown that the discontinuous Galerkin method with an adaptive algorithm framework has extremely high accuracy in simulating the basic morphology of shock waves.
[0169] Fig.13This is the numerical result of the adaptive subdivision level of min / max=1 / 5. The density numerical schlieren diagram shows a clear and sharp oblique shock wave structure attached to the head of the triangular prism. There is a large density gradient at the two corners of the rigid body tail. The two shock waves generated move inward and finally meet at the rigid body flow wake. The shock waves and the vortex structure interact with each other to form a funnel-shaped complex flow field area and swing up and down. From the AMR adaptive blocks distribution diagram, it can be seen that the encrypted area of the flow field has a good tracking ability for the shock wave and the triangular prism tail flow field detail area, which can allocate more computing resources to the area we are concerned about, improving the computing economy and efficiency.
[0170] For the supersonic flow around a cylinder, a bow-shaped shock wave will be generated at its head, such as Fig.11 As shown, the stagnation distance Δ from the upstream stagnation point of the cylinder has a theoretical solution as follows, where R is the radius of the cylinder:
[0171]
[0172] The radius of the cylinder is R = 0.2, and the center coordinates are (0.0, 0.0). The computational domain is [-1.0, 2.6] × [-1.8, 1.8]. The left side is the inflow boundary, which is the same as the initial condition of the computational domain, (ρ, u, v, p) = (1.4, Ma, 0, 1). The right side and the upper and lower sides use the outflow boundary condition. The AMR adaptive criterion is consistent with the supersonic flow around the triangular prism. Set N seg =4, the adaptive upper and lower subdivision levels are min / max=1 / 5, and the Mach numbers are Ma=1.5, 1.7, 2.0, 2.5, 3.0, 3.5, 4.0 respectively. The calculation is stopped after the shock wave structure is stable, and the results are compared with the theoretical values. Fig.14 As shown, the numerical results of the discontinuous Galerkin adaptive algorithm are in good agreement with the theoretical values, indicating that the characteristic structural variables of the shock wave in this embodiment have good simulation accuracy.
[0173] Fig.15 The numerical schlieren diagram of the flow field density of the above-mentioned supersonic flow around the cylinder and the distribution diagram of the AMR adaptive blocks. It can be seen that the clear bow-shaped detached shock wave structure in front of the cylindrical flow produces a funnel-shaped structure similar to a triangular rigid body at its tail. The separated shock waves intersect, interact and separate here, producing an obvious vortex structure around the flow, which gradually swings up and down and falls off to form a complex flow field structure. It can also be seen that the adaptive encryption area is well attached to the flow field structures such as the bow-shaped detached shock wave, the separated shock wave and the vortex around the flow.
[0174] The above verification results show that the discontinuous Galerkin method with the AMR adaptive subdivision framework has good accuracy in simulating the main characteristic structures of the flow field, such as the basic form of shock waves, when dealing with supersonic problems. In addition, the adaptive local encrypted area can accurately capture and track the details of the flow field, and areas requiring high resolution have been given special attention. The adaptive algorithm framework of this implementation method has been effectively tested.
[0175] The above examples verify the effectiveness of the AMR adaptive algorithm framework. The encrypted area can track the flow field details according to the problem requirements, reducing the amount of grid calculations in terms of computational scale. Next, the trigonometric function smoothing problem of the Euler equation will be used to quantitatively compare the accuracy and computational efficiency of the AMR adaptive and parallel algorithms to verify the effectiveness and versatility of the high-precision algorithm.
[0176] The computational domain is [0,2]×[0,2], and the initial moment is defined by four 1×1 square root blocks. The four sides are defined as periodic boundary conditions, and the initial conditions are: ρ(x,y,0)=1+0.2sin[π(x+y)], u(x,y,0)=0.7, v(x,y,0)=0.3, p(x,y,0)=1. The exact density solution is ρ(x,y,t)=1+0.2sin[π(x+yt)], and the computational time is t=2.0.
[0177] First, all root blocks are set to have the same AMR adaptation level, and the upper and lower adaptation levels are set to min / max = 1 / 1, 2 / 2, 3 / 3, 4 / 4, and 5 / 5, respectively. That is, the uniform grid test algorithm is used to summarize the L1, L2 errors and numerical accuracy orders as follows: Fig. 20 As shown. Three basis function polynomial spaces P 1 , P 2 , P 3 They all meet their respective required numerical accuracy requirements. Similar to the previous example, the algorithm framework can maintain the required numerical accuracy requirements according to specific circumstances.
[0178] In order to verify the effectiveness of the AMR adaptive and MPI parallel algorithm framework in this algorithm, the AMR adaptive upper and lower levels min / max are taken as 3 / 5 and 5 / 5, that is, the computational domains with adaptive subdivision grids and uniformly distributed grids respectively. In the case of min / max=3 / 5, the density mean is selected to set the upper and lower limit parameters of the subdivision criterion to 1.0. Fig.16 To use the basis function polynomial space P 1 The adaptive and uniform grid calculation results show that for the former, the encrypted area is mainly distributed in the area with a density greater than 1.0. The AMR and MPI parallel algorithm frameworks are used to calculate the above working conditions with the number of CPUs being 1, 2, 4, 8, 16, and 32, and the CPUs calculation time data is summarized as follows: Fig.21 shown.
[0179] from Fig.21 It can be seen that the use of the AMR adaptive algorithm based on flow field data can effectively reduce the number of blocks and units, and fundamentally reduce the amount of calculation. From the perspective of the calculation time of different CPU numbers, the proportion of the reduction in calculation amount and the proportion of time reduction are roughly the same. In terms of MPI parallelism, the Hillbert space curve is used to fill and dynamically balance the load between CPUs. The number of blocks of the adaptive grid and the uniformly distributed grid is far greater than the number of CPUs, so each CPU resource can be reasonably used during parallel computing. Fig.17 This is the CPU partition diagram of the adaptive grid computing domain. Different colors represent different CPU partitions. The parallel algorithm will distribute the computing tasks to each CPU thread as evenly as possible, so that the time consumption of each CPU is as equal as possible, reducing the window waiting period of multi-core parallel computing, quickly processing the computing tasks of the current time step and entering the calculation of the next time step. There are three subdivision levels in this computing domain. When the number of CPUs is 1, 2, and 4, the computing task partition is still very regular. As the number of CPUs continues to increase, limited by the different sizes of the computing domain grid, partition structures of different sizes begin to appear. The subdivision level of small color partitions is generally high, and the grid is small and dense. The subdivision level of large partitions is low, and the grid is large and sparse. However, the computing tasks of different partitions are basically the same, and can also be calculated efficiently. For uniformly distributed grids such as Fig.18 As shown, the computing tasks can be evenly distributed to each CPU, and the partitioning is relatively regular. Fig.21 The data can be used to plot the time-consuming curves of three numerical precisions under the AMR adaptive and MPI parallel algorithm frameworks, such as Fig.19 According to the adaptive criterion, the subdivided and encrypted grid only needs to be distributed in the flow field area that needs attention. The adaptive algorithm can reduce the computational time by reducing the amount of grid calculation. The parallel algorithm mainly dynamically balances the load between CPUs and distributes the computing tasks to multiple threads for calculation. As the number of CPUs increases exponentially, the computing time is also reduced in a roughly corresponding proportion, which greatly improves the computing efficiency.
[0180] In summary, the method for constructing an adaptive subdivision of unstructured grids and an efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method described in this embodiment, wherein the attached discontinuous Galerkin method adopts a general framework of a conservation type partial differential equation, and by bringing in the flux terms and source terms of interest, different problems can be easily solved. In addition, the algorithm framework adopts block-based AMR as an adaptive strategy. On the one hand, an unstructured grid is used to define the initial root blocks at the block level, which has the advantage of processing complex graphic boundaries. On the other hand, the structured grid divided inside the block has a simple data structure, which makes it have a high computational efficiency. Then, based on the block and quadtree structure, an algorithm framework for data communication between blocks with parent-adjacent relationships and between CPUs is established. While flexibly performing adaptive p and h refinement, the Hillbert space curve filling technology and SCF are used to dynamically balance the load between CPUs, so as to achieve a single CPU thread computing task balance, reduce the window waiting period of multi-core parallel computing, quickly process the computing tasks of the current time step and enter the calculation of the next time step. The present invention aims to solve the problem that although the existing discontinuous Galerkin method has the characteristics of high precision, the large-scale increase in the amount of calculation leads to a significant reduction in the calculation efficiency.
[0181] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0182] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0183] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may be subject to various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A method for constructing an adaptive subdivision of unstructured grids and an efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method, characterized in that: The method is: S1. selecting indicator variables according to flow field characteristics, and formulating adaptive criteria according to the indicator variables; S2, searching for the area of the flow field characteristic details concerned according to the adaptive criterion, and marking the indicator variables on the blocks at the corresponding positions of the area to obtain the block subdivision level of each area; S3, comparing the block subdivision level of each area with the current level to obtain the judgment condition and level difference condition for subdivision or merging; S4, performing a subdivision or merging operation according to the judgment condition of subdivision or merging and the level difference condition to obtain a new grid after subdivision or merging; S5, the numerical solution on the original blocks grid is transferred to the subdivided or merged new grid L 2 Projection, obtain the projected blocks grid; S6, using the Hillbert space filling curve to sort the projected block grids of all regions in the flow field to obtain a sorting graph; S7, splitting according to different regional weights according to the sorting graph, and assigning the splitting results to each computing core, after each computing core is assigned, using the data of adjacent blocks to process the information interaction layer grid of the projected blocks grid to obtain a processed blocks grid; The processing includes filling in values or defining boundary conditions; S8, using a discontinuous Galerkin solver to perform numerical calculations on the processed blocks grid; S9, enabling CPUs with different loads to communicate with each other and initializing variables within the thread, while entering the next time increment step, repeating steps S2 to S8 until the calculation is terminated, and obtaining an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method.
2. The method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method according to claim 1 is characterized in that: The marking indicator variable in step S2 is an indicator variable for marking grid subdivision.
3. The method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method according to claim 1 is characterized in that: The marking indicator variable in step S2 is an indicator variable for marking grid merging.
4. The method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method according to claim 1 is characterized in that: The judgment condition for the subdivision in step S3 is that the blocks subdivision level of each area is greater than the current level.
5. The method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method according to claim 1 is characterized in that: The merging judgment condition in step S3 is that the blocks subdivision level of each area is smaller than the current level.
6. The method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method according to claim 1, characterized in that: The level difference condition in step S3 is that the level difference between adjacent blocks is not greater than 1.
7. A system for constructing an adaptive subdivision of unstructured grids and an efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method, characterized in that: The system includes a storage device, the storage device including: for selecting indicator variables according to flow field characteristics and formulating adaptive criteria according to the indicator variables; Used to find the area of the flow field feature details of interest according to the adaptive criterion, and mark the indicator variables on the blocks at the corresponding positions of the area to obtain the blocks subdivision level of each area; Used to compare the blocks subdivision level of each area with the current level to obtain the judgment conditions and level difference conditions for subdivision or merging; Used to perform a subdivision or merging operation according to the judgment condition of the subdivision or merging and the level difference condition, and obtain a new grid after the subdivision or merging; Used to transfer the numerical solution on the original blocks grid to the new grid after subdivision or merging. L 2 Projection, obtain the projected blocks grid; It is used to sort the projected blocks grids of all regions in the flow field using the Hillbert space filling curve to obtain a sorting graph; Used to split the sorting graph according to different regional weights and assign the split results to each computing core. After the computing cores are assigned, the information interaction layer grid of the projected blocks grid is processed using the data of adjacent blocks to obtain a processed blocks grid; The processing includes filling in values or defining boundary conditions; Used to perform numerical calculation on the processed blocks grid using a discontinuous Galerkin solver; It is used to enable CPUs with different loads to communicate with each other, initialize variables within the thread, and enter the next time increment step at the same time. The above steps are repeated until the calculation is terminated, and an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method is obtained.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the method for constructing a non-structured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method as described in any one of claims 1 to 6.
9. A computer device, characterized in that: The device includes a memory and a processor, wherein a computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the method for constructing an unstructured grid adaptive subdivision and efficient parallel high-precision algorithm framework based on the discontinuous Galerkin method as described in any one of claims 1 to 6.
