A method of converting AEDT files to a three-dimensional electromagnetic model

By converting AEDT files to JSON format and reconstructing the geometric, electromagnetic, and solution conditions in the target electromagnetic simulation software, the problems of incomplete model information and long processing time in the prior art are solved, and efficient 3D electromagnetic model conversion is achieved.

CN115357962BActive Publication Date: 2026-03-31XIDIAN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing methods for converting three-dimensional electromagnetic models only convert the geometric structure, failing to completely convert the electromagnetic conditions, and are time-consuming.

Method used

The AEDT file is converted into a JSON format file. By parsing the geometric data, electromagnetic data, and solution settings, an operation sequence chain is constructed. The geometric, electromagnetic, and solution conditions are then reconstructed in the target electromagnetic simulation software. The point, line, and surface sequence mapping relationship is established using the ACIS interface of the 3D geometry engine.

Benefits of technology

The complete conversion of the 3D electromagnetic model was achieved, shortening the conversion time and improving modeling efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115357962B_ABST
    Figure CN115357962B_ABST
Patent Text Reader

Abstract

The application provides a method for converting an AEDT file into a three-dimensional electromagnetic model, and the implementation steps are as follows: performing format conversion on the AEDT file; performing analysis on the JSON format file; splitting the analysis result of the JSON format file and storing the split result; drawing geometric entities of the three-dimensional electromagnetic model and establishing a corresponding relationship between point-line-surface serial numbers in two electromagnetic simulation software; setting electromagnetic conditions of the three-dimensional electromagnetic model; setting solving conditions of the three-dimensional electromagnetic model; and obtaining a conversion result. By calling a three-dimensional geometric engine ACIS interface, the mapping relationship between point-line-surface serial numbers and geometric entities is constructed, the conversion of geometric features and electromagnetic features can be simultaneously realized, the information conversion is complete, and by calling the three-dimensional geometric engine ACIS interface, geometric entities are directly drawn in the target electromagnetic simulation software, thereby solving the technical problem that a CAD software needs to be opened for a long time in the prior art, and the modeling efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of three-dimensional data processing and relates to a method for converting three-dimensional electromagnetic models. Specifically, it relates to a method for converting AEDT files into three-dimensional electromagnetic models, which can be used to convert three-dimensional electromagnetic models in Ansys HFSS to other electromagnetic simulation software. Background Technology

[0002] A three-dimensional electromagnetic model is a polygonal representation of an object, plus the necessary electromagnetic conditions, forming a whole. It is usually displayed using a computer or other video equipment.

[0003] Among numerous electromagnetic simulation software programs, Ansys HFSS, as the world's first commercially available 3D structural electromagnetic field simulation software, is recognized as the industry standard for 3D electromagnetic field design and analysis. A large amount of research in electromagnetic fields is based on Ansys HFSS. Therefore, the conversion of 3D electromagnetic models from Ansys HFSS has become a necessary requirement.

[0004] Existing methods for converting 3D models have significant drawbacks, specifically: firstly, they only convert the 3D geometry, neglecting the electromagnetic conditions; secondly, they require rebuilding the model in two different electromagnetic simulation software programs, resulting in lengthy conversion times. For example, patent application No. 202210565015.7, entitled "A 3D CAD Model Data Processing System and Method," discloses a method for converting 3D CAD models. This method establishes a drawing operation mapping table to record the correspondence between drawing operations in different commercial CAD software programs; embeds the drawing operation mapping table as a plug-in into different commercial CAD software programs; records user drawing behavior and generates a drawing operation record table; when a commercial CAD software exports the original 3D CAD model to a universal format file, it packages the corresponding drawing operation record table into a unified format file; the unified format file is imported into another commercial CAD software program, which prompts the user to choose between directly parsing the universal format file or redrawing the 3D CAD model; if the user chooses the latter, the other commercial CAD software redraws the 3D CAD model based on the drawing operation record table and the drawing operation mapping table. This method transforms the geometric features of the model but does not process the electromagnetic features, resulting in incomplete model information transformation. Furthermore, constructing the operation mapping table requires opening CAD software and utilizing its functions, which is time-consuming. Summary of the Invention

[0005] The purpose of this invention is to overcome the shortcomings of the existing technology and propose a method for converting AEDT files into three-dimensional electromagnetic models, which solves the technical problems of incomplete model information conversion and long conversion time in the existing technology.

[0006] The technical approach of this invention is as follows: First, the AEDT format file is converted into a JSON format file. Then, by parsing the geometric data, electromagnetic data, and solution settings information in the JSON file, a complete operation sequence chain is constructed. While traversing these operation sequence chains, the corresponding script template of the target electromagnetic simulation software is retrieved based on the specific operation type and parameters, and the simulation software is then reconstructed within the target electromagnetic simulation software. Specifically, the steps include:

[0007] (1) Convert the format of the AEDT file:

[0008] The AEDT format file containing geometric data, electromagnetic data, and solution condition information of a 3D electromagnetic model is converted to obtain a JSON format file with the JSON key "GeometryPart" corresponding to geometric data, the JSON key "BoundarySetup" corresponding to electromagnetic data, and the JSON key "AnalysisSetup" corresponding to solution condition information.

[0009] (2) Parse the JSON file:

[0010] The Qt JSON Tree Model in C++ is used to parse the values ​​corresponding to the JSON keys "GeometryPart", "BoundarySetup", and "AnalysisSetup" in the JSON file. The array value obtained from parsing the value of the JSON key "GeometryPart" is divided into M geometric data segments D = {D1, D2, ..., D...}. m ,...,D M Finally, the array value obtained by parsing the JSON key "BoundarySetup" is divided into N electromagnetic data segments B = {B1, B2, ..., B}. n ,...,B N The array value obtained by parsing the JSON key "AnalysisSetup" is divided into P solution condition data segments A = {A1, A2, ..., A...}. p ,...,A P}, where M≥1, D m This represents the m-th geometric data segment, 1≤m≤M, N≥0, B nThis represents the nth electromagnetic data segment, 1≤n≤N, P≥0, A p This represents the p-th solution condition data segment, where 1 ≤ p ≤ P;

[0011] (3) Split the parsing results of the JSON format file and store the splitting results:

[0012] (3a) Each geometric data segment D m Split into operation sequence ID 1 m and a set of geometric feature parameters G containing the geometric operation type, the index of the point, line, or plane, and the coordinates of the points on the point, line, or plane. m M operation sequence IDs are obtained. 1 ={ID 1 1,ID 1 2,...,ID 1 m ,...,ID 1 M} and M geometric feature parameter sets G = {G1, G2, ..., G} m ,...,G M}; Each electromagnetic data segment B n Split into operation sequence ID 2 n and the electromagnetic characteristic parameter group E containing electromagnetic condition types n N operation sequence IDs are obtained. 2 ={ID 2 1,ID 2 2,...,ID 2 n ,...,ID 2 N} and N sets of electromagnetic characteristic parameters E = {E1, E2, ..., E n ,...,E N}; Each solution data segment A p Split into operation sequence ID 3 p and the solution condition characteristic parameter group S containing the solution condition type p We obtain P operation sequence IDs. 3 ={ID 3 1,ID 3 2,...,ID 3 p ,...,ID 3 P} and P sets of characteristic parameters for solving the conditions S = {S1, S2, ..., S} p ,...,S P};

[0013] (3b) The M operation sequence IDs corresponding to the split D are obtained. 1 The N operation sequence IDs corresponding to B 2 A corresponds to P operation sequence IDs 3 The M geometric feature parameter groups G corresponding to D, the N electromagnetic feature parameter groups E corresponding to B, and the P solution condition feature parameter groups S corresponding to A are stored in the value of the C++ data structure map respectively, resulting in map1 containing geometric feature parameters corresponding to D, map2 containing electromagnetic feature parameters corresponding to B, and map3 containing solution condition feature parameters corresponding to A.

[0014] (4) Draw the geometric solids of the three-dimensional electromagnetic model and establish the correspondence between the point, line, and surface numbers in the two electromagnetic simulation software programs:

[0015] (4a) Find each geometric feature parameter group G in map1 m Includes geometric operation type T m The corresponding script template R in the target electromagnetic simulation software m and G m Enter into R m In this process, we obtain a script R' = {R'1, R'2, ..., R''} that locates the geometric position using point coordinates. m ,...,R' M};

[0016] (4b) Run script R' in the target electromagnetic simulation software through its built-in script interpreter to obtain all geometric entities of the three-dimensional electromagnetic model;

[0017] (4c) Through each geometric feature parameter group G m The ACIS interface of the 3D geometry engine is called to establish the correspondence between the indexes of points, lines and surfaces in AnsysHFSS M times and the indexes of points, lines and surfaces in the target electromagnetic simulation software, thereby obtaining the correspondence between all geometric entities of the 3D electromagnetic model and all geometric entities in the target electromagnetic simulation software.

[0018] (5) Set the electromagnetic conditions for the three-dimensional electromagnetic model:

[0019] (5a) Find each electromagnetic characteristic parameter group E in map2 n Includes electromagnetic condition type F n The corresponding script template H in the target electromagnetic simulation software n and E n Fill in H nThen, based on the correspondence between the indexes of points, lines, and surfaces in Ansys HFSS constructed in step (4) and the indexes of points, lines, and surfaces in the target electromagnetic simulation software, the indexes of the points, edges, and surfaces affected by the electromagnetic conditions are mapped to the geometric entity indexes in the target electromagnetic simulation software. Then, the geometric entity indexes in the target electromagnetic simulation software are filled into H to obtain the script H' = {H'1, H'2, ..., H'} for locating the geometric position using point coordinates. n ,...,H' N};

[0020] (5b) Run script H' in the target electromagnetic simulation software through its built-in script interpreter to obtain N electromagnetic conditions of the three-dimensional electromagnetic model.

[0021] (6) Set the solution conditions for the three-dimensional electromagnetic model:

[0022] (6a) Find each set of solution condition characteristic parameters S in map3 p Includes solution condition type O p The corresponding script template Q in the target electromagnetic simulation software p and S p Enter into Q p In the process, the script Q' = {Q'1, Q'2, ..., Q'} that can be run by the target electromagnetic simulation software is obtained. p ,...,Q' P};

[0023] (6b) Run script Q' in the target electromagnetic simulation software through its built-in script interpreter to obtain P solution conditions for the three-dimensional electromagnetic model;

[0024] (7) Obtain the conversion result:

[0025] The three-dimensional electromagnetic model is combined from all geometric entities, N electromagnetic conditions, and P solution conditions in the target electromagnetic simulation software as the conversion result.

[0026] Compared with the prior art, the present invention has the following advantages:

[0027] This invention first converts the AEDT format file into a JSON format file. By parsing the geometric data, electromagnetic data, and solver settings information in the JSON file, and then calling the ACIS interface of the 3D geometry engine, a mapping relationship between point, line, and surface indices and geometric entities is constructed. Based on this mapping relationship, both geometric and electromagnetic features can be converted simultaneously, avoiding the incomplete model information conversion caused by existing technologies that only convert geometric features. Furthermore, by calling the ACIS interface of the 3D geometry engine, geometric entities can be drawn directly in the target electromagnetic simulation software, solving the technical problem of long processing times caused by opening CAD software and utilizing its functions in existing technologies, thereby improving modeling efficiency. Attached Figure Description

[0028] Figure 1 This is a flowchart illustrating the implementation of the present invention;

[0029] Figure 2 This is a schematic diagram of the antenna array structure used in Ansys HFSS in an embodiment of the present invention;

[0030] Figure 3 This is a schematic diagram of the antenna array structure obtained by converting the present invention in the target electromagnetic simulation software;

[0031] Figure 4 This is a comparison of the antenna array model in this invention with the antenna radiation YOZ plane pattern calculated by the target electromagnetic simulation software and Ansys HFSS.

[0032] Figure 5 This is a comparison of the antenna array model in this invention with the antenna radiation XOZ plane pattern calculated by the target electromagnetic simulation software and Ansys HFSS.

[0033] Figure 6 This is a comparison of the antenna array model in this invention with the antenna radiation XOY plane pattern calculated by the target electromagnetic simulation software and Ansys HFSS. Detailed Implementation

[0034] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0035] See attached document Figure 1 The present invention includes the following steps:

[0036] Step 1. Convert the format of the AEDT file:

[0037] In this embodiment of the invention, an antenna array model is used in the commercial software Ansys HFSS, and its structure is referenced. Figure 2The model name is 4.4Epsilon_antenna_array.aedt. JSON, as a lightweight data exchange format, has a simple data format, is easy to read and write, and is easy for machines to parse and generate. The format is compressed, consuming little bandwidth. JSON also specifies that the character set must be UTF-8, so there are no problems representing multiple languages. Therefore, Python is used to perform a format conversion on 4.4Epsilon_antenna_array, which contains geometric data information, electromagnetic data information, and solution condition information, to obtain 4.4Epsilon_antenna_array.json, where the JSON key "GeometryPart" corresponds to geometric data information, the JSON key "BoundarySetup" corresponds to electromagnetic data information, and the JSON key "AnalysisSetup" corresponds to solution condition information.

[0038] Step 2. Parse the JSON file:

[0039] The Qt JSON Tree Model in C++ was used to parse the values ​​corresponding to the JSON keys "GeometryPart", "BoundarySetup", and "AnalysisSetup" in the 4.4Epsilon_antenna_array.json file. The array value obtained from parsing the value of the JSON key "GeometryPart" was divided into 79 geometric data segments D = {D1, D2, ..., D...}. m ,...,D 79 The array value obtained by parsing the JSON key "BoundarySetup" is divided into 9 electromagnetic data segments B = {B1, B2, ..., B}. n ,...,B9}, divide the array values ​​obtained by parsing the JSON key “AnalysisSetup” into one solution condition data segment A={A1}, where, D m B represents the m-th geometric data segment, 1≤m≤79. n This represents the nth electromagnetic data segment, where 1 ≤ n ≤ 9;

[0040] Step 3. Split the parsed results of the JSON file and store the split results:

[0041] Step 3.1 Transfer each geometric data segment D m Split into operation sequence ID 1 m and a set of geometric feature parameters G containing the geometric operation type, the index of the point, line, or plane, and the coordinates of the points on the point, line, or plane.m 79 operation sequence IDs were obtained. 1 ={ID 1 1,ID 1 2,...,ID 1 m ,...,ID 1 79} and 79 geometric feature parameter sets G = {G1, G2, ..., G} m ,...,G 79}; Each electromagnetic data segment B n Split into operation sequence ID 2 n and the electromagnetic characteristic parameter group E containing electromagnetic condition types n Nine operation sequence IDs were obtained. 2 ={ID 2 1,ID 2 2,...,ID 2 n ,...,ID 2 9} and 9 sets of electromagnetic characteristic parameters E = {1, E2, E} n ...E.};,9 will each of E, calculate, solve, data segment A p Split into operation sequence ID 3 p and the solution condition characteristic parameter group S containing the solution condition type p Result in 1 operation sequence ID 3 ={ID 3 1} and one set of characteristic parameters for solving the condition S = {S1};

[0042] Step 3.2 The 79 operation sequence IDs corresponding to the split D are... 1 The 9 operation sequence IDs corresponding to B 2 The operation sequence ID corresponding to A 3 The 79 geometric feature parameter groups G corresponding to D, the 9 electromagnetic feature parameter groups E corresponding to B, and the 1 solution condition feature parameter group S corresponding to A are stored in the value of the C++ data structure map respectively, resulting in map1 containing geometric feature parameters corresponding to D, map2 containing electromagnetic feature parameters corresponding to B, and map3 containing solution condition feature parameters corresponding to A.

[0043] Step 4. Draw the geometric solids of the 3D electromagnetic model and establish the correspondence between the point, line, and surface numbers in the two electromagnetic simulation software programs:

[0044] Step 4.1 Find each geometric feature parameter group G in map1 mIncludes geometric operation type T m The corresponding script template R in the target electromagnetic simulation software m and G m Fill in R m In this process, we obtain a script R' = {R'1, R'2, ..., R''} that locates the geometric position using point coordinates. m ,...,R' 79 For example, in an embodiment, the operation type of G1 is to create a cuboid, and then call the script template for creating a cuboid in the target electromagnetic simulation software. According to the requirements of the script template for feature parameters, the starting point coordinates, length, width and height of the cuboid are taken in G1 and filled into the script template to obtain a complete script for creating a cuboid.

[0045] Step 4.2 Run script R' in the target electromagnetic simulation software using its built-in script interpreter to obtain all geometric entities of the three-dimensional electromagnetic model;

[0046] Step 4.3 Through each geometric feature parameter group G m The ACIS interface of the 3D geometry engine is called to establish the correspondence between the indexes of points, lines and surfaces in Ansys HFSS 79 times and the indexes of points, lines and surfaces in the target electromagnetic simulation software.

[0047] Step 4.3.1 Obtain the geometric feature parameter set G m Establish the correspondence between the index of the midpoint line and the coordinates of the midpoint line and the midpoint, the coordinates of the two endpoints of the line and the midpoint of the surface, and the coordinates of several vertices and the center point of the surface, so as to obtain the correspondence between the index of the midpoint line and the midpoint of the midpoint line and the midpoint coordinates of the midpoint line and the midpoint in Ansys HFSS.

[0048] Step 4.3.2 Take G m The corresponding geometric entity's index and coordinates of all points, lines, and surfaces are used to establish the correspondence between the index and coordinates of the point, the coordinates of the two endpoints of the line, and the coordinates of several vertices and the center point of the surface. This yields the correspondence between the index and coordinates of the points, lines, and surfaces in the target electromagnetic simulation software.

[0049] Step 4.3.3: By calling the ACIS interface of the 3D geometry engine, maintain G... m The relative order of points, lines, and surfaces of the corresponding geometric entities in Ansys HFSS is consistent with the relative order of points, lines, and surfaces in the target electromagnetic simulation software. Then, by using the invariance of point coordinates in the two electromagnetic simulation software, the above two sets of correspondences are associated to obtain the correspondence between the index of points, lines, and surfaces of the geometric entities in Ansys HFSS and the index of points, lines, and surfaces in the target electromagnetic simulation software.

[0050] Step 5. Set the electromagnetic conditions for the 3D electromagnetic model:

[0051] Step 5.1 Find each electromagnetic characteristic parameter group E in map2 n Includes electromagnetic condition type F n The corresponding script template H in the target electromagnetic simulation software n and E n Fill in H n Then, based on the correspondence between the point, line, and surface indices of the geometry in Ansys HFSS constructed in step 4 and the indices of the geometric entities in the target electromagnetic simulation software, the indices of the points, edges, and surfaces affected by the electromagnetic conditions are mapped to the indices of the geometric entities in the target electromagnetic simulation software. The indices of the geometric entities in the target electromagnetic simulation software are then filled into H, resulting in the script H' = {H'1, H'2, ..., H'...} for locating the geometric position using point coordinates. n For example, in this instance, the operation type of E1 is ideal electric conductor boundary. Then, the script template for setting the ideal electric conductor boundary in the target electromagnetic simulation software is called. According to the requirements of the script template for the characteristic parameters, the index of the action surface of the ideal electric conductor boundary is taken in E1. Based on the mapping relationship constructed in step 4, the index of the action surface of the ideal electric conductor boundary is converted into the surface index in the target electromagnetic simulation software. Then, the surface index in the target electromagnetic simulation software is filled into H1 to obtain H'1.

[0052] Step 5.2 Run script H' in the target electromagnetic simulation software using its built-in script interpreter to obtain the nine electromagnetic conditions of the three-dimensional electromagnetic model;

[0053] Step 6. Set the solution conditions for the 3D electromagnetic model:

[0054] Step 6.1 Locate the script template Q1 in the target electromagnetic simulation software corresponding to the solution condition type O1 contained in the unique solution condition feature parameter group S1 in map3, and fill S1 into Q1 to obtain the script Q' = {Q'1} that can be run by the target electromagnetic simulation software. For example, in a specific instance, there is only one solution setting data segment, the type of which is finite element DrivenModal. Then, call the script template of finite element DrivenModal in the target electromagnetic simulation software. According to the requirements of the script template for feature parameters, take the six data items in S1: sweep frequency range, sweep frequency mode, step frequency, adaptive frequency, number of iteration steps, and convergence accuracy. Fill these six data items into the script template to obtain a complete finite element solution setting script.

[0055] Step 6.2 Run script Q'1 in the target electromagnetic simulation software using its built-in script interpreter to obtain a solution condition for the three-dimensional electromagnetic model;

[0056] Step 7. Obtain the conversion result:

[0057] Reference Figure 3 The result is an electromagnetic model that integrates geometry, electromagnetics, and solution conditions in the target electromagnetic simulation software.

[0058] The technical effects of the present invention are illustrated below through simulation experiments:

[0059] 1. Simulation conditions and content:

[0060] The entire calculation process was performed on a computer configured with an Intel Core i7 processor with a clock speed of 3.6GHz and 8GB of RAM. Finite element method (FEM) simulation software was used to analyze the radiation performance. The antenna array in the embodiment was calculated using the FEM in two electromagnetic simulation software programs. The antenna array has 24 elements, the solution frequency is 16GHz, and the iteration accuracy is 0.02.

[0061] The antenna array model in this invention was compared with the antenna radiation patterns in the YOZ, XOZ, and XOY planes calculated by the target electromagnetic simulation software and Ansys HFSS, as well as the conversion efficiency. The results are as follows: Figure 4 , Figure 5 , Figure 6 , and as shown in Table 1.

[0062] 2. Simulation Result Analysis:

[0063] See attached document Figure 4 , Figure 5 , Figure 6 The figures show a comparison of the antenna array model in this invention with the antenna radiation patterns in the YOZ, XOZ, and XOY planes calculated by the target electromagnetic simulation software and Ansys HFSS. It can be seen that the two curves are basically in agreement, with an error of no more than 1dB, which meets the calculation accuracy requirements, proving that this invention can be used to convert data in AEDT files.

[0064] To verify the efficiency of the method in this invention, the example provided in Ansys HFSS was used, and the time consumption comparison results are shown in Table 1:

[0065] Table 1

[0066] Model Name Model size Time consumption of this invention Existing technology time consumption dra_diel 88KB 1.742s 5.081s 5GApertureElement 92KB 2.375s 7.125s ogive-IE 326KB 3.483s 12.145s viawizard 444KB 3.133s 10.208s BCI-ISO 782KB 2.641s 15.078s Cylinder_Hyperlens 972KB 3.645s 19.412s helical_antenna 3791KB 11.630s 35.894s

[0067] Referring to Table 1, it can be seen that the present invention shortens the conversion time compared with the prior art, thereby improving the conversion efficiency.

Claims

1. A method of converting an AEDT file into a three-dimensional electromagnetic model, characterized by, Comprise the following steps: (1) Format conversion is carried out to AEDT file: The AEDT format file containing geometric data information, electromagnetic data information and solving condition information of three-dimensional electromagnetic model is converted to obtain a JSON format file, wherein the value corresponding to the JSON key "GeometryPart" is geometric data information, the value corresponding to the JSON key "BoundarySetup" is electromagnetic data information, and the value corresponding to the JSON key "AnalysisSetup" is solving condition information; (2) The JSON format file is parsed: The Qt JSON Tree Model in C++ is used to parse the values ​​corresponding to the JSON keys "GeometryPart", "BoundarySetup", and "AnalysisSetup" in the JSON file. The array value obtained from parsing the value of the JSON key "GeometryPart" is divided into M geometric data segments D = {D1, D2, ..., D...}. m ,...,D M The array value obtained by parsing the JSON key "BoundarySetup" is divided into N electromagnetic data segments B = {B1, B2, ..., B}. n ,...,B N The array value obtained by parsing the JSON key "AnalysisSetup" is divided into P solution condition data segments A = {A1, A2, ..., A...}. p ,...,A P }, where M≥1, D m This represents the m-th geometric data segment, 1≤m≤M, N≥0, B n This represents the nth electromagnetic data segment, 1≤n≤N, P≥0, A p This represents the p-th solution condition data segment, where 1 ≤ p ≤ P; (3) The parsing result of the JSON format file is split and the split result is stored: (3a) splitting each geometry data segment D m into operation sequence ID 1 m and geometry feature parameter group G containing geometry operation type, point-line-face sequence number and point-line-face point coordinate m , obtaining M operation sequences ID 1 ={ID 1 1,ID 1 2,...,ID 1 m ,...,ID 1 M} and M geometry feature parameter groups G={G1,G2,...,G m ,...,G M}; splitting each electromagnetic data segment B n into operation sequence ID 2 n and electromagnetic feature parameter group E containing electromagnetic condition type n , obtaining N operation sequences ID 2 ={ID 2 1,ID 2 2,...,ID 2 n ,...,ID 2 N} and N electromagnetic feature parameter groups E={E1,E2,...,E n ,...,E N}; splitting each solution data segment A p into operation sequence ID 3 p and solution condition feature parameter group S containing solution condition type p , obtaining P operation sequences and P solution condition feature parameter groups S={S1,S2,...,S p ,...,S P}. (3b) The M operation sequence IDs corresponding to the split D are obtained. 1 The N operation sequence IDs corresponding to B 2 A corresponds to P operation sequence IDs 3 The M geometric feature parameter groups G corresponding to D, the N electromagnetic feature parameter groups E corresponding to B, and the P solution condition feature parameter groups S corresponding to A are stored in the value of the C++ data structure map respectively, resulting in map1 containing geometric feature parameters corresponding to D, map2 containing electromagnetic feature parameters corresponding to B, and map3 containing solution condition feature parameters corresponding to A. (4) The geometric entities of the three-dimensional electromagnetic model are drawn and the corresponding relationship between the point-line-surface serial numbers in the two electromagnetic simulation software is established: (4a) find each geometric feature parameter group G in map1 m Included geometric operation type T m Corresponding script template R in target electromagnetic simulation software m , and fill G m into R m , get the script R' = {R'1, R'2..., R' m ,... M} positioning the geometric position with point coordinates; (4b) All geometric entities of the three-dimensional electromagnetic model are obtained by running the script R' in the target electromagnetic simulation software through its built-in script interpreter; (4c) by each set of geometric feature parameters G m , call the three-dimensional geometric engine ACIS interface, establish the correspondence between the serial numbers of the M times Ansys HFSS midpoint lines and surfaces and the serial numbers of the points, lines and surfaces in the target electromagnetic simulation software, and obtain the correspondence between all geometric entities of the three-dimensional electromagnetic model and all geometric entities in the target electromagnetic simulation software; (5) The electromagnetic conditions of the three-dimensional electromagnetic model are set: (5a) Find each electromagnetic characteristic parameter group E in map2 n Included electromagnetic condition type F n Corresponding script template H in target electromagnetic simulation software n , and fill E n into H n , and the correspondence between the sequence numbers of the point-line-surface in Ansys HFSS constructed by step (4) and the sequence numbers of the point-line-surface in the target electromagnetic simulation software, the sequence numbers of the point, edge, and surface acted on by the electromagnetic condition are corresponded to the sequence numbers of the geometric entities in the target electromagnetic simulation software, and then the sequence numbers of the geometric entities in the target electromagnetic simulation software are filled into H, to obtain the script H' = {H'1, H'2..., H' n ,...,H' N} positioned by point coordinates. (5b) N electromagnetic conditions of the three-dimensional electromagnetic model are obtained by running the script H' in the target electromagnetic simulation software through its built-in script interpreter; (6) The solving conditions of the three-dimensional electromagnetic model are set: (6a) find each set of characteristic parameters S of solving condition in map3 p the type of solving condition O included p the corresponding script template Q in the target electromagnetic simulation software p , and fill S p into Q p to obtain the executable script Q' = {Q'1, Q'2,..., Q' p ,..., Q' P} of the target electromagnetic simulation software; (6b) P solving conditions of the three-dimensional electromagnetic model are obtained by running the script Q' in the target electromagnetic simulation software through its built-in script interpreter; (7) Obtain the conversion result: All geometric entities, N electromagnetic conditions and P solving conditions in the target electromagnetic simulation software are combined into a three-dimensional electromagnetic model as the conversion result.

2. The method of converting AEDT files to a three-dimensional electromagnetic model of claim 1, wherein, The JSON key "GeometryPart" corresponding value, JSON key "BoundarySetup" corresponding value, JSON key "AnalysisSetup" corresponding value in the JSON format file are parsed by Qt Json Tree Model of C++ language in step (2a), and the implementation steps are as follows: (2a1) Use file.readall() function to read the JSON key "GeometryPart" corresponding value, JSON key "BoundarySetup" corresponding value, JSON key "AnalysisSetup" corresponding value in the JSON file as a Qstring string, then convert the Qstring string to utf-8 encoded QByteArray data format type through.toUtf8() function, and then use fromJson() function to convert QByteArray data format type to QJsonDocument; (2a2) calling the isObject() function to determine whether the QJsonDocument is a json object, if so, calling the toObject() function to convert the QJsonDocument into the QJsonObject class, and then using the subscript index number to access the array value QJsonValue of the QJsonObject class, and using the corresponding function to convert the array value into the array value of the corresponding type according to the type of the array value, otherwise, calling the toArray() function to convert to obtain the QJsonArray class, and then using the dot and square brackets to access the value QJsonValue corresponding to the key of the QJsonArray class, and using the corresponding function to convert the type of the QJsonValue into the array value of the corresponding type according to the type of the QJsonValue.

3. The method of converting AEDT files to a three-dimensional electromagnetic model of claim 1, wherein, The geometric feature parameter group G m , calling the three-dimensional geometric engine ACIS interface, establishing the corresponding relationship between the sequence numbers of points, lines and planes and the entity sequence numbers in the target electromagnetic simulation software, the implementation steps are: (4d1) taking the geometric feature parameter set G m The sequence number of the point line surface and the point coordinates of the point line surface, the correspondence between the sequence number of the point and the point coordinates, the correspondence between the line and the two end point coordinates of the line, the correspondence between the surface and the several vertexes and the center point coordinates of the surface, and the correspondence between the sequence number of the point line surface and the point coordinates of the point line surface in Ansys HFSS are obtained. (4d2) take G m The corresponding geometric entity of all point line surface sequence number and point line surface point coordinates, the establishment of point sequence number and the corresponding relationship of point coordinates, line and line two end point coordinates, face and face several vertex and center point coordinates, get in the target electromagnetic simulation software point line surface sequence number and point line surface point coordinates corresponding relationship; (4d3) by calling the three-dimensional geometry engine ACIS interface, keep G m The correspondence between the relative order of the point-line surfaces in Ansys HFSS and the relative order of the point-line surfaces in the target electromagnetic simulation software is consistent, and the correspondence between the serial numbers of the point-line surfaces in Ansys HFSS and the serial numbers of the point-line surfaces in the target electromagnetic simulation software is obtained by associating the above two groups of corresponding relationships through the invariance of the point coordinates of the two electromagnetic simulation software.

Citation Information

Patent Citations

  • A 3D CAD model data processing system and method

    CN114662173B

  • A three-dimensional entity model reconstruction method based on an ACIS platform

    CN109726442A

  • Electromagnetic simulation optimization method and system

    CN111353248A