CN117131832B - Method and device for constructing simulation component and storage medium - Google Patents

Method and device for constructing simulation component and storage medium Download PDF

Info

Publication number
CN117131832B
CN117131832B CN202311368985.9A CN202311368985A CN117131832B CN 117131832 B CN117131832 B CN 117131832B CN 202311368985 A CN202311368985 A CN 202311368985A CN 117131832 B CN117131832 B CN 117131832B
Authority
CN
China
Prior art keywords
grid
component
boundary
simulation
constructing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311368985.9A
Other languages
Chinese (zh)
Other versions
CN117131832A (en
Inventor
唐洪坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Julin Technology Shanghai Co ltd
Original Assignee
Julin Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Julin Technology Shanghai Co ltd filed Critical Julin Technology Shanghai Co ltd
Priority to CN202311368985.9A priority Critical patent/CN117131832B/en
Publication of CN117131832A publication Critical patent/CN117131832A/en
Application granted granted Critical
Publication of CN117131832B publication Critical patent/CN117131832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/392Floor-planning or layout, e.g. partitioning or placement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/394Routing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/398Design verification or optimisation, e.g. using design rule check [DRC], layout versus schematics [LVS] or finite element methods [FEM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Architecture (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method, a device and a storage medium for constructing a simulation component, wherein the method is applied to EDA simulation software and comprises the following steps: acquiring configuration parameters of the simulation components; constructing a boundary grid according to the configuration parameters; constructing at least one geometrical grid according to the configuration parameters and combining to generate a component grid; constructing a component port grid according to the configuration parameters; combining the boundary grid, the component grid and the component port grid through Boolean operation to generate a simulation component; and generating a simulation component grid file according to the simulation component. The device comprises: the device comprises a configuration parameter acquisition module, a boundary construction module, a component construction module, a port construction module, a combination module and a file generation module. The method has the technical characteristics of high construction speed of the simulation components, small occupied storage space, simple data analysis and convenience for grid boundary identification and subsequent component simulation processing.

Description

Method and device for constructing simulation component and storage medium
Technical Field
The present invention relates to the field of simulation design technologies, and in particular, to a method and an apparatus for constructing a simulation component, and a storage medium.
Background
EDA (Electronic Design Automation), i.e. electronic design automation, refers to a design method that uses computer design software to complete the processes of functional design, synthesis, verification, physical design (including layout, wiring, layout, design rule checking, etc.) of a large-scale integrated circuit. When using EDA tools, it is unavoidable to build mathematical models to perform computation, and meanwhile, because of the wide variety and number of devices of the large-scale integrated circuits, the geometric information processing amount required in the modeling process is very large, and how to simply and efficiently record, process and use the information is an important way to improve the efficiency of EDA tools.
Disclosure of Invention
In view of this, the present application provides a method, an apparatus and a storage medium for constructing a simulation device, so as to solve the technical problem of low use efficiency caused by huge amount of geometric information in the electronic design process of an integrated circuit.
Specifically, the technical scheme of the application is as follows:
a method for constructing a simulation component is applied to EDA simulation software and comprises the following steps:
obtaining configuration parameters of the simulation components, wherein the configuration parameters comprise: boundary dimensions, boundary shapes, component structures, and component structure dimensions;
constructing a three-dimensional boundary grid according to the boundary size and the boundary shape, wherein the boundary grid is used for simulating a simulation environment of a simulation component;
constructing at least one geometric body grid in the boundary grid according to the component structure and the component structure size and combining the geometric body grids to generate a component grid;
the boundary grid, the geometric body grid and the component grid comprise a plurality of grid units, and the grid units are at least one polyhedron;
constructing a component port grid according to the configuration parameters;
combining the boundary grid, the component grid and the component port grid through Boolean operation to generate a three-dimensional simulation component;
and generating a simulation component grid file according to the simulation component.
In some implementations, constructing a three-dimensional boundary mesh from the boundary dimensions and the boundary shape specifically includes:
determining the shape of the boundary grid according to the boundary shape;
and calculating a plurality of plane coordinate point coordinates of the boundary grid in the plane of the space rectangular coordinate system according to the boundary shape and the boundary size, connecting lines to form a boundary plane, and stretching the boundary plane to a direction perpendicular to the boundary plane to form a three-dimensional boundary grid.
In some implementations, constructing at least one geometry grid according to the component structure and the component structure size and combining to generate the component grid specifically includes:
determining the shape of a geometric body grid forming a component grid according to the component structure;
according to the structural size of the component, calculating a plurality of plane coordinate point coordinates of the geometric body grid in the plane of the space rectangular coordinate system, connecting lines to form a geometric plane, and stretching the geometric plane to a direction perpendicular to the geometric plane to form the geometric body grid;
and merging the geometric grids to obtain the component grids.
In some implementations, constructing the component port grid according to the configuration parameters specifically includes:
the configuration parameters further include: the port type and the port size corresponding to the simulation component comprise a line port and a surface port;
and calculating a plurality of plane coordinate points of the component port grid in the plane of the space rectangular coordinate system according to the port type and the port size, and generating a port grid or a surface port grid by connecting lines.
In some implementations, generating a simulation component mesh file from a simulation component specifically includes:
marking information is respectively added to the boundary grid, the component grid and the component port grid, and grid encryption is performed.
In some implementations, configuration parameters of the simulation components are stored in a Json configuration file, and data formats of the configuration parameters are consistent.
Based on the same technical conception, the application also provides a device for constructing the simulation component, which comprises:
the configuration parameter acquisition module is used for acquiring configuration parameters of the simulation components, wherein the configuration parameters comprise: boundary dimensions, boundary shapes, component structures, and component structure dimensions;
the boundary construction module is used for constructing a three-dimensional boundary grid according to the boundary size and the boundary shape, and the boundary grid is used for simulating the simulation environment of the simulation component;
the component construction module is used for constructing at least one geometric grid according to the component structure and the component structure size in the boundary grid and combining the geometric grids to generate a component grid;
the port construction module is used for constructing a component port grid according to the configuration parameters;
the combination module is used for combining the boundary grid, the component grid and the component port grid through Boolean operation to generate a three-dimensional simulation component;
and the file generation module is used for generating a simulation component grid file according to the simulation component.
In some implementations, a device for constructing a simulation component further includes:
the information labeling module is used for respectively adding labeling information to the boundary grid, the component grid and the component port grid;
and the grid encryption module is used for respectively encrypting the boundary grid, the component grid and the component port grid.
In some implementations, a device for constructing a simulation component further includes:
and the parameter storage module is used for storing configuration parameters of the simulation components through the Json configuration file and enabling the data format of the configuration parameters to be consistent.
Based on the same technical concept, the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for constructing the simulation component of any one of the above.
Compared with the prior art, the application has at least one of the following beneficial effects:
1. the configuration parameters stored in the Json configuration file enable the data format of the component configuration parameters to have the advantages of simplicity, easiness in analysis, large compression degree and the like, enable data reading to be convenient in the process of constructing the simulation components, and enable the process of constructing different simulation components to have good universal adaptability.
2. By constructing the boundary grid, the space range of the simulation component is defined, and when the simulation component is called, the user has higher operability, and can be helped to carry out overall planning according to the use requirement, so that the simulation circuit is more neat.
3. The geometrical bodies of all the components of the component are obtained by obtaining the configuration parameters, the geometrical bodies of all the components are independently modeled, the components are combined after modeling, the construction of the overall shapes of various components can be realized through a plurality of simpler geometrical bodies, and the construction process of the simulation component is simplified.
4. The constructed boundary grid, the component grid and the component port grid form a unified whole through Boolean operation, so that the requirement of electromagnetic finite element simulation in the simulation process is met.
Drawings
The above features, technical features, advantages and implementation of the present application will be further described in the following description of preferred embodiments in a clear and easily understood manner with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method of constructing a simulation component of the present application;
FIG. 2 is a schematic diagram of a microstrip line tetrahedral mesh constructed by the construction method of the simulation component;
FIG. 3 is a schematic diagram of a microstrip line main body constructed by a construction method of a simulation component of the present application;
fig. 4 is a block diagram of a device for constructing a dummy component according to the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will explain specific embodiments of the present application with reference to the accompanying drawings. It is obvious that the drawings in the following description are only examples of the present application, and that other drawings and other embodiments may be obtained from these drawings by those skilled in the art without undue effort.
For simplicity of the drawing, only the parts relevant to the application are schematically shown in each drawing, and they do not represent the actual structure thereof as a product. Additionally, in order to simplify the drawing for ease of understanding, components having the same structure or function in some of the drawings are shown schematically with only one of them, or only one of them is labeled. Herein, "a" means not only "only this one" but also "more than one" case.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In this context, it should be noted that the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected, unless explicitly stated or limited otherwise; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context.
In addition, in the description of the present application, the terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Referring to fig. 1 of the specification, the method for constructing a simulation component provided by the present application is applied to EDA simulation software, and includes the steps of:
s100, acquiring configuration parameters of the simulation components, wherein the configuration parameters comprise: boundary dimensions, boundary shapes, component structures, and component structure dimensions;
specifically, EDA (Electronic Design Automation), which is collectively referred to as "electronic design automation," is a process that utilizes computer technology to aid in the design, analysis, and verification of electronic systems. In the design of electronic systems, complex steps are involved, such as circuit design, chip design, circuit simulation, layout wiring, etc., while EDA tools are a collection of software tools that provide support and automation specifically for these steps. In the above design and simulation, a user generally needs to select a corresponding simulation component required by the design and simulation from a component library preset by the EDA tool, for example, a simple RLC filter circuit is simulated, generally needs a resistor, an inductor and a capacitor, and after the user selects the component according to the needs, the user assigns a value to the component, and then connects the input and output ends of the three simulation components correspondingly to form the RLC filter simulation circuit. The simulation components occupy larger storage space when stored in an EDA library, and meanwhile, the compatibility and efficiency of program operation during simulation by a user are affected when the simulation components are called, and the optimization of data is the key for solving the problem, so that the construction efficiency is further improved in the step of constructing the simulation components, the optimization is performed from the step of acquiring the configuration parameters, for example, the configuration parameters are stored in a Json (JavaScriptObjectNotation) configuration file, and the advantages of easy reading, easy writing, light weight, easy analysis, cross-platform, wide application and the like of the configuration parameters are utilized to realize the rapid acquisition of each parameter of the simulation components and further optimize storage resources. In the construction of the simulation component, the entire structure and composition (mainly, the simulation component is composed of basic geometric bodies), the size of each structure, the physical properties of the components, specific calculation parameters and other attribute information of the simulation component need to be read, and then the simulation component can be constructed.
S200, constructing a three-dimensional boundary grid according to the boundary size and the boundary shape, wherein the boundary grid is used for simulating a simulation environment of a simulation component;
specifically, when the simulation component is constructed, firstly, the boundary of the whole simulation component is constructed according to preset configuration parameters, the boundary is constructed by a grid to be essentially an air box (Airbox), and meanwhile, the construction of the boundary grid is also performed by referring to the overall size of the simulation component to be constructed, so that a certain distance is outwards expanded. In the simulation of electronic design, the air box generally refers to a virtual three-dimensional space, which is used for simulating the working condition of an electronic device or a circuit in a real environment, and has a certain role in the simulation of an Integrated Circuit (IC), an electronic component, a heat dissipation problem and the like. For example, when thermal analysis and heat dissipation simulation are performed, the air box can be used for simulating the thermal distribution and heat dissipation conditions of an electronic device in a real environment, through setting the size and boundary conditions of the air box, how heat generated by the electronic device is transmitted through air conduction, convection and radiation can be simulated, so that a designer is helped to optimize heat dissipation design, ensure that the temperature of the device in working is within a safe range, or perform simulation design of electromagnetic interference (EMI) and electromagnetic compatibility (EMC), the air box can be used for simulating the electromagnetic environment of the electronic device, including propagation and reflection of electromagnetic waves, helping the designer evaluate the anti-interference and anti-interference performance of the electronic device, predicting possible EMI problems, and performing electromagnetic compatibility analysis, and the air box plays a role of simulating the environment in the simulation of the electronic design, so that the designer can more accurately predict the behavior of the electronic device in the real working environment, thereby performing performance optimization, problem investigation and reliability evaluation. Meanwhile, the boundary is constructed by a grid, the grid (Mesh) is a commonly used data structure and is used for representing discrete points, lines, planes or volume elements in a space, the grid can be constructed by using a tetrahedral grid, the tetrahedral grid is a grid formed by the connected tetrahedral elements, the volume and complex geometry can be represented in a three-dimensional space, the simulation components are formed by constructing based on a plurality of geometries, the degree of complexity is high, the hexahedral grid is generally used for constructing relatively regular geometries, and the specific type of the grid to be constructed is not particularly limited.
S300, constructing at least one geometric body grid according to the component structure and the component structure size in the boundary grid, and combining to generate a component grid;
specifically, a simulation component is generally formed by a plurality of basic geometric bodies, such as a common microstrip line, and then is commonly formed by a plurality of cuboids, each cuboid is respectively formed, and finally, the combination is carried out, so that the simulation component can be formed more variously, and the boundary grid, the geometric body grid and the component grid comprise a plurality of grid units, wherein the grid units are at least one polyhedron; meanwhile, the tetrahedral mesh is used, so that the construction process is more flexible, the integral style of the complete simulation component can be formed after combination, and the integral simulation component becomes the final form which can be seen by a user during use, but the integral simulation component is not constructed at the moment.
S400, constructing a component port grid according to the configuration parameters;
specifically, the simulation components are finally applied to the design of the whole circuit structure, the circuit is generally formed by a plurality of components together, the transmission of electric energy and signals is carried out between the components through connecting wires, as if the circuit is built in reality, the components are generally provided with pins so as to be connected when a user uses the circuit, the simulation components are the same, the construction of the component port grid is the construction process of pins or connecting surfaces of the simulation components, and the simulation circuit mainly comprises two types of port ports and surface ports so as to realize the communication of the components in the simulation process to form the simulation circuit.
S500, combining the boundary grid, the component grid and the component port grid through Boolean operation to generate a three-dimensional simulation component;
specifically, the boundary grid, the component grid and the component port grid are respectively constructed through the three steps, and the boundary grid, the component grid and the component port grid are not integral, so that electromagnetic finite element simulation is required when circuit simulation is performed, and the purpose can not be realized when the structures of the components are separated, and the components are required to be combined. The combined process is applied to Boolean operation, the Boolean operation is used for operating and combining geometric bodies in computer graphics and three-dimensional modeling, and the operations of merging, intersecting, subtracting and the like can be carried out on independent tetrahedral grid structures through the Boolean operation so as to create more complex geometric bodies and form the most complete form of the simulation component.
S600, generating a simulation component grid file according to the simulation component.
And finally, storing the constructed and generated simulation components in the form of a grid file, so that a user can conveniently call and select in the simulation process.
In one embodiment, the simulation microstrip line is constructed by the method, simulation component configuration parameters of the simulation microstrip line are stored in a Json configuration file, and the Json configuration file is read to obtain various parameters. Firstly, constructing a boundary grid, obtaining the geometric type of the boundary grid air box and the size of the expansion needed from a configuration file, wherein the specific parameter values are automatically determined and stored in a Json configuration file according to actual needs by a user, and constructing the boundary grid by utilizing a tetrahedron grid. And then reading all information of the microstrip line from the configuration file, establishing a one-to-one mapping relation between the structure names and the geometric information, constructing a main geometric structure of the microstrip line mainly by three overlapped cuboids, constructing three cuboid grids (a metal line, a metal plate and an insulating substrate in sequence from top to bottom) respectively through the tetrahedron grids according to the read configuration parameters of the microstrip line, and combining the three cuboid grids after the construction is completed to form the integral structure of the microstrip line. Then judging whether the port of the microstrip line is a line port or a surface port according to the reading result of the configuration parameters, constructing a corresponding structure, and embedding the port with low dimension (the line port is one-dimensional and the surface port is two-dimensional) into the structure with high dimension (usually a boundary grid, namely an air box); and finally, combining the formed boundary grid, the component grid and the port grid through Boolean operation to generate a simulation microstrip line, and outputting a simulation microstrip line grid file to complete construction.
In one implementation, constructing a three-dimensional boundary mesh from the boundary dimensions and the boundary shape specifically includes:
determining the shape of the boundary grid according to the boundary shape;
and calculating a plurality of plane coordinate point coordinates of the boundary grid in the plane of the space rectangular coordinate system according to the boundary shape and the boundary size, connecting lines to form a boundary plane, and stretching the boundary plane to a direction perpendicular to the boundary plane to form the boundary grid.
Specifically, in the process of constructing the boundary grid, the boundary grid needs to be delimited, and the shape of the boundary grid is determined, wherein the shape can be cuboid, cylinder and other geometric shapes. The boundary dimension needs to be referred to the dimension of the simulation component main body to be constructed, and a certain distance is extended outwards from the simulation component main body according to the actual use requirement, so that the coordinates of the point of the boundary on the xoy plane can be calculated from the boundary shape and the boundary dimension obtained from the configuration parameters. When in construction, firstly, the position is determined according to the coordinates of the points, then the points are connected into a line to generate a surface, and then the plane is stretched to a certain height along the z-axis to generate a three-dimensional grid, and the boundary grid is constructed. If the tetrahedral mesh is used for construction in the process, the generated boundary mesh is a tetrahedral mesh air box formed based on tetrahedral construction, and if the tetrahedral mesh air box is constructed based on hexahedron, the generated boundary mesh is composed of a plurality of hexahedrons.
In one implementation, constructing at least one geometric grid according to the component structure and the component structure size and combining to generate the component grid specifically includes:
determining the shape of a geometric body grid forming a component grid according to the component structure;
calculating a plurality of plane coordinate point coordinates of the geometric body grid in a plane of a space rectangular coordinate system according to the structural size of the component, connecting lines to form a geometric plane, and stretching the geometric plane to a direction perpendicular to the geometric plane to form the geometric body grid;
and merging the geometric grids to obtain the component grids.
Specifically, all structural information of the simulation components is read from the configuration file, and according to the established mapping relation between the names and the geometric information of the simulation components (because one simulation component can be formed by combining a plurality of geometric components); traversing the structure name, calculating the coordinates of points on an xoy plane of a space rectangular coordinate system according to the structure size of the component, finding out the positions of the points, connecting the points into a line generation surface, stretching the plane along a z-axis by a certain height to generate a three-dimensional grid, carrying out geometric transformation on the component, such as rotation, translation and the like, determining the rotation operation of the component, rotating the points around, and completing the construction of the component structure by a plurality of degrees. In the process, if one simulation component consists of a plurality of geometries, grids are sequentially added and generated, then the component grids are obtained through merging operation, and the shape of the simulation component is diversified through merging operation. All grids of the component main body can be generated by cycling the above processes; meanwhile, the Json data format of the geometric body grids of each component is consistent, so that the programming processing is convenient. And, the construction of the grid can select a tetrahedral grid or a hexahedral grid, and the grid is selected and designed according to the actual use requirement.
In one implementation, the component port grid is constructed according to configuration parameters, and specifically includes:
the configuration parameters further include: the port type and the port size corresponding to the simulation component comprise a line port and a surface port;
and calculating a plurality of plane coordinate points of the component port grid in the plane of the space rectangular coordinate system according to the port type and the port size, and generating a port grid or a surface port grid by connecting lines.
In one implementation, generating a simulation component mesh file according to a simulation component specifically includes:
marking information is respectively added to the boundary grid, the component grid and the component port grid, and grid encryption is performed.
In particular, the mesh structure is added with labeling information for the purpose of marking, annotating or embedding additional information on the model to enhance the understandability, visualization effect, documentation and data communication capabilities of the model. Such annotation information may be in the form of text, graphics, colors, textures, etc., that help provide more contextual information about the model, object, or scene. In computational simulations, the addition of annotations can identify regions of interest, boundary conditions, points of view, etc. for monitoring and analysis during the simulation. Annotations may help convey design or analysis results to other personnel for sharing information and decisions, and during documentation, annotations may serve as explanations, illustrations, and descriptions, providing key details and context information. Mesh encryption (Mesh refinishing) refers to subdividing the original Mesh into smaller units to increase the accuracy of the simulation or computation. Such operations may be used in the fields of numerical modeling, structural analysis, etc. to improve the accuracy of the results. The mesh encryption can improve the accuracy mainly because it can solve the following problems: the finer geometric representation, the encryption grid enables the simulation to capture complex geometries, details, and curves more accurately. The original mesh may not effectively represent curved or complex geometric features, while the subdivided mesh may better approximate the actual geometry. More accurate numerical solutions, in numerical simulations, mesh encryption results in smaller cells, thereby making the approximation of the numerical equation within each cell more accurate. This helps to reduce numerical errors and provides more accurate results. Encrypting for a particular region, i.e., encrypting the grid in regions where higher accuracy is required, while maintaining a thicker grid in other regions, such partial encryption may provide better results with limited computing resources.
In one implementation, configuration parameters of the simulation components are stored in a Json configuration file, and data formats of the configuration parameters are consistent.
In particular, json (JavaScriptObjectNotation) has many advantages, making it one of the commonly used configuration formats in many applications and systems, firstly, the Json configuration file has legibility and writeability, is a text format, organizes data in key-value pairs, has good readability, and people can easily read and write the Json configuration file without special tools or editors. Meanwhile, json is a lightweight data exchange format, a large amount of extra marks or metadata are not needed, so that the configuration file is relatively small, occupies less storage space, and particularly has the characteristic of easy analysis. Supporting a nested hierarchy in terms of hierarchy, configuration information can be grouped and organized to make it more structural, which allows configuration files to better represent complex configuration requirements. According to the nature of Json, the method has the characteristics of cross-platform and cross-language support, is a universal data format, and almost all programming languages have Json analysis and serialization libraries, so that configuration information can be easily shared and used between different platforms and languages. Json has become a standard data exchange format on the Internet, and many APIs and services use Json to transfer data, so most developers are very familiar with Json. Supporting basic data types such as strings, numbers, boolean values, arrays, and objects is common, which enables the representation of a variety of different types of configuration information. In summary, the Json configuration file has the advantages of easy readability, easy writing, lightweight, easy parsing, cross-platform, wide application, and the like, so that the Json configuration file becomes a common configuration file format in many application programs. Meanwhile, a parameter profile may also use YAML (YAMLAin' tMarkupLanguage) with a JSON-like structure, which emphasizes readability, which uses indents and linefeeds to represent a hierarchy, suitable for profiles, data serialization, and other uses. Or XML (eXtensibleMarkupLanguage), can be used to represent a hierarchical data structure, although it is more lengthy than JSON, is still used as a configuration file format in many systems due to its extensive support and rich tool ecosystems. Or TOML (Tom's minimum language) which is characterized by a simple design and easy reading, and syntax focusing on legibility and maintainability, supporting tables, key-value pairs and arrays, is commonly used for configuring applications, software and projects. The parameter configuration files have respective advantages and purposes in different scenes and applications, a user can apply the configuration files according to requirements of projects, preferences of development teams and used tools and platforms, and the method for realizing the application through the parameter configuration files is within the protection scope of the application.
In one embodiment, the above method is used for constructing a simulation component, such as a simulation microstrip line, in this embodiment, configuration parameters of the simulation microstrip line are obtained from a Json configuration file, and a microstrip line tetrahedral grid with an added face port is built based on the Json configuration file, and the main structure definition includes: the boundary grid is an air box AirBox, the simulation component grid is Structures, and the port grid is Ports. The Shape is defined as Shape, the dimension of the boundary grid expanding outwards relative to the simulation component is defined as extension, the Shape of the geometric structure used for constructing the microstrip line in the embodiment is Cube and Rectangle (only face ports), and the number of geometric structures required to be added is small, including 6 in total of 2 face ports, so that it can be seen that a tetrahedral grid model of a transmission line can be constructed very simply and accurately based on the Json data format. The boundary grid generation process comprises the following steps: firstly, obtaining the boundary Shape of the boundary grid and the boundary dimension extension size needing to be expanded from a configuration file, wherein the values of the boundary Shape and the boundary dimension extension size are determined by a user according to actual needs; next, according to the structural geometric information of the component grid Structures of the microstrip line body read from the configuration file, calculating the cube_data value of the boundary grid. It should be noted that, since each structure Shape of the microstrip line body structures is other than Cube, there are other types such as Cylinder, hollowedCube, etc. Then, the coordinates of points of the boundary grid on the xoy plane of the space rectangular coordinate system can be calculated very simply according to cube_data, and then the points are connected into line segments to generate a plane; and finally, stretching the generated plane to a certain height along the z-axis direction to form a stereoscopic graph, and processing to generate the air box tetrahedral grid of the boundary grid.
The generation process of the microstrip line main body structues is as follows:
firstly, reading all information of Structures from a configuration file, calculating coordinates of points on a space rectangular coordinate system xoy plane according to a component structure and component structure size according to a one-to-one mapping relation (a structure can be formed by combining a plurality of geometries) of a through structure name and geometric information, connecting the points into a line to generate a plane, and stretching the plane to a certain height along a z-axis to generate a three-dimensional tetrahedral grid; then, the process is circulated to generate tetrahedral grids of three geometric bodies of the transmission line main body Structures, and the tetrahedral grids are combined to generate a microstrip line main body;
the port adding process of the microstrip line comprises the following steps:
firstly, judging whether the port is a Line port or a surface port according to the Shape type of Json data, wherein the Line corresponds to the Line port and the Rectengle corresponds to the surface port; then, calculating the coordinates of the corresponding points according to the port type and the port size, and connecting lines or generating planes;
finally, embedding the generated port into the boundary grid;
after all the structures of the constructed microstrip line tetrahedral grids are added, the grids are continuously processed. The steps are carried out independently, and the added grid structures are independent of each other, so that the requirements of electromagnetic finite element simulation in circuit simulation are not met, boolean operation is needed, all the structures are changed into a whole, and specific labeling information is added to each grid structure of the steps respectively with reference to the schematic diagrams of the main tetrahedral grids of the microstrip line and the schematic diagrams of the whole outlines of the simulation components shown in the drawings 2 and 3 of the specification, meanwhile, special encryption is needed to be carried out on local grids so as to meet the requirements of precision, specific encryption rules are not repeated herein, and the formed microstrip line is output to the whole grid file in the follow-up mode, so that the construction is completed.
Based on the same technical conception, the application also provides a device for constructing the simulation component, referring to fig. 4 of the specification, comprising:
the configuration parameter obtaining module 10 is configured to obtain configuration parameters of the simulation component, where the configuration parameters include: boundary dimensions, boundary shapes, component structures, and component structure dimensions;
specifically, in the step of constructing the simulation components, the construction efficiency is further improved, the optimization is performed from the beginning of acquiring the configuration parameters, for example, the configuration parameters are stored in a Json (JavaScriptObjectNotation) configuration file, and the advantages of easy reading, easy writing, light weight, easy analysis, cross-platform, wide application and the like are utilized to realize the rapid acquisition of each parameter of the simulation components and further optimize storage resources. In the construction of the simulation component, the construction of the simulation component can be performed after reading various parameters such as the overall structure, the composition (mainly comprising basic geometric bodies) of the simulation component, the size of each structure and the like of the simulation component.
The boundary construction module 20 is configured to construct a three-dimensional boundary grid according to the boundary size and the boundary shape, where the boundary grid is used for simulating a simulation environment of the simulation component;
specifically, when the simulation component is built, firstly, the boundary of the whole simulation component is built according to preset configuration parameters, the boundary is essentially an air box built by grids, the air box plays a role of a simulation environment in electronic design simulation, designers are helped to more accurately predict the behavior of the electronic component in an actual working environment, and therefore performance optimization, problem investigation and reliability assessment are carried out. Meanwhile, the boundary is constructed by a grid, the grid (Mesh) is a commonly used data structure and is used for representing discrete points, lines, planes or body elements in a space, the boundary construction module 20 can be constructed by using a tetrahedral grid when constructing the boundary grid, and can also be constructed by using a hexahedral grid or a hybrid grid, the tetrahedral grid is a grid formed by connected tetrahedral elements, the volume and complex geometry can be represented in a three-dimensional space, and the simulation components are formed with a certain complexity.
The component construction module 30 is configured to construct at least one geometric grid according to the component structure and the component structure size in the boundary grid and combine the geometric grids to generate a component grid;
specifically, a simulation component is generally formed by a plurality of basic geometric bodies, such as a common microstrip line, and then is commonly formed by a plurality of cuboids, each cuboid is respectively formed, and finally, the cuboids are combined, for example, a packaged capacitor is formed, the integral structure can be formed by a cylinder, the component building module 30 simultaneously builds the plurality of basic geometric bodies to form the integral structure of the simulation component, so that the simulation component can be more diversified in construction, the construction process is more flexible by utilizing the characteristics of tetrahedral grids, the integral style of the complete simulation component can be formed after the combination, and the integral form can be seen by a user when the simulation component is used.
The port construction module 40 is configured to construct a component port grid according to the configuration parameters;
specifically, the simulation component is finally applied to the design of the whole circuit structure, the circuit is generally formed by a plurality of components together, the plurality of components are used for transmitting electric energy and signals through connecting wires, as if the circuit is built in reality, the components are generally provided with pins so as to be connected when a user uses the circuit, the simulation component is the same, and the port building module 40 is used for building a component port grid, namely building a pin or a connection surface of the simulation component, and mainly comprises two types of a line port and a surface port so as to realize communication of the components in the simulation process to form the simulation circuit.
The combination module 50 is configured to combine the boundary grid, the component grid and the component port grid through boolean operations to generate a three-dimensional simulation component;
specifically, the boundary grid, the component grid and the component port grid are respectively and independently constructed by the boundary construction module 20, the component construction module 30 and the port construction module 40, and the boundary grid, the component grid and the component port grid are not integral, so that electromagnetic finite element simulation is required during circuit simulation, and the purpose can not be achieved if the components are separated in structure, and the components are required to be combined. The combining module 50 applies boolean operations in the process of combining, which are used in computer graphics and three-dimensional modeling to manipulate and combine geometries, by which individual tetrahedral mesh structures can be merged, intersected, subtracted, etc. to create more complex geometries that form the most complete form of the emulated components.
The file generation module 60 is configured to generate a simulation component grid file according to the simulation component.
In one implementation, a device for constructing a simulation component further includes:
the information labeling module is used for respectively adding labeling information to the boundary grid, the component grid and the component port grid;
and the grid encryption module is used for respectively encrypting the boundary grid, the component grid and the component port grid.
Specifically, the information labeling module adds labeling information to the grid to enhance the understandability, visualization effect, documentation and data communication capability of the model, so that monitoring and analysis can be performed in the simulation process, the labeling can help to convey the design or analysis result to other personnel so as to share information and decisions, and in the documentation process, the labeling can serve as explanation, explanation and explanation to provide key details and background information. The mesh encryption module may subdivide the mesh into smaller units to increase the accuracy of the simulation or calculation. Such operations may be used in the fields of numerical modeling, structural analysis, etc. to improve the accuracy of results so that geometries are finer and complex geometries, details, and curves are captured more accurately. An unencrypted mesh may not effectively represent curved or complex geometric features, while a subdivided mesh may better approximate the actual geometry. More accurate numerical solutions, in numerical simulations, mesh encryption results in smaller cells, thereby making the approximation of the numerical equation within each cell more accurate. This helps to reduce numerical errors and provides more accurate results. Of course, the grid encryption module can encrypt the whole body, selectively encrypt a certain local position, and provide better result under limited computing resources.
In one implementation, a device for constructing a simulation component further includes:
and the parameter storage module is used for storing configuration parameters of the simulation components through the Json configuration file and enabling the data format of the configuration parameters to be consistent.
Based on the same technical concept, the application also provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for constructing the simulation component is realized.
It should be noted that the above embodiments can be freely combined as needed. The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for constructing a simulation component is applied to EDA simulation software and is characterized in that,
the constructed simulation component comprises the following components: boundary grid, component grid and component port grid, the construction process includes the steps:
obtaining configuration parameters of the simulation component, wherein the configuration parameters comprise: boundary dimensions, boundary shapes, component structures, and component structure dimensions;
constructing a three-dimensional boundary grid according to the boundary size and the boundary shape, wherein the boundary grid is used for simulating a simulation environment of the simulation component;
constructing at least one geometric body grid in the boundary grid according to the component structure and the component structure size and combining the geometric body grids to generate the component grid;
the boundary grid, the geometric body grid and the component grid comprise a plurality of grid cells, and the grid cells are at least one polyhedron;
constructing the component port grid according to the configuration parameters;
combining the boundary grid, the component grid and the component port grid through Boolean operation to generate the three-dimensional simulation component;
and generating a simulation component grid file according to the simulation component.
2. The method for constructing a simulation component according to claim 1, wherein the constructing a three-dimensional boundary grid according to the boundary dimension and the boundary shape specifically includes:
determining the shape of the boundary grid according to the boundary shape;
and calculating a plurality of plane coordinate point coordinates of the boundary grid in a plane of a space rectangular coordinate system according to the boundary shape and the boundary size, connecting lines to form a boundary plane, and stretching the boundary plane to a direction perpendicular to the boundary plane to form the three-dimensional boundary grid.
3. The method for constructing a simulation component according to claim 1, wherein the constructing at least one geometrical grid according to the component structure and the component structure size and combining the at least one geometrical grid to generate a component grid specifically comprises:
determining the shape of the geometric body grid forming the component grid according to the component structure;
calculating a plurality of plane coordinate point coordinates of the geometric body grid in a plane of a space rectangular coordinate system according to the structural size of the component, connecting lines to form a geometric plane, and stretching the geometric plane to a direction perpendicular to the geometric plane to form the geometric body grid;
and merging the geometric grids to obtain the component grids.
4. The method for constructing a simulation component according to claim 1, wherein the constructing a component port grid according to the configuration parameters specifically includes:
the configuration parameters further include: the port type and the port size corresponding to the simulation component comprise a line port and a surface port;
and calculating a plurality of plane coordinate points of the component port grid in the plane of the space rectangular coordinate system according to the port type and the port size, and generating a line port grid or a plane port grid by connecting lines.
5. The method for constructing a simulation component according to any one of claims 1 to 4, wherein the generating a simulation component mesh file according to the simulation component specifically includes:
and respectively adding marking information to the boundary grid, the component grid and the component port grid, and carrying out grid encryption.
6. The method for constructing a simulation component according to claim 5, wherein configuration parameters of the simulation component are stored in a Json configuration file, and data formats of the configuration parameters are consistent.
7. The device for constructing the simulation component is characterized by comprising the following components:
the configuration parameter acquisition module is used for acquiring configuration parameters of the simulation components, and the configuration parameters comprise: boundary dimensions, boundary shapes, component structures, and component structure dimensions;
the boundary construction module is used for constructing a three-dimensional boundary grid according to the boundary size and the boundary shape, and the boundary grid is used for simulating the simulation environment of the simulation component;
the component construction module is used for constructing at least one geometric body grid according to the component structure and the component structure size in the boundary grid and combining the geometric body grids to generate a component grid;
the port construction module is used for constructing a component port grid according to the configuration parameters;
the combination module is used for combining the boundary grid, the component grid and the component port grid through Boolean operation to generate the three-dimensional simulation component;
and the file generation module is used for generating a simulation component grid file according to the simulation component.
8. The device for constructing a dummy component according to claim 7, further comprising:
the information labeling module is used for respectively adding labeling information to the boundary grid, the component grid and the component port grid;
and the grid encryption module is used for respectively carrying out grid encryption on the boundary grid, the component grid and the component port grid.
9. The device for constructing a dummy component according to claim 8, further comprising:
and the parameter storage module is used for storing the configuration parameters of the simulation components through the Json configuration file and enabling the data format of the configuration parameters to be consistent.
10. A computer-readable storage medium having stored thereon a computer program, characterized by:
the computer program, when executed by a processor, implements the method of constructing a simulation element as claimed in any one of claims 1 to 6.
CN202311368985.9A 2023-10-23 2023-10-23 Method and device for constructing simulation component and storage medium Active CN117131832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311368985.9A CN117131832B (en) 2023-10-23 2023-10-23 Method and device for constructing simulation component and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311368985.9A CN117131832B (en) 2023-10-23 2023-10-23 Method and device for constructing simulation component and storage medium

Publications (2)

Publication Number Publication Date
CN117131832A CN117131832A (en) 2023-11-28
CN117131832B true CN117131832B (en) 2024-02-02

Family

ID=88854791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311368985.9A Active CN117131832B (en) 2023-10-23 2023-10-23 Method and device for constructing simulation component and storage medium

Country Status (1)

Country Link
CN (1) CN117131832B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117709128B (en) * 2024-02-05 2024-05-14 国家超级计算天津中心 Super-computing-oriented multi-dimensional parallel simulation method, device, equipment and storage medium

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001053268A (en) * 1999-08-04 2001-02-23 Semiconductor Leading Edge Technologies Inc Semiconductor device simulator and simulation of semiconductor device
WO2008126078A2 (en) * 2007-04-12 2008-10-23 Expert Dynamics Ltd. System and method for generating a finite elements model of a pcb
CN103310069A (en) * 2013-06-25 2013-09-18 西安电子科技大学 Finite difference time domain electromagnetic calculation carrier meshing method
CN104484489A (en) * 2014-07-24 2015-04-01 江苏科技大学 Automatic generation method for quadrilateral finite element mesh of pitting corrosion damage cylindrical shell
CN112132973A (en) * 2020-11-24 2020-12-25 北京智芯仿真科技有限公司 Method and device for quickly generating three-dimensional integrated circuit electromagnetic simulation full three-dimensional grid
CN112560385A (en) * 2020-12-07 2021-03-26 芯和半导体科技(上海)有限公司 Layered sweep grid dividing method applied to packaging
CN113177336A (en) * 2021-04-12 2021-07-27 珠海一多监测科技有限公司 Chip junction temperature testing method and device of temperature measuring sensor and storage medium
CN114239442A (en) * 2021-12-13 2022-03-25 上海通立信息科技有限公司 Method, system, medium and device suitable for PCB hot spot investigation and heat dissipation simulation
CN114970443A (en) * 2022-06-14 2022-08-30 上海格宇软件有限公司 Chip grid generation method and system based on region decomposition and grid imprinting
CN115169274A (en) * 2022-06-20 2022-10-11 浙江大学 Method and device for generating geometric adaptive numerical simulation grid of electronic device assembly
CN115292999A (en) * 2022-08-04 2022-11-04 上海交通大学 SiC f Simulation method of/SiC ultrasonic vibration auxiliary cutting finite element
GB202303214D0 (en) * 2022-06-14 2023-04-19 Univ Beijing Science & Technology Method and device for simultaneous and rapid generation of metallurgical vessel model and structured grid
CN116090316A (en) * 2023-04-11 2023-05-09 巨霖科技(上海)有限公司 PCB two-dimensional unstructured grid generation method and system
CN116130038A (en) * 2023-01-28 2023-05-16 天津大学 Automatic division modeling method for transition grids
CN116341326A (en) * 2023-03-28 2023-06-27 苏州汉天下电子有限公司 Thermal field simulation analysis and design method of filter and device comprising thermal field simulation analysis and design method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10769328B2 (en) * 2017-09-30 2020-09-08 Texas Instruments Incorporated Generating a template-driven schematic from a netlist of electronic circuits
EP3746918A4 (en) * 2018-01-31 2021-10-27 Coventor, Inc. System and method for 2d to 3d compact model creation for a mems device
WO2022126348A1 (en) * 2020-12-15 2022-06-23 大连理工大学 Boundary layer grid generation method based on anisotropic body harmonic field

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001053268A (en) * 1999-08-04 2001-02-23 Semiconductor Leading Edge Technologies Inc Semiconductor device simulator and simulation of semiconductor device
WO2008126078A2 (en) * 2007-04-12 2008-10-23 Expert Dynamics Ltd. System and method for generating a finite elements model of a pcb
CN103310069A (en) * 2013-06-25 2013-09-18 西安电子科技大学 Finite difference time domain electromagnetic calculation carrier meshing method
CN104484489A (en) * 2014-07-24 2015-04-01 江苏科技大学 Automatic generation method for quadrilateral finite element mesh of pitting corrosion damage cylindrical shell
CN112132973A (en) * 2020-11-24 2020-12-25 北京智芯仿真科技有限公司 Method and device for quickly generating three-dimensional integrated circuit electromagnetic simulation full three-dimensional grid
CN112560385A (en) * 2020-12-07 2021-03-26 芯和半导体科技(上海)有限公司 Layered sweep grid dividing method applied to packaging
CN113177336A (en) * 2021-04-12 2021-07-27 珠海一多监测科技有限公司 Chip junction temperature testing method and device of temperature measuring sensor and storage medium
CN114239442A (en) * 2021-12-13 2022-03-25 上海通立信息科技有限公司 Method, system, medium and device suitable for PCB hot spot investigation and heat dissipation simulation
CN114970443A (en) * 2022-06-14 2022-08-30 上海格宇软件有限公司 Chip grid generation method and system based on region decomposition and grid imprinting
GB202303214D0 (en) * 2022-06-14 2023-04-19 Univ Beijing Science & Technology Method and device for simultaneous and rapid generation of metallurgical vessel model and structured grid
CN115169274A (en) * 2022-06-20 2022-10-11 浙江大学 Method and device for generating geometric adaptive numerical simulation grid of electronic device assembly
CN115292999A (en) * 2022-08-04 2022-11-04 上海交通大学 SiC f Simulation method of/SiC ultrasonic vibration auxiliary cutting finite element
CN116130038A (en) * 2023-01-28 2023-05-16 天津大学 Automatic division modeling method for transition grids
CN116341326A (en) * 2023-03-28 2023-06-27 苏州汉天下电子有限公司 Thermal field simulation analysis and design method of filter and device comprising thermal field simulation analysis and design method
CN116090316A (en) * 2023-04-11 2023-05-09 巨霖科技(上海)有限公司 PCB two-dimensional unstructured grid generation method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"基于Icepak的航天电子产品散热优化仿真分析";李正睿 等;《电子机械工程》;第35卷(第02期);38-42 *
"基于微椭球空气腔的光纤压力传感器的设计";王婷婷 等;《半导体光电》;第38卷(第06期);798-801+805 *
"复杂电磁问题的高效数值模拟技术研究";刘炳岐;《中国博士学位论文全文数据库 基础科学辑》(第04期);A005-14 *

Also Published As

Publication number Publication date
CN117131832A (en) 2023-11-28

Similar Documents

Publication Publication Date Title
CN117131832B (en) Method and device for constructing simulation component and storage medium
RU132297U1 (en) AUTOMATED ELECTRONIC DEVICE DESIGN SYSTEM
US20070005324A1 (en) Method and apparatus for simulating circuits using s-parameters
JP2009098891A (en) Simulation device, simulation program, recording medium in which simulation program is stored and simulation method
US20090030660A1 (en) Method and apparatus for generating fully detailed three-dimensional electronic package and pcb board models
JPH11353501A (en) Analysis model conversion method and analysis data integrated management system
CN114781201A (en) Method, system, device and medium for calculating temperature field of PCB in radiator
CN112347638B (en) Dual-unit method based three-dimensional integrated micro-system electric-thermal coupling analysis method
US20060224373A1 (en) Electromagnetic solutions for full-chip analysis
JP6947503B2 (en) Positioning of 3D objects using quantization
JP2016143210A (en) Magnetic field simulator program, magnetic field simulator and magnetic field simulation method
CN115374673A (en) Time domain heat conduction simulation method and storage medium
JP6575381B2 (en) Temperature calculation program, temperature calculation method, and information processing apparatus
CN104657557A (en) Method and device for acquiring electromagnetic radiation characteristic of chip-scale circuit by adopting electromagnetic simulation software
CN116679974A (en) Multi-software package operation method, computer program product and terminal equipment
Bensaali et al. An FPGA implementation of 3D affine transformations
CN113361228A (en) Simulation method of automobile machine cooling system, computer equipment and storage medium
JP6597364B2 (en) Thermal path calculation program, thermal path calculation method, and information processing apparatus
Camba et al. Computer-Aided Design, Computer-Aided Engineering, and Visualization
CN111274678B (en) Manufacturing method of space electronic case
WO2023080890A1 (en) Automated cell black boxing for layout versus schematic
Mantea et al. Software Integration for Heat Transfer Simulation of Electronic Circuits
Будрецов Electronic design systems
Schmidt et al. On-line visualization of arbitrary unstructured, adaptive grids
Kim et al. Visualization of Simulation Results Based on Mobile Augmented Reality

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant