Stress calculation method in circuit board welding process
The thermal analysis of circuit board welding is automated through Python scripts, which simplifies the application and calculation of boundary conditions, solves the problem of cumbersome thermal analysis operations during circuit board welding, and improves analysis efficiency.
Patent Information
- Application Number
- CN202411318039.8
- 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
Thermal analysis operation during circuit board welding is complicated and takes a long time, which affects the welding quality.
Extract information from the INP model files of circuit boards and components through Python scripts, write hypermesh scripts using Python scripts, automate the processing of boundary conditions and import ABAQUS calculations, simplifying the thermal analysis process.
It realizes rapid modeling and rapid analysis of circuit board welding stress calculation, simplifies the operation process and significantly shortens the analysis time.
Smart Images

Figure CN119089752A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of computer-aided design, and in particular, relates to a stress calculation method for a circuit board welding process. Background Art
[0002] When the stress value during the circuit board welding process exceeds the allowable range, it will affect the welding quality. Therefore, the circuit board welding process should be simulated and adjusted according to the simulation results to pre-empt the situation where the stress value is too large. At present, most of the methods for thermal analysis by computer still apply boundary conditions through the ABAQUS software interface and then use ABAQUS for calculation, or apply boundary conditions to the model through the hypermesh software interface and then import it into ABAQUS for direct calculation. These two methods are cumbersome to model and take a long time. Summary of the invention
[0003] In order to solve the problem that the thermal analysis process in circuit board welding simulation is cumbersome and time-consuming, the present application provides a stress calculation method for the circuit board welding process.
[0004] The stress calculation method of the circuit board welding process includes:
[0005] S31: Python script extracts information of circuit boards and components from INP model files of circuit boards and components;
[0006] S32: applying solder to the bottom of the pin shell unit type component; applying solder to the bottom of the solid unit type component that needs to add solder;
[0007] S33: Assembling components on the circuit board;
[0008] S34: In the TCL script, set Tie contact between the components and the circuit board;
[0009] S35: Import the temperature curve of the whole circuit board equipped with components into the TCL script;
[0010] S36: Create a payload in TCL script;
[0011] S37: Create a static analysis step for the corresponding components based on the temperature curve in S34 to perform stress calculations during the circuit board welding process.
[0012] In one embodiment, S31 includes, from I NP model files of the circuit board and components:
[0013] S311: Read the grid node position information of the component, and save the position information of all the bottom nodes and top nodes of the component;
[0014] S312: Read the composition of components and determine the types of components, where the types of components include entity class, pin shell unit class and beam unit class;
[0015] S313: Save the names of each component, the corresponding materials and the local coordinate system names;
[0016] S314: Determine the contact type of the component, including determining whether the component is in contact and determining whether there is a point-to-surface contact type in the contact of the component of the pin shell unit model;
[0017] S315: Determine whether there is a special mark, and if so, read the special mark.
[0018] In one embodiment, S31 further includes deleting repeated component names and material names.
[0019] In one embodiment, applying solder to the bottom of the pin shell unit component in S32 includes:
[0020] S321: Determine whether the pin direction of the pin shell unit type component is along the X axis or the Y axis;
[0021] S322: For pin shell unit components with pins running along the Y-axis direction:
[0022] In the positive X coordinate of the bottom coordinate of the pin shell unit component: the point P1 (Xpmax, Ypmax, Zpmin) where both the X coordinate and the Y coordinate are the maximum value, the point P2 (Xpmin, Ypmin, Zpmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with P2 (Xpmin, Ypmin, Zpmin) as the base point and the length, width and height are (Xpmax-Xpmin, Ypmax-Ypmin, a) respectively;
[0023] In the negative X coordinate of the bottom coordinate of the pin shell unit component: the point N1 (Xnmax, Ynmax, Znmin) where both the X coordinate and the Y coordinate are the maximum value, the point N2 (Xnmin, Ynmin, Znmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with N2 (Xnmin, Ynmin, Znmin) as the base point and the length, width and height are (Xnmax-Xnmin, Ynmax-Ynmin, a) respectively;
[0024] S323: For pin shell unit components with pins running along the X-axis direction:
[0025] In the positive Y coordinate of the bottom coordinate of the pin shell unit component: the point P3 (X`pmax, Y`pmax, Z`pmin) where both the X coordinate and the Y coordinate are the maximum value, the point P2 (X`pmin, Y`pmin, Z`pmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with P2 (X`pmin, Y`pmin, Z`pmin) as the base point and the length, width and height are (X`pmax-X`pmin, Y`pmax-Y`pmin, a) respectively;
[0026] In the negative Y coordinate of the bottom coordinate of the pin shell unit component: the point N1 (X`nmax, Y`nmax, Z`nmin) where both the X coordinate and the Y coordinate are the maximum value, the point N2 (X`nmin, Y`nmin, Z`nmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with N2 (X`nmin, Y`nmin, Z`nmin) as the base point and the length, width and height are (X`nmax-X`nmin, Y`nmax-Y`nmin, a) respectively.
[0027] In one embodiment, when applying solder to the bottom of a solid unit component to which solder needs to be added, in S32, the maximum and minimum values of the X coordinate and Y coordinate of the bottom of the component are directly identified, the length, width and height are calculated, and a solder layer of corresponding length, width and height dimensions is established with the point where the X coordinate and the Y coordinate are both minimum values as the base point.
[0028] In one embodiment, S33 assembling components on a circuit board includes:
[0029] S331: The X and Y coordinates of the components on the circuit board are obtained by extracting the component information from the INP model file of the component through the python script in S31;
[0030] S332: The Z coordinate of the beam unit type component and the solid unit type component without solder layer is the absolute value of the Z coordinate value of the bottom of the component;
[0031] S333: The Z coordinate of the pin shell unit component with solder layer is the sum of the absolute value of the Z coordinate value of the bottom of the component, half of the thickness of the pin shell unit component, and the height of the solder layer;
[0032] S334: The Z coordinate of the pin shell unit component without solder layer is the sum of the absolute value of the Z coordinate value of the bottom of the component and half of the thickness of the pin shell unit component;
[0033] S335: The Z coordinate of a solid unit component with a solder layer is the sum of the absolute value of the bottom Z coordinate of the component and the height of the solder layer.
[0034] In one embodiment, the load created in the TCL script in S36 includes: a fixed constraint on one side of the XZ plane of the circuit board; an initial temperature load on the component nodes; and a temperature curve imported in S35 that is loaded onto the circuit board and components.
[0035] In one embodiment, the time point when the temperature of the descending section in the temperature curve is greater than the melting point of the solder ball is T0, and the static analysis step of the component in S37 takes T0 as a node;
[0036] When the time is less than T0, the connection structure between the component and the circuit board is set to be inactive, and when the time is greater than T0, the connection structure between the component and the circuit board is activated.
[0037] In one embodiment, the method for obtaining the temperature curve in S35 includes:
[0038] S21: Create an inner cavity model of a hot air reflow oven;
[0039] S22: Selecting the I NP file of the whole inner cavity model of the hot air reflow furnace;
[0040] S23: a python script reads the position information of the inner cavity model of the hot air reflow furnace in the I NP file of the entire inner cavity model of the hot air reflow furnace;
[0041] 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;
[0042] The finite element model of the whole circuit board equipped with components is moved from the plane (P7, P8, P9) to the plane corresponding to the initial soldering position of the hot air reflow oven (P10, P11, P12);
[0043] S25: Generate a 2D grid from the grid of the overall circuit board in the finite element model INP file 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 where it is located in the inner cavity model of the hot air reflow furnace, and then perform tetrahedral grid division on the area in the inner cavity model of the hot air reflow furnace where the Boolean operation is performed, 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 grid model file calculated in the Fluent software;
[0044] S26: The python script reads each component and its material information to obtain the process parameters of hot air reflow soldering;
[0045] S27: Generate UDF and TUI pre-processing scripts of Fluent software through Python script, solve in Fluent software, and obtain temperature curve.
[0046] In one embodiment, the method for obtaining the INP file of the finite element model of the overall circuit board equipped with components in S24 includes:
[0047] S11: Establish a database of finite element mesh model I NP files of various components;
[0048] S12: Select the finite element mesh model INP file of the circuit board and establish a coordinate system;
[0049] 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;
[0050] 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;
[0051] 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.
[0052] In the stress calculation method for the circuit board welding process provided by the present application, the information of the circuit board and components is extracted from the INP model files of the circuit board and components through a python script, and then a hypermesh script is written with a python script, in which boundary conditions are applied to the model, and then the ABAQUS calculation script is written with a python script and imported into the ABAQUS calculation. The technical solution provided by the present application automates the information processing by writing scripts, quickly models the thermal analysis process in the simulation circuit board welding process, assigns boundary conditions, and finally calculates the stress of the circuit board welding process, so that the stress analysis process is simple to operate and the analysis process is faster.
[0053] 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
[0054] 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.
[0055] Figure 1 A logic flow chart of a stress calculation method for a circuit board welding process provided in Example 1 of the present application;
[0056] Figure 2 The temperature curve diagrams of two positions obtained by the temperature curve acquisition method of hot air reflow soldering provided in Example 1 of the present application;
[0057] Figure 3 A schematic diagram of the coordinate system established in S12 in an implementation of obtaining an INP file of a finite element model of an integral circuit board equipped with components provided in Example 1 of the present application;
[0058] Figure 4a ) is a schematic diagram of a solid unit type component without solder applied in Example 1 of the present application;
[0059] Figure 4b ) is a schematic diagram of a solid unit type component after solder is applied to the component by S32;
[0060] Figure 5 This is a schematic diagram of the fixed constraint on one side of the XZ plane of the circuit board in S36 of Example 1 of the present application;
[0061] Figure 6 A schematic diagram of the initial temperature load applied to all component nodes in S36 of Example 1 of the present application;
[0062] Figure 7This is the stress cloud diagram obtained in Example 1 of the present application. DETAILED DESCRIPTION
[0063] 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.
[0064] Example 1
[0065] This embodiment provides a stress calculation method for a circuit board welding process, which uses a temperature curve of the circuit board during the welding process to simulate the thermal force of the circuit board welding process.
[0066] The circuit board can be soldered by hot air reflow soldering or vapor phase soldering. This embodiment first provides a method for obtaining a temperature curve of hot air reflow soldering, comprising:
[0067] S21: Create an inner cavity model of a hot air reflow oven;
[0068] 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 I NP file of the entire inner cavity model of the hot air reflow furnace;
[0069] S23: a python script reads the position information of the inner cavity model of the hot air reflow furnace in the I NP file of the entire inner cavity model of the hot air reflow furnace;
[0070] 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 coordinate, Y coordinate, and Z coordinate of the inner cavity model of the hot air reflow furnace; 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), among which the plane (P10, P11, P12) is the initial welding position of the hot air reflow furnace;
[0071] 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;
[0072] S25: using the "find faces" function in tcl, generating a 2D mesh from the mesh of the overall circuit board in the finite element model INP file of the overall circuit board equipped with components, generating the geometric outer surface of the overall circuit board model through the 2D mesh, and then generating its 3D geometric entity from the geometric outer surface of the overall circuit board model, using the geometric entity of the overall circuit board model to perform Boolean operation on the geometric model of the area where it is located in the inner cavity model of the hot air reflow furnace, and then performing 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 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 outputting the MSH format mesh model file calculated in the Fluent software;
[0073] 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.
[0074] S26: The python script reads each component and its material information to obtain the process parameters of hot air reflow soldering;
[0075] S27: Generate UDF and TUI pre-processing scripts of Fluent software through Python scripts, solve in Fluent software, and obtain temperature curve, such as Figure 2 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 entities in the MSH file.
[0076] In this embodiment, each component and its material information is read by searching for keywords in S26.
[0077] 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;
[0078] 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.
[0079] 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.
[0080] Compared with the click operation through the software interface, this embodiment uses a python script to create a pre-processing TCL script for the hypermesh software, and the operation process is simple and fast.
[0081] The simulation model for simulating the environment in the hot air reflow furnace may use the method described in the patent document with the publication number CN116151067A.
[0082] This embodiment also provides an implementation method for obtaining an INP file of a finite element model of an entire circuit board equipped with components, including:
[0083] S11: Establish a database of finite element mesh model I NP files of various components;
[0084] Use the scripts provided in the hypermesh software to perform some operations, including:
[0085] S12: Select the finite element mesh model I NP file of the circuit board to be used and establish a coordinate system;
[0086] S13: using a python script to read the setting information of the components, and identifying and saving the height, corresponding local coordinate system and material of the components in the finite element mesh model I NP file of the components;
[0087] S14: Use Python script to create a pre-processing TCL script for the hypermesh software, rotate and move the local coordinate system of each component according to the design position; place the models of each component on the circuit board model according to the design position; specifically, use the "rotate" function, select the origin of the component, rotate α degrees around the Z axis, use the "position" function, create six points P1 (0, 0, 0), P2 (1, 0, 0), P3 (0, 1, 0), P4 (X, Y, Z), P5 (X+1, Y, Z), P6 (X, Y+1, Z), and move the component from plane (P1, P2, P3) to plane (P4, P5, P6);
[0088] 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 a finite element model I NP file of the whole circuit board assembled with the components.
[0089] When the above implementation method performs circuit board assembly based on the hypermesh software, Python is used to read information from the I NP 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.
[0090] In this embodiment, the database of the finite element mesh model I NP file of the component contains the material information and position information of the component;
[0091] The position information of the component takes the bottom center of the component as the coordinate origin.
[0092] 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 3 shown.
[0093] In this coordinate system, set the X coordinate, Y coordinate, and Z-axis rotation angle α around the origin of each component.
[0094] The heights of different components in the database are not consistent, and the height information of each component cannot be guaranteed to be known when assembling the circuit board. Therefore, in S13 of this embodiment, the height of the component in the finite element mesh model I NP file of the component is identified. Specifically, the information of all nodes of the component in the I NP file is read through a 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.
[0095] In S14 of this embodiment, components are moved from planes (P1, P2, P3) to planes (P4, P5, P6) in a corresponding order.
[0096] After using the temperature change curve of the circuit board model, thermal analysis is performed. During the thermal analysis, the components and circuit boards are automatically reassembled through Python scripts.
[0097] Stress calculation method for circuit board welding process, refer to Figure 1 ,Include:
[0098] S31: The python script extracts the information of the circuit board and components from the I NP model files of the circuit board and components; in the computational fluid dynamics calculation software Fluent, the required information is different from the information required in the script of the finite element analysis software ABAQUS. In order to speed up the efficiency, this embodiment is divided into two scripts.
[0099] S32: applying solder to the bottom of the pin shell unit type component; applying solder to the bottom of the solid unit type component that needs to add solder;
[0100] S33: Assembling components on the circuit board;
[0101] Create a hypermesh TCL script file through the above steps.
[0102] S34: In the TCL script, set the Tie contact between the components and the circuit board; the "AutoContact" command can be used to set the Tie contact;
[0103] S35: Importing the temperature curve of the whole circuit board equipped with components into the TCL script; the temperature curve of the whole circuit board equipped with components can be obtained by the aforementioned method for obtaining the temperature curve of hot air reflow soldering; the file format of the temperature curve obtained by the aforementioned method for obtaining the temperature curve of hot air reflow soldering is in out format, and the temperature curve of the whole circuit board equipped with components imported into the TCL script in this step can also be imported in out format file;
[0104] S36: Create a payload in TCL script;
[0105] S37: Create a static analysis step for the corresponding components based on the temperature curve in S34 to perform stress calculations during the circuit board welding process.
[0106] After the above steps, the stress analysis process is completed through the script, and the stress cloud diagram can be obtained, such as Figure 7 shown.
[0107] Enter a range on the stress cloud map, and the script will automatically mark the resulting stress cloud map. Stress values that exceed the range are considered to have the potential to cause the circuit board to fail and are marked in red. The rest are considered normal in white. At the same time, the stress of all nodes is output, and the nodes with stress values exceeding the range are screened out. The position of this node is determined through the coordinate information of the node saved in the previous text, and then the component to which the node belongs is determined through the position of the component, and a direct prompt is given that this component is out of the stress range at this time, thereby achieving the effect of stress warning.
[0108] In the stress calculation method of the circuit board welding process of this embodiment, the information of the circuit board and components is extracted from the INP model files of the circuit board and components through a python script, and then a hypermesh script is written with a python script, in which boundary conditions are applied to the model, and then the ABAQUS calculation script is written with a python script and imported into the ABAQUS calculation. The technical solution provided in this embodiment automates information processing by writing scripts, quickly models the thermal analysis process in the simulation circuit board welding process, assigns boundary conditions, and finally calculates the stress of the circuit board welding process, so that the stress analysis process is simple to operate and the analysis process is faster.
[0109] In this embodiment, S31 includes: from the I NP model files of the circuit board and components:
[0110] S311: Read the grid node position information of the component, and save the position information of all the bottom nodes and top nodes of the component;
[0111] S312: Read the composition of components and determine the types of components. The types of components include entity class, pin shell unit class and beam unit class. In one embodiment, the model with the keyword "Shell" is the pin shell unit class model, which will record the thickness parameter of the shell unit. The model with the keyword "Beam" is the beam unit class model, and the rest are regarded as entity class models.
[0112] S313: Save the names of each component, the corresponding materials and the local coordinate system names;
[0113] S314: Determine the contact type of the component, including determining whether the component is in contact and determining whether the contact of the component of the pin shell unit model is a point-to-surface contact type; in one embodiment, determine whether the device is in contact (i.e., whether all grids have common nodes) by whether there is a Tie keyword, and determine whether the contact of the shell unit device is a point-to-surface contact type by using the "*SHELL TO SOL ID COUPLI NG" keyword;
[0114] S315: Determine whether there is a special mark. If so, read the special mark and save the corresponding mark data for use in subsequent data processing.
[0115] In a preferred embodiment, S31 also includes deleting repeated component names and material names. Since the components of the model in ABAQUS are unique, one attribute and material can be assigned to different components at the same time. In this embodiment, repeated attribute names and material names are screened and deleted to avoid subsequent repeated operations on one attribute or material.
[0116] In this embodiment, applying solder to the bottom of the pin shell unit component in S32 includes:
[0117] S321: Determine whether the pin direction of the pin shell unit type component is along the X axis or the Y axis;
[0118] S322: For pin shell unit components with pins running along the Y-axis direction:
[0119] In the positive X coordinate of the bottom coordinate of the pin shell unit component: the point P1 (Xpmax, Ypmax, Zpmin) where both the X coordinate and the Y coordinate are the maximum value, the point P2 (Xpmin, Ypmin, Zpmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with P2 (Xpmin, Ypmin, Zpmin) as the base point and the length, width and height are (Xpmax-Xpmin, Ypmax-Ypmin, a) respectively;
[0120] In the negative X coordinate of the bottom coordinate of the pin shell unit component: the point N1 (Xnmax, Ynmax, Znmin) where both the X coordinate and the Y coordinate are the maximum value, the point N2 (Xnmin, Ynmin, Znmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with N2 (Xnmin, Ynmin, Znmin) as the base point and the length, width and height are (Xnmax-Xnmin, Ynmax-Ynmin, a) respectively;
[0121] S323: For pin shell unit components with pins running along the X-axis direction:
[0122] In the positive Y coordinate of the bottom coordinate of the pin shell unit component: the point P3 (X`pmax, Y`pmax, Z`pmin) where both the X coordinate and the Y coordinate are the maximum value, the point P2 (X`pmin, Y`pmin, Z`pmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with P2 (X`pmin, Y`pmin, Z`pmin) as the base point and the length, width and height are (X`pmax-X`pmin, Y`pmax-Y`pmin, a) respectively;
[0123] In the negative Y coordinate of the bottom coordinate of the pin shell unit component: the point N1 (X`nmax, Y`nmax, Z`nmin) where both the X coordinate and the Y coordinate are the maximum value, the point N2 (X`nmin, Y`nmin, Z`nmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with N2 (X`nmin, Y`nmin, Z`nmin) as the base point and the length, width and height are (X`nmax-X`nmin, Y`nmax-Y`nmin, a) respectively.
[0124] In S32 of this embodiment, when solder is applied to the bottom of a solid unit component that needs to be soldered, the maximum and minimum values of all X coordinates and Y coordinates at the bottom of the component are directly identified, the length, width and height are calculated, and a solder layer with corresponding length, width and height dimensions is established with the point where both the X coordinate and the Y coordinate are the minimum values as the base point. Figure 4a ), after applying solder 1 to the components through S32, as shown in Figure 4b ) as shown.
[0125] When assembling components on a circuit board, the X and Y coordinate positions of the components can be obtained by reading the input information, while the Z coordinate needs to be determined because different components need to be moved different distances in the Z direction when assembled on the circuit board due to the presence of the solder layer. When the height of the solder layer is set to 0.1 mm, S33 of this embodiment assembles the components on the circuit board including:
[0126] S331: The X and Y coordinates of the components on the circuit board are obtained by extracting the component information from the I NP model file of the component through the Python script in S31;
[0127] S332: The Z coordinate of the beam unit type component and the solid unit type component without solder layer is the absolute value of the Z coordinate value of the bottom of the component;
[0128] S333: The Z coordinate of the pin shell unit component with solder layer is the sum of the absolute value of the Z coordinate value of the bottom of the component, half of the thickness of the pin shell unit component, and the height of the solder layer 0.1mm;
[0129] S334: The Z coordinate of the pin shell unit component without solder layer is the sum of the absolute value of the Z coordinate value of the bottom of the component and half of the thickness of the pin shell unit component;
[0130] S335: The Z coordinate of a solid unit component with a solder layer is the sum of the absolute value of the Z coordinate of the bottom of the component and the height of the solder layer 0.1 mm.
[0131] In this embodiment, the load created in the TCL script in S36 includes: a fixed constraint on one side of the XZ plane of the circuit board, such as Figure 5 As shown; the initial temperature load of the component node can be set to 20 degrees Celsius, such as Figure 6 Figure 2 shows the temperature profile imported into S35 loaded onto the circuit board and components.
[0132] When the temperature is higher than 183 degrees Celsius, the melting point of the solder ball, the solder ball is a fluid with a certain viscosity and is considered to have no stress or strain. The time point when the descending section of the temperature curve is greater than the melting point of the solder ball is T0. Different components have different T0 values. In S37 of this embodiment, the static analysis step of the component is based on its T0 as a node.
[0133] When the time is less than T0, the solder ball is in a melting state, and the connection structure between the component and the circuit board (including the solder layer and the solder ball, etc.) is set to be inactive. When the time is greater than T0, the solder ball solidifies and begins to bear stress, activating the connection structure between the component and the circuit board.
[0134] 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.
[0135] 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.
[0136] 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.
[0137] 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 stress calculation method for a circuit board welding process, characterized in that: Include: S31: Python script extracts information of circuit boards and components from INP model files of circuit boards and components; S32: applying solder to the bottom of the pin shell unit type component; applying solder to the bottom of the solid unit type component that needs to add solder; S33: Assembling components on the circuit board; S34: In the TCL script, set Tie contact between components and circuit boards; S35: Import the temperature curve of the whole circuit board equipped with components into the TCL script; S36: Create a payload in TCL script; S37: Create a static analysis step for the corresponding components based on the temperature curve in S34 to perform stress calculations during the circuit board welding process.
2. The stress calculation method according to claim 1, characterized in that: S31 contains the following INP model files from the board and components: S311: Read the grid node position information of the component, and save the position information of all the bottom nodes and top nodes of the component; S312: Read the composition of components and determine the types of components, where the types of components include entity class, pin shell unit class and beam unit class; S313: Save the names of each component, the corresponding materials and the local coordinate system names; S314: Determine the contact type of the component, including determining whether the component is in contact and determining whether there is a point-to-surface contact type in the contact of the component of the pin shell unit model; S315: Determine whether there is a special mark, and if so, read the special mark.
3. The stress calculation method according to claim 2, characterized in that: S31 also includes deleting repeated component names and material names.
4. The stress calculation method according to claim 1, characterized in that: Applying solder to the bottom of the lead shell unit component in S32 includes: S321: Determine whether the pin direction of the pin shell unit type component is along the X axis or the Y axis; S322: For pin shell unit components with pins running along the Y-axis direction: In the positive X coordinate of the bottom coordinate of the pin shell unit component: the point P1 (Xpmax, Ypmax, Zpmin) where both the X coordinate and the Y coordinate are the maximum value, the point P2 (Xpmin, Ypmin, Zpmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with P2 (Xpmin, Ypmin, Zpmin) as the base point and the length, width and height are (Xpmax-Xpmin, Ypmax-Ypmin, a) respectively; In the negative X coordinate of the bottom coordinate of the pin shell unit component: the point N1 (Xnmax, Ynmax, Znmin) where both the X coordinate and the Y coordinate are the maximum value, the point N2 (Xnmin, Ynmin, Znmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with N2 (Xnmin, Ynmin, Znmin) as the base point and the length, width and height are (Xnmax-Xnmin, Ynmax-Ynmin, a) respectively; S323: For pin shell unit components with pins running along the X-axis direction: In the positive Y coordinate of the bottom coordinate of the pin shell unit component: the point P3 (X`pmax, Y`pmax, Z`pmin) where both the X coordinate and the Y coordinate are the maximum value, the point P2 (X`pmin, Y`pmin, Z`pmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with P2 (X`pmin, Y`pmin, Z`pmin) as the base point and the length, width and height are (X`pmax-X`pmin, Y`pmax-Y`pmin, a) respectively; In the negative Y coordinate of the bottom coordinate of the pin shell unit component: the point N1 (X`nmax, Y`nmax, Z`nmin) where both the X coordinate and the Y coordinate are the maximum value, the point N2 (X`nmin, Y`nmin, Z`nmin) where both the X coordinate and the Y coordinate are the minimum value, the height of the solder layer is set to a, and a solder layer is created with N2 (X`nmin, Y`nmin, Z`nmin) as the base point and the length, width and height are (X`nmax-X`nmin, Y`nmax-Y`nmin, a) respectively.
5. The stress calculation method according to claim 1, characterized in that: In S32, when solder is applied to the bottom of a solid unit component that needs to be soldered, the maximum and minimum values of the X coordinate and Y coordinate of the bottom of the component are directly identified, the length, width and height are calculated, and a solder layer of corresponding length, width and height is established with the point where the X coordinate and the Y coordinate are the minimum values as the base point.
6. The stress calculation method according to claim 1, characterized in that: S33 assembles components on circuit boards including: S331: The X and Y coordinates of the components on the circuit board are obtained by extracting the component information from the INP model file of the component through the python script in S31; S332: The Z coordinate of the beam unit type component and the solid unit type component without solder layer is the absolute value of the Z coordinate value of the bottom of the component; S333: The Z coordinate of the pin shell unit component with solder layer is the sum of the absolute value of the Z coordinate value of the bottom of the component, half of the thickness of the pin shell unit component, and the height of the solder layer; S334: The Z coordinate of the pin shell unit component without solder layer is the sum of the absolute value of the Z coordinate value of the bottom of the component and half of the thickness of the pin shell unit component; S335: The Z coordinate of a solid unit component with a solder layer is the sum of the absolute value of the bottom Z coordinate of the component and the height of the solder layer.
7. The stress calculation method according to claim 1, characterized in that: The loads created in the TCL script in S36 include: fixed constraints on one side of the XZ plane of the circuit board; initial temperature loads on component nodes; and the temperature curves imported in S35 that are loaded onto the circuit board and components.
8. The stress calculation method according to claim 1, characterized in that: The time point when the temperature of the descending section in the temperature curve is greater than the melting point of the solder ball is T0, and the static analysis step of the components in S37 takes T0 as the node; When the time is less than T0, the connection structure between the component and the circuit board is set to be inactive, and when the time is greater than T0, the connection structure between the component and the circuit board is activated.
9. The stress calculation method according to claim 1, characterized in that: The method for obtaining the temperature curve in S35 includes: S21: Create an inner cavity model of a hot air reflow oven; S22: Select the INP file of the entire inner cavity model of the hot air reflow furnace; 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 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; Move the finite element model of the whole circuit board equipped with components from the plane (P7, P8, P9) to the plane corresponding to the initial soldering position of the hot air reflow oven (P10, P11, P12); 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, 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 grid 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, and obtain the temperature curve.
10. The stress calculation method according to claim 9, characterized in that: The method for obtaining the INP file of the finite element model of the whole circuit board equipped with components in S24 includes: 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 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; 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; 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.
Citation Information
Patent Citations
Simulation model establishment method for environment in hot air reflow oven and simulation model
CN116151067A
Method for setting reflow soldering loading curve parameters
CN103345539A
Thermal stress damage simulation method for electronic component surface mounting process
CN111209720A
PCB service life analysis method based on reliability analysis
CN115906573A
Materials-based failure analysis in design of electronic devices, and prediction of operating life
US20080015827A1
Cited By
Detection device and detection method for circuit board welding
CN120522174A
