Hypermesh-based circuit board assembly method and hot air reflow soldering process analysis method
The hypermesh-based circuit board assembly method automates the assembly process using Python scripts, addressing inefficiencies in manual operations and enabling efficient assembly and analysis for improved welding quality.
Patent Information
- Application Number
- CN202411318038.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-20
AI Technical Summary
Existing circuit board assembly methods are inefficient and cumbersome, requiring manual clicking operations through software interfaces.
A hypermesh-based method using Python scripts to automate the assembly process by establishing a database of finite element mesh models, rotating and positioning components, and generating a pre-processing TCL script for HyperMesh software to create a fast and convenient assembly process.
The method enables efficient and automated assembly of circuit boards, allowing for the handling of multiple components and subsequent hot air reflow soldering process analysis to improve welding quality.
Smart Images

Figure CN119089751A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer-aided design, and in particular to a circuit board assembly method based on hypermesh and a hot air reflow soldering process analysis method. Background Art
[0002] In order to use a computer to simulate the process of circuit board welding, it is necessary to assemble the components and circuit boards first. At present, the assembly of components and circuit boards requires clicking operations through the software interface. This assembly method is inefficient and the assembly process is cumbersome. Summary of the invention
[0003] In view of the problems in the prior art of low efficiency of component and circuit board assembly methods and complicated assembly process operations, the present application provides a hypermesh-based circuit board assembly method and a hot air reflow soldering process analysis method.
[0004] The hypermesh-based circuit board assembly method comprises:
[0005] S11: Establish a database of finite element mesh model INP files of various components;
[0006] S12: Select the finite element mesh model INP file of the circuit board and establish a coordinate system;
[0007] S13: Using a python script to read the setting information of the components, identify and save the height of the components, the corresponding local coordinate system and the material in the finite element mesh model INP file of the components;
[0008] S14: Use Python script to create a pre-processing TCL script for the hypermesh software, and rotate and move the local coordinate system of each component according to the design position;
[0009] S15: renaming the materials and local coordinate systems of different components respectively according to the order of reading the components, realizing automatic assembly of the components, and outputting an INP file of a finite element model of the entire circuit board assembled with the components.
[0010] In one embodiment, the database of the finite element mesh model INP file of the component includes material information and position information of the component;
[0011] The position information of the component takes the bottom center of the component as the coordinate origin.
[0012] In one implementation, the coordinate system established in S12 takes the lower left corner of the plane where the top of the circuit board is located as the coordinate origin, and takes the length and width directions of the circuit board as the X and Y axes, respectively.
[0013] In one implementation, in S13 , the absolute value of the difference between the maximum value and the minimum value of the Z coordinate is used as the height of the component.
[0014] In one implementation, rotating and moving the local coordinate system of each component according to the design position in S14 includes:
[0015] Use the "rotate" function to select the origin of the component and rotate it α degrees around the Z axis;
[0016] Use the "position" function to create six points P1 (0, 0, 0), P2 (1, 0, 0), P3 (0, 1, 0), P4 (X, Y, Z), P5 (X+1, Y, Z), and P6 (X, Y+1, Z), and move the components from plane (P1, P2, P3) to plane (P4, P5, P6).
[0017] The hot air reflow soldering process analysis method comprises: obtaining a finite element model INP file of an overall circuit board assembled with components according to the circuit board assembly method described above.
[0018] In one embodiment, the hot air reflow soldering process analysis method further comprises:
[0019] S21: Create an inner cavity model of a hot air reflow oven;
[0020] S22: Select the INP file of the entire inner cavity model of the hot air reflow furnace;
[0021] S23: The python script reads the position information of the inner cavity model of the hot air reflow furnace in the INP file of the entire inner cavity model of the hot air reflow furnace;
[0022] S24: Use Python script to create a pre-processing TCL script for HyperMesh software, and calculate the midpoint (X1, Y1, Z1) through the maximum and minimum values of the X coordinates, Y coordinates, and Z coordinates of the inner cavity model of the hot air reflow furnace; create six points P7 (X1, Y1, Z1), P8 (X1+1, Y1, Z1), P9 (X1, Y1+1, Z1), P10 (X2, Y2, Z2), P11 (X2+1, Y2, Z2), and P12 (X2, Y2+1, Z2), among which the plane (P10, P11, P12) is the initial welding position of the hot air reflow furnace;
[0023] Move the finite element model of the whole circuit board equipped with components from the plane (P7, P8, P9) to the plane (P10, P11, P12) corresponding to the initial soldering position of the hot air reflow oven;
[0024] S25: Generate a 2D grid from the grid of the overall circuit board in the INP file of the finite element model of the overall circuit board equipped with components, generate a geometric outer surface of the overall circuit board model through the 2D grid, and then generate its 3D geometric entity from the geometric outer surface of the overall circuit board model, use the geometric entity of the overall circuit board model to perform Boolean operation on the geometric model of the area in the inner cavity model of the hot air reflow furnace, and then perform tetrahedral mesh division on the area in the inner cavity model of the hot air reflow furnace where the Boolean operation is performed, to obtain a grid model of the inner cavity of the hot air reflow furnace with the built-in finite element model of the overall circuit board equipped with components, and output the MSH format grid model file calculated in the Fluent software;
[0025] S26: The python script reads each component and its material information to obtain the process parameters of hot air reflow soldering;
[0026] S27: Generate UDF and TUI pre-processing scripts of Fluent software through Python scripts, solve them in Fluent software, obtain the temperature curve, and adjust the hot air reflow process parameters according to the temperature curve.
[0027] In one implementation, each component and its material information is read by searching for keywords in S26.
[0028] In one embodiment, in S26:
[0029] After reading each component and its material information, save the component's name, density, thermal conductivity, and specific heat capacity;
[0030] The obtained process parameters of hot air reflow soldering include the wind speed and temperature of each temperature zone in the inner cavity model of the hot air reflow oven, and the speed at which the entire circuit board moves in the inner cavity model of the hot air reflow oven.
[0031] In one embodiment, the UDF file defines the speed of the entire circuit board and loads it into the boundary conditions, and the TUI file contains the material information of the components and loads it into the material properties of the corresponding circuit board and components.
[0032] The hypermesh-based circuit board assembly method provided in the present application uses python to read information from a file in INP format, and then writes the internal script of the hypermesh software. The circuit board assembly process is fast and convenient, and can handle the assembly of multiple components.
[0033] The present application also provides a hot air reflow soldering process analysis method for subjecting the components and circuit boards assembled by the above-mentioned circuit board assembly method to a hot air reflow soldering process as a whole, and obtains a temperature curve of the process by simulating the temperature and speed during the process, thereby adjusting the hot air reflow soldering process parameters according to the temperature curve to improve the welding quality.
[0034] For further elaboration, various aspects and advantages of the embodiments disclosed in the present application will become apparent in the following description or can be understood through the practice of the embodiments disclosed in the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings are used to provide further understanding of the present application and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the invention but do not constitute a limitation to the invention.
[0036] Figure 1 A logic flow chart of a hypermesh-based circuit board assembly method provided in Example 1 of the present application;
[0037] Figure 2 A schematic diagram of a coordinate system established in S12 in the hypermesh-based circuit board assembly method provided in Example 1 of the present application;
[0038] Figure 3 This is a temperature curve diagram of two positions obtained in the hot air reflow soldering process analysis method provided in Example 2 of the present application. DETAILED DESCRIPTION
[0039] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0040] Example 1
[0041] This embodiment provides a circuit board assembly method based on hypermesh, referring to Figure 1 ,Include:
[0042] S11: Establish a database of finite element mesh model INP files of various components;
[0043] Use the scripts provided in the hypermesh software to perform some operations, including:
[0044] S12: Select the finite element mesh model INP file of the circuit board to be used and establish a coordinate system;
[0045] S13: Using a python script to read the setting information of the components, identify and save the height of the components, the corresponding local coordinate system and the material in the finite element mesh model INP file of the components;
[0046] S14: Use Python script to create the pre-processing TCL script of hypermesh software, rotate and move the local coordinate system of each component according to the design position, and place the models of each component on the circuit board model according to the design position;
[0047] S15: renaming the materials and local coordinate systems of different components respectively according to the order of reading the components, realizing automatic assembly of the components, and outputting an INP file of a finite element model of the entire circuit board assembled with the components.
[0048] When the above implementation method performs circuit board assembly based on the hypermesh software, python is used to read information from the INP format file, and then the internal script of the hypermesh software is written. The circuit board assembly process is fast and convenient, and can handle the assembly of multiple components.
[0049] In this embodiment, the database of the finite element mesh model INP file of the component contains the material information and position information of the component;
[0050] The position information of the component takes the bottom center of the component as the coordinate origin.
[0051] In this embodiment, the coordinate system established in S12 takes the lower left corner of the plane where the top of the circuit board is located as the coordinate origin, and takes the length and width directions of the circuit board as the X and Y axes, respectively. Figure 2 shown.
[0052] In this coordinate system, set the X coordinate, Y coordinate, and Z-axis rotation angle α around the origin of each component.
[0053] Different components in the database have different heights, and the height information of each component cannot be guaranteed when assembling the circuit board. Therefore, in S13 of this embodiment, the height of the component in the finite element mesh model INP file of the component is identified. Specifically, the information of all nodes of the component in the INP file is read through the script, and the absolute value of the difference between the maximum and minimum values of the Z coordinate is used as the height of the component, providing a more accurate circuit board model for subsequent process analysis.
[0054] In S14 of this embodiment, rotating and moving the local coordinate system of each component according to the designed position includes:
[0055] Use the "rotate" function to select the origin of the component and rotate it α degrees around the Z axis;
[0056] Use the "position" function to create six points P1 (0, 0, 0), P2 (1, 0, 0), P3 (0, 1, 0), P4 (X, Y, Z), P5 (X+1, Y, Z), and P6 (X, Y+1, Z), and move the components from plane (P1, P2, P3) to plane (P4, P5, P6).
[0057] The circuit board assembled by the method provided in this embodiment can be used for subsequent hot air reflow soldering process analysis, vapor phase soldering process analysis, etc.
[0058] Example 2
[0059] This embodiment provides a hot air reflow soldering process analysis method. The circuit board model used may be obtained from the circuit board assembly method provided in Embodiment 1 to obtain the finite element model INP file of the entire circuit board assembled with components.
[0060] In this embodiment, the hot air reflow soldering process analysis method includes:
[0061] S21: creating an inner cavity model of the hot air reflow furnace according to the hot air reflow furnace actually used;
[0062] S22: The inner cavity model of the hot air reflow furnace may contain multiple temperature zones. In this embodiment, the inner cavity model of the hot air reflow furnace may contain 10 temperature zones. Select the INP file of the entire inner cavity model of the hot air reflow furnace;
[0063] S23: The python script reads the position information of the inner cavity model of the hot air reflow furnace in the INP file of the entire inner cavity model of the hot air reflow furnace;
[0064] S24: Use Python script to create a pre-processing TCL script for HyperMesh software, and calculate the midpoint (X1, Y1, Z1) through the maximum and minimum values of the X coordinates, Y coordinates, and Z coordinates of the inner cavity model of the hot air reflow furnace; create six points P7 (X1, Y1, Z1), P8 (X1+1, Y1, Z1), P9 (X1, Y1+1, Z1), P10 (X2, Y2, Z2), P11 (X2+1, Y2, Z2), and P12 (X2, Y2+1, Z2), among which the plane (P10, P11, P12) is the initial welding position of the hot air reflow furnace;
[0065] Move the finite element model of the whole circuit board equipped with components from the plane (P7, P8, P9) to the plane (P10, P11, P12) corresponding to the initial soldering position of the hot air reflow oven; specifically, use the "position" function to create six points: P7 (X1, Y1, Z1), P8 (X1+1, Y1, Z1), P9 (X1, Y1+1, Z1), P10 (X2, Y2, Z2), P11 (X2+1, Y2, Z2), and P12 (X2, Y2+1, Z2);
[0066] S25: using the "find faces" function in TCL, the mesh of the overall circuit board in the INP file of the finite element model of the overall circuit board equipped with components is generated into a 2D mesh, the geometric outer surface of the overall circuit board model is generated through the 2D mesh, and then the 3D geometric entity of the overall circuit board model is generated from the geometric outer surface, and the geometric entity of the overall circuit board model is used to perform Boolean operations on the geometric model of the area in the inner cavity model of the hot air reflow furnace, and then the area in the inner cavity model of the hot air reflow furnace where the Boolean operation is performed is tetrahedral meshed to obtain the mesh model of the inner cavity of the hot air reflow furnace with the built-in finite element model of the overall circuit board equipped with components, and output the MSH format mesh model file calculated in the Fluent software;
[0067] In this step, a mesh model of the inner cavity of the hot air reflow furnace of the finite element model of the entire circuit board equipped with components is obtained while avoiding mesh overlap.
[0068] S26: The python script reads each component and its material information to obtain the process parameters of hot air reflow soldering;
[0069] S27: Generate UDF and TUI pre-processing scripts of Fluent software through Python scripts, solve them in Fluent software, and obtain the temperature curve, such as Figure 3 As shown, the hot air reflow process parameters are adjusted according to the temperature curve. The UDF file defines the speed of the entire circuit board movement and loads it into the boundary conditions, and the TUI file contains the material information of the components and loads it into the material properties of the corresponding circuit board and components in the MSH file.
[0070] In this embodiment, each component and its material information is read by searching for keywords in S26.
[0071] In S26 of this embodiment: after reading each component and its material information, save the name, density, thermal conductivity, and specific heat capacity of the component;
[0072] The obtained process parameters of hot air reflow soldering include the wind speed and temperature of each of the 10 temperature zones in the inner cavity model of the hot air reflow oven, and the speed at which the entire circuit board moves in the inner cavity model of the hot air reflow oven, with a total of 21 parameters.
[0073] The hot air reflow soldering process analysis method provided in this embodiment obtains the temperature curve of the process by simulating the temperature and speed during the process, and thus adjusts the hot air reflow soldering process parameters according to the temperature curve, thereby improving the soldering quality.
[0074] The simulation model for simulating the environment in the hot air reflow furnace can use the method described in the patent document with the publication number CN116151067A.
[0075] In the description of this application, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "circumferential", etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the technical solution and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the technical solution.
[0076] In this technical solution, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this technical solution can be understood according to specific circumstances.
[0077] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present technical solution. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they contradict each other.
[0078] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A circuit board assembly method based on hypermesh, characterized in that: Include: S11: Establish a database of finite element mesh model INP files of various components; S12: Select the finite element mesh model INP file of the circuit board and establish a coordinate system; S13: Using a Python script to read component setting information, identify and save the component height, corresponding local coordinate system, and material in the finite element mesh model INP file of the component; S14: Use Python script to create a pre-processing TCL script for the hypermesh software to rotate and move the local coordinate system of each component according to the design position; S15: renaming the materials and local coordinate systems of different components according to the order in which the components are read, realizing automatic assembly of the components, and outputting an INP file of a finite element model of the entire circuit board assembled with the components.
2. The circuit board assembly method according to claim 1, wherein: The database of the finite element mesh model INP file of the component contains the material information and position information of the component; The position information of the component takes the bottom center of the component as the coordinate origin.
3. The circuit board assembly method according to claim 1, wherein: The coordinate system established in S12 takes the lower left corner of the plane where the top of the circuit board is located as the coordinate origin, and the length and width directions of the circuit board as the X and Y axes respectively.
4. The circuit board assembly method according to claim 3, wherein: In S13, the absolute value of the difference between the maximum and minimum values of the Z coordinate is used as the height of the component.
5. The circuit board assembly method according to claim 1, wherein: In S14, the local coordinate system of each component is rotated and moved according to the design position, including: Use the "rotate" function to select the origin of the component and rotate it α degrees around the Z axis; Use the "position" function to create six points P1 (0, 0, 0), P2 (1, 0, 0), P3 (0, 1, 0), P4 (X, Y, Z), P5 (X+1, Y, Z), and P6 (X, Y+1, Z), and move the component from plane (P1, P2, P3) to plane (P4, P5, P6).
6. Hot air reflow process analysis method, characterized in that, The circuit board assembly method according to any one of claims 1 to 5 obtains a finite element model INP file of an overall circuit board assembled with components.
7. The hot air reflow soldering process analysis method according to claim 6, characterized in that: Include: S21: Create the inner cavity model of the hot air reflow oven; S22: Select the INP file of the entire inner cavity model of the hot air reflow oven; S23: The python script reads the position information of the inner cavity model of the hot air reflow furnace in the INP file of the entire inner cavity model of the hot air reflow furnace; S24: Use a python script to create a pre-processing TCL script for the hypermesh software, and calculate the midpoint (X1, Y1, Z1) through the maximum and minimum values of the X coordinates, Y coordinates, and Z coordinates of the inner cavity model of the hot air reflow furnace; create six points P7 (X1, Y1, Z1), P8 (X1+1, Y1, Z1), P9 (X1, Y1+1, Z1), P10 (X2, Y2, Z2), P11 (X2+1, Y2, Z2), and P12 (X2, Y2+1, Z2), among which the plane (P10, P11, P12) is the initial welding position of the hot air reflow furnace; Move the finite element model of the entire circuit board assembled with components from planes (P7, P8, P9) to planes (P10, P11, P12) corresponding to the initial soldering position of the hot air reflow oven; S25: Generate a 2D grid from the mesh of the overall circuit board in the INP file of the finite element model of the overall circuit board equipped with components, generate a geometric outer surface of the overall circuit board model through the 2D grid, and then generate its 3D geometric entity from the geometric outer surface of the overall circuit board model, use the geometric entity of the overall circuit board model to perform a Boolean operation on the geometric model of the area in the inner cavity model of the hot air reflow furnace, and then perform tetrahedral mesh division on the area in the inner cavity model of the hot air reflow furnace where the Boolean operation is performed, to obtain a mesh model of the inner cavity of the hot air reflow furnace with the built-in finite element model of the overall circuit board equipped with components, and output the MSH format mesh model file calculated in the Fluent software; S26: The python script reads each component and its material information to obtain the process parameters of hot air reflow soldering; S27: Generate UDF and TUI pre-processing scripts of Fluent software through Python scripts, solve them in Fluent software, obtain the temperature curve, and adjust the hot air reflow process parameters according to the temperature curve.
8. The hot air reflow soldering process analysis method according to claim 7, characterized in that: In S26, each component and its material information is read by searching for keywords.
9. The hot air reflow soldering process analysis method according to claim 7, characterized in that: In S26: After reading each component and its material information, save the component's name, density, thermal conductivity, and specific heat capacity; The obtained hot air reflow process parameters include the wind speed and temperature of each temperature zone in the inner cavity model of the hot air reflow oven, and the speed at which the entire circuit board moves in the inner cavity model of the hot air reflow oven.
10. The hot air reflow soldering process analysis method according to claim 7, characterized in that: The UDF file defines the speed of the entire circuit board movement and loads it into the boundary conditions. The TUI file contains the material information of the components and loads it into the corresponding material properties of the circuit board and components.
Citation Information
Patent Citations
Method for obtaining material mechanical property parameters of printed circuit board
CN106709175A
3D simulation data generation method and system, computer storage medium and device
CN109446600A
Method for establishing virtual model of hot air reflow oven based on finite element simulation
CN112149331A
Welding deformation numerical simulation rapid implementation method
CN113065272A
Simulation model establishment method for environment in hot air reflow oven and simulation model
CN116151067A
