Method and device for automatically capturing demolition units in finite element model
By extracting component unit numbers in INP files and establishing correlation matrix and dictionary, automatic capture of demolition units in finite element model is achieved, solving the problem of low manual capture efficiency in the prior art, and improving the efficiency and flexibility of demolition scheme generation.
Patent Information
- Application Number
- CN202411669308.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-14
AI Technical Summary
In the prior art, when dismantling using ABAQUS, the removal unit requires manual capture, which is extremely inefficient, resulting in inefficient generation of the removal scheme.
By extracting the component unit numbers in the INP file, establishing a region matrix and an index dictionary, segmenting the demolition matrix and fixed matrix, generating a one-dimensional list of demolition units, and simulating the demolition scheme in the finite element model to automatically capture the demolition unit.
The removal unit capture efficiency is significantly improved, manual intervention is reduced, and the overall efficiency of dismantling scheme generation is improved, allowing for more flexibly comparing and evaluating the safety and effectiveness of different dismantling schemes.
Smart Images

Figure CN119623171A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computer data processing, and in particular to a method and device for automatically capturing component units in a finite element model. Background Art
[0002] With the continuous development of science and technology, engineering construction has also made continuous progress. In the current engineering construction, with the aging of old facilities and the application of new technologies, there will be more and more renovation and demolition projects for old buildings and facilities. In order to improve the reliability of safety analysis of demolition and modification projects, study the dynamic response characteristics of large structures during the demolition and modification construction process, and analyze the influence of different demolition sequences, demolition sizes, material properties and support methods on dynamic response, all of which are inseparable from finite element simulation analysis technology. ABAQUS is one of the most advanced large-scale general nonlinear finite element software in the world. It can handle very large and complex problems and simulate highly nonlinear problems. It can not only perform single-component mechanics and multi-physics analysis, but also perform system-level analysis and research. However, when using ABAQUS for demolition, the demolition unit to be demolished needs to be captured manually, and this capture method is extremely inefficient.
[0003] Therefore, how to improve the capture efficiency of the dismantling unit has become a technical problem that technical personnel in this field need to solve urgently. Summary of the invention
[0004] Based on the above problems, the present application provides a method and device for automatically capturing removal units in a finite element model, which can efficiently capture removal units that need to be removed in the finite element model.
[0005] The present application provides a method for automatically capturing a demolished unit in a finite element model, the method comprising the following steps:
[0006] Extract the unit number of the component unit in the file unit sequence of the INP file;
[0007] Establishing a region matrix and an index dictionary based on the unit number, wherein the region matrix includes a correspondence between component units in a target region and unit attributes of the component units, and the index dictionary includes a correspondence between the unit number and the component unit;
[0008] The regional matrix is divided into a demolition matrix and a fixed matrix, wherein the demolition matrix includes a corresponding relationship between a demolition unit and a unit attribute of the demolition unit, and the fixed matrix includes a corresponding relationship between a fixed unit and a unit attribute of the fixed unit;
[0009] Generate a one-dimensional list corresponding to the demolition units at each demolition according to the demolition matrix and the index dictionary;
[0010] In the finite element model, a demolition plan corresponding to each demolition is simulated based on the demolition matrix, the fixed matrix and the one-dimensional list to obtain a demolition result, and the demolition result is used to represent the evaluation corresponding to the demolition plan.
[0011] In a possible implementation, establishing a region matrix and an index dictionary based on the unit numbers includes:
[0012] Determining a correspondence between a plurality of component units and a unit length and a unit width of a corresponding component unit based on the unit numbers;
[0013] Based on the NumPy library, create two-dimensional data corresponding to the unit length and unit width of multiple component units;
[0014] Establishing a region matrix based on the two-dimensional data;
[0015] Using the unit number corresponding to each component unit in the regional matrix as a mapping value;
[0016] A set of the plurality of component units and the plurality of mapping values is used as an index dictionary.
[0017] In a possible implementation, generating a one-dimensional list corresponding to the demolition units at each demolition according to the demolition matrix and the index dictionary includes:
[0018] Determine the cell number corresponding to the element value in the demolition matrix based on the index dictionary;
[0019] Generate a one-dimensional list of list type corresponding to the removed unit each time based on the element value and the corresponding unit number;
[0020] Convert the one-dimensional list of list type into a one-dimensional list of geometry sequence type.
[0021] The present application also provides an automatic capture device for removing units in a finite element model, the device comprising the following modules:
[0022] An extraction module, used for extracting the unit number of the component unit in the file unit sequence of the INP file;
[0023] An establishing module, used for establishing a region matrix and an index dictionary based on the unit number, wherein the region matrix includes a correspondence between component units in a target region and unit attributes of the component units, and the index dictionary includes a correspondence between the unit number and the component unit;
[0024] A segmentation module, used for segmenting the regional matrix to obtain a demolition matrix and a fixed matrix, wherein the demolition matrix includes a correspondence between demolition units and unit attributes of the demolition units, and the fixed matrix includes a correspondence between fixed units and unit attributes of the fixed units;
[0025] A generating module, used for generating a one-dimensional list corresponding to the demolition units at each demolition according to the demolition matrix and the index dictionary;
[0026] A simulation module is used to simulate the demolition plan corresponding to each demolition in a finite element model based on the demolition matrix, the fixed matrix and the one-dimensional list to obtain a demolition result, wherein the demolition result is used to represent the evaluation corresponding to the demolition plan.
[0027] In a possible implementation, the establishing module is specifically used to:
[0028] Determining a correspondence between a plurality of component units and a unit length and a unit width of a corresponding component unit based on the unit numbers;
[0029] Based on the NumPy library, create two-dimensional data corresponding to the unit length and unit width of multiple component units;
[0030] Establishing a region matrix based on the two-dimensional data;
[0031] Using the unit number corresponding to each component unit in the regional matrix as a mapping value;
[0032] A set of the plurality of component units and the plurality of mapping values is used as an index dictionary.
[0033] In a possible implementation, the generating module is specifically used for:
[0034] Determine the cell number corresponding to the element value in the demolition matrix based on the index dictionary;
[0035] Generate a one-dimensional list of list type corresponding to the removed unit each time based on the element value and the corresponding unit number;
[0036] Convert the one-dimensional list of list type into a one-dimensional list of geometry sequence type.
[0037] The present application also provides an electronic device, the electronic device comprising a processor and a memory:
[0038] The memory is used to store a computer program and transmit the computer program to the processor;
[0039] The processor is used to execute the steps of the above-mentioned method for automatically capturing removed units in a finite element model according to the instructions in the computer program.
[0040] The present application also provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by an electronic device, the steps of the automatic capture method of the demolished unit in the finite element model are implemented.
[0041] Compared with the prior art, this application has the following beneficial effects:
[0042] The regional matrix and index dictionary established in this application provide structured data information for the demolition project. This data structure clarifies the relationship between each component unit and its attributes, so that when simulating the demolition plan, the accuracy and consistency of the data can be ensured, and the errors caused by data confusion can be reduced. By segmenting the demolition matrix and the fixed matrix, a one-dimensional list of different demolition plans can be generated more flexibly. This flexibility allows managers to easily compare and evaluate the safety and effectiveness of different plans, minimizing the potential risks in the demolition process. Simulating the effect of each demolition in the finite element model can reflect the impact of different demolition plans on structural safety in real time. Unlike the prior art that only relies on static analysis, the dynamic simulation analysis of this application provides a more comprehensive and in-depth safety assessment, which helps managers make more scientific decisions in complex demolition environments. The method provided in this application can realize the automatic capture of demolition units by extracting the component unit numbers in the INP file and establishing a regional matrix and index dictionary based on these numbers. This process greatly reduces manual intervention and avoids the problem of inefficiency in manually capturing demolition units in the prior art, thereby significantly improving the overall efficiency of demolition plan generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1 A flowchart of a method for automatically capturing component units in a finite element model provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of the mechanism of an automatic capture device for a component unit in a finite element model provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] As described above, in current engineering construction, with the aging of old facilities and the application of new technologies, there will be more and more renovation and demolition projects for old buildings and facilities. In order to improve the reliability of safety analysis of demolition and modification projects, study the dynamic response characteristics of large structures during demolition and modification construction, and analyze the influence of different demolition sequences, demolition sizes, material properties and support methods on dynamic response, finite element simulation analysis technology is indispensable. ABAQUS is one of the most advanced large-scale general nonlinear finite element software in the world, which can handle very large and complex problems and simulate highly nonlinear problems. It can not only perform single-component mechanics and multi-physics analysis, but also perform system-level analysis and research. However, when using ABAQUS for demolition, the demolition unit to be demolished needs to be captured manually, and this capture method is extremely inefficient.
[0047] After research, it was found that in ABAQUS, there is a certain difference in the unit serial number between the demolition units that need to be demolished and the fixed parts that do not need to be demolished. The unit serial number of the fixed part of the constructed model is fixed and will not change with different demolition plans.
[0048] Before dismantling a structure or component, the order of dismantling must be determined. After the order is determined, the parts to be dismantled are divided into zones so that the dismantled parts can be transported from indoors to outdoors in a relatively suitable size, and the impact on the remaining structure is minimized when each zone is dismantled. Therefore, the zoning of the dismantled parts determines the economy and safety of the dismantling plan, and the method of automatically capturing the dismantled component units can improve the efficiency of finite element analysis, thereby relatively quickly selecting the optimal plan.
[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] It is understandable that the method provided by the present application can be applied to a processing device, which is a processing device that can extract the unit number of the component unit in the file unit sequence of the INP file, for example, a terminal device or server that can extract the unit number of the component unit in the file unit sequence of the INP file. The method provided by the present application can be executed independently by a terminal device or a server, or it can be applied to a network scenario in which a terminal device and a server communicate, and is executed by the cooperation of a terminal device and a server. Among them, the terminal device can be a computer, a mobile phone or other device. The server can be understood as an application server or a Web server. In actual deployment, the server can be a stand-alone server or a cluster server.
[0051] Figure 1 A flowchart of a method for automatically capturing component units in a finite element model provided in the present application, the method comprising the following steps:
[0052] S101: extracting the unit number of the component unit in the file unit sequence of the INP file.
[0053] The processing device may extract the unit number of the component unit in the file unit sequence of the INP file.
[0054] The INP file is a bridge for data transfer between the early processor and the solver of the finite element analysis process. It is a text file with an extension of .inp generated based on keywords. The INP file is automatically generated by the CAE module of ABAQUS during the model simulation process and can be opened or modified by a text editing tool. The INP file contains all the features of a mathematical model. In this application, the INP file can include all the features in the engineering construction model. Therefore, the first step of this method is to extract the unit number of the component unit in the INP file. The component unit can be a component in the engineering construction model, and the component unit can be, for example, a structure such as a plate, a beam or a wall.
[0055] S102: Establishing a region matrix and an index dictionary based on the unit numbers.
[0056] The processing device establishes a region matrix and an index dictionary based on the unit number. The region matrix includes the correspondence between the component units in the target region and the unit attributes of the component units, and the index dictionary includes the correspondence between the unit number and the component unit.
[0057] For example, there are two walls in the target area, and the two walls have corresponding unit attributes, which may be the length, width, thickness, material and other attributes of the wall. Each wall has a corresponding unit number. The processing device can determine the correspondence between the two walls and the unit attributes based on the unit number, and represent each wall and the corresponding unit attribute in the form of an array to generate a regional matrix. The unit number corresponding to each wall in the regional matrix is used as a mapping value, and the set of the two walls and the corresponding two mapping values is used as an index dictionary.
[0058] Numerical Python, NumPy is an open source Python library that is widely used to perform numerical calculations. It provides a high-performance multidimensional array object (ndarray) and a wide range of tools for manipulating these arrays. ndarray is a multidimensional array with all elements of the same type. Compared with Python's native list, NumPy arrays are more efficient and optimized when storing and manipulating large data sets. Therefore, the core of the unit indexing method that considers geometric features is to create multiple matrices (i.e., two-dimensional arrays) corresponding to the length and width of the demolition component units through the NumPy library, and establish a dictionary index for each element in each matrix. The mapping value in the dictionary is the demolition component unit number corresponding to the matrix position.
[0059] In a possible implementation, the processing device may determine the correspondence between the plurality of component units and the unit length and unit width of the corresponding component units based on the unit number. Two-dimensional data corresponding to the plurality of component units and the unit length and unit width of the corresponding component units is created based on the NumPy library. A region matrix is established based on the two-dimensional data. The unit number corresponding to each component unit in the region matrix is used as a mapping value, and the set of the plurality of component units and the plurality of mapping values is used as an index dictionary.
[0060] S103: Split the regional matrix into a demolition matrix and a fixed matrix.
[0061] The processing device divides the regional matrix into a removal matrix and a fixed matrix. The removal matrix includes a corresponding relationship between the removal unit and the unit attribute of the removal unit, and the fixed matrix includes a corresponding relationship between the fixed unit and the unit attribute of the fixed unit.
[0062] In a possible implementation, the processing device may divide the removal matrix again to obtain multiple removal sub-matrices. Because the fixed part unit serial number of the constructed model is fixed, the part to be removed can be processed in blocks. The processing device may divide the removal matrix into several removal sub-matrices to simulate the units to be removed each time.
[0063] For example, a two-dimensional array of size (10,10) is generated by the above method, which includes [4 3 14 3 8 3 6 5 5], [5 7 1 5 9 3 5 2 8 4], [8 3 8 6 1 7 6 1 6 0], [9 5 5 1 3 9 45 73], [1 4 9 7 1 2 9 6 3 7], [3 3 0 6 9 2 1 9 7 3], [6 3 3 2 9 7 0 3 7 1], [6 7 6 894 4 2 7 1], [9 5 5 1 9 2 3 7 4 7], and [0 5 8 7 3 1 2 7 2 3].
[0064] The reshape function can be used to convert the array into a one-dimensional array. After specifying the size of each group (assuming the size is 5), the split function is used to split the 5 data in each array. The array after splitting is as follows: [4,3,1,4,3], [8,3,6,5,5], [5,7,1,5,9], [3,5,2,8,4], [8,3,8,6,1], [7,6,1,6,0], [9,5,5,1 ,3],[9,4,5,7,3],[1,4,9,7,1],[2,9,6,3,7],[3,3,0,6,9],[2,1,9,7,3],[6,3,3,2,9],[7,0,3,7,1],[6,7,6,8,9],[4,4,2,7,1],[9,5,5,1,9],[2,3,7,4,7],[0,5,8,7,3] and [1,2,7,2,3].
[0065] S104: Generate a one-dimensional list corresponding to the demolition units at each demolition according to the demolition matrix and the index dictionary.
[0066] The processing device generates a one-dimensional list corresponding to the demolition units at each demolition according to the demolition matrix and the index dictionary.
[0067] In a possible implementation, the processing device may determine the unit number corresponding to the element value in the demolition matrix based on the index dictionary, generate a one-dimensional list of list type corresponding to the demolition unit at each demolition based on the element value and the corresponding unit number, and convert the one-dimensional list of list type into a one-dimensional list of geometry sequence type.
[0068] For example, the processing device can correspond the element values (values of unit attributes) in the demolition matrix to the unit numbers in the dictionary, and generate a one-dimensional list of the component units to be demolished each time. In ABAQUS, the collection reading type must be geometry sequence, and list type data cannot be read directly, so the one-dimensional list data needs to be converted to geometry sequence type.
[0069] S105: In the finite element model, a demolition plan corresponding to each demolition is simulated based on the demolition matrix, the fixed matrix and the one-dimensional list to obtain a demolition result.
[0070] The processing device can simulate the demolition plan corresponding to each demolition in the finite element model based on the demolition matrix, the fixed matrix and the one-dimensional list to obtain the demolition result, and the demolition result is used to represent the evaluation corresponding to the demolition plan.
[0071] In a possible implementation, there may be multiple demolition schemes for the demolition of the demolished components in the same target area. In order to find the optimal demolition scheme, the processing device can reconstruct the finite element model in multiple cycles to simulate different demolition schemes. At the beginning of the cycle, the current analysis step and the created demolition component unit set are deleted. In each cycle, according to the converted unit number, the set and the corresponding demolition analysis step are established in the demolition order. At the same time, the life and death unit is set in the contact to delete the corresponding component unit to be demolished, so as to realize the reconstruction of the calculation model, so as to perform analysis and calculation under different demolition schemes.
[0072] The regional matrix and index dictionary established in this application provide structured data information for the demolition project. This data structure clarifies the relationship between each component unit and its attributes, so that when simulating the demolition plan, the accuracy and consistency of the data can be ensured, and the errors caused by data confusion can be reduced. By segmenting the demolition matrix and the fixed matrix, a one-dimensional list of different demolition plans can be generated more flexibly. This flexibility allows managers to easily compare and evaluate the safety and effectiveness of different plans, minimizing the potential risks in the demolition process. Simulating the effect of each demolition in the finite element model can reflect the impact of different demolition plans on structural safety in real time. Unlike the prior art that only relies on static analysis, the dynamic simulation analysis of this application provides a more comprehensive and in-depth safety assessment, which helps managers make more scientific decisions in complex demolition environments. The method provided in this application can realize the automatic capture of demolition units by extracting the component unit numbers in the INP file and establishing a regional matrix and index dictionary based on these numbers. This process greatly reduces manual intervention and avoids the problem of inefficiency in manually capturing demolition units in the prior art, thereby significantly improving the overall efficiency of demolition plan generation.
[0073] This application also provides a Figure 2 The schematic structural diagram of the automatic capture device for removing a unit in a finite element model shown in FIG. 20 comprises the following modules:
[0074] Extraction module 201, used to extract the unit number of the component unit in the file unit sequence of the INP file;
[0075] Establishing module 202, used to establish a region matrix and an index dictionary based on the unit number, the region matrix including the correspondence between the component unit in the target region and the unit attribute of the component unit, and the index dictionary including the correspondence between the unit number and the component unit;
[0076] A segmentation module 203 is used to segment the regional matrix to obtain a demolition matrix and a fixed matrix, wherein the demolition matrix includes a correspondence between demolition units and unit attributes of the demolition units, and the fixed matrix includes a correspondence between fixed units and unit attributes of the fixed units;
[0077] A generating module 204, configured to generate a one-dimensional list corresponding to the demolition units at each demolition according to the demolition matrix and the index dictionary;
[0078] The simulation module 205 is used to simulate the demolition plan corresponding to each demolition in the finite element model based on the demolition matrix, the fixed matrix and the one-dimensional list to obtain a demolition result, and the demolition result is used to represent the evaluation corresponding to the demolition plan.
[0079] The device provided by the present application, the established regional matrix and index dictionary provide structured data information for the demolition project. This data structure clarifies the relationship between each component unit and its attributes, so that when simulating the demolition plan, the accuracy and consistency of the data can be ensured, and the errors caused by data confusion can be reduced. By segmenting the demolition matrix and the fixed matrix, a one-dimensional list of different demolition plans can be generated more flexibly. This flexibility allows managers to easily compare and evaluate the safety and effectiveness of different plans, minimizing the potential risks in the demolition process. Simulating the effect of each demolition in the finite element model can reflect the impact of different demolition plans on structural safety in real time. Unlike the prior art that only relies on static analysis, the dynamic simulation analysis of the present application provides a more comprehensive and in-depth safety assessment, which helps managers make more scientific decisions in complex demolition environments. The device provided by the present application can realize automatic capture of demolition units by extracting the component unit numbers in the INP file and establishing regional matrices and index dictionaries based on these numbers. This process greatly reduces manual intervention and avoids the problem of inefficiency in manually capturing demolition units in the prior art, thereby significantly improving the overall efficiency of demolition plan generation.
[0080] An embodiment of the present application also provides an automatic capture device for dismantling units in a finite element model, wherein the device includes a memory and a processor, the memory is used to store instructions or codes, and the processor is used to execute the instructions or codes so that the device performs the steps of the automatic capture method for dismantling units in a finite element model described in any embodiment of the present application.
[0081] In practical applications, the computer-readable storage medium may be any combination of one or more computer-readable media, which may be a computer-readable signal medium or a computer-readable storage medium.
[0082] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0083] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0084] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0085] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0086] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
[0087] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for automatically capturing dismantled units in a finite element model, characterized in that: include: Extract the unit number of the component unit in the file unit sequence of the INP file; Establishing a region matrix and an index dictionary based on the unit number, wherein the region matrix includes a correspondence between component units in a target region and unit attributes of the component units, and the index dictionary includes a correspondence between the unit number and the component unit; The regional matrix is divided into a demolition matrix and a fixed matrix, wherein the demolition matrix includes a corresponding relationship between a demolition unit and a unit attribute of the demolition unit, and the fixed matrix includes a corresponding relationship between a fixed unit and a unit attribute of the fixed unit; Generate a one-dimensional list corresponding to the demolition units at each demolition according to the demolition matrix and the index dictionary; In the finite element model, a demolition plan corresponding to each demolition is simulated based on the demolition matrix, the fixed matrix and the one-dimensional list to obtain a demolition result, and the demolition result is used to represent the evaluation corresponding to the demolition plan.
2. The method according to claim 1, characterized in that The establishing of the region matrix and the index dictionary based on the unit number comprises: Determining a correspondence between a plurality of component units and a unit length and a unit width of a corresponding component unit based on the unit numbers; Based on the NumPy library, create two-dimensional data corresponding to the unit length and unit width of multiple component units; Establishing a region matrix based on the two-dimensional data; Using the unit number corresponding to each component unit in the regional matrix as a mapping value; A set of the plurality of component units and the plurality of mapping values is used as an index dictionary.
3. The method according to claim 1, characterized in that: The generating of a one-dimensional list corresponding to the demolition unit at each demolition according to the demolition matrix and the index dictionary comprises: Determine the cell number corresponding to the element value in the demolition matrix based on the index dictionary; Generate a one-dimensional list of list type corresponding to the removed unit each time based on the element value and the corresponding unit number; Convert the one-dimensional list of list type into a one-dimensional list of geometry sequence type.
4. An automatic capture device for dismantling units in a finite element model, characterized in that: include: An extraction module, used for extracting the unit number of the component unit in the file unit sequence of the INP file; An establishing module, used for establishing a region matrix and an index dictionary based on the unit number, wherein the region matrix includes a correspondence between component units in a target region and unit attributes of the component units, and the index dictionary includes a correspondence between the unit number and the component unit; A segmentation module, used for segmenting the regional matrix to obtain a demolition matrix and a fixed matrix, wherein the demolition matrix includes a correspondence between demolition units and unit attributes of the demolition units, and the fixed matrix includes a correspondence between fixed units and unit attributes of the fixed units; A generating module, used for generating a one-dimensional list corresponding to the demolition units at each demolition according to the demolition matrix and the index dictionary; A simulation module is used to simulate the demolition plan corresponding to each demolition in a finite element model based on the demolition matrix, the fixed matrix and the one-dimensional list to obtain a demolition result, wherein the demolition result is used to represent the evaluation corresponding to the demolition plan.
5. The device according to claim 4, characterized in that The establishment module is specifically used for: Determining a correspondence between a plurality of component units and a unit length and a unit width of a corresponding component unit based on the unit numbers; Based on the NumPy library, create two-dimensional data corresponding to the unit length and unit width of multiple component units; Establishing a region matrix based on the two-dimensional data; Using the unit number corresponding to each component unit in the regional matrix as a mapping value; A set of the plurality of component units and the plurality of mapping values is used as an index dictionary.
6. The device according to claim 4, characterized in that The generation module is specifically used for: Determine the cell number corresponding to the element value in the demolition matrix based on the index dictionary; Generate a one-dimensional list of list type corresponding to the removed unit each time based on the element value and the corresponding unit number; Convert the one-dimensional list of list type into a one-dimensional list of geometry sequence type.
7. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store the computer program; The processor is used to execute the computer program to implement the method for automatically capturing demolished units in a finite element model as described in any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the method for automatically capturing removed units in a finite element model according to any one of claims 1 to 4 is implemented.