A geometrically adaptive grid generation method for electromagnetic computing
Through the geometry engine to process geometric interference and closed surfaces, combined with adaptive mesh generation technology, it solves the problems of geometric interference and closed surfaces in electromagnetic simulation, achieves high-precision large-scale mesh generation, and improves the efficiency and accuracy of electromagnetic calculations.
Patent Information
- Application Number
- CN202410376765.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-03-29
AI Technical Summary
In electromagnetic simulation analysis, it is difficult for the existing technology to effectively handle geometric interference and closed surface problems in the input geometric model, and there is a lack of adaptive size control during mesh generation, resulting in low calculation accuracy and efficiency, especially in multi-scale electromagnetic problems. Generate high-precision large-scale meshes.
The geometry engine Open CASCADE is used to process closed surfaces and geometric interference to generate continuous geometric representations without geometric errors. Combined with user-specified size control parameters, adaptive meshes are generated through remeshing and Delaunay triangulation methods, and parallel mesh refinement is used. Generate large-scale grids in different ways.
It achieves high-precision mesh generation, solves geometric interference and closed surface problems, supports adaptive mesh size control, improves simulation accuracy and efficiency, and is suitable for electromagnetic calculations of complex geometric models.
Smart Images

Figure CN118095012B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the research field of electromagnetic simulation analysis, and in particular to a geometric adaptive grid generation method for electromagnetic calculation. Background Art
[0002] In the field of electromagnetic simulation analysis, there are multi-scale electromagnetic problems, which means that at a fixed operating frequency, the target surface grid exhibits multi-scale characteristics, and the grid size in some local areas is much smaller than 0.1 wavelength. This type of problem is widely present in electromagnetic simulation, especially when the target contains electrically large and electrically small structures, such as the fine antenna structure on aircraft and ships in electromagnetic simulation, and the thin layer of absorbing material coated on radar stealth targets. Multi-scale electromagnetic problems are an important research direction in the field of electromagnetic simulation, and the development of its solution methods and technologies is of great significance to promoting the advancement of electromagnetic simulation technology.
[0003] Finite element analysis can be used to solve multi-scale feature problems in the field of electromagnetic simulation analysis, construct a grid of the electromagnetic environment space, and set different boundary conditions for each part of the device. Mesh generation is a very important step in the process of electromagnetic computational simulation analysis using finite element analysis. The quality and scale of the mesh will affect the calculation accuracy and convergence speed of the solver. In finite element simulation, mesh generation often needs to rely on user experience, which costs a lot of interaction and time. There are still some problems with mesh generation in the field of electromagnetic computing, including:
[0004] (1) The input geometry model has geometric interference and closed surface problems. The geometry model is the input for surface mesh generation, and the surface mesh is the boundary condition for volume mesh generation. Therefore, an effective input model is the key factor in surface mesh generation and determines the success of numerical simulation. However, there is often geometric interference between multiple volumes in the input geometry model, and closed surfaces may also cause errors during mesh generation.
[0005] (2) Geometric adaptive size control. A good mesh needs to have a density control of size, taking into account both model accuracy and scale to meet the basic requirements of the finite element analysis method. Mesh generation usually uses a uniform size control method, but the final effect of this method is not very ideal and is only applicable to simple models. For complex geometric models, it is necessary to rely on experience to manually modify the size, which is time-consuming and laborious. Therefore, it is necessary to comprehensively consider the geometric characteristics of the geometric model itself and perform adaptive mesh size control. Set the mesh size according to the characteristics of the geometric model, set a smaller unit size in the key area of electromagnetic calculation to ensure that the model fineness does not affect the simulation accuracy, and set a larger unit size in other areas to increase the mesh generation speed.
[0006] (3) Large-scale mesh generation. In the field of electromagnetic simulation analysis, high-precision electromagnetic calculations often require large-scale meshes of hundreds of millions or even billions of units. Considering the limitations of memory usage and time performance of mesh generation, it is usually impossible to effectively generate such large-scale meshes using serial methods. Therefore, large-scale mesh generation is achieved through parallel mesh subdivision, while ensuring that the mesh obtained after subdivision fits the original geometric model. Summary of the invention
[0007] In view of this, an embodiment of the present invention provides a geometric adaptive grid generation method for electromagnetic computing to solve the problems existing in the background technology.
[0008] The technical solution adopted in the embodiment of the present invention is as follows:
[0009] A geometric adaptive grid generation method for electromagnetic calculations, comprising:
[0010] S1: using the geometry engine Open CASCADE to read the geometry model data, process the closed surface and geometry interference problems, obtain a continuous geometry representation without geometry errors, and use the triangle mesh generation algorithm implemented by the geometry engine to obtain a discrete geometry representation without geometry errors, wherein the discrete geometry representation without geometry errors is a discrete triangle mesh;
[0011] S2: using the discrete geometric representation without geometric errors as a background grid, solving the geometric features of the geometric model, the geometric features including geometric proximity features and geometric curvature features, and constructing an initial unit size field adapted to the geometric features on the background grid points according to the size control parameters specified by the user;
[0012] S3: using a regridding method to subdivide the initial unit size field to obtain a unit size field with higher precision, and using a size field smoothing algorithm on the unit size field with higher precision to obtain a geometrically adaptive unit size field;
[0013] S4: according to the continuous geometric representation without geometric errors and in accordance with the size control requirements of the geometric adaptive unit size field, using the frontier advancing method to discretize the surface of the geometric model piece by piece to obtain a surface triangle mesh, and merging all the surface triangle meshes to obtain an overall surface triangle mesh;
[0014] S5: controlling the size distribution according to the geometric adaptive unit size field, and generating a coarse tetrahedral mesh for the overall surface triangle mesh by using a Delaunay triangulation method;
[0015] S6: Use the open source software metis to perform regional decomposition on the rough tetrahedral mesh to obtain multiple sub-meshes, use a mesh subdivision method to subdivide the sub-meshes in parallel to obtain subdivided sub-meshes, and merge the subdivided sub-meshes to obtain a large-scale mesh model.
[0016] Optionally, the geometric model data is read with the help of the geometry engine Open CASCADE, the closed surface and geometric interference problems are processed, and a continuous geometric representation without geometric errors is obtained. A triangular mesh generation algorithm implemented by the geometry engine is used to obtain a discrete geometric representation without geometric errors, and the discrete geometric representation without geometric errors is a discrete triangular mesh, which specifically includes:
[0017] S11: Use the geometry engine Open CASCADE to read the geometry model data, handle closed surfaces and geometric interference issues, and obtain a continuous geometry representation without geometric errors;
[0018] S12: using the triangular mesh generation algorithm implemented by the geometry engine to obtain a discrete geometric representation without geometric errors, wherein the discrete geometric representation without geometric errors is a discrete triangular mesh.
[0019] Optionally, the size control parameters specified by the user specifically include:
[0020] The maximum cell size hmax, the minimum cell size hmin, the curvature adaptation parameter theta, the proximity factor nseg, and the size gradient value beta of adjacent cells.
[0021] Optionally, the discrete geometric representation without geometric errors is used as a background grid to solve the geometric features of the geometric model, where the geometric features include geometric proximity features and geometric curvature features, and an initial unit size field adapted to the geometric features is constructed on the background grid points according to size control parameters specified by the user, specifically including:
[0022] S21: using the discrete geometric representation without geometric errors as a background grid, solving geometric features of the geometric model, where the geometric features include geometric proximity features and geometric curvature features;
[0023] S22: defining a cell size value adapted to the geometric features on the background grid points according to a size control parameter specified by a user, and acquiring an initial cell size field.
[0024] Optionally, the initial cell size field is subdivided using a regridding method to obtain a higher precision cell size field, and a size field smoothing algorithm is used on the higher precision cell size field to obtain a geometrically adaptive cell size field, specifically including:
[0025] S31: using the open source software mmgs to re-grid the background grid to obtain a subdivided unit size field, and for the subdivided unit size field, inheriting the size value of the initial unit size field to obtain a unit size field with higher precision;
[0026] S32: Using a size field smoothing algorithm on the higher-precision unit size field to obtain a geometrically adaptive unit size field.
[0027] Optionally, according to the continuous geometric representation without geometric errors and in accordance with the size control requirements of the geometric adaptive unit size field, the surface of the geometric model is discretized piece by piece using a frontier advancing method to obtain a surface triangle mesh, and all the surface triangle meshes are merged to obtain an overall surface triangle mesh, specifically including:
[0028] S41: discretizing the curve of the geometric model to obtain an overall line grid according to the continuous geometric representation without geometric errors and the size control requirement of the geometric adaptive unit size field;
[0029] S42: According to the overall line mesh and in accordance with the size control requirements of the geometric adaptive unit size field, a frontier advancing method is used to discretize the surface of the geometric model to obtain an overall surface triangular mesh.
[0030] Optionally, according to the continuous geometric representation without geometric errors and in accordance with the size control requirements of the geometric adaptive unit size field, discretizing the curve of the geometric model to obtain the overall line grid specifically includes:
[0031] S411: querying the adaptive unit size field to determine the discrete size requirement of the curve;
[0032] S412: inserting nodes on the curve according to the discrete size requirement of the curve, and connecting adjacent nodes to obtain a line grid;
[0033] S413: Repeat S411 and S412 until all curves of the geometric model are discretized, and merge the line meshes to obtain an overall line mesh.
[0034] Optionally, according to the overall line mesh and in accordance with the size control requirement of the geometric adaptive unit size field, the surface of the geometric model is discretized using a frontier advancing method to obtain an overall surface triangular mesh, specifically comprising:
[0035] S421: querying the adaptive unit size field to determine the discrete size requirement of the surface;
[0036] S422: Finding ideal points according to the discrete size requirements of the surface, and generating a triangular mesh of the surface;
[0037] S423: Repeat S421 and S422 until all surfaces of the geometric model are discretized, and merge all the surface triangle meshes to obtain the overall surface triangle mesh.
[0038] Optionally, according to the geometric adaptive unit size field, the size distribution is controlled, and for the overall curved surface triangle mesh, a coarse tetrahedral mesh is generated by using a Delaunay triangulation method, specifically including:
[0039] S51: construct the initial tetrahedral mesh covering the calculation area and insert all boundary points;
[0040] S52: using a boundary recovery method to recover the mesh edges and triangular mesh units in the overall surface triangular mesh in the initial tetrahedral mesh to obtain a tetrahedral mesh after boundary recovery;
[0041] S53: generating an internal point at the centroid of the unit according to the adaptive size field, and inserting the new internal point into the tetrahedral mesh body after the boundary restoration to obtain a tetrahedral mesh with the internal point inserted;
[0042] S54: Combine smoothing and topological transformation methods to delete tetrahedral elements of poor quality and optimize mesh quality.
[0043] The technical solution provided by the present invention includes the following beneficial effects:
[0044] This method can accept geometric models with poor quality, meet the requirements of finite element analysis methods by dealing with closed surfaces and geometric interference problems, and provide an effective input for surface mesh generation and volume mesh generation.
[0045] This method can support adaptive mesh size control, set the mesh size according to the geometric characteristics of the geometric model, and encrypt the mesh in the key area of electromagnetic calculation, which can effectively improve the mesh generation speed without affecting the simulation accuracy.
[0046] This method can realize large-scale mesh generation of geometric models through a parallel mesh subdivision method, taking into account the memory usage and time performance requirements of the mesh generation process, while ensuring that the subdivided mesh fits the original geometric model, and can be applied to high-precision electromagnetic calculations in the field of electromagnetic simulation analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 A flow chart of a method for generating a geometrically adaptive grid for electromagnetic computing provided in an embodiment of the present application;
[0048] Figure 2 To verify the embodiments of the algorithm provided in this application, a schematic diagram of the geometric model of a typical model passenger aircraft is provided;
[0049] Figure 3 This is a schematic diagram of the discrete surface mesh of the passenger aircraft model;
[0050] Figure 4 Schematic diagram for calculating the adaptive size value of the curvature feature;
[0051] Figure 5 This is a schematic diagram of the problem of no gaps, degenerate units, and mesh overlap in the discrete surface mesh of the passenger aircraft model;
[0052] Figure 6 A schematic diagram of an adaptive size field generated for a passenger aircraft model that meets the geometric characteristics and electromagnetic calculation requirements;
[0053] Figure 7 Schematic diagram of the triangular surface mesh generated for the airliner model that conforms to the size field distribution;
[0054] Figure 8 Schematic diagram of the coarse tetrahedral mesh generated for the airliner model;
[0055] Fig. 9 Schematic diagram of cross-section detail of the coarse tetrahedral mesh generated for the airliner model;
[0056] Fig.10 Schematic diagram of a vertical cut of the coarse tetrahedral mesh generated for the airliner model;
[0057] Fig.11 A schematic diagram of a unit subdivision scheme used in parallel subdivision;
[0058] Fig.12 This is a schematic diagram of the parallel region decomposition results of the passenger aircraft model;
[0059] Fig.13 This is a schematic diagram of the parallel encryption effect of the rough tetrahedral mesh of the passenger aircraft model;
[0060] Fig.14 A schematic diagram comparing the radar cross section results of the 360-degree aircraft in the xoz plane and yoz plane with those of comsol for the passenger aircraft model using the mesh generated by the algorithm provided in this application;
[0061] Fig.15 A schematic diagram of the comparison between the 360-degree aircraft radar cross section results and FEKO in the xoz plane and yoz plane of the mesh generated by the algorithm provided in this application for the passenger aircraft model; DETAILED DESCRIPTION
[0062] The method of the present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0063] like Figure 1 As shown, the present invention provides a geometric adaptive grid generation method for electromagnetic calculation, comprising the following steps:
[0064] S1: Using the geometry engine Open CASCADE to read the geometry model data, process the closed surface and geometry interference problems, obtain a continuous geometry representation without geometry errors, and use the triangle mesh generation algorithm implemented by the geometry engine to obtain a discrete geometry representation without geometry errors, wherein the discrete geometry representation without geometry errors is a discrete triangle mesh, including the following sub-steps:
[0065] S11: Use the geometry engine Open CASCADE to read the geometry model data, handle closed surfaces and geometric interference issues, and obtain a continuous geometry representation without geometric errors;
[0066] Specifically, the geometric error refers to an incomplete, illegal or inconsistent part in the geometric model, such as a closed surface and geometric interference problem.
[0067] Specifically, the closed surface refers to the situation where the boundary ring of the surface is composed of only one curve, and the curve has the same endpoints. Such a surface will cause errors during the mesh generation process. The closed surface processing is to split the curves with the same endpoints to ensure that the boundary ring of the surface contains at least two curves.
[0068] Specifically, the geometric interference problem refers to the intersection interference between geometric elements, which includes four situations: overlap, tangency, intersection and inclusion, including point-to-point interference, line-to-line interference, surface-to-surface interference and body-to-body interference. Geometric models often contain multiple bodies, and there will be interference between multiple bodies. Interference areas will generate intersecting grids, which cannot be used for electromagnetic calculations. Different repair strategies are used for different types of geometric interference:
[0069] (1) Merge interference points to handle point-to-point interference;
[0070] (2) Find the minimum distance point and merge the curves to deal with line-to-line interference;
[0071] (3) Generate new surfaces from the surface interference parts to process the surface interference;
[0072] (4) Divide the volume interference part into new volumes to process volume interference.
[0073] Specifically, the continuous geometric representation is a method for describing a geometric model, which represents a geometric shape as a combination of a series of basic geometric elements, such as points, lines, and surfaces.
[0074] The geometric models in actual application scenarios are often very complex, containing multiple bodies. There is geometric interference between the geometric bodies, and the existence of closed surfaces will affect the generation of the mesh, resulting in inaccurate electromagnetic calculation results. By dealing with the geometric interference and closed surface problems in the geometric model, the mesh generation obstacle caused by the representation of geometric errors is solved, so that the requirements of the finite element analysis method are met, an effective geometric input is provided for the subsequent mesh generation process, and more accurate electromagnetic calculation results are obtained.
[0075] S12: using the triangular mesh generation algorithm implemented by the geometry engine to obtain a discrete geometric representation without geometric errors, wherein the discrete geometric representation without geometric errors is a discrete triangular mesh.
[0076] Specifically, the discrete geometric representation is a method for describing a geometric model, which represents a geometric structure as a finite set of discrete points, boundaries, and facets, wherein the discrete geometric representation without geometric errors is a discrete triangle mesh.
[0077] In a complex electromagnetic environment, passenger planes will be disturbed by electromagnetic radiation fields. Radar Cross Section (RCS) is used to characterize the ability of a target to reflect radar waves. The radar cross section of a passenger plane is an important factor affecting the detection and identification of a passenger plane by radar. In a flight mission, the smaller the RCS of a passenger plane, the more difficult it is to be detected by an enemy radar system, the stronger its survivability, and the higher its mission performance. This application will take the typical geometric model of a passenger plane as an example to explain in detail. The passenger plane input geometric model is as follows: Figure 2 The original geometric model of the passenger plane is processed with closed surfaces and geometric interference, and a clean discrete triangular mesh is constructed using the triangulation algorithm of the geometry engine. The clean discrete triangular mesh contains 140,568 triangular mesh units. The specific mesh style is as follows: Figure 3 As shown in , the discrete triangular mesh does not have gaps, degenerate units, or mesh overlap problems. Figure 5 shown.
[0078] S2: using the discrete geometric representation without geometric errors as a background grid, solving the geometric features of the geometric model, the geometric features including geometric proximity features and geometric curvature features, and constructing an initial unit size field adapted to the geometric features on the background grid points according to the size control parameters specified by the user, including the following sub-steps:
[0079] S21: using the discrete geometric representation without geometric errors as a background grid, solving geometric features of the geometric model, where the geometric features include geometric proximity features and geometric curvature features;
[0080] Specifically, the triangular face of the background mesh contains the index information of the face on which it is located. The background mesh point is projected onto the face on which it is located to obtain the parameter coordinates of the point. The principal curvature of the background mesh point can be defined as:
[0081]
[0082] Wherein H is the average curvature of the background grid points, K is the Gaussian curvature of the background grid points, k1 and k2 are the two principal curvatures of the surface at the point (u, v), and the maximum principal curvature is calculated as the geometric curvature feature.
[0083] Specifically, the geometric proximity features include line proximity, surface proximity and volume proximity. Line proximity is the length of the line segment, surface proximity is approximately the ratio of the area of the surface to the perimeter, and volume proximity is approximately the ratio of the volume to the surface area. The geometric proximity feature takes the minimum value of these three values.
[0084] S22: defining a cell size value adapted to the geometric features on the background grid points according to a size control parameter specified by a user, and acquiring an initial cell size field.
[0085] Specifically, the size control parameters specified by the user include:
[0086] 1. Maximum cell size hmax, i.e. the maximum size limit of the grid cell;
[0087] 2. Minimum cell size hmin, which is the minimum size limit of the grid cell;
[0088] 3. The curvature adaptation parameter theta controls the adaptability of the surface mesh to the curvature during generation;
[0089] 4. The proximity factor nseg controls the connectivity between adjacent cells during mesh refinement;
[0090] 5. The size gradient value beta of adjacent cells controls the size change rate between adjacent grid cells.
[0091] The adaptive size value of the curvature feature of the background grid point is:
[0092] h c (S)=|SE|=2r s sin(φ c / 2)
[0093] where r s is the radius of curvature, which is the inverse of the curvature characteristic r s =1 / k, such as Figure 4 As shown in the normal direction, r sA circle tangent to the main curvature curve of the surface is constructed as the radius. In order to make the generated mesh adapt to the curvature characteristics, the mesh edge SE is required to be close to the main curvature curve of the surface, and the opening angle φ c Should be small enough, φ c The user specifies the size control parameter for the curvature adaptation parameter theta.
[0094] The proximity features and curvature features are used to characterize the geometric features of the geometric model itself. The size control parameters are set by the user. The unit size value on the background grid point is calculated based on the proximity features and curvature features of the geometric model and the size control parameters so that adaptive grid size control can be achieved on the basis of satisfying the user's size settings.
[0095] S3: using a regridding method to subdivide the initial unit size field to obtain a higher precision unit size field, using a size field smoothing algorithm on the higher precision unit size field to obtain a geometrically adaptive unit size field, including the following sub-steps:
[0096] S31: using the open source software mmgs to re-grid the background grid to obtain a subdivided unit size field, and for the subdivided unit size field, inheriting the size value of the initial unit size field to obtain a unit size field with higher precision;
[0097] Specifically, the subdivided unit size field will inherit the size value of the initial unit size field, and the size distribution is basically consistent with the initial size field, so as to obtain a higher precision unit size field. In this embodiment, the obtained higher precision unit size field contains 175482 triangular mesh units, which is an increase of 34914 mesh units.
[0098] S32: Using a size field smoothing algorithm on the higher-precision unit size field to obtain a geometrically adaptive unit size field.
[0099] Specifically, the geometric adaptive unit size field generated by this embodiment is as follows: Figure 6 As shown, the area with large geometric changes in the model boundary similar to B is the key area for calculation, and the size is set relatively small, while the area with a flat wing similar to A is set to a relatively large size, and the size field transition is smooth at this time.
[0100] S4: according to the continuous geometric representation without geometric errors, according to the size control requirements of the geometric adaptive unit size field, using the frontier advancing method to discretize the surface of the geometric model piece by piece to obtain a surface triangle mesh, and merging all the surface triangle meshes to obtain an overall surface triangle mesh; comprising the following sub-steps:
[0101] S41: according to the continuous geometric representation without geometric errors and in accordance with the size control requirements of the geometric adaptive unit size field, discretizing the curve of the geometric model to obtain an overall line grid; comprising the following sub-steps:
[0102] S411: querying the adaptive unit size field to determine the discrete size requirement of the curve;
[0103] Specifically, according to the size control information of the adaptive size field, the size values of the curve at different positions are determined to obtain the discrete size requirements of the curve.
[0104] S412: inserting nodes on the curve according to the discrete size requirement of the curve, and connecting adjacent nodes to obtain a line grid;
[0105] Specifically, according to the discrete size requirement of the curve, nodes are inserted at corresponding positions of the curve, and adjacent nodes are connected according to the shape of the curve to obtain a line grid.
[0106] S413: Repeat S411 and S412 until all curves of the geometric model are discretized, and merge the line meshes to obtain an overall line mesh.
[0107] Specifically, the above steps are repeated until all curves of the geometric model are discretized to obtain line meshes, and adjacent curves are connected and merged to obtain the overall line mesh.
[0108] S42: According to the overall line mesh and in accordance with the size control requirements of the geometric adaptive unit size field, the surface of the geometric model is discretized using a frontier advancing method to obtain an overall surface triangular mesh, including the following sub-steps:
[0109] S421: querying the adaptive unit size field to determine the discrete size requirement of the surface;
[0110] Specifically, according to the size control information of the adaptive size field, the size values of the surface at different positions are determined to obtain the discrete size requirements of the surface. Figure 6 As shown, there are different size values at different positions on the surface, the size value at B is smaller, and the size value at A is larger.
[0111] S422: Finding ideal points according to the discrete size requirements of the surface, and generating a triangular mesh of the surface;
[0112] Specifically, according to the discrete size requirements of the surface, an ideal point is found on the surface, and the frontier advancement method is used based on the ideal point to gradually advance and generate the surface triangular mesh. In this embodiment, according to the requirements of the adaptive size field, area B is the model boundary, the geometric changes are large, it is the key area of electromagnetic calculation, the size setting is relatively small, the density of ideal points is large, and a denser triangular mesh is generated; area A is the wing part, the curvature is small, it is not the key area of electromagnetic calculation, the size setting is relatively large, the density of ideal points is small, so the mesh in this part of the area is relatively sparse.
[0113] S423: Repeat S421 and S422 until all surfaces of the geometric model are discretized, and merge all the surface triangle meshes to obtain the overall surface triangle mesh.
[0114] Specifically, the above steps are repeated until all surfaces of the geometric model are discretized to obtain surface triangular meshes, and adjacent surfaces are connected and merged to obtain the overall surface triangular mesh. In this embodiment, the generated overall surface triangular mesh that meets the size distribution has a total of 472564 units, such as Figure 7 The frontier advancing method is shown to generate an overall surface triangular mesh that conforms to the size field distribution.
[0115] S5: controlling the size distribution according to the geometric adaptive unit size field, generating a coarse tetrahedral mesh for the overall surface triangle mesh by using the Delaunay triangulation method, including the following sub-steps:
[0116] S51: construct the initial tetrahedral mesh covering the calculation area and insert all boundary points;
[0117] Specifically, the boundary and range of the calculation area are determined, an initial tetrahedral mesh covering the calculation area is generated using a Delaunay triangulation method, the mesh boundary and the geometric model boundary are aligned, and boundary points are inserted into the initial tetrahedral mesh.
[0118] S52: using a boundary recovery method to recover the mesh edges and triangular mesh units in the overall surface triangular mesh in the initial tetrahedral mesh to obtain a tetrahedral mesh after boundary recovery;
[0119] Specifically, a boundary recovery method is used to align the boundary of the initial tetrahedral mesh with the boundary of the overall surface triangular mesh, and the triangular mesh units in the overall surface triangular mesh are restored to obtain a tetrahedral mesh after boundary recovery.
[0120] S53: generating an internal point at the centroid of the unit according to the adaptive size field, and inserting the new internal point into the tetrahedral mesh body after the boundary restoration to obtain a tetrahedral mesh with the internal point inserted;
[0121] Specifically, according to the adaptive size field, an internal point is generated at the centroid of the tetrahedral mesh unit, and the newly generated internal point is inserted into the interior of the tetrahedral mesh after boundary restoration to obtain the tetrahedral mesh with the internal point inserted.
[0122] S54: Combine smoothing and topological transformation methods to delete tetrahedral elements of poor quality and optimize mesh quality.
[0123] Specifically, on the tetrahedral mesh with the inserted internal points, the tetrahedral mesh units with poor quality are deleted using smoothing and topological transformation methods, and the mesh quality is optimized to obtain a coarse tetrahedral mesh.
[0124] Specifically, in this embodiment, according to the electromagnetic calculation requirements, two layers of square bounding boxes are added to the aircraft model, tetrahedral mesh units are generated in the bounding box space, and tetrahedral mesh units are not generated inside the aircraft. The generated tetrahedral mesh is as follows: Figure 8 As shown, it contains 1992712 tetrahedral mesh units in total. The specific mesh details are as follows Fig. 9 (cross section) and Fig.10 (vertical section) shown.
[0125] S6: Use the open source software metis to perform regional decomposition on the rough tetrahedral mesh to obtain multiple sub-meshes, use a mesh subdivision method to subdivide the sub-meshes in parallel to obtain subdivided sub-meshes, and merge the subdivided sub-meshes to obtain a large-scale mesh model.
[0126] Specifically, the open source software metis is used to decompose the rough tetrahedral mesh region into multiple sub-grids, and the sub-grids are respectively assigned to each working module, such as Fig.11 The subgrids are subdivided in parallel according to a subdivision method of subdividing one tetrahedron into 8 tetrahedrons to obtain subdivided subgrids, and the subdivided subgrids are merged to obtain a large-scale grid model.
[0127] In the field of electromagnetic computing simulation analysis, high-precision electromagnetic calculations often require large-scale grids of hundreds of millions or even billions of units. Through the parallel mesh subdivision method, the rough tetrahedral mesh area is decomposed and assigned to each working module for mesh subdivision, which solves the problem that the serial method cannot effectively generate large-scale grids and achieves efficient large-scale grid generation.
[0128] The serial method cannot effectively generate such a large-scale grid, and its time performance and memory usage are unacceptable. Decomposing the coarse tetrahedral grid area and assigning it to each working module for grid subdivision can achieve efficient parallel grid subdivision to generate large-scale grids.
[0129] Specifically, in this embodiment, Tianjin supercomputer FT2000 (1024 cores, 32 nodes, 128G per node) is used for parallel subdivision, and the regional decomposition results of the rough tetrahedral mesh of the passenger aircraft model are as follows: Fig.12 As shown in the figure, the parallel encryption effect of the volume mesh is as follows: Fig.13 As shown, the generated large-scale mesh contains a total of 540 million tetrahedral elements.
[0130] Specifically, in this embodiment, the final generated grid is used for electromagnetic calculation to verify the correctness of the algorithm proposed in this application. Boundary conditions are added to the large-scale grid, the outermost bounding box is set to ABC, the inner bounding box is set to TFSF, and the aircraft surface is set to PEC, and the radar scattering cross section of the aircraft model at 100MHz is calculated. The calculation results of this application are compared with the calculation results of the grid generated by comsol. Fig.14 As shown, the 360-degree radar cross-section of the passenger aircraft in the xoz plane and the yoz plane is basically the same. The calculation results of this application are also highly consistent with the results of the electromagnetic field simulation software feko. Fig.15 shown.
[0131] Those skilled in the art will readily appreciate other embodiments of the present application after considering the description and practicing the contents disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The description and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0132] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A geometric adaptive grid generation method for electromagnetic computing, characterized in that: include: S1: using the geometry engine Open CASCADE to read the geometry model data, process the closed surface and geometry interference problems, obtain a continuous geometry representation without geometry errors, and use the triangle mesh generation algorithm implemented by the geometry engine to obtain a discrete geometry representation without geometry errors, wherein the discrete geometry representation without geometry errors is a discrete triangle mesh; S2: using the discrete geometric representation without geometric errors as a background grid, solving the geometric features of the geometric model, the geometric features including geometric proximity features and geometric curvature features, and constructing an initial unit size field adapted to the geometric features on the background grid points according to the size control parameters specified by the user; S3: using a regridding method to subdivide the initial unit size field to obtain a unit size field with higher precision, and using a size field smoothing algorithm on the unit size field with higher precision to obtain a geometrically adaptive unit size field; S4: according to the continuous geometric representation without geometric errors and in accordance with the size control requirements of the geometric adaptive unit size field, using the frontier advancing method to discretize the surface of the geometric model piece by piece to obtain a surface triangle mesh, and merging all the surface triangle meshes to obtain an overall surface triangle mesh; S5: controlling the size distribution according to the geometric adaptive unit size field, and generating a coarse tetrahedral mesh for the overall surface triangle mesh by using a Delaunay triangulation method; S6: using open source software metis to perform regional decomposition on the rough tetrahedral mesh to obtain multiple sub-meshes, using a mesh subdivision method to subdivide the sub-meshes in parallel to obtain subdivided sub-meshes, and merging the subdivided sub-meshes to obtain a large-scale mesh model; The initial unit size field is subdivided by a regridding method to obtain a higher precision unit size field, and a size field smoothing algorithm is used on the higher precision unit size field to obtain a geometrically adaptive unit size field, specifically including: S31: using the open source software mmgs to re-grid the background grid to obtain a subdivided unit size field, and for the subdivided unit size field, inheriting the size value of the initial unit size field to obtain a unit size field with higher precision; S32: using a size field smoothing algorithm for the higher-precision unit size field to obtain a geometrically adaptive unit size field; According to the geometric adaptive unit size field, the size distribution is controlled, and for the overall surface triangle mesh, a coarse tetrahedral mesh is generated by using a Delaunay triangulation method, specifically including: S51: construct the initial tetrahedral mesh covering the calculation area and insert all boundary points; S52: using a boundary recovery method to recover the mesh edges and triangular mesh units in the overall curved surface triangular mesh in the initial tetrahedral mesh to obtain a tetrahedral mesh after boundary recovery; S53: generating an internal point at the centroid of the unit according to the geometric adaptive unit size field, and inserting the new internal point into the tetrahedral mesh volume after the boundary restoration to obtain a tetrahedral mesh with the internal point inserted; S54: Combine smoothing and topological transformation methods to delete tetrahedral elements of poor quality and optimize mesh quality.
2. A geometric adaptive grid generation method for electromagnetic computing according to claim 1, characterized in that: The size control parameters specified by the user specifically include: The maximum cell size hmax, the minimum cell size hmin, the curvature adaptation parameter theta, the proximity factor nseg, and the size gradient value beta of adjacent cells.
3. A geometric adaptive grid generation method for electromagnetic computing according to claim 1, characterized in that: According to the continuous geometric representation without geometric errors and in accordance with the size control requirements of the geometric adaptive unit size field, the surface of the geometric model is discretized piece by piece using the frontier advancing method to obtain a surface triangle mesh, and all the surface triangle meshes are merged to obtain an overall surface triangle mesh, specifically including: S41: discretizing the curve of the geometric model to obtain an overall line grid according to the continuous geometric representation without geometric errors and the size control requirement of the geometric adaptive unit size field; S42: According to the overall line mesh and in accordance with the size control requirements of the geometric adaptive unit size field, a frontier advancing method is used to discretize the surface of the geometric model to obtain an overall surface triangular mesh.
4. A geometric adaptive grid generation method for electromagnetic computing according to claim 3, characterized in that: According to the continuous geometric representation without geometric errors and in accordance with the size control requirements of the geometric adaptive unit size field, the curve of the geometric model is discretized to obtain an overall line grid, including: S411: querying the geometric adaptive unit size field to determine the discrete size requirement of the curve; S412: inserting nodes on the curve according to the discrete size requirement of the curve, and connecting adjacent nodes to obtain a line grid; S413: Repeat S411 and S412 until all curves of the geometric model are discretized, and merge the line meshes to obtain an overall line mesh.
5. The method for generating a geometrically adaptive grid for electromagnetic computing according to claim 3, characterized in that: According to the overall line mesh and in accordance with the size control requirements of the geometric adaptive unit size field, the surface of the geometric model is discretized using a frontier advancing method to obtain an overall surface triangular mesh, including: S421: querying the adaptive unit size field to determine the discrete size requirement of the surface; S422: Finding an ideal point according to the discrete size requirement of the surface, and generating a triangular mesh of the surface; S423: Repeat S421 and S422 until all surfaces of the geometric model are discretized, and merge all the surface triangle meshes to obtain the overall surface triangle mesh.
Citation Information
Patent Citations
Unstructured grid generation method and system, client and server
CN114492249A
Geometric self-adaptive numerical simulation grid generation method and device for electronic device assembly
CN115169274A
