A method, system, computer device, and storage medium for constructing tetrahedral meshes

By calculating the geometric parameters of the PCB structure to construct a tetrahedral mesh and merging conflict meshes, it solves the problem of converting the complex PCB structure into a mesh numerical model, achieves fast and accurate meshing and simplified geometric data processing, and provides Mesh data format and multi-tagged information suitable for electromagnetic simulation.

CN118446145BActive Publication Date: 2024-08-30JULIN TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410896701.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-08-30
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

In the field of electronic design automation, existing technology is difficult to quickly and accurately convert complex PCB structures into three-dimensional grid numerical models for electromagnetic simulation analysis. Moreover, the number of grid units is large and the geometric data processing is complex, making it impossible to provide a universal network. lattice data format and multi-tagged information.

Method used

By calculating the stack-up settings of the PCB structure and the geometric parameters of the device settings, a tetrahedral mesh is constructed, conflict meshes are merged, mark information is added, and a universal mesh data format is provided to facilitate visualization and simulation processing.

Benefits of technology

It realizes the rapid and accurate division of complex PCB structures into three-dimensional tetrahedral meshes, simplifies geometric data processing, reduces the number of mesh units, provides a universal mesh data format, and supports multiple mark information to facilitate subsequent visualization. and simulation processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118446145B
    Figure CN118446145B
Patent Text Reader

Abstract

The present invention provides a tetrahedral mesh construction method, system, computer equipment and storage medium, the method comprising the steps of: calculating the geometric parameters of each layer and each device of the PCB structure to be simulated according to the stacking setting and device setting of the PCB structure to be simulated; constructing the tetrahedral mesh of the layer and the device according to the geometric parameters of each layer and each device; merging the conflicting meshes in the tetrahedral mesh and making the layer and the device conformal; adding marking information to the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device respectively; storing the marked points, mesh units and their corresponding marking information in a preset format. The scheme can quickly and accurately divide a complex PCB structure into three-dimensional tetrahedral meshes, and the geometric data processing is simple, the number of mesh units used is small, and a universal mesh data format can be provided, and multiple marking information can be added, which is convenient for visualization and subsequent simulation processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic design automation, and in particular to a tetrahedral mesh construction method, system, computer equipment and storage medium. Background Art

[0002] In the field of electronic design automation (EDA), electromagnetic simulation plays a vital role in the design and verification of PCB layout. PCB layout simulation is a process of simulating and analyzing PCB layout and wiring using professional electromagnetic simulation software. It can help designers verify and optimize circuit design, analyze electromagnetic compatibility, save time and cost, reduce risks, and support theoretical research. It plays an irreplaceable role in PCB design.

[0003] 3D meshing for PCB layout simulation is a complex and important step in electromagnetic simulation, which involves dividing the complex PCB structure into smaller, computable units or grids for subsequent numerical analysis. How to accurately and quickly convert the complex and massive geometric shapes in the PCB layout into a grid numerical model is a major challenge in electromagnetic simulation analysis of PCB layout. Summary of the invention

[0004] The purpose of the present invention is to provide a tetrahedral mesh construction method, system, computer equipment and storage medium, which can quickly and accurately divide complex PCB structures into three-dimensional tetrahedral meshes, and the geometric data processing is simple, the number of mesh units used is small, a universal mesh data format can be provided, and multiple marking information can be added to facilitate visualization and subsequent simulation processing.

[0005] The technical solution provided by the present invention is as follows:

[0006] In a first aspect, the present invention provides a method for constructing a tetrahedral mesh, comprising the steps of:

[0007] Calculating geometric parameters of each layer and each device of the PCB structure to be simulated according to the stacking setting and device setting of the PCB structure to be simulated;

[0008] Constructing tetrahedral meshes of layers and devices according to geometric parameters of each layer and each device;

[0009] Merging conflicting meshes in the tetrahedral mesh and making the layers and devices conformal;

[0010] Adding marking information to the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device respectively;

[0011] The marked points, grid cells and their corresponding marking information are stored in a preset format.

[0012] This solution calculates the geometric parameters of each layer and each device through the stacking setting and device setting of the PCB structure, and constructs the tetrahedral meshes of the layer and the device respectively, and then merges the conflicting tetrahedral meshes to form the tetrahedral meshes of all layer structures and components into a whole. According to the material properties of each layer and the grouping of each device, the tetrahedral mesh of the non-metallic layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device are marked and stored. It can realize the rapid and accurate division of complex PCB structures into PCB tetrahedral meshes, and the geometric data processing is simple, the number of mesh units used is small, and a universal mesh data format can be provided. Multiple marking information can be added to facilitate subsequent visualization and simulation processing.

[0013] In some embodiments, the stacking setting includes material properties of each layer in the PCB structure to be simulated, thickness of each layer, two-dimensional parameter information of the geometric shape of each layer, and the sequence number of the layer;

[0014] The device settings include group information of each device in the PCB structure to be simulated, device type, serial number of the layer to which the device belongs, and two-dimensional parameter information of the device geometry.

[0015] In some implementations, the step of calculating the geometric parameters of each layer and each device of the PCB structure to be simulated includes:

[0016] According to the information of each layer in the stacking setting, the geometric parameters of each layer in the three-dimensional rectangular coordinate system are calculated, including a continuous closed point set, a z coordinate value, and a thickness value;

[0017] According to the information of each device in the device setting, the geometric parameters of each device in the three-dimensional rectangular coordinate system are calculated, including a continuous closed point set, a z coordinate value, and a thickness value.

[0018] In some embodiments, when constructing the tetrahedral mesh of the layers and the devices according to the geometric parameters of the layers and the devices, the geometric parameters of the layers and the devices are processed separately, including:

[0019] Constructing a closed curve by sequentially adding continuous closed point sets in a three-dimensional rectangular coordinate system and connecting them to form the closed curve;

[0020] Constructing a boundary plane, adding new points on the plane inside the closed curve, connecting the planes forming the triangular mesh, and constructing a two-dimensional boundary plane of the bottom surface of the geometric shape;

[0021] Construct a tetrahedral mesh of the geometric body, translate the two-dimensional boundary plane along the z-axis to the z-coordinate value, and stretch it positively along the z-axis according to the corresponding thickness value, and then add new points in the three-dimensional space to connect and form the tetrahedral mesh of the geometric body.

[0022] In some embodiments, merging conflicting meshes in the tetrahedral mesh specifically includes:

[0023] Boolean operations are used to process layers and devices, and devices and devices in units of layers. The intersection of layers and devices is assigned to the device and the layer is hollowed out. The intersection of devices and devices is merged.

[0024] Then, Boolean operations are performed on the layers that have undergone Boolean operations, and the adjacent and repeated boundary surfaces between the layers are merged to form the geometric entities of each layer into a whole.

[0025] In some embodiments, according to the material properties of each layer, marking information is added to all the tetrahedral meshes of the non-metallic layer, marking information is added to the boundary triangle meshes on all boundary surfaces of the metal layer, and the tetrahedral meshes inside the boundary are deleted;

[0026] According to the grouping information of each device, marking information is added to the boundary triangle meshes on the boundaries of all devices and the tetrahedral meshes inside the boundaries are deleted;

[0027] Add label information to all remaining tetrahedral meshes.

[0028] In some implementations, the tetrahedral mesh and boundary triangle mesh with the marking information are output to a preset file in the form of an unstructured mesh.

[0029] In a second aspect, the present invention further provides a tetrahedral mesh construction system, comprising:

[0030] A PCB geometric parameter processing module, used for calculating the geometric parameters of each layer and each device of the PCB structure to be simulated according to the stacking setting and device setting of the PCB structure to be simulated;

[0031] PCB layer mesh building module, used to build tetrahedral meshes of each layer according to the geometric parameters of each layer;

[0032] PCB device mesh construction module, used to construct the tetrahedral mesh of each device according to the geometric parameters of each device;

[0033] A mesh combining module for merging conflicting meshes in the tetrahedral mesh and making the layers and devices conformal;

[0034] A boundary marking module, used to add marking information to the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device respectively;

[0035] The grid file generation module is used to store the marked points, grid cells and their corresponding marking information in a preset format.

[0036] In a third aspect, the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the tetrahedral mesh construction method described in the first aspect.

[0037] In a fourth aspect, the present invention further provides a computer storage medium having a computer program or instructions stored thereon, wherein the computer program or instructions, when executed by a processor, implements the steps of the tetrahedral mesh construction method described in the first aspect.

[0038] According to a tetrahedral mesh construction method, system, computer device and storage medium provided by the present invention, it is possible to quickly and accurately divide a complex PCB structure into three-dimensional tetrahedral meshes, and the geometric data processing is simple, the number of mesh units used is small, a universal mesh data format can be provided, and multiple marking information can be added to facilitate subsequent visualization and simulation processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The preferred implementation scheme will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present solution.

[0040] Figure 1 It is a schematic diagram of the overall process of an embodiment of the present invention;

[0041] Figure 2 This is an example diagram of a tetrahedral mesh of a PCB structure to be simulated before combination according to an embodiment of the present invention;

[0042] Figure 3 is an example diagram of tetrahedral mesh combination of a PCB structure to be simulated according to another embodiment of the present invention;

[0043] Figure 4 is a flow chart of an embodiment of the present invention;

[0044] Figure 5 Schematic diagram of the system structure of an embodiment of the present invention.

[0045] Numbers in the figure: 1-PCB geometric parameter processing module; 2-PCB layer grid construction module; 3-PCB device grid construction module; 4-grid combination module; 5-boundary marking module; 6-grid file generation module. DETAILED DESCRIPTION

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings and other implementation methods can be obtained based on these drawings without creative work.

[0047] In order to simplify the drawings, only the parts related to the present invention are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, in some figures, only one of the parts with the same structure or function is schematically drawn or marked. In this article, "one" not only means "only one", but also means "more than one".

[0048] In the field of electronic design automation (EDA), electromagnetic simulation plays a vital role in the design and verification of PCB layout. PCB layout simulation is a process of simulating and analyzing PCB layout and wiring using professional electromagnetic simulation software. It can help designers verify and optimize circuit design, analyze electromagnetic compatibility, save time and cost, reduce risks, and support theoretical research. It plays an irreplaceable role in PCB design. The three-dimensional meshing of PCB layout simulation is a complex and important step in electromagnetic simulation. It involves dividing the complex PCB structure into smaller, computable units or grids for subsequent numerical analysis. How to accurately and quickly convert the complex and huge geometric shapes in the PCB layout into a grid numerical model is a major problem in electromagnetic simulation analysis of PCB layout. This application starts with the layers and devices of the PCB structure, constructs tetrahedral grids respectively, merges the conflicting grids to obtain a whole, and marks them according to the material properties of each layer and the grouping of each device. It can quickly and accurately divide the complex PCB structure into PCB tetrahedral grids, and can add multiple marking information to facilitate subsequent visualization and simulation processing. The present invention will be described in detail below with reference to the accompanying drawings:

[0049] In one embodiment, the reference specification Figure 1 The present invention provides a tetrahedral mesh construction method, comprising the steps of:

[0050] S100, calculating geometric parameters of each layer and each device of the PCB structure to be simulated according to the stacking setting and device setting of the PCB structure to be simulated;

[0051] S200, constructing tetrahedral meshes of layers and devices according to geometric parameters of each layer and each device;

[0052] S300, merging conflicting meshes in the tetrahedral mesh and making the layers and devices conformal;

[0053] S400, adding marking information to the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer, and the boundary triangle mesh of the device respectively;

[0054] S500: Store the marked points, grid units and their corresponding marking information according to a preset format.

[0055] Specifically, the stacking settings include the material properties of each layer in the PCB structure to be simulated, the thickness of each layer, the two-dimensional parameter information of the geometric shape of each layer and the serial number of the layer; the device settings include the grouping information of each device in the PCB structure to be simulated (the grouping of each device in the PCB structure to be simulated is pre-set), the device type, the serial number of the layer to which the device belongs, and the two-dimensional parameter information of the device's geometric shape.

[0056] The material properties for each layer include:

[0057] 1. Metal layer: material information of the metal layer, and non-metal fill material information that needs to be set additionally for this layer. The material information of the metal layer itself indicates the material information of the device located in this layer, and the non-metal fill material information indicates that the other spaces of this layer need to be filled with dielectric materials of this material type except for the metal devices;

[0058] 2. Non-metal layer: Only the material information of the non-metal layer itself needs to be set. No metal devices will be placed on this layer, and all non-metal dielectric materials are used. The description of the materials of each layer in this article shall be based on the above.

[0059] The stacking settings and device settings of the PCB structure to be simulated are the pre-input conditions for constructing a three-dimensional PCB tetrahedral mesh and marking the boundaries of this application. The information will be adjusted according to the different PCB structures to be simulated. When inputting, it can be manually input by the staff or obtained by calculation of the preset model. This application does not limit it. By converting the geometric shapes of all structures including layers and devices into a unified three-dimensional geometric parameter description, it can facilitate subsequent batch processing in the computer program.

[0060] When constructing a tetrahedral mesh, the present application sets the geometric parameters of each layer and each device of the PCB structure to be simulated separately, that is, each layer and device of the PCB structure to be simulated constructs a corresponding tetrahedral mesh. In order to improve the efficiency of constructing the tetrahedral mesh, the geometric parameter information of each layer and each device can be calculated in batch processing.

[0061] Since a corresponding tetrahedral mesh is constructed for each layer and device of the PCB structure to be simulated, there may be intersections between layers and devices, and between devices. This application merges conflicting tetrahedral meshes to make the tetrahedral meshes of all layer structures and components form a whole. According to the material properties of each layer and the grouping of each device, the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer, and the boundary triangle mesh of the device are marked and stored, which can achieve multiple marking of the boundaries of the tetrahedral mesh.

[0062] This solution calculates the geometric parameters of each layer and each device through the stacking setting and device setting of the PCB structure, and constructs the tetrahedral meshes of the layer and the device respectively, and then merges the conflicting tetrahedral meshes to form the tetrahedral meshes of all layer structures and components into a whole. According to the material properties of each layer and the grouping of each device, the tetrahedral mesh of the non-metallic layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device are marked and stored. It can realize the rapid and accurate division of complex PCB structures into three-dimensional PCB tetrahedral meshes, and the geometric data processing is simple, the number of mesh units used is small, and a universal mesh data format can be provided. Multiple marking information can be added to facilitate subsequent visualization and simulation processing.

[0063] In one embodiment, based on the above-mentioned embodiment, the geometric parameters of each layer and each device of the PCB structure to be simulated are calculated, including:

[0064] According to the information of each layer in the stacking setting, the geometric parameters of each layer in the three-dimensional rectangular coordinate system are calculated, including a continuous closed point set, a z coordinate value, and a thickness value;

[0065] According to the information of each device in the device setting, the geometric parameters of each device in the three-dimensional rectangular coordinate system are calculated, including a continuous closed point set, a z coordinate value, and a thickness value.

[0066] Through the geometric parameter information of each layer and each device of the PCB structure to be simulated, the lines, surfaces and volumes of the tetrahedral mesh corresponding to each layer and each device can be constructed in sequence. Figure 4 When constructing the tetrahedral mesh of layers and devices according to the geometric parameters of each layer and each device, the geometric parameters of each layer and each device are processed separately, including:

[0067] S210, constructing a closed curve, adding continuous closed point sets in sequence in a three-dimensional rectangular coordinate system, and connecting them to form a closed curve;

[0068] S220, constructing a boundary plane, adding new points on the plane inside the closed curve, connecting the planes forming the triangular mesh, and constructing a two-dimensional boundary plane of the bottom surface of the geometric shape;

[0069] S230, constructing a tetrahedral mesh of the geometric body, translating the two-dimensional boundary plane along the z-axis to the z-coordinate value, and positively stretching along the z-axis according to the corresponding thickness value, and then adding new points in the three-dimensional space to connect and form a tetrahedral mesh of the geometric body.

[0070] When constructing the tetrahedral meshes corresponding to each layer and each device of the PCB structure to be simulated, this solution first constructs a closed curve. Since the geometric parameter information of the stacking setting and the device setting both contain continuous closed point sets, the continuous closed point sets can be added in sequence in the three-dimensional rectangular coordinate system to connect to form a closed curve; then the boundary plane is constructed. By adding new points on the plane inside the closed curve in the three-dimensional rectangular coordinate system, the plane forming the triangular mesh can be connected to construct the two-dimensional boundary plane of the bottom surface of the geometric shape; finally, the tetrahedral mesh of the geometric body is constructed. Since the geometric parameter information of the stacking setting and the device setting both contain the z coordinate value and thickness value corresponding to each layer and device, in the three-dimensional rectangular coordinate system, the two-dimensional boundary plane is translated along the z axis to the z coordinate value, and stretched in the positive direction along the z axis according to the corresponding thickness value, and then new points are added in the three-dimensional space to connect to form the tetrahedral mesh of the geometric body.

[0071] In one embodiment, based on the above embodiment, merging conflicting meshes in a tetrahedral mesh specifically includes:

[0072] Boolean operations are used to process layers and devices, and devices and devices in units of layers. The intersection of layers and devices is assigned to the device and the layer is hollowed out. The intersection of devices and devices is merged.

[0073] Then, Boolean operations are performed on the layers that have undergone Boolean operations, and the adjacent and repeated boundary surfaces between the layers are merged to form the geometric entities of each layer into a whole.

[0074] Boolean operation is a digital symbolized logical deduction method, including union, intersection, and subtraction. This logical operation method is cited in graphics processing operations to combine simple basic graphics to produce new shapes, and develop from two-dimensional Boolean operations to Boolean operations of three-dimensional graphics. When this solution is for conflicting grids in a tetrahedral grid, it calculates in layers and uses Boolean operations to process layers and devices, and devices and devices. This will generate intersecting Boolean fragments, so that the intersecting parts of the layers and devices belong to the devices and the layers are hollowed out, and the intersecting parts of the devices are merged; after the Boolean combination, the layer structure and the boundary grid of the device no longer have conflicting and intersecting parts, but there may still be some repeated boundary surfaces. Therefore, this application continues to perform Boolean operations on the layers that have undergone Boolean operations, and merges the adjacent and repeated boundary surfaces between the layers, so that the geometric entities of each layer can be combined into a whole. Reference manual attached Figure 2 and 3 , Figure 2 This is an example diagram of the tetrahedral mesh of the PCB structure to be simulated before combination. Figure 3 It is an example diagram of the tetrahedral mesh combination of the PCB structure to be simulated. After Boolean combination, the conflicting tetrahedral meshes can be merged to form a whole with the tetrahedral meshes of each layer and the device.

[0075] In one embodiment, based on the above embodiment, marking information is added to the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer, and the boundary triangle mesh of the device, respectively, specifically including:

[0076] According to the material properties of each layer, add marking information to all tetrahedral meshes of non-metallic layers, add marking information to the boundary triangle meshes on all boundary surfaces of the metal layer and delete the tetrahedral meshes inside the boundary; according to the different grouping information of each device, add marking information to the boundary triangle meshes on the boundary of all devices and delete the tetrahedral meshes inside the boundary; add marking information to all tetrahedral meshes remaining after the above processing. Through the above marking method, it is possible to achieve multiple marking of the boundaries of tetrahedral meshes, which is convenient for subsequent visualization and simulation processing.

[0077] In one embodiment, based on the above-mentioned embodiment, the marked points, grid units and their corresponding marking information are stored in a preset format, specifically including:

[0078] The tetrahedral mesh and boundary triangle mesh with marking information are output in the form of unstructured mesh to a preset file (for example, a VTK format file, a MESH format file, etc., which is not limited in this application). The file includes: all point information, marked triangle mesh unit information, marked tetrahedral mesh unit information, and marking information of each mesh unit. At this point, the tetrahedral mesh generation and mesh boundary marking of a PCB layout are realized, which can be viewed and further processed with the help of text tools, visualization tools, etc.

[0079] In one embodiment, the reference specification Figure 5 The present invention provides a tetrahedron mesh construction system, comprising: a PCB geometric parameter processing module 1, a PCB layer mesh construction module 2, a PCB device mesh construction module 3, a mesh combination module 4, a boundary marking module 5 and a mesh file generation module 6.

[0080] The PCB geometric parameter processing module 1 is used to calculate the geometric parameters of each layer and each device of the PCB structure to be simulated according to the stacking setting and device setting of the PCB structure to be simulated;

[0081] The PCB layer mesh construction module 2 is used to construct the tetrahedral mesh of each layer according to the geometric parameters of each layer;

[0082] The PCB device grid construction module 3 is used to construct a tetrahedral grid of each device according to the geometric parameters of each device;

[0083] The mesh combination module 4 is used to merge conflicting meshes in the tetrahedral mesh and make the layers and devices conformal;

[0084] The boundary marking module 5 is used to add marking information to the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device respectively;

[0085] The grid file generation module 6 is used to store the marked points, grid cells and their corresponding marking information according to a preset format.

[0086] This solution calculates the stacking settings and device settings of the PCB structure through the PCB geometric parameter processing module 1, obtains the geometric parameters of each layer and each device, and constructs the tetrahedral meshes of the layer and the device through the PCB layer mesh construction module 2 and the PCB device mesh construction module 3 respectively, and then merges the conflicting tetrahedral meshes through the mesh combination module 4, and combines the tetrahedral meshes of all layer structures and components into a whole. According to the material properties of each layer and the grouping of each device, the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device are marked and stored through the boundary marking module 5, which can realize the rapid and accurate division of the complex PCB structure into three-dimensional PCB tetrahedral meshes, and the geometric data processing is simple, the number of mesh units used is small, and a universal mesh data format can be provided, and multiple marking information can be added to facilitate subsequent visualization and simulation processing.

[0087] In one embodiment, the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the tetrahedral mesh construction method of the aforementioned embodiment.

[0088] In one embodiment, the present invention further provides a computer storage medium having a computer program or instruction stored thereon, and when the computer program or instruction is executed by a processor, the steps of the tetrahedral mesh construction method of the aforementioned embodiment are implemented.

[0089] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.

Claims

1. A tetrahedral mesh construction method, characterized in that: Includes steps: Calculating geometric parameters of each layer and each device of the PCB structure to be simulated according to the stacking setting and device setting of the PCB structure to be simulated, including: calculating geometric parameters of each layer in a three-dimensional rectangular coordinate system according to information of each layer in the stacking setting, including a continuous closed point set, a z coordinate value, and a thickness value; calculating geometric parameters of each device in a three-dimensional rectangular coordinate system according to information of each device in the device setting, including a continuous closed point set, a z coordinate value, and a thickness value; Constructing tetrahedral meshes of layers and devices according to the geometric parameters of each layer and each device, and processing the geometric parameters of each layer and each device separately, including: constructing a closed curve, adding a continuous closed point set in a three-dimensional rectangular coordinate system in sequence, connecting to form the closed curve; constructing a boundary plane, adding new points on the plane inside the closed curve, connecting to form a plane of a triangular mesh, and constructing a two-dimensional boundary plane of the bottom surface of the geometric shape; constructing a tetrahedral mesh of a geometric body, translating the two-dimensional boundary plane along the z-axis to the z-coordinate value, and positively stretching along the z-axis according to the corresponding thickness value, and then adding new points in the three-dimensional space to connect to form the tetrahedral mesh of the geometric body; Merging conflicting meshes in the tetrahedral mesh and making the layers and devices conformal; Adding marking information to the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device respectively; The marked points, grid cells and their corresponding marking information are stored in a preset format.

2. The tetrahedral mesh construction method according to claim 1, characterized in that: The stacking setting includes the material properties of each layer in the PCB structure to be simulated, the thickness of each layer, the two-dimensional parameter information of the geometric shape of each layer and the sequence number of the layer; The device settings include group information of each device in the PCB structure to be simulated, device type, serial number of the layer to which the device belongs, and two-dimensional parameter information of the device geometry.

3. The tetrahedral mesh construction method according to claim 1 or 2, characterized in that: The merging of conflicting meshes in the tetrahedral mesh specifically includes: Boolean operations are used to process layers and devices, and devices and devices in units of layers. The intersection of layers and devices is assigned to the device and the layer is hollowed out. The intersection of devices and devices is merged. Then, Boolean operations are performed on the layers that have undergone Boolean operations, and the adjacent and repeated boundary surfaces between the layers are merged to form the geometric entities of each layer into a whole.

4. The tetrahedral mesh construction method according to claim 1 or 2, characterized in that: According to the material properties of each layer, marking information is added to all the tetrahedral meshes of the non-metal layer, marking information is added to the boundary triangle meshes on all boundary surfaces of the metal layer, and the tetrahedral meshes inside the boundary are deleted; According to the grouping information of each device, marking information is added to the boundary triangle meshes on the boundaries of all devices and the tetrahedral meshes inside the boundaries are deleted; Add label information to all remaining tetrahedral meshes.

5. The method for constructing a tetrahedral mesh according to claim 4, characterized in that: The tetrahedral mesh and boundary triangle mesh with the marking information are output to a preset file in the form of an unstructured mesh.

6. A tetrahedral mesh construction system, characterized in that: include: The PCB geometric parameter processing module is used to calculate the geometric parameters of each layer and each device of the PCB structure to be simulated according to the stacking setting and device setting of the PCB structure to be simulated, including: calculating the geometric parameters of each layer in the three-dimensional rectangular coordinate system according to the information of each layer in the stacking setting, including a continuous closed point set, a z coordinate value, and a thickness value; calculating the geometric parameters of each device in the three-dimensional rectangular coordinate system according to the information of each device in the device setting, including a continuous closed point set, a z coordinate value, and a thickness value; PCB layer mesh building module, used to build tetrahedral meshes of each layer according to the geometric parameters of each layer; PCB device mesh construction module, used to construct the tetrahedral mesh of each device according to the geometric parameters of each device; A mesh combining module for merging conflicting meshes in the tetrahedral mesh and making the layers and devices conformal; A boundary marking module, used to add marking information to the tetrahedral mesh of the non-metal layer, the boundary triangle mesh of the metal layer and the boundary triangle mesh of the device respectively; A grid file generation module, used for storing the marked points, grid cells and their corresponding marking information in a preset format; The PCB layer grid construction module and the PCB device grid construction module process the geometric parameters of each layer and each device respectively, including: constructing a closed curve, adding a continuous closed point set in sequence in the three-dimensional rectangular coordinate system, and connecting them to form the closed curve; constructing a boundary plane, adding new points on the plane inside the closed curve, connecting them to form a plane of a triangular grid, and constructing a two-dimensional boundary plane of the bottom surface of the geometric shape; constructing a tetrahedral mesh of a geometric body, translating the two-dimensional boundary plane along the z-axis to the z-coordinate value, and stretching it forward along the z-axis according to the corresponding thickness value, and then adding new points in the three-dimensional space to connect them to form the tetrahedral mesh of the geometric body.

7. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the tetrahedral mesh construction method according to any one of claims 1 to 5.

8. A computer storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the tetrahedral mesh construction method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Full-wave electromagnetic simulation method and system for integrated circuit under lossy and dispersion-free medium

    CN113887160A

  • Method, system, medium and equipment suitable for PCB hot spot checking and heat dissipation simulation

    CN114239442A