Parallel integration method of structural stiffness matrix
By introducing the influence unit degree-of-freedom list and the stiffness dump array, the structural stiffness matrix integration process is optimized, enabling parallel calculations in nonlinear analysis. This solves the problem of long stiffness matrix updates in traditional methods and significantly improves calculation efficiency.
Patent Information
- Application Number
- CN202410791851.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-24
AI Technical Summary
The traditional structural stiffness matrix integration method cannot make full use of the multi-core computing characteristics, resulting in a long time-consuming real-time update process of the stiffness matrix in nonlinear finite element analysis, which has become an important factor in the application.
By introducing the influence unit degree of freedom list and the stiffness dump array, the overall stiffness matrix integration process is optimized, making it naturally parallelizable in each calculation step, and realizing parallel calculation and iterative update of the structural stiffness matrix.
It significantly improves the computational efficiency of structural analysis, overcomes the problem of poor parallel performance in the stiffness matrix update process in traditional methods, and achieves parallel computing acceleration in nonlinear analysis.
Smart Images

Figure CN118690608A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of structural analysis and relates to a parallel integration method of a structural stiffness matrix. Background Art
[0002] To calculate the response of engineering structures under extreme environmental loads, it is necessary to first establish a numerical calculation model of the structure, and consider nonlinear behaviors such as materials and geometry during the solution process. The solution is usually solved in a step-by-step incremental format. Iterative calculations are inevitable in this process, and the overall stiffness matrix needs to be continuously updated and decomposed. Since adjacent units in the structural finite element model will share interface nodes, the stiffness matrices of different units need to be superimposed when integrating from unit stiffness to overall stiffness. Traditional methods can often only calculate in a serial manner when implementing the program of this process, and cannot fully utilize the multi-core characteristics of the computer for parallel acceleration. Therefore, when the calculation model is large, the real-time update process of the large-scale stiffness matrix will become extremely time-consuming, becoming an important factor restricting the application of nonlinear finite element algorithms. The present invention optimizes the integration process of the overall stiffness matrix and decomposes the stiffness integration into multiple calculation steps at the unit level and the degree of freedom level. The operations of each unit or degree of freedom level in each calculation step are independent of each other, so that the whole process of the overall stiffness matrix integration meets the parallel computing requirements. The parallel method strategy can be used in the nonlinear analysis process to realize the repeated iterative update of the overall stiffness matrix of the structure, which has higher computing efficiency than the traditional structure stiffness matrix serial integration method. Summary of the invention
[0003] In order to overcome the shortcomings of the above-mentioned existing methods, the present invention proposes a parallel integration method for the stiffness matrix of a structural finite element model. The method of the present invention optimizes the implementation process of the integration of the overall stiffness matrix of the structure by introducing a list of influencing unit degrees of freedom, a stiffness transfer array, etc. to transfer data from unit stiffness to the overall stiffness integration process, ensuring that each calculation step has natural parallelism, avoiding the problems of poor parallel performance and low calculation efficiency of the stiffness integration process caused by the superposition of different unit stiffness matrices, and effectively improving the efficiency of structural analysis. The present invention has a wide range of applicability and can be used to accelerate the calculation of structural nonlinear analysis in many fields.
[0004] The technical solution of the present invention:
[0005] A parallel integration method for a structural stiffness matrix includes two operation steps: a preprocessing calculation and a real-time stiffness matrix integration. The preprocessing calculation is an operation step performed before structural analysis and only needs to be performed once. The real-time stiffness matrix integration is an operation step required for updating the stiffness matrix at each nonlinear iteration and needs to be re-executed at each iteration.
[0006] 1. Preprocessing calculation includes the following steps:
[0007] (1.1) Degree of freedom coding. First, the overall degree of freedom coding (i.e., total code) of each node of the structural model is determined. Then, at the unit level, the local degree of freedom coding (i.e., local code) of the nodes within each unit is established. The corresponding relationship between the local degree of freedom code of each node of the unit and the corresponding overall degree of freedom code is established (represented by the unit degree of freedom mapping matrix).
[0008] (1.2) Establish a list of degrees of freedom of the influencing unit corresponding to the total code of each degree of freedom. Consider that any node (denoted as node i) will connect multiple different units (called influencing units, denoted as units j, j+1...j+m, where m is the total number of influencing units). All influencing units constitute the influence domain of the node, that is, all the node degrees of freedom of these influencing units have an impact on the degrees of freedom of node i. The corresponding total code of the degrees of freedom of the influencing unit represents the position of the non-zero element in the row or column corresponding to the total code of the degrees of freedom of node i in the overall stiffness matrix. For each total code of the degrees of freedom of node i, the total codes of all the node degrees of freedom of its influencing units are stacked in sequence to form a list of degrees of freedom of the influencing unit. The list contains all the degrees of freedom of node i, and the degrees of freedom with the same total code are not merged. Further establish a real number array (called stiffness transfer array) with a data length equal to the list of degrees of freedom of the influencing unit for each degree of freedom, and assign an arbitrary initial value. This array is used to temporarily transfer the stiffness of each unit when the unit stiffness matrix is integrated into the overall stiffness matrix.
[0009] (1.3) For each degree of freedom, determine the index information of the total degree of freedom code array of each influencing unit in the corresponding influencing unit degree of freedom list (referred to as IEDOFI array for short).
[0010] 2. Real-time stiffness matrix integration includes the following steps
[0011] (2.1) Calculate the unit stiffness matrix (abbreviated as unit stiffness) of each unit. For each unit, according to the unit degree of freedom mapping vector, the total code corresponding to the local code of each unit can be known. Each row (or column) of the unit stiffness corresponds to a local code and a total code. Further call the unit stiffness, take out each row (or column) element respectively, and call the index information in the IEDOFI array established in the preprocessing stage according to the corresponding total code and unit number. According to the index information, the unit stiffness is stored row by row in the corresponding position in the stiffness transfer array. This step only involves the calculation, retrieval and transfer of the stiffness matrix of each unit, and the execution process of each unit is independent of each other. It does not involve the mutual call of data between units and the superposition of data of different units, and has natural parallelism.
[0012] (2.2) For each degree of freedom, there is a one-to-one correspondence between the data in the degree of freedom list of the influencing unit and the data in the stiffness transfer array. The data in the degree of freedom list of the influencing unit is sorted in ascending order, and the index sequence of each element in the original degree of freedom list of the influencing unit after the ascending order is obtained. The stiffness transfer array is further sorted according to the index sequence to ensure that the correspondence between the elements of the two arrays remains unchanged before and after the rearrangement. This step only involves the calculation of relevant data at each degree of freedom level, and each degree of freedom is independent of each other in the execution process, and does not involve mutual calls and superpositions between the degree of freedom data, which has natural parallelism.
[0013] (2.3) For each degree of freedom (set as degree of freedom k), the rearranged list of degrees of freedom of the influencing unit is traversed, the index sequence of the repeated elements in the list is calculated in sequence, and the values of the repeated elements are obtained. According to the index sequence, the relevant elements in the reordered stiffness transfer array are extracted and summed. The calculation result represents all non-zero elements in the kth row (or column) of the overall stiffness matrix, and the values of the repeated elements represent the column (or row) number corresponding to each non-zero element. This step only involves the calculation of the relevant data of each degree of freedom, and each degree of freedom is independent of each other in the execution process, and does not involve mutual calls and superpositions between the data of each degree of freedom, which has natural parallelism.
[0014] (2.4) Combined with an appropriate matrix sparse storage format, all non-zero elements of each row (or column) of the overall degree of freedom obtained in step 2.3 and their corresponding column (or row) numbers are assembled to complete the integrated update of the overall stiffness matrix of the structure. This step only involves operations such as copying and storing the relevant data of each row (or column) in the overall stiffness matrix, and the relevant data of each row (or column) are independent of each other during the operation process, which has natural parallelism.
[0015] (2.5) Restore the list of degrees of freedom affecting the unit to its original state. This step only involves the calculation of the data related to each degree of freedom, and each degree of freedom is independent of each other during the execution process. It does not involve mutual calls and superpositions between the data of each degree of freedom, and has natural parallelism.
[0016] The steps (2.1) to (2.5) are executed each time the stiffness matrix is updated and need to be repeated during the nonlinear analysis process. Since each step can be calculated in parallel, the whole process of integrating the overall stiffness matrix update can be parallelized during the nonlinear structural analysis process.
[0017] In the step (1.3), if the total degree of freedom code is 0, the corresponding index data in the IEDOFI array is meaningless and can be filled with any number (such as 0).
[0018] In the step (2.1), each unit stiffness needs to be first converted to the global coordinate system to ensure that the coordinate system of each unit stiffness is the same during the integration process.
[0019] In the step (2.1), there is no restriction on the calculation method and principle used for the element stiffness matrix.
[0020] In the step (2.4), it is not required to adopt a specific sparse storage format, and any applicable sparse storage format can be combined with the method of the present invention.
[0021] In the steps (2.3) and (2.4), the symmetry of the structural stiffness matrix is not required, that is, the inventive method is applicable to both symmetric stiffness matrices and asymmetric stiffness matrices. For symmetric stiffness matrices, during the traversal of step (2.3) and the assembly process of step (2.4), for any degree of freedom total code (such as total code i), only the relevant data in the list of unit degrees of freedom corresponding to total code i whose total code is greater than (or less than) the current degree of freedom total code can be operated.
[0022] In the steps (2.3) and (2.4), if the total code of the degree of freedom is 0, it means that the degree of freedom is constrained, and the relevant elements in the corresponding unit stiffness matrix do not enter the overall stiffness matrix. Therefore, the relevant stiffness data transfer and summation process can be omitted in these two steps.
[0023] Compared with the prior art, the advantages of the present invention are:
[0024] The whole process of stiffness matrix update integration can be parallelized in nonlinear analysis, overcoming the problem of long analysis time caused by the inability of traditional methods to accelerate the stiffness matrix update process in parallel, and effectively improving the efficiency of structural nonlinear analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a structural diagram of an embodiment. DETAILED DESCRIPTION
[0026] The present invention provides a stiffness matrix updating method based on parallel computing. The following further illustrates the implementation method of the present invention in combination with the accompanying drawings, examples and technical solutions. The accompanying drawings and embodiments are only for illustrating the implementation method of the present invention and do not constitute any limitation to the present invention.
[0027] Example:
[0028] 1. Figure 1The stiffness matrix integration of the plane frame structure shown in the figure is taken as an example to illustrate the implementation method of the present invention. The structure has 3 units (i.e., unit ①, unit ②, and unit ③), 4 nodes (i.e., node 1, node 2, node 3, and node 4), wherein node 1 and node 4 are fixed constraints. The starting node numbers of the 3 units are: 1-2 (unit ①), 2-3 (unit ②), 3-4 (unit ③). Each node is assumed to have three degrees of freedom, namely, the degree of freedom of translation along the X and Y directions and the degree of freedom of rotation around the direction perpendicular to the paper.
[0029] 2. Preprocessing calculation
[0030] (2.1) Considering the constraints, the overall degree of freedom code (i.e., total code) of each node is as follows:
[0031] Node 1: λ1 = {000}
[0032] Node 2: λ2 = {1 2 3}
[0033] Node 3: λ3 = {45 6}
[0034] Node 4: λ4 = {000}
[0035] (2.2) The node local code of each unit can be expressed as:
[0036]
[0037] (2.3) Determine the total code array of node degrees of freedom for each unit:
[0038] Unit 1:
[0039] Unit 2:
[0040] Unit 3:
[0041] (2.4) According to the local code array and total code array of the node degrees of freedom of each unit established above, the corresponding relationship between the local degree of freedom code of each unit node and its overall degree of freedom code (i.e., the unit degree of freedom mapping matrix) is determined:
[0042] Unit 1:
[0043] Unit 2:
[0044] Unit 3:
[0045] (2.5) Calculate the influence unit degree of freedom list χ corresponding to each degree of freedom total code (i)(i=1,2...6), as shown below. Further establish the stiffness transfer array η corresponding to each total code (i) (i=1,2...6), the size of this array is the same as the corresponding array χ (i) Similarly, the elements are initialized to 0 in the preprocessing stage.
[0046] Degree of Freedom 1:
[0047] Degree of Freedom 2:
[0048] Degree of Freedom 3:
[0049] Degree of Freedom 4:
[0050] Degree of Freedom 5:
[0051] Degrees of Freedom 6:
[0052] (2.6) According to the unit degree of freedom mapping matrix established above, calculate the index matrix (i.e. IEDOFI array) of the total code array of node degrees of freedom of each unit in the list of degrees of freedom of each influencing unit.
[0053] Unit 1:
[0054] Unit 2:
[0055] Unit 3: In each of the above arrays, the first column is the local code of the unit node degree of freedom, the second column is the corresponding degree of freedom total code, and the third and fourth columns represent the index number of the unit node degree of freedom total code array in the second column of the unit degree of freedom list. For example, for the IEDOFI array of unit 1 The first and second columns of the fourth row are 4 and 1 respectively, which means that the local code 4 of the unit corresponds to the total code 1. The fourth and fifth columns are 1 and 6 respectively, which means the list of degrees of freedom of the unit that affects the total code 1. (1) In the example, the total code array of the node degrees of freedom of unit 1 is stored from the 1st to the 6th number.
[0056] 3. Parallel integration of stiffness matrix
[0057] (3.1) Update the unit stiffness matrix (i.e., single stiffness) of each unit. Since the single stiffness calculation process of each unit is independent of each other, this step can be directly calculated in parallel. Figure 1 For the structure shown, the unit rigidity of each unit can be expressed as:
[0058]
[0059] (3.2) Take out each row of elements in each unit cell separately, and then calculate the IEDOFI array formed above. (k=①,②or③), copy each row element in each single rigidity to the rigidity transfer array η (i) (i=1,2...6). Taking unit ① as an example, its local codes 1-3 correspond to the total code 0, which means that the 1-3 rows of elements in the single stiffness of unit ① will not be integrated into the overall stiffness matrix, so they are not transferred. Its local code 4 corresponds to the total code 1, and the start and end index numbers in the corresponding IEDOFI array are 1 and 6 respectively. Therefore, the 4th row of elements in the single stiffness need to be taken out and stored in the stiffness transfer array η (1) In the 1st to 6th elements of , and so on, the 5th and 6th row elements in the single stiffness can be further stored in the corresponding positions of the stiffness transfer array, that is,
[0060] Degree of Freedom 1:
[0061] Degree of Freedom 2:
[0062] Degree of Freedom 3: The “*” in the formula represents the space reserved for storing the elements related to the unit ②. The unit stiffness of each unit is stored in the stiffness transfer array in the above manner, and the final result is:
[0063] Degree of Freedom 1:
[0064] Degree of Freedom 2:
[0065] Degree of Freedom 3:
[0066] Degree of Freedom 4:
[0067] Degree of Freedom 5:
[0068] Degrees of Freedom 6: In the above process, the transfer process of each unit does not interfere with each other and can be carried out synchronously in parallel.
[0069] (3.3) For each degree of freedom (let it be degree of freedom i), the corresponding array χ (i) Sort in ascending order (use ), and sort the array η according to the index number of each element after sorting. (i) Rearrange (use after arranging = ( ) to ensure that the correspondence between the elements in the two arrays before and after the rearrangement remains unchanged. Taking degree of freedom 1 as an example (i.e., let i = 1), the correspondence between the two arrays before and after the rearrangement and the elements therein is shown in the following formula.
[0070]
[0071]
[0072] The above operations need to be performed for each degree of freedom, but since the degrees of freedom do not interfere with each other, the calculation can be accelerated directly in parallel.
[0073] (3.4) For each degree of freedom (let it be degree of freedom i), sequentially traverse the corresponding Each element in the list records the index of the repeated element, and the corresponding The elements with the same index in are superimposed and recorded By writing each element in (repeated elements are recorded only once), we can obtain the array of non-zero elements constituting the i-th row in the overall stiffness matrix (using Representation) and non-zero column index array (using Taking degree of freedom 1 as an example (i.e. let i = 1), after the above operation, we can get the first row of non-zero elements in the global stiffness matrix (using Representation) and non-zero column index array (using Indicates) as follows.
[0074]
[0075] The above operations need to be performed for each degree of freedom, but the degrees of freedom do not interfere with each other, and the calculation can be accelerated directly in parallel. After this step is completed, the stiffness update integration can be completed by directly assembling the calculation results of this step in combination with an appropriate sparse storage format. The above process is independent of each other when executed at each degree of freedom level, and the calculation can be accelerated directly in parallel. For this example, the integrated stiffness matrix is:
[0076]
Claims
1. A parallel integration method for a structural stiffness matrix, characterized in that: The following steps are involved: (1) Preprocessing calculation, including the following steps: (1.1) Determine the global degree of freedom code and local degree of freedom code of each node of the structural model, and establish the corresponding relationship between the local degree of freedom code of each node of the unit and the corresponding global degree of freedom code; the global degree of freedom code is the total code; the local degree of freedom code is the local code; (1.2) Establish a list of influencing unit degrees of freedom corresponding to the total code of each degree of freedom; For a certain degree of freedom, the list is formed by sequentially stacking the total codes of all the node degrees of freedom that affect the element, including the degree of freedom itself; Further establish a real number array with a data length equal to the list of degrees of freedom of the influencing unit of each degree of freedom, the real number array is called the stiffness transfer array, and is assigned an arbitrary initial value. The stiffness transfer array is used to temporarily transfer the stiffness of each unit when the unit stiffness matrix is integrated into the overall stiffness matrix; (1.3) For each degree of freedom, determine the index information of the total degree of freedom code array of each influencing unit in the corresponding influencing unit degree of freedom list, referred to as IEDOFI array; (2) Real-time stiffness matrix integration, including the following steps: (2.1) Calculate the unit stiffness matrix of each unit, referred to as unit stiffness; for each unit, take out each row or column element in its unit stiffness, and retrieve the index information in the IEDOFI array established in the preprocessing stage according to the corresponding total code and unit number, and store the unit stiffness row by row in the corresponding position in the stiffness transfer array according to the index information; (2.2) For each degree of freedom, the data in the influencing unit degree of freedom list are arranged in ascending order, and the index sequence of each element in the original influencing unit degree of freedom list after the ascending order is obtained, and the stiffness transfer array is further arranged according to the index sequence to ensure that the corresponding relationship between the elements of the two arrays remains unchanged before and after the rearrangement; (2.3) For each degree of freedom, the rearranged list of degrees of freedom of the influencing unit is traversed, the index sequence of the repeated elements in the list is calculated sequentially, and the values of the repeated elements are obtained. According to the index sequence, the relevant elements in the reordered stiffness transfer array are extracted and summed. The calculation result represents all non-zero elements in the row or column corresponding to the degree of freedom in the overall stiffness matrix, and the values of the repeated elements represent the column or row number corresponding to each non-zero element; (2.4) Combined with an appropriate matrix sparse storage format, all non-zero elements of each row (or column) of the overall degree of freedom obtained in step (2.3) and their corresponding column or row numbers are assembled to complete the integrated update of the overall stiffness matrix of the structure; (2.5) Restore the list of degrees of freedom affecting the unit to its original state.
2. A parallel integration method of a structural stiffness matrix according to claim 1, characterized in that: For nonlinear analysis problems, the stiffness matrix integration process of steps (2.1) to (2.5) needs to be executed each time the structural stiffness is updated during the solution process.
3. A parallel integration method for a structural stiffness matrix according to claim 1 or 2, characterized in that: In the step 1.1, the unit degree of freedom mapping matrix is used to represent the correspondence between the local degree of freedom coding of each node of the unit and the corresponding overall degree of freedom coding.
4. A parallel integration method for a structural stiffness matrix according to claim 1 or 2, characterized in that: In the steps (2.3) and (2.4), when the total code of the degree of freedom is 0, it means that the degree of freedom is constrained, and the relevant elements in the corresponding unit stiffness matrix do not enter the overall stiffness matrix.
5. The parallel integration method of a structural stiffness matrix according to claim 3, characterized in that: In the steps (2.3) and (2.4), when the total code of the degree of freedom is 0, it means that the degree of freedom is constrained, and the relevant elements in the corresponding unit stiffness matrix do not enter the overall stiffness matrix.
