Efficient checking method for electromagnetic wave port simulation design
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-23
- Publication Date
- 2026-08-11
AI Technical Summary
[0006]针对上述存在的问题或不足,本发明的目的在于提供一种电磁波端口仿真设计的高效检查方法,用以解决现有波端口边界检查流程中重复碰撞检测次数多、复杂模型前处理时间长以及端口外侧金属背景缺失导致误判的问题
[0029] 1. Traditional port checking processes tend to be conservative and exhaustive, prioritizing accuracy over speed. This is typically a separate process: when checking a port, the metal surface is searched, contact is assessed, and Boolean operations are performed. In other words, the geometric relationships obtained during the model validity check are not structurally preserved, and the port checking phase cannot directly identify which bodies have no spatial relation to the current port. This redundant operation often wastes resources. This invention, however, constructs a list of body inclusion relationships before port checking, enabling candidate object selection before contact determination between the port surface and the metal surface. This avoids repeated collision detection on completely unrelated metal surfaces.
Smart Images

Figure CN122549360A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computational electromagnetics numerical simulation and computer-aided engineering preprocessing technology, specifically a high-efficiency checking method for electromagnetic wave port simulation design, which is aimed at checking the rationality of wave port boundaries in electromagnetic simulation software. Background Technology
[0002] In high-frequency electromagnetic simulation, antenna design, microwave device analysis, and electromagnetic compatibility analysis, port excitation is the core interface for energy to enter or leave the computational model. Wave ports are commonly used for external excitation of waveguide structures, stripline structures, coplanar waveguide structures, and other transmission line structures. The appropriateness of their setting directly affects the solution of excitation modes, the calculation of S-parameters, and the reliability of the final electromagnetic field simulation results.
[0003] For waveports, simulation software typically assumes that each waveport connects to a semi-infinite transmission line or waveguide, and that the cross-section and material properties of this semi-infinite structure are consistent with the waveport cross-section. Therefore, waveports should generally be located at the model boundary and satisfy the boundary condition that one side is connected to the computational domain and the other side is connected to a metallic conductor. If the port is suspended in the background space, lacks necessary metallic boundaries on both sides, is completely enclosed by metal, or has an unreasonable segmentation of the port surface, the port mode cannot be applied correctly, and the computational model may even fail to be generated.
[0004] Existing port inspection processes typically require traversing all bodies and metal surfaces in the model, performing collision detection or Boolean operations on each port surface and each candidate metal surface. For multi-port, multi-metal body, or complex assembly models, this type of process generates a large number of repetitive collision detections, and the computational complexity increases rapidly with the number of model geometry and metal surfaces, resulting in excessively long preprocessing times. On the other hand, traditional processes lack a unified external metal background for support, which can easily lead to missed or false detections of port boundaries when the port is located on the outer boundary of the model or when the background outside the port is not explicitly modeled.
[0005] Therefore, it is necessary to propose an electromagnetic wave port simulation design and inspection method that can reduce redundant geometric traversal and collision detection while ensuring the correctness of wave port inspection. Summary of the Invention
[0006] To address the aforementioned problems or shortcomings, the present invention aims to provide an efficient inspection method for electromagnetic wave port simulation design, thereby solving the problems of excessive repeated collision detection, long preprocessing time for complex models, and misjudgment caused by the lack of metal background on the outside of the port in the existing wave port boundary inspection process.
[0007] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0008] An efficient inspection method for electromagnetic wave port simulation design includes the following steps:
[0009] Step 1: Obtain the electromagnetic simulation model to be checked that has passed the model rationality check and boundary excitation check, extract the wave port boundary surface in the electromagnetic simulation model to be checked, and convert the wave port boundary surface into a port sheet for geometric processing.
[0010] Step 2: Identify multiple port pieces belonging to the same wave port based on the wave port boundary attributes. Merge multiple port pieces, mesh surfaces, or discrete surfaces belonging to the same wave port into a single complete port surface, forming a port surface list.
[0011] Step 3: Before performing port metal boundary judgment, perform volume collision detection on the electromagnetic simulation model to be inspected; construct a volume inclusion relationship list, which is used to record the inclusion, intersection or irrelevance relationships between model volumes and between model volumes and port-related geometric objects; and construct a calculation model list and a metal list according to material properties.
[0012] Before determining the contact between the port surface and the metal surface, a volume inclusion relationship list is pre-built. The volume inclusion relationship list is used to exclude model bodies and metal surfaces that are not related to the port surface, so that the port inspection process does not need to perform collision detection on all metal surfaces one by one.
[0013] Step 4: Based on the overall envelope of the electromagnetic simulation model to be inspected, generate a metal bounding box with a size 1-10% larger than the overall envelope. If the size of the metal bounding box is too small, it will cause geometric errors when performing Boolean difference operations with the electromagnetic simulation model to be inspected. If the size of the metal bounding box is too large, it will waste time and space resources.
[0014] The metal bounding box is then subjected to a Boolean difference operation with the electromagnetic simulation model to be inspected to obtain a metal background for judging the outer boundary of the waveport. The metal background is used to supplement the outer boundary of the port, thereby improving the completeness and accuracy of the waveport boundary inspection.
[0015] The metal bounding box generated based on the overall envelope range can completely enclose all metal targets, non-metal targets, and waveport regions in the model. The metal bounding box will serve as the basic geometric object for subsequent waveport boundary determination, metal surface identification, and port connectivity analysis, so that even when the port is not directly connected to a clear metal surface, the metal attribution relationship of the port boundary can still be determined by the external bounding structure.
[0016] Furthermore, the waveport is discretized using a quadrilateral grid to ensure that the port surface and the surrounding metal structure have a unified geometric description.
[0017] Step 5: Traverse the geometric targets in the electromagnetic simulation model to be inspected, extract metal targets according to material properties, boundary properties or preset metal identifiers, add the metals to the metal list described in Step 3, and establish a non-metal list, add the non-metals to the non-metal list, and then merge the internal dividing surfaces, overlapping surfaces or adjacent coplanar regions on the surface of the metal body.
[0018] The metal list is used to record metal surfaces, metal bodies, or metal sheets that participate in the determination of port conductor boundaries; the non-metal list is used to record dielectric structures or auxiliary structures that are not used as port conductor boundaries.
[0019] Furthermore, the merging process refers to merging metal surfaces that meet the conditions of coplanarity, adjacency, or coincidence into the corresponding coincident entities, and establishing a mapping relationship between the metal surface and the coincident entity, thereby reducing redundant metal surfaces caused by model splitting, mesh generation, or geometric modeling, and improving the accuracy of metal identification on the port side.
[0020] Step 6: Based on the volume inclusion relationship list from Step 3, filter out candidate metal surfaces that are positionally related to the current port surface from the metal list and metal background, and exclude metal surfaces that are unrelated to the current port surface.
[0021] Step 7: Use the surface contact function to determine the contact relationship between the current port surface and the candidate metal surface, and add the candidate metal surfaces that have effective contact with the current port surface to the first side metal surface list and the second side metal surface list of the port surface, respectively, according to the port surface normal direction or spatial position relationship.
[0022] Then, the merged port surface described in step 2 is collided with the metal enclosure, and the metal surface lists on both sides of the port surface are added. When there is an effective contact, adjacency, or closed boundary relationship between the port surface and the metal enclosure, the corresponding metal enclosure surface is added to the metal surface list on the corresponding side of the port surface.
[0023] Step 8: Based on the port face and the metal faces on both sides, determine the metal faces on the left and right sides of the port respectively. Using the port face as the judgment benchmark, according to the normal direction of the port face and the list of metal faces on both sides of the port obtained in Step 7, subtract the metal face corresponding to the first side metal face list from the current port face, and subtract the metal face corresponding to the second side metal face list from the current port face to obtain the judgment results of the first side remaining face and the second side remaining face.
[0024] Step 9: Perform an XOR judgment on the judgment results of the first side remaining surface and the second side remaining surface. When the XOR judgment result is true, determine that the current wave port meets the wave port check principle that one side is backed by the calculation domain and the other side is in close contact with the metal body; when the XOR judgment result is false, output the wave port setting error information.
[0025] Step 10: After the current wave port check passes, extract all metal boundaries related to the current port surface. The metal boundaries include the metal boundaries at the edge of the port surface, the metal surface boundaries adjacent to the port surface, and the metal boundaries formed by the metal background. By performing an integrity check on the metal boundaries, determine whether the wave port meets the port setting requirements in the electromagnetic simulation, and output the wave port check results.
[0026] Furthermore, in step 1, the wave port boundary surface is identified from the model surface using the ACIS attribute index function, and the port boundary surface is converted into a sheet body using the ACIS sheet extraction function api_sheet_from_ff, so that port surface merging and Boolean operations can be performed subsequently.
[0027] Furthermore, in step 7, the ACIS surface contact function api_touch_faces is used for contact judgment. The surface contact function only judges whether the port surface is in contact with the candidate metal surface, which reduces spatial relationship classification and redundant calculations compared with the complete surface collision function.
[0028] In summary, the beneficial effects of the present invention are as follows:
[0029] 1. Traditional port checking processes tend to be conservative and exhaustive, prioritizing accuracy over speed. This is typically a separate process: when checking a port, the metal surface is searched, contact is assessed, and Boolean operations are performed. In other words, the geometric relationships obtained during the model validity check are not structurally preserved, and the port checking phase cannot directly identify which bodies have no spatial relation to the current port. This redundant operation often wastes resources. This invention, however, constructs a list of body inclusion relationships before port checking, enabling candidate object selection before contact determination between the port surface and the metal surface. This avoids repeated collision detection on completely unrelated metal surfaces.
[0030] 2. Traditional port inspection processes lack a unified external metallic background. When a port is located at the outer boundary of the model or the background outside the port is not explicitly modeled, port boundary issues such as missed detection or misjudgment are prone to occur. This invention, by constructing a metallic bounding box slightly larger than the model and forming a metallic background, can provide a unified external geometric reference for the outer boundary wave ports, reducing the probability of missed detection and misjudgment.
[0031] 3. Traditional port inspection processes involve numerous redundant inclusion checks and other judgments during surface collision function detection. This invention, however, replaces surface collision functions with surface contact functions, reducing unnecessary spatial relationship judgments and significantly shortening the design inspection time for complex multi-port models.
[0032] 4. This invention can directly serve as a check for the rationality of port boundaries before generating calculation models in electromagnetic simulation software, and has good engineering applicability. Attached Figure Description
[0033] Figure 1 This is a flowchart of the waveport inspection process of the present invention.
[0034] Figure 2 The example is a complex multi-port model.
[0035] Figure 3 This is a comparison of the efficiency of the embodiments of the present invention with traditional waveport inspection methods. Detailed Implementation
[0036] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.
[0037] This embodiment uses, as follows Figure 2 Taking a complex multi-port model as an example, this paper focuses on verifying the efficiency improvement of port inspection in design inspection. Specifically, a multi-metal boundary surface with 49 ports, 54 models, and 7484 boundary surfaces is used to effectively detect the efficiency improvement of the technical solution of this invention.
[0038] This embodiment is implemented based on the ACIS solid modeling kernel, and the process is as follows: Figure 1 As shown: First, the wave port boundary surfaces are extracted from the electromagnetic simulation model that has passed the initial inspection and converted into port sheets. For multiple discrete sheets of the same wave port, they are merged into a complete port surface according to port attributes or numbers. Then, a pre-established list of volume inclusion relationships is used to filter out metal bodies and metal surfaces that are not positionally associated with the current port, avoiding collision detection by traversing all metal surfaces. Simultaneously, an extended metal bounding box is generated based on the model envelope, and a metal background is formed through Boolean difference operations, serving as a reference for judging the outer boundary of the port. Next, the port surface and the selected candidate metal surfaces are contacted using `api_touch_faces`, and lists of first and second side metal surfaces are established according to the positional relationship between the two sides of the port surface. Finally, the remaining surface results after subtracting the two side metal surfaces from the port surface are calculated, and an XOR judgment is used to determine whether the port meets the requirement of one side backing onto the computational domain and the other side being in close contact with a metal body; if so, the relevant metal mesh boundary is extracted for subsequent computational model generation and port excitation application. This process can reduce invalid collision detection while ensuring the correctness of the inspection, improving the efficiency of wave port inspection.
[0039] Figure 3For the efficiency comparison of the embodiments of the present invention with the traditional wave port inspection method, the overall design inspection time of the complex multi-wave port model is improved by 45.05 times, especially the port excitation inspection is improved by 83.74 times. This is because the volume inclusion relationship is pre-constructed, so the port surface does not need to be collision detected with the antenna shield in the model, which significantly improves the efficiency of port excitation inspection.
[0040] As can be seen from the above embodiments, the present invention first obtains the waveport boundary surface in the electromagnetic simulation model to be inspected, and merges multiple discrete pieces belonging to the same waveport into a complete port surface; then, before port inspection, it constructs a volume inclusion relationship list to filter candidate metal surfaces that are positionally associated with the port surface; subsequently, it generates a metal bounding box slightly larger than 5% of the model envelope range, and constructs a metal background through Boolean difference operations; then, it uses a surface contact function to determine the contact relationship between the port surface and the candidate metal surfaces and the metal background, and establishes a list of metal surfaces on both sides of the port; finally, it performs Boolean subtraction operations on the port surface minus the metal surfaces on both sides, and determines whether the waveport meets the inspection principle of one side backing against the computational domain and the other side being in close contact with a metal body through XOR judgment. The present invention can reduce redundant collision detection in complex models, improve the efficiency and accuracy of waveport inspection, and is suitable for port boundary rationality inspection before electromagnetic simulation software calculation model generation.
Claims
1. An efficient inspection method for electromagnetic wave port simulation design, characterized in that, Includes the following steps: Step 1: Obtain the electromagnetic simulation model to be checked that has passed the model rationality check and boundary excitation check, extract the wave port boundary surface in the electromagnetic simulation model to be checked, and convert the wave port boundary surface into a port sheet for geometric processing; Step 2: Identify multiple port pieces belonging to the same wave port based on the wave port boundary attributes, merge multiple port pieces, mesh surfaces, or discrete surfaces belonging to the same wave port into a complete port surface, and form a port surface list. Step 3: Before performing port metal boundary judgment, perform volume collision detection on the electromagnetic simulation model to be inspected; construct a volume inclusion relationship list, which is used to record the inclusion, intersection, or irrelevance relationships between model volumes and between model volumes and port-related geometric objects; and distinguish between the calculation model list and the metal list based on material properties. Step 4: Based on the overall envelope range of the electromagnetic simulation model to be inspected, generate a metal bounding box with a size 1-10% larger than the overall envelope range; and perform a Boolean difference operation between the metal bounding box and the electromagnetic simulation model to be inspected to obtain a metal background for judging the outer boundary of the wave port. Step 5: Traverse the geometric targets in the electromagnetic simulation model to be inspected, extract metal targets according to material properties, boundary properties or preset metal identifiers, add the metals to the metal list described in Step 3, and establish a non-metal list, add the non-metals to the non-metal list, and then merge the internal dividing surfaces, overlapping surfaces or adjacent coplanar regions on the surface of the metal body. The metal list is used to record metal surfaces, metal bodies, or metal sheets that participate in the determination of port conductor boundaries; the non-metal list is used to record dielectric structures or auxiliary structures that are not used as port conductor boundaries. Step 6: Based on the volume inclusion relationship list from Step 3, filter out candidate metal surfaces that are positionally related to the current port surface from the metal list and metal background, and exclude metal surfaces that are unrelated to the current port surface. Step 7: Use the surface contact function to determine the contact relationship between the current port surface and the candidate metal surface, and add the candidate metal surfaces that have effective contact with the current port surface to the first side metal surface list and the second side metal surface list of the port surface, respectively, according to the port surface normal direction or spatial position relationship. Then, the collision relationship between the merged port surface described in step 2 and the metal enclosure box is determined. When there is an effective contact, adjacency or closed boundary relationship between the port surface and the metal enclosure box, the corresponding metal enclosure box surface is added to the metal surface list of the corresponding side of the port surface. Step 8: Based on the port face and the metal faces on both sides, determine the metal faces on the left and right sides of the port respectively; taking the port face as the judgment benchmark, according to the normal direction of the port face and the list of metal faces on both sides of the port obtained in Step 7, subtract the metal face corresponding to the first side metal face list from the current port face, and subtract the metal face corresponding to the second side metal face list from the current port face to obtain the judgment result of the first side remaining face and the judgment result of the second side remaining face. Step 9: Perform an XOR check on the results of the first and second remaining surface checks. If the XOR check result is true, determine that the current waveport meets the waveport check principle that one side is backed by the computation domain and the other side is in close contact with the metal body. If the XOR check result is false, output the waveport setting error message. Step 10: After the current wave port check passes, extract all metal boundaries related to the current port surface. The metal boundaries include the metal boundaries at the edge of the port surface, the metal surface boundaries adjacent to the port surface, and the metal boundaries formed by the metal background. By performing an integrity check on the metal boundaries, determine whether the wave port meets the port setting requirements in the electromagnetic simulation, and output the wave port check results.
2. The efficient inspection method for electromagnetic wave port simulation design as described in claim 1, characterized in that: In step 1, the wave port boundary surface is identified from the model surface using the ACIS attribute index function, and then converted into a sheet body using the ACIS sheet extraction function api_sheet_from_ff.
3. The efficient inspection method for electromagnetic wave port simulation design as described in claim 1, characterized in that: In step 4, the waveport is discretized using a quadrilateral grid.
4. The efficient inspection method for electromagnetic wave port simulation design as described in claim 1, characterized in that, The merging process in step 5 refers to merging metal surfaces that meet the conditions of being coplanar, adjacent, or coincident into the corresponding coincident entities, and establishing a mapping relationship between the metal surfaces and the coincident entities.
5. The efficient inspection method for electromagnetic wave port simulation design as described in claim 1, characterized in that: In step 7, the ACIS surface contact function api_touch_faces is used to determine the contact. The surface contact function only determines whether the port surface is in contact with the candidate metal surface.