CN116127819A - Method for generating cohesive force unit, computer device and storage medium - Google Patents
Method for generating cohesive force unit, computer device and storage medium Download PDFInfo
- Publication number
- CN116127819A CN116127819A CN202310364016.XA CN202310364016A CN116127819A CN 116127819 A CN116127819 A CN 116127819A CN 202310364016 A CN202310364016 A CN 202310364016A CN 116127819 A CN116127819 A CN 116127819A
- Authority
- CN
- China
- Prior art keywords
- unit
- units
- node information
- target
- finite element
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/23—Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/14—Force analysis or force optimisation, e.g. static or dynamic forces
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Complex Calculations (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,特别涉及一种生成内聚力单元的方法、计算机设备和存储介质。The present application relates to the field of computer technology, in particular to a method for generating cohesive force units, computer equipment and storage media.
背景技术Background technique
材料中不可避免的具有各种缺陷,引起工程中结构断裂的发生。目前,基于弹塑性断裂力学的内聚力模型被广泛应用于计算材料界面损伤和断裂过程。内聚力模型避免了线弹性断裂力学中的裂纹尖端应力奇异性,计算了开裂过程中应力以及断裂能,使其在裂纹扩展、复合材料分层和脱粘、器件胶接等领域得到广泛重视和运用。There are inevitably various defects in materials, which cause structural fractures in engineering. At present, the cohesion model based on elastic-plastic fracture mechanics is widely used to calculate the damage and fracture process of material interface. The cohesion model avoids the singularity of crack tip stress in linear elastic fracture mechanics, and calculates the stress and fracture energy during the cracking process, making it widely valued and used in the fields of crack propagation, composite material delamination and debonding, and device bonding. .
内聚力模型是通过在结构件的有限元模型中插入零厚度内聚力单元来实现的。然而,目前需要在结构件的有限元模型中批量插入内聚力单元时可用的有效方法较少,因而亟需一种基于结构件的有限元模型批量生成内聚力单元的方法。The cohesion model is implemented by inserting zero-thickness cohesion elements in the finite element model of the structural member. However, currently there are few effective methods available for batch insertion of cohesive force elements in the finite element model of structural parts, so a method for batch generation of cohesive force elements based on the finite element model of structural parts is urgently needed.
发明内容Contents of the invention
本申请提供了一种生成内聚力单元的方法、计算机设备和存储介质,可以批量生成多个内聚力单元。所述技术方案如下:The present application provides a method for generating a cohesive force unit, a computer device and a storage medium, which can generate multiple cohesive force units in batches. Described technical scheme is as follows:
第一方面,提供了一种生成内聚力单元的方法。在该方法中,获取第一有限元模型,第一有限元模型是目标结构件的有限元模型,第一有限元模型包括m个目标单元,m为大于或等于2的整数。之后,生成m个目标单元中每个目标单元的多个面单元,从m个目标单元中每个目标单元的多个面单元中确定n个重复面单元对,n个重复面单元对中每个重复面单元对包括位置重复的两个面单元,n为大于或等于2的整数。最后,根据n个重复面单元对生成n个内聚力单元。In a first aspect, a method for generating cohesive force elements is provided. In this method, a first finite element model is obtained, the first finite element model is a finite element model of a target structural member, the first finite element model includes m target units, and m is an integer greater than or equal to 2. Afterwards, generate a plurality of surface units of each target unit in the m target units, determine n repeated surface unit pairs from the multiple surface units of each target unit in the m target units, and each of the n repeated surface unit pairs The repeated surface unit pairs include two surface units with repeated positions, and n is an integer greater than or equal to 2. Finally, n cohesion elements are generated from the n repeated face element pairs.
m个目标单元中任意的一个目标单元具有单元标识和结点信息。一个目标单元的结点信息包括构成这个目标单元的所有结点中每个结点的结点标识。一个面单元具有单元标识和结点信息,一个面单元的结点信息包括构成这个面单元的所有结点中每个结点的结点标识。Any one of the m target units has unit identification and node information. The node information of an object unit includes the node identification of each node among all the nodes constituting the object unit. A surface unit has a unit identifier and node information, and the node information of a surface unit includes the node identifier of each node among all the nodes constituting the surface unit.
在本申请中,获取目标结构件的第一有限元模型后,可以生成第一有限元模型包括的m个目标单元中每个目标单元的多个面单元,然后从这些面单元中确定n个重复面单元对,最后根据n个重复面单元对生成n个内聚力单元,如此,可以批量生成n个内聚力单元。In this application, after obtaining the first finite element model of the target structure, multiple surface units for each of the m target units included in the first finite element model can be generated, and then n number of surface units can be determined from these surface units Repeat the surface unit pairs, and finally generate n cohesive force units according to the n repeated surface unit pairs. In this way, n cohesive force units can be generated in batches.
可选地,生成m个目标单元中每个目标单元的多个面单元的操作可以为:获取m个目标单元中每个目标单元的单元标识;根据m个目标单元中任意一个目标单元的单元标识,使用面单元生成功能生成这个目标单元的多个面单元。Optionally, the operation of generating multiple surface units for each of the m target units may be: obtaining the unit identification of each of the m target units; according to the unit of any one of the m target units To identify, use the surface element generation function to generate multiple surface elements of this target element.
在本申请中,根据任意一个目标单元的单元标识,可以使用面单元生成功能简单快速的生成这个目标单元的多个面单元。In this application, according to the unit identification of any target unit, multiple surface units of this target unit can be generated simply and quickly by using the surface unit generation function.
可选地,还可以生成第二有限元模型,第二有限元模型包括m个目标单元中每个目标单元的多个面单元。这种情况下,从m个目标单元中每个目标单元的多个面单元中确定n个重复面单元对的操作可以为:显示第二有限元模型;使用重复单元查找功能从所显示的第二有限元模型中的所有面单元中查找n个重复面单元对。Optionally, a second finite element model may also be generated, and the second finite element model includes multiple surface units of each target unit in the m target units. In this case, the operation of determining n repeated surface unit pairs from multiple surface units of each target unit in the m target units can be: display the second finite element model; Find n repeated surface element pairs in all surface elements in the two finite element models.
在本申请中,可以重复单元查找功能简单快速的从所显示的第二有限元模型中的所有面单元中查找n个重复面单元对。In this application, the repeated unit search function can be used to simply and quickly search for n repeated surface unit pairs from all surface units in the displayed second finite element model.
可选地,根据n个重复面单元对生成n个内聚力单元之前,还可以创建第一集合,第一集合包括与m个目标单元一一对应的m个第一子集,m个第一子集中每个第一子集包括对应的目标单元的单元标识以及对应的目标单元的多个面单元中每个面单元的单元标识。创建第二集合,第二集合包括与n个重复面单元对一一对应的n个第二子集,n个第二子集中每个第二子集包括对应的重复面单元对包括的两个面单元中每个面单元的单元标识。Optionally, before generating n cohesion units based on n repeated surface unit pairs, a first set can also be created, the first set includes m first subsets corresponding to m target units one-to-one, and m first subsets Each first subset in the set includes a unit identification of the corresponding target unit and a unit identification of each of the plurality of surface units of the corresponding target unit. Create a second set, the second set includes n second subsets corresponding to n repeated surface unit pairs one-to-one, and each second subset in the n second subsets includes two of the corresponding repeated surface unit pairs Element ID for each of the area elements in the area.
这种情况下,根据n个重复面单元对生成n个内聚力单元的操作可以为:根据第一集合和第二集合生成n个内聚力单元。在本申请中,可以直接根据第一集合和第二集合,简单快速的生成n个内聚力单元。In this case, the operation of generating n cohesive force units based on n repeated surface unit pairs may be: generating n cohesive force units based on the first set and the second set. In this application, n cohesion units can be generated simply and quickly according to the first set and the second set.
可选地,根据第一集合和第二集合生成n个内聚力单元的操作可以为:根据第一集合中的m个第一子集,将m个目标单元中每个目标单元的面单元与其他目标单元的面单元分离,以更新分离开的面单元的结点信息;获取与第二集合中的n个第二子集一一对应的n组结点信息,n组结点信息中每组结点信息包括对应的第二子集包括的两个单元标识中每个单元标识所标识的面单元的结点信息;根据n组结点信息生成n个内聚力单元。Optionally, the operation of generating n cohesion units according to the first set and the second set may be: according to the m first subsets in the first set, combine the surface unit of each target unit in the m target units with other The surface unit of the target unit is separated to update the node information of the separated surface unit; obtain n groups of node information corresponding to the n second subsets in the second set, and each group of n groups of node information The node information includes the node information of the surface unit identified by each of the two unit identifiers included in the corresponding second subset; n cohesion units are generated according to the n sets of node information.
在本申请中,先将m个目标单元中每个目标单元的面单元与其他目标单元的面单元进行分离,再根据n个重复面单元对中每个重复面单元对中两个面单元的结点信息就可以准确生成内聚力单元。In this application, the surface unit of each target unit in the m target units is separated from the surface units of other target units, and then according to the Nodal information can accurately generate cohesive force elements.
可选地,获取与第二集合中的n个第二子集一一对应的n组结点信息的操作可以为:对于n个第二子集中任意的一个第二子集,获取这个第二子集包括的两个单元标识中每个单元标识所标识的面单元的结点信息,以得到两个结点信息;确定这两个结点信息中的结点标识之间的对应关系;根据这两个结点信息中的结点标识之间的对应关系,将这两个结点信息中的结点标识按序添加到与一个第二子集对应的一组结点信息中。Optionally, the operation of obtaining n groups of node information corresponding to the n second subsets in the second set may be: for any second subset among the n second subsets, obtain the second The node information of the surface unit identified by each unit ID in the two unit IDs included in the subset to obtain the two node information; determine the correspondence between the node IDs in the two node information; according to For the corresponding relationship between the node identifiers in the two node information, the node identifiers in the two node information are sequentially added to a group of node information corresponding to a second subset.
这两个结点信息中的一个结点信息中的多个结点标识与另一个结点信息中的多个结点标识一一对应。这两个结点信息中的结点标识之间的对应关系用于指示这两个结点信息中的一个结点信息中的一个结点标识在另一个结点信息中对应的结点标识。相对应的两个结点标识所标识的两个结点是这两个结点信息中的所有结点标识所标识的结点中相距最近的两个结点,相对应的两个结点标识所标识的两个结点的位置相同。The multiple node identifiers in one of the two node information are in one-to-one correspondence with the multiple node identifiers in the other node information. The correspondence between the node identifiers in the two node information is used to indicate that a node identifier in one node information of the two node information corresponds to a node identifier in the other node information. The two nodes identified by the corresponding two node IDs are the two closest nodes among the nodes identified by all the node IDs in the two node information, and the corresponding two node IDs The positions of the two identified nodes are the same.
可选地,根据这两个结点信息中的结点标识之间的对应关系,将这两个结点信息中的结点标识按序添加到与一个第二子集对应的一组结点信息中的操作可以为:将这两个结点信息中的一个结点信息中的所有结点标识按序添加到这一组结点信息中;根据这一个结点信息中所有结点标识的顺序和这两个结点信息中的结点标识之间的对应关系,对这两个结点信息中另一个结点信息中的所有结点标识进行排序;将排序后的该另一个结点信息中的所有结点标识按序添加到这一组结点信息中。Optionally, according to the correspondence between the node identifiers in the two node information, add the node identifiers in the two node information to a group of nodes corresponding to a second subset in sequence The operation in the information can be: adding all node identifiers in one node information of the two node information to this group of node information in sequence; The corresponding relationship between the order and the node identifiers in the two node information, sort all the node identifiers in the other node information in the two node information; the sorted another node All node identifiers in the information are added to this set of node information in sequence.
示例地,根据n组结点信息生成n个内聚力单元时,对于该n组结点信息中任意的一组结点信息,可以顺序连接这组结点信息中的前一半结点标识所标识的多个结点,以及顺序连接这组结点信息中的后一半结点标识所标识的多个结点,且一一连接这组结点信息中的前一半结点标识所标识的多个结点与后一半结点标识所标识的多个结点,以获得一个内聚力单元,然后赋予这个内聚力单元一个单元标识。For example, when n cohesion units are generated according to n sets of node information, for any set of node information in the n sets of node information, the first half of the node identifiers in the set of node information can be sequentially connected multiple nodes, and sequentially connect multiple nodes identified by the second half of the node identifiers in this set of node information, and connect the multiple nodes identified by the first half of the node identifiers in this set of node information one by one The number of nodes identified by the point and the second half of the node ID is obtained to obtain a cohesive force unit, and then a unit ID is assigned to the cohesive force unit.
可选地,根据n组结点信息生成n个内聚力单元之后,还可以生成第三有限元模型,第三有限元模型包括n个内聚力单元;为第一有限元模型设置本体属性,以及为第三有限元模型设置内聚力属性。Optionally, after n cohesive force units are generated according to n groups of node information, a third finite element model can also be generated, and the third finite element model includes n cohesive force units; body properties are set for the first finite element model, and Three finite element models set cohesion properties.
其中,第一有限元模型的本体属性是目标结构件的相关属性,如可以包括密度、弹性模量、泊松比等。第三有限元模型的内聚力属性是内聚力单元的相关属性,如可以包括拉伸刚度、剪切刚度、拉伸强度、剪切强度、拉伸断裂能、剪切断裂能等。为第一有限元模型设置本体属性以及为第三有限元模型设置内聚力属性后,后续就可以根据第一有限元模型和第三有限元模型进行开裂现象模拟。Wherein, the body properties of the first finite element model are related properties of the target structural member, such as density, elastic modulus, Poisson's ratio, etc. may be included. The cohesive force attribute of the third finite element model is a related property of the cohesive force unit, for example, may include tensile stiffness, shear stiffness, tensile strength, shear strength, tensile fracture energy, shear fracture energy, and the like. After setting the body attribute for the first finite element model and the cohesion attribute for the third finite element model, the cracking phenomenon can be simulated based on the first finite element model and the third finite element model.
第二方面,提供了一种生成内聚力单元的装置,所述生成内聚力单元的装置具有实现上述第一方面中生成内聚力单元的方法行为的功能。所述生成内聚力单元的装置包括至少一个模块,所述至少一个模块用于实现上述第一方面所提供的生成内聚力单元的方法。A second aspect provides a device for generating a cohesive force unit, and the device for generating a cohesive force unit has the function of implementing the behavior of the method for generating a cohesive force unit in the above first aspect. The device for generating a cohesive force unit includes at least one module, and the at least one module is used to implement the method for generating a cohesive force unit provided in the first aspect above.
第三方面,提供了一种生成内聚力单元的装置,所述生成内聚力单元的装置的结构中包括处理器和存储器,所述存储器用于存储支持生成内聚力单元的装置执行上述第一方面所提供的生成内聚力单元的方法的程序,以及存储用于实现上述第一方面所述的生成内聚力单元的方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述生成内聚力单元的装置还可以包括通信总线,所述通信总线用于在所述处理器与所述存储器之间建立连接。In the third aspect, there is provided a device for generating a cohesive force unit, the structure of the device for generating a cohesive force unit includes a processor and a memory, and the memory is used to store and support the device for generating a cohesive force unit to perform the above-mentioned first aspect. A program of the method for generating cohesive force units, and storing data involved in implementing the method for generating cohesive force units described in the first aspect above. The processor is configured to execute programs stored in the memory. The means for generating a cohesion unit may further include a communication bus for establishing a connection between the processor and the memory.
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的生成内聚力单元的方法。In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the method for generating a cohesive force unit described in the above-mentioned first aspect.
第五方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的生成内聚力单元的方法。A fifth aspect provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for generating cohesive force units described in the first aspect above.
上述第二方面、第三方面、第四方面和第五方面所获得的技术效果与上述第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the above-mentioned second aspect, third aspect, fourth aspect and fifth aspect are similar to those obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here.
附图说明Description of drawings
图1是本申请实施例提供的一种计算机设备的结构示意图;FIG. 1 is a schematic structural diagram of a computer device provided by an embodiment of the present application;
图2是本申请实施例提供的一种生成内聚力单元的方法的流程图;Fig. 2 is a flow chart of a method for generating a cohesive force unit provided by an embodiment of the present application;
图3是本申请实施例提供的一种目标结构件的有限元模型的示意图;Fig. 3 is a schematic diagram of a finite element model of a target structure provided by the embodiment of the present application;
图4是本申请实施例提供的第一种目标结构件的有限元模型和内聚力单元的有限元模型的示意图;Fig. 4 is a schematic diagram of the finite element model of the first target structure and the finite element model of the cohesion unit provided by the embodiment of the present application;
图5是本申请实施例提供的第二种目标结构件的有限元模型和内聚力单元的有限元模型的示意图;Fig. 5 is a schematic diagram of the finite element model of the second target structure and the finite element model of the cohesion unit provided by the embodiment of the present application;
图6是本申请实施例提供的第三种目标结构件的有限元模型和内聚力单元的有限元模型的示意图;Fig. 6 is a schematic diagram of the finite element model of the third target structural member and the finite element model of the cohesive force unit provided by the embodiment of the present application;
图7是本申请实施例提供的第四种目标结构件的有限元模型和内聚力单元的有限元模型的示意图;Fig. 7 is a schematic diagram of the finite element model of the fourth target structure and the finite element model of the cohesion unit provided by the embodiment of the present application;
图8是本申请实施例提供的一种胶水开裂的有限元模型的示意图;Fig. 8 is a schematic diagram of a finite element model of glue cracking provided by an embodiment of the present application;
图9是本申请实施例提供的一种生成内聚力单元的装置的结构示意图。Fig. 9 is a schematic structural diagram of a device for generating a cohesive force unit provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manner of the present application will be further described in detail below in conjunction with the accompanying drawings.
应当理解的是,本申请提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,比如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,比如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述本申请的技术方案,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。It should be understood that the "plurality" mentioned in this application means two or more. In the description of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is just a description of the relationship between associated objects, It means that there can be three kinds of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in order to clearly describe the technical solution of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
在本申请中描述的“一个实施例”或“一些实施例”等语句意味着在本申请的一个或多个实施例中包括该实施例描述的特定特征、结构或特点。由此,在本申请中的不同之处出现的“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等语句不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。此外,术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Phrases such as "one embodiment" or "some embodiments" described in this application mean that a particular feature, structure, or characteristic described by the embodiment is included in one or more embodiments of the present application. Thus, appearances of "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this application are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. In addition, the terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless specifically stated otherwise.
下面对本申请实施例涉及的应用场景予以说明。The application scenarios involved in the embodiments of the present application are described below.
材料中不可避免的具有各种缺陷,引起工程中结构断裂的发生。比如,手机内部存在大量的结构胶,部件通过胶水粘接,在机械或环境可靠性研究中胶水开裂是其常见失效形式,胶水开裂可分为胶界面脱粘、胶本体开裂以及二者的组合。随着材料结构种类的多样性发展,传统断裂力学已不能满足韧性开裂以及材料界面开裂等研究需求。而基于弹塑性断裂力学的内聚力模型(cohesive zone model,CZM)已被广泛应用于计算材料界面损伤和断裂过程。There are inevitably various defects in materials, which cause structural fractures in engineering. For example, there is a large amount of structural glue inside the mobile phone, and the parts are bonded by glue. In the study of mechanical or environmental reliability, glue cracking is a common failure mode. Glue cracking can be divided into glue interface debonding, glue body cracking, and a combination of the two. . With the diversification and development of material structures, traditional fracture mechanics can no longer meet the research needs of ductile cracking and material interface cracking. The cohesive zone model (CZM) based on elastic-plastic fracture mechanics has been widely used to calculate the damage and fracture process of material interface.
内聚力模型避免了线弹性断裂力学中的裂纹尖端应力奇异性,计算了开裂过程中应力以及断裂能,使其在裂纹扩展、复合材料分层和脱粘、器件胶接等领域得到广泛重视和运用。内聚力模型是通过在结构件的有限元模型中插入零厚度内聚力单元(以下简称为内聚力单元)来实现的。内聚力单元能够承受拉伸和剪切的应变,但并不能产生任何应力,结合能支持垂直于上下表面的牵引-分离破坏准则可以较好地模拟材料的断裂与破坏。The cohesion model avoids the singularity of crack tip stress in linear elastic fracture mechanics, and calculates the stress and fracture energy during the cracking process, making it widely valued and used in the fields of crack propagation, composite material delamination and debonding, and device bonding. . The cohesion model is realized by inserting zero-thickness cohesion elements (hereinafter referred to as cohesion elements) in the finite element model of the structural member. The cohesive force element can withstand tensile and shear strains, but cannot generate any stress. Combining the traction-separation failure criterion perpendicular to the upper and lower surfaces can better simulate the fracture and failure of materials.
然而,目前需要在结构件的有限元模型中批量插入内聚力单元时可用的有效方法较少。为此,本申请实施例提供了一种生成内聚力单元的方法,可以生成结构件的有限元模型包括的多个实体单元中每个实体单元的多个面单元,然后从中确定多个重复面单元对,最后根据多个重复面单元对生成多个内聚力单元,如此,可以批量生成多个内聚力单元。However, there are currently few effective methods available for batch insertion of cohesion elements in the finite element model of structural parts. To this end, the embodiment of the present application provides a method for generating cohesive force units, which can generate multiple surface units of each solid unit in the multiple solid units included in the finite element model of the structure, and then determine multiple repeated surface units Yes, finally generate multiple cohesion elements based on multiple repeated surface element pairs, so that multiple cohesion elements can be generated in batches.
下面对本申请实施例涉及的计算机设备予以说明。The computer equipment involved in the embodiments of the present application will be described below.
图1是本申请实施例提供的一种计算机设备的结构示意图。参见图1,该计算机设备包括至少一个处理器101、通信总线102、存储器103以及至少一个通信接口104。FIG. 1 is a schematic structural diagram of a computer device provided by an embodiment of the present application. Referring to FIG. 1 , the computer device includes at least one
处理器101可以是微处理器(包括中央处理器(central processing unit,CPU)等)、特定应用集成电路(application-specific integrated circuit,ASIC),或者可以是一个或多个用于控制本申请方案程序执行的集成电路。The
通信总线102可包括一通路,用于在上述组件之间传送信息。
存储器103可以是只读存储器(read-only memory,ROM)、随机存取存储器(randomaccess memory,RAM)、电可擦可编程只读存储器(electrically erasable programmableread-Only memory,EEPROM)、光盘(包括只读光盘(compact disc read-only memory,CD-ROM)、压缩光盘、激光盘、数字通用光盘、蓝光光盘等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器103可以是独立存在,并通过通信总线102与处理器101相连接。存储器103也可以和处理器101集成在一起。The
通信接口104使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网、无线接入网(radio access network,RAN)、无线局域网(wireless local areanetwork,WLAN)等。The
在具体实现中,作为一种实施例,处理器101可以包括一个或多个CPU,如图1中所示的CPU0和CPU1。In a specific implementation, as an embodiment, the
在具体实现中,作为一种实施例,该计算机设备可以包括多个处理器,如图1中所示的处理器101和处理器105。这些处理器中的每一个可以是一个单核处理器,也可以是一个多核处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the computer device may include multiple processors, such as the
在具体实现中,作为一种实施例,该计算机设备还可以包括输出设备106和输入设备107。输出设备106和处理器101通信,可以以多种方式来显示信息。例如,输出设备106可以是液晶显示器(liquid crystal display,LCD)、发光二极管(light emitting diode,LED)显示设备、阴极射线管(cathode ray tube,CRT)显示设备或投影仪(projector)等。输入设备107和处理器101通信,可以以多种方式接收用户的输入。例如,输入设备107可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an embodiment, the computer device may further include an
上述的计算机设备可以是一个通用计算机设备或一个专用计算机设备。在具体实现中,计算机设备可以是台式机、便携式电脑、网络服务器、掌上电脑、移动手机、平板电脑、无线终端设备、通信设备或嵌入式设备,本申请实施例不限定该计算机设备的类型。The above-mentioned computer equipment may be a general computer equipment or a special computer equipment. In a specific implementation, the computer device may be a desktop computer, a portable computer, a network server, a palmtop computer, a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device, and the embodiment of the present application does not limit the type of the computer device.
其中,存储器103用于存储执行本申请方案的程序代码110,处理器101用于执行存储器103中存储的程序代码110。该计算机设备可以通过处理器101以及存储器103中的程序代码110,来实现下文图2实施例提供的生成内聚力单元的方法。Wherein, the
图2是本申请实施例提供的一种生成内聚力单元的方法的流程图,该方法应用于上文图1实施例所述的计算机设备。参见图2,该方法包括以下步骤:FIG. 2 is a flow chart of a method for generating cohesive force units provided by an embodiment of the present application, and the method is applied to the computer device described in the embodiment of FIG. 1 above. Referring to Figure 2, the method comprises the following steps:
步骤201:计算机设备获取第一有限元模型。Step 201: The computer equipment obtains the first finite element model.
第一有限元模型是目标结构件的有限元模型。目标结构件是后续需要模拟其开裂或产屑现象的结构件。目标结构件可以是复合材料,也可以是单一材料,本申请实施例对此不作限定。比如,目标结构件可以是胶水,如可以是手机中经常使用的AA胶。The first finite element model is a finite element model of the target structural member. The target structural part is the structural part whose cracking or debris generation needs to be simulated later. The target structural member may be a composite material or a single material, which is not limited in this embodiment of the present application. For example, the target structural member may be glue, such as AA glue often used in mobile phones.
第一有限元模型是目标结构件的仿真模型,第一有限元模型具有目标结构件的几何特征和单元形式。第一有限元模型是网格模型,第一有限元模型包括m个目标单元,m个目标单元均是实体单元,m为大于或等于2的整数。m个目标单元中每个目标单元均是多面体单元,且m个目标单元中每个目标单元的面数相同。m个目标单元中每个目标单元均由多个结点构成,且m个目标单元中每个目标单元的结点数相同。The first finite element model is a simulation model of the target structural part, and the first finite element model has geometric characteristics and unit forms of the target structural part. The first finite element model is a grid model, and the first finite element model includes m target units, all of which are solid units, and m is an integer greater than or equal to 2. Each of the m target units is a polyhedron unit, and each of the m target units has the same number of faces. Each of the m target units is composed of multiple nodes, and each of the m target units has the same number of nodes.
m个目标单元中任意的一个目标单元具有单元标识(包括但不限于单元编号)和结点信息。一个目标单元的结点信息包括构成这个目标单元的所有结点中每个结点的结点标识(包括但不限于结点编号)。比如,若目标单元为六面体单元,则目标单元可以包括8个结点;若目标单元为五面体单元,则目标单元可以包括5个结点;若目标单元为四面体单元,则目标单元可以包括4个结点。Any one of the m target units has a unit identifier (including but not limited to a unit number) and node information. The node information of a target unit includes the node identifier (including but not limited to the node number) of each node among all the nodes constituting the target unit. For example, if the target unit is a hexahedron unit, then the target unit can include 8 nodes; if the target unit is a pentahedron unit, then the target unit can include 5 nodes; if the target unit is a tetrahedron unit, then the target unit can include 4 knots.
步骤202:计算机设备生成第一有限元模型包括的m个目标单元中每个目标单元的多个面单元。Step 202: The computer device generates multiple surface units for each of the m target units included in the first finite element model.
目标单元是多面体单元,因而目标单元可以具有相应的面单元,面单元由多个结点构成。比如,若目标单元为六面体单元,则目标单元具有6个面单元,任意一个面单元可以包括4个结点;若目标单元为五面体单元,则目标单元具有5个面单元,任意一个面单元可以包括3个或4个结点;若目标单元为四面体单元,则目标单元具有4个面单元,任意一个面单元可以包括3个结点。一个面单元具有单元标识和结点信息,一个面单元的结点信息包括构成这个面单元的所有结点中每个结点的结点标识。The target unit is a polyhedral unit, so the target unit can have a corresponding surface unit, and the surface unit is composed of multiple nodes. For example, if the target unit is a hexahedron unit, then the target unit has 6 surface units, and any one surface unit can include 4 nodes; if the target unit is a pentahedron unit, then the target unit has 5 surface units, and any one surface unit It can include 3 or 4 nodes; if the target unit is a tetrahedron unit, the target unit has 4 surface units, and any surface unit can include 3 nodes. A surface unit has a unit identifier and node information, and the node information of a surface unit includes the node identifier of each node among all the nodes constituting the surface unit.
可选地,步骤202的操作可以为:计算机设备获取m个目标单元中每个目标单元的单元标识;根据m个目标单元中每个目标单元的单元标识生成每个目标单元的多个面单元,具体可以根据m个目标单元中任意的一个目标单元的单元标识,使用面单元生成功能生成这个目标单元的多个面单元。Optionally, the operation of
示例地,计算机设备获取m个目标单元中每个目标单元的单元标识时,可以通过遍历第一有限元模型来获得第一有限元模型包括的m个目标单元中每个目标单元的单元标识,即获得m个单元标识,并且,可以创建第三集合,将m个单元标识存储至第三集合。For example, when the computer device obtains the unit identification of each target unit in the m target units, it can obtain the unit identification of each target unit in the m target units included in the first finite element model by traversing the first finite element model, That is, m unit identifiers are obtained, and a third set may be created, and the m unit identifiers are stored in the third set.
示例地,计算机设备根据m个目标单元中每个目标单元的单元标识生成每个目标单元的多个面单元时,可以遍历第三集合中m个单元标识中的每个单元标识,对于当前遍历到的一个单元标识,可以根据这个单元标识,使用面单元生成功能来快速生成这个单元标识所标识的目标单元的多个面单元。其中,面单元生成功能是用于生成实体单元的面单元的功能。比如,面单元生成功能可以为find face功能。For example, when the computer device generates multiple surface units of each target unit according to the unit identification of each target unit in the m target units, it can traverse each unit identification in the m unit identifications in the third set, and for the current traversal According to the unit identification obtained, the area unit generation function can be used to quickly generate multiple area units of the target unit identified by the unit identification. Among them, the surface element generation function is a function for generating surface elements of solid elements. For example, the surface unit generating function may be a find face function.
这种情况下,计算机设备每遍历到第三集合中的一个单元标识,在根据这个单元标识生成多个面单元后,可以创建第四集合,将本次新生成的该多个面单元中每个面单元的单元标识存储至第四集合,然后创建第一子集,将这个单元标识和第四集合中的所有单元标识存储至第一子集。这种情况下,在遍历完第三集合中的所有单元标识后,会获得m个第一子集,m个第一子集与m个目标单元一一对应,m个第一子集中每个第一子集包括对应的目标单元的单元标识以及对应的目标单元的多个面单元中每个面单元的单元标识。之后,计算机设备可以创建包含有m个第一子集的第一集合。In this case, every time the computer device traverses to a unit identifier in the third set, after generating multiple surface units according to the unit identifier, a fourth set can be created, and each of the multiple surface units newly generated this time The unit identifiers of surface units are stored in a fourth set, and then a first subset is created, and this unit identifier and all unit identifiers in the fourth set are stored in the first subset. In this case, after traversing all the unit identifiers in the third set, m first subsets will be obtained, and the m first subsets correspond to m target units one by one, and each of the m first subsets The first subset includes the unit identification of the corresponding target unit and the unit identification of each of the plurality of surface units of the corresponding target unit. Afterwards, the computer device may create a first set comprising the m first subsets.
另外,计算机设备还可以生成第二有限元模型。这种情况下,每遍历到第三集合中的一个单元标识,在根据这个单元标识生成多个面单元后,可以将本次新生成的该多个面单元中每个面单元添加于第二有限元模型中。这种情况下,在遍历完第三集合中的所有单元标识后,第二有限元模型会包括m个目标单元中每个目标单元的多个面单元。In addition, the computer device can also generate a second finite element model. In this case, every time a unit identifier in the third set is traversed, after multiple surface units are generated according to this unit identifier, each surface unit in the multiple surface units newly generated this time can be added to the second in the finite element model. In this case, after traversing all the unit identifiers in the third set, the second finite element model will include multiple surface units for each of the m target units.
步骤203:计算机设备从m个目标单元中每个目标单元的多个面单元中确定n个重复面单元对,n为大于或等于2的整数。Step 203: The computer device determines n repeated surface unit pairs from the multiple surface units of each of the m target units, where n is an integer greater than or equal to 2.
n个重复面单元对中每个重复面单元对包括位置重复的两个面单元。Each of the n repeated face unit pairs includes two face units whose positions are repeated.
可选地,步骤203的操作可以为:显示第二有限元模型;从所显示的第二有限元模型中的所有面单元中确定n个重复面单元对,具体可以使用重复单元查找功能从所显示的第二有限元模型中的所有面单元中快速查找出n个重复面单元对。Optionally, the operation of
重复单元查找功能是用于从所显示的有限元模型包括的单元中查找重复单元的功能。比如,重复单元查找功能可以为duplicate功能。The repeating unit search function is a function for finding a repeating unit from among the units included in the displayed finite element model. For example, the repeat unit search function can be a duplicate function.
这种情况下,计算机设备每确定出一个重复面单元对,可以创建一个第二子集,将最新确定出的这个重复面单元对包括的两个面单元中每个面单元的单元标识存储至这个第二子集。在确定出所有的重复面单元对(即n个重复面单元对)后,就获得了n个第二子集,n个第二子集与n个重复面单元对一一对应,n个第二子集中每个第二子集包括对应的重复面单元对包括的两个面单元中每个面单元的单元标识。之后,计算机设备可以创建包含有n个第二子集的第二集合。In this case, each time the computer device determines a repeated surface unit pair, a second subset can be created, and the unit identification of each of the two surface units included in the newly determined repeated surface unit pair is stored in This second subset. After determining all the repeated surface unit pairs (that is, n repeated surface unit pairs), n second subsets are obtained, and the n second subsets are in one-to-one correspondence with n repeated surface unit pairs. Each second subset of the two subsets includes a unit identifier for each of the two area units included in the corresponding repeated pair of area units. Afterwards, the computer device may create a second set comprising n second subsets.
步骤204:计算机设备根据n个重复面单元对生成n个内聚力单元。Step 204: The computer device generates n cohesive force units according to the n repeated surface unit pairs.
对于n个重复面单元对中任意的一个重复面单元对,可以在这个重复面单元对包括的两个面单元之间生成一个内聚力单元,如此,可以批量生成n个内聚力单元。For any one repeated surface unit pair among the n repeated surface unit pairs, a cohesive force unit can be generated between two surface units included in the repeated surface unit pair, so that n cohesive force units can be generated in batches.
可选地,步骤204的操作可以包括如下两种方式:Optionally, the operation of
第一种方式:对于n个重复面单元对中任意的一个重复面单元对,计算机设备在这个重复面单元对中的一个面单元的所有结点中每个结点的位置处新生成一个结点,将新生成的所有结点分配给这个重复面单元对中的另一个面单元,通过这个重复面单元对中两个面单元的所有结点构建一个内聚力单元。The first method: For any one of the n repeated surface unit pairs, the computer device generates a new node at the position of each node in all the nodes of one surface unit in the repeated surface unit pair point, assign all the newly generated nodes to the other surface unit in this repeated surface unit pair, and build a cohesive force unit through all the nodes of the two surface units in this repeated surface unit pair.
示例地,计算机设备通过这个重复面单元对中两个面单元的所有结点构建一个内聚力单元时,可以分别按序连接这两个面单元中每个面单元的所有结点,再一一连接这两个面单元中处于相同位置的结点,以获得一个内聚力单元,然后赋予这个内聚力单元一个单元标识。As an example, when a computer device builds a cohesion unit through all the nodes of the two surface units in the repeated surface unit pair, it can respectively connect all the nodes of each surface unit in the two surface units in sequence, and then connect them one by one Nodes in the same position in the two surface elements to obtain a cohesive element, and then assign an element ID to this cohesive element.
第二种方式:计算机设备根据第一集合和第二集合生成n个内聚力单元。The second way: the computer device generates n cohesion units according to the first set and the second set.
这种方式中,计算机设备可以直接根据第一集合和第二集合,简单快速的生成n个内聚力单元。In this way, the computer device can simply and quickly generate n cohesion units directly according to the first set and the second set.
可选地,计算机设备根据第一集合和第二集合生成n个内聚力单元的操作可以为:根据第一集合中的m个第一子集,将m个目标单元中每个目标单元的面单元与其他目标单元的面单元分离,以更新分离开的面单元的结点信息;获取与第二集合中的n个第二子集一一对应的n组结点信息,n组结点信息中每组结点信息包括对应的第二子集包括的两个单元标识中每个单元标识所标识的面单元的结点信息;根据n组结点信息生成n个内聚力单元。Optionally, the operation of the computer device to generate n cohesion units according to the first set and the second set may be: according to the m first subsets in the first set, the surface unit of each target unit in the m target units Separate from the surface units of other target units to update the node information of the separated surface units; obtain n groups of node information corresponding to n second subsets in the second set one-to-one, among the n groups of node information Each set of node information includes node information of surface elements identified by each of the two unit identifiers included in the corresponding second subset; n cohesion units are generated according to n sets of node information.
在本申请实施例中,先将m个目标单元中每个目标单元的面单元与其他目标单元的面单元进行分离,再根据n个重复面单元对中每个重复面单元对中两个面单元的结点信息就可以准确生成内聚力单元。In the embodiment of this application, the surface unit of each target unit among the m target units is separated from the surface units of other target units, and then two surface The node information of the unit can accurately generate the cohesive force unit.
示例地,计算机设备根据第一集合中的m个第一子集,将m个目标单元中每个目标单元的面单元与其他目标单元的面单元分离时,可以遍历第一集合中的m个第一子集,对于当前遍历到的一个第一子集,可以使用单元分离功能快速将这个第一子集对应的目标单元的面单元与其他目标单元的面单元进行分离。其中,单元分离功能用于分离两个重复的单元,比如,单元分离功能可以为detach功能。将一个面单元与另一个面单元分离是指:在这一个面单元的所有结点中每个结点的位置处新生成一个结点,将新生成的所有结点分配给该另一个面单元,如此,分离开的该另一个面单元的结点信息会被更新。Exemplarily, when the computer device separates the surface units of each target unit in the m target units from the surface units of other target units according to the m first subsets in the first set, the m subsets in the first set can be traversed The first subset, for a first subset currently traversed, the unit separation function can be used to quickly separate the surface units of the target unit corresponding to the first subset from the surface units of other target units. Wherein, the unit separation function is used to separate two repeated units, for example, the unit separation function may be a detach function. Separating one surface unit from another surface unit refers to generating a new node at the position of each node in all nodes of this one surface unit, and assigning all newly generated nodes to the other surface unit , so that the node information of the separated surface unit will be updated.
示例地,计算机设备获取与第二集合中的n个第二子集一一对应的n组结点信息时,对于n个第二子集中任意的一个第二子集,获取这个第二子集包括的两个单元标识中每个单元标识所标识的面单元的结点信息,以得到两个结点信息;确定这两个结点信息中的结点标识之间的对应关系;根据这两个结点信息中的结点标识之间的对应关系,将这两个结点信息中的结点标识按序添加到与这个第二子集对应的一组结点信息中。For example, when the computer device obtains n groups of node information corresponding to n second subsets in the second set, for any second subset in the n second subsets, the second subset is obtained Include the node information of the surface unit identified by each unit ID in the two unit IDs to obtain the two node information; determine the correspondence between the node IDs in the two node information; according to the two The corresponding relationship between the node identifiers in the two node information, and add the node identifiers in the two node information to the set of node information corresponding to the second subset in order.
这两个结点信息中的一个结点信息中的多个结点标识与另一个结点信息中的多个结点标识一一对应。这两个结点信息中的结点标识之间的对应关系用于指示这两个结点信息中的一个结点信息中的一个结点标识在另一个结点信息中对应的结点标识。相对应的两个结点标识所标识的两个结点是这两个结点信息中的所有结点标识所标识的结点中相距最近的两个结点,相对应的两个结点标识所标识的两个结点的位置相同。The multiple node identifiers in one of the two node information are in one-to-one correspondence with the multiple node identifiers in the other node information. The correspondence between the node identifiers in the two node information is used to indicate that a node identifier in one node information of the two node information corresponds to a node identifier in the other node information. The two nodes identified by the corresponding two node IDs are the two closest nodes among the nodes identified by all the node IDs in the two node information, and the corresponding two node IDs The positions of the two identified nodes are the same.
其中,计算机设备根据这两个结点信息中的结点标识之间的对应关系,将这两个结点信息中的结点标识按序添加到与这个第二子集对应的一组结点信息中时,可以先将这两个结点信息中的一个结点信息中的所有结点标识按序添加到与这个第二子集对应的一组结点信息,再根据这个结点信息中所有结点标识的顺序和这两个结点信息中的结点标识之间的对应关系,对这两个结点信息中另一个结点信息中的所有结点标识进行排序,将排序后的该另一个结点信息中的所有结点标识按序添加到这组结点信息中。Wherein, the computer device adds the node identifiers in the two node information to a group of nodes corresponding to the second subset in sequence according to the correspondence between the node identifiers in the two node information information, you can first add all the node identifiers in one of the two node information to the set of node information corresponding to the second subset in order, and then according to the node information The order of all node identifiers and the corresponding relationship between the node identifiers in the two node information, sort all the node identifiers in the other node information in the two node information, and sort the sorted All node identifiers in the other node information are added to this group of node information in sequence.
示例地,计算机设备根据n组结点信息生成n个内聚力单元时,对于该n组结点信息中任意的一组结点信息,可以顺序连接这组结点信息中的前一半结点标识所标识的多个结点,以及顺序连接这组结点信息中的后一半结点标识所标识的多个结点,且一一连接这组结点信息中的前一半结点标识所标识的多个结点与后一半结点标识所标识的多个结点,以获得一个内聚力单元,然后赋予这个内聚力单元一个单元标识。For example, when the computer device generates n cohesive force units according to n sets of node information, for any set of node information in the n sets of node information, the first half of the node identifiers in the set of node information can be sequentially connected The multiple nodes identified, and sequentially connect the multiple nodes identified by the second half of the node identifiers in this group of node information, and connect the multiple nodes identified by the first half of the node identifiers in this group of node information one by one node and the multiple nodes identified by the second half node ID to obtain a cohesive force unit, and then assign a unit ID to this cohesive force unit.
进一步地,计算机设备生成n个内聚力单元之后,还可以生成第三有限元模型(也可称为内聚力模型),第三有限元模型包括n个内聚力单元。之后,可以为第一有限元模型设置本体属性,以及为第三有限元模型设置内聚力属性。其中,第一有限元模型的本体属性是目标结构件的相关属性,如可以包括密度、弹性模量、泊松比等。第三有限元模型的内聚力属性是内聚力单元的相关属性,如可以包括拉伸刚度、剪切刚度、拉伸强度、剪切强度、拉伸断裂能、剪切断裂能等。Further, after the computer device generates n cohesive force units, it can also generate a third finite element model (also called a cohesive force model), and the third finite element model includes n cohesive force units. Afterwards, you can set the body properties for the first FE model, and the cohesion properties for the third FE model. Wherein, the body properties of the first finite element model are related properties of the target structural member, such as density, elastic modulus, Poisson's ratio, etc. may be included. The cohesive force attribute of the third finite element model is a related property of the cohesive force unit, for example, may include tensile stiffness, shear stiffness, tensile strength, shear strength, tensile fracture energy, shear fracture energy, and the like.
进一步地,计算机设备还可以定义工况以及生成其他有限元模型,完成前处理。Furthermore, computer equipment can also define working conditions and generate other finite element models to complete pre-processing.
工况用于指示在后续仿真模拟过程中目标结构件与其他部件之间的连接关系,以及指示在后续仿真模拟过程中所需执行的操作。Working conditions are used to indicate the connection relationship between the target structure and other components in the subsequent simulation process, and indicate the operations that need to be performed in the subsequent simulation process.
前处理完成后,获得多个有限元模型,包括第一有限元模型、第三有限元模型以及其他相关部件的有限元模型。其中,第三有限元模型可以嵌入在第一有限元模型中。之后,计算机设备可以根据获得的多个有限元模型进行模拟计算,以模拟目标结构件的开裂、产屑等现象。After the pre-processing is completed, multiple finite element models are obtained, including the first finite element model, the third finite element model and finite element models of other related components. Wherein, the third finite element model can be embedded in the first finite element model. Afterwards, computer equipment can perform simulation calculations based on the obtained multiple finite element models to simulate phenomena such as cracking and debris generation of target structural parts.
在本申请实施例中,获取目标结构件的第一有限元模型后,可以生成第一有限元模型包括的m个目标单元中每个目标单元的多个面单元,然后从这些面单元中确定n个重复面单元对,最后根据n个重复面单元对生成n个内聚力单元,如此,可以批量生成n个内聚力单元。In the embodiment of the present application, after obtaining the first finite element model of the target structure, multiple surface units of each of the m target units included in the first finite element model can be generated, and then determined from these surface units n repeated surface unit pairs, and finally generate n cohesive force units according to the n repeated surface unit pairs. In this way, n cohesive force units can be generated in batches.
需说明的是,本申请实施例提供的生成内聚力单元的方法可以在有限元分析软件中运行。该有限元分析软件可以包括Hypermesh软件、Abaqus软件等,本申请实施例对此不作限定。It should be noted that the method for generating the cohesive force unit provided in the embodiment of the present application can be run in finite element analysis software. The finite element analysis software may include Hypermesh software, Abaqus software, etc., which are not limited in this embodiment of the present application.
本申请实施例提供的生成内聚力单元的方法可以在目标结构件的有限元模型中的任意两单元之间插入零厚度内聚力单元,后续利用内聚力单元可以模拟目标结构件的开裂、产屑等现象。The method for generating the cohesive force unit provided in the embodiment of the present application can insert a zero-thickness cohesive force unit between any two units in the finite element model of the target structural member, and then use the cohesive force unit to simulate cracking and debris generation of the target structural member.
下面以单元标识为单元编号、结点标识为结点编号为例,对本申请实施例提供的生成内聚力单元的方法的一种可能的实现方式进行举例说明。该方法可以包括如下操作:Taking the unit ID as the unit number and the node ID as the node number as an example, a possible implementation of the method for generating cohesive force units provided in the embodiment of the present application is illustrated below. The method may include the following operations:
第一步:在有限元分析软件中创建目标结构件的有限元模型Component(以下简称为Comp)并命名为glue。Step 1: Create the finite element model Component (hereinafter referred to as Comp) of the target structure in the finite element analysis software and name it glue.
比如,如图3所示,创建出的目标结构件的有限元模型Comp glue可以是三层六面体网格模型,有限元模型Comp glue包括m个目标单元,m个目标单元中的每个目标单元均为六面体单元。For example, as shown in Figure 3, the created finite element model Comp glue of the target structure can be a three-layer hexahedral mesh model, the finite element model Comp glue includes m target units, and each target unit in the m target units are hexahedral units.
第二步:在有限元模型Comp glue中插入n个内聚力单元,具体可以包括如下步骤(1)至步骤(7)。示例地,第二步的操作可以基于工具命令语言(Tool Command Language,TCL)编写的TCL/tk Script脚本在有限元分析软件中自动完成,当然,第二步的操作也可以基于其他语言编写的脚本在有限元分析软件中自动完成,本申请实施例对此不作限定。The second step: Insert n cohesion elements into the finite element model Comp glue, which may specifically include the following steps (1) to (7). Exemplarily, the operation of the second step can be automatically completed in the finite element analysis software based on the TCL/tk Script script written in Tool Command Language (Tool Command Language, TCL). Of course, the operation of the second step can also be based on the script written in other languages. The script is automatically completed in the finite element analysis software, which is not limited in this embodiment of the present application.
(1)遍历有限元模型Comp glue,以获得有限元模型Comp glue中每个目标单元的单元编号,创建一个集合并命名为list_elements,将获得的所有目标单元中每个目标单元的单元编号均存储至集合list_elements。(1) Traverse the finite element model Comp glue to obtain the unit number of each target unit in the finite element model Comp glue, create a collection and name it list_elements, and store the unit number of each target unit in all the obtained target units to the collection list_elements.
这种情况下,集合list_elements中包括有限元模型Comp glue中的所有目标单元中每个目标单元的单元编号。In this case, the set list_elements includes the element number of each target element in all target elements in the finite element model Compglue.
示例地,若有限元分析软件为Hypermesh软件,则本申请实施例中所述的集合均可以为列表(list)。若有限元分析软件为其他软件,则本申请实施例中所述的集合可以以其他形式实现。For example, if the finite element analysis software is Hypermesh software, all the collections described in the embodiments of the present application may be lists. If the finite element analysis software is other software, the collection described in the embodiment of the present application may be implemented in other forms.
(2)遍历集合list_elements中的每个单元编号,以生成每个目标单元的多个面单元。(2) Traverse each element number in the set list_elements to generate multiple surface elements for each target element.
这种情况下,创建一个有限元模型Comp并命名为interface,以用来存放生成的所有面单元。若遍历到集合list_elements中的第一个单元编号,则可以自动创建一个有限元模型Comp并命名为face,以用来存放新生成的面单元,之后,可以根据第一个单元编号,使用find face功能生成第一个单元编号所标识的目标单元的多个面单元,将新生成的该多个面单元存储至有限元模型Comp face,且将新生成的该多个面单元存储至有限元模型Comp interface,然后创建一个集合并命名为list detach_face_ele,将有限元模型Compface中所有面单元中每个面单元的单元编号存储至集合list detach_face_ele,新创建一个子集并命名为list detach_small_list,将第一个单元编号和集合list detach_face_ele中的所有单元编号存储至子集list detach_small_list中,然后继续遍历集合list_elements中的下一个单元编号。若遍历到集合list_elements中除第一个单元编号之外的其他单元编号,则可以根据当前遍历到的单元编号,使用find face功能生成该单元编号所标识的目标单元的多个面单元,将新生成的该多个面单元更新存储至有限元模型Compface,也即,使用新生成的该多个面单元替换有限元模型Comp face中之前存储的所有面单元,且将新生成的该多个面单元存储至有限元模型Comp interface,然后将有限元模型Comp face中所有面单元中每个面单元的单元编号更新存储至集合list detach_face_ele,也即,使用有限元模型Comp face中所有面单元中每个面单元的单元编号替换集合list detach_face_ele中之前存储的单元编号,新创建一个子集并命名为list detach_small_list,将当前遍历到的单元编号和集合list detach_face_ele中的所有单元编号存储至子集list detach_small_list中,然后继续遍历集合list_elements中的下一个单元编号。如此,在遍历完集合list_elements中的所有单元编号后,会获得与集合list_elements中的所有单元编号一一对应的多个子集list detach_small_list,以及获得有限元模型Comp interface,有限元模型Comp interface包括生成的所有面单元。这种情况下,删除有限元模型Comp face和集合list detach_face_ele,并且,创建集合并命名为detach_ele_list,将该多个子集list detach_small_list依次存储至集合detach_ele_list中。In this case, create a finite element model Comp and name it interface to store all the surface elements generated. If you traverse to the first unit number in the collection list_elements, you can automatically create a finite element model Comp and name it face to store the newly generated surface unit, and then you can use find face according to the first unit number The function generates multiple surface units of the target unit identified by the first unit number, stores the newly generated multiple surface units to the finite element model Comp face, and stores the newly generated multiple surface units to the finite element model Comp interface, then create a collection and name it list detach_face_ele, store the unit number of each surface unit in all surface units in the finite element model Compface to the collection list detach_face_ele, create a new subset and name it list detach_small_list, and set the first A unit number and all unit numbers in the set list detach_face_ele are stored in the subset list detach_small_list, and then continue to traverse the next unit number in the set list_elements. If you traverse to other unit numbers in the collection list_elements except the first unit number, you can use the find face function to generate multiple surface units of the target unit identified by the unit number according to the currently traversed unit number, and add the new The generated surface units are updated and stored in the finite element model Compface, that is, the newly generated surface units are used to replace all previously stored surface units in the finite element model Comp face, and the newly generated surface units are The unit is stored in the finite element model Comp interface, and then the unit number of each surface unit in all surface units in the finite element model Comp face is updated and stored in the set list detach_face_ele, that is, each of all surface units in the finite element model Comp face is used Replace the cell numbers previously stored in the set list detach_face_ele with the unit numbers of each surface unit, create a new subset and name it list detach_small_list, and store the currently traversed unit numbers and all unit numbers in the set list detach_face_ele to the subset list detach_small_list , and then continue to traverse the next cell number in the collection list_elements. In this way, after traversing all the unit numbers in the set list_elements, you will get multiple subsets list detach_small_list corresponding to all the unit numbers in the set list_elements one-to-one, and get the finite element model Comp interface, the finite element model Comp interface includes the generated All surface elements. In this case, delete the finite element model Comp face and the set list detach_face_ele, and create a set and name it detach_ele_list, and store the multiple subsets list detach_small_list in the set detach_ele_list in turn.
(3)确定生成的所有面单元中多个重复面单元对,一个重复面单元对包括两个位置重复的面单元。(3) Determine multiple repeated surface unit pairs in all generated surface units, and a repeated surface unit pair includes two surface units with repeated positions.
在一些实施例中,可以显示有限元模型Comp interface,使用duplicate功能从所显示的有限元模型Comp interface包括的面单元中查找多个重复面单元对。每查找到一个重复面单元对,则新创建一个子集并命名为list duplicate_ele_list,将这个重复面单元对中的两个面单元中每个面单元的单元编号存储至子集list duplicate_ele_list中。在查找到所有重复面单元对以后,创建一个集合并命名为duplicate_element_list,将创建出的所有子集list duplicate_ele_list依次存放到集合duplicate_element_list中。In some embodiments, the finite element model Comp interface can be displayed, and the duplicate function can be used to find multiple duplicate surface unit pairs from the surface units included in the displayed finite element model Comp interface. Whenever a duplicate surface element pair is found, create a new subset and name it list duplicate_ele_list, and store the unit number of each surface element in the two surface elements in the duplicate surface element pair to the subset list duplicate_ele_list. After finding all the duplicate surface element pairs, create a set and name it duplicate_element_list, and store all the created subset list duplicate_ele_list in the set duplicate_element_list in turn.
(4)遍历集合detach_ele_list中的子集list detach_small_list,以对每个目标单元的面单元与其他目标单元的面单元执行分离操作。(4) Traversing the subset list detach_small_list in the set detach_ele_list to perform detachment operations on the surface units of each target unit and the surface units of other target units.
这种情况下,对于当前遍历到的集合detach_ele_list中任意的一个子集listdetach_small_list,可以使用detach功能将这个子集list detach_small_list对应的目标单元的面单元与其他目标单元的面单元进行分离。这种情况下,集合duplicate_element_list中的每个子集list duplicate_ele_list中两个单元编号所标识的两个面单元的结点信息不同,即这两个面单元已分离。In this case, for any subset listdetach_small_list in the currently traversed set detach_ele_list, you can use the detach function to separate the surface unit of the target unit corresponding to this subset list detach_small_list from the surface units of other target units. In this case, the node information of the two surface elements identified by the two element numbers in each subset list duplicate_ele_list in the set duplicate_element_list is different, that is, the two surface elements have been separated.
(5)遍历集合duplicate_element_list中的所有子集list duplicate_ele_list,以获得n组结点信息。(5) Traverse all subset list duplicate_ele_list in the set duplicate_element_list to obtain n groups of node information.
这种情况下,对于当前遍历到的集合duplicate_element_list中任意的一个子集list duplicate_ele_list,获取这个子集list duplicate_ele_list中的两个单元编号所标识的两个面单元中每个面单元的结点信息。假设这两个面单元包括面单元A和面单元B,面单元A的结点信息记为list1{M1、M2,……,Mk},面单元B的结点信息记为list2{N1、N2,……,Nk},则遍历list1和list2查找相距最近的两个结点的结点编号,以确定出面单元A的结点信息中的结点编号与面单元B的结点信息中的结点编号之间的对应关系,假设M1对应N1,M2对应N2,M3对应N3,依次类推,Mk对应Nk,则创建一个子集并命名为create_cohesive_nodes,将面单元A和面单元B的结点信息中的所有结点编号按序存储至子集create_cohesive_nodes1,得到{M1,M2,……,Mk,N1,N2,……,Nk}。在遍历完集合duplicate_element_list中所有的子集list duplicate_ele_list后,获得多个子集create_cohesive_nodes1,创建一个集合并命名为list create_cohesive_nodes,将多个子集create_cohesive_nodes1依次存入集合list create_cohesive_nodes。In this case, for any subset list duplicate_ele_list in the currently traversed set duplicate_element_list, obtain the node information of each of the two surface units identified by the two unit numbers in the subset list duplicate_ele_list. Assuming that the two surface units include surface unit A and surface unit B, the node information of surface unit A is recorded as list1{M1, M2,...,Mk}, and the node information of surface unit B is recorded as list2{N1, N2 , ..., Nk}, then traverse list1 and list2 to find the node numbers of the two nearest nodes, to determine the node number in the node information of surface unit A and the node number in the node information of surface unit B The correspondence between point numbers, assuming that M1 corresponds to N1, M2 corresponds to N2, M3 corresponds to N3, and so on, Mk corresponds to Nk, then create a subset and name it create_cohesive_nodes, and the node information of surface unit A and surface unit B All node numbers in are stored in the subset create_cohesive_nodes1 in sequence, and {M1, M2,..., Mk, N1, N2,..., Nk} are obtained. After traversing all the subset lists duplicate_ele_list in the set duplicate_element_list, obtain multiple subsets create_cohesive_nodes1, create a set and name it list create_cohesive_nodes, and store multiple subsets create_cohesive_nodes1 into the set list create_cohesive_nodes in turn.
(6)创建有限元模型Comp并命名为cohesive_zero_elements。(6) Create a finite element model Comp and name it cohesive_zero_elements.
有限元模型Comp cohesive_zero_elements是内聚力单元的有限元模型。The finite element model Comp cohesive_zero_elements is the finite element model of the cohesive elements.
(7)遍历集合list create_cohesive_nodes中的所有子集create_cohesive_nodes1,以创建多个内聚力单元,并将创建的多个内聚力单元存放至有限元模型Compcohesive_zero_elements。(7) Traverse all subsets create_cohesive_nodes1 in the set list create_cohesive_nodes to create multiple cohesive units, and store the created multiple cohesive units into the finite element model Compcohesive_zero_elements.
根据子集create_cohesive_nodes1创建内聚力单元时,可以根据子集create_cohesive_nodes1中的结点编号所标识的结点构成对应的内聚力单元。具体来讲,可以顺序连接子集create_cohesive_nodes1中的前一半结点编号所标识的多个结点,以及顺序连接子集create_cohesive_nodes1中的后一半结点编号所标识的多个结点,且一一连接子集create_cohesive_nodes1中的前一半结点编号所标识的多个结点与后一半结点编号所标识的多个结点,以获得内聚力单元,然后赋予该内聚力单元一个单元编号。When the cohesive force unit is created according to the subset create_cohesive_nodes1, the corresponding cohesive force unit can be formed according to the nodes identified by the node numbers in the subset create_cohesive_nodes1. Specifically, multiple nodes identified by the first half of the node numbers in the subset create_cohesive_nodes1 can be sequentially connected, and multiple nodes identified by the second half of the node numbers in the subset create_cohesive_nodes1 can be sequentially connected, and connected one by one In the subset create_cohesive_nodes1, multiple nodes identified by the first half of the node numbers and multiple nodes identified by the second half of the node numbers are used to obtain a cohesive force unit, and then a unit number is assigned to the cohesive force unit.
比如,如图4所示,在目标结构件的有限元模型Comp glue为图4中的(a)图所示的一层六面体网格模型的情况下,生成的内聚力单元的有限元模型Comp cohesive_zero_elements可以如图4中的(b)图所示。For example, as shown in Figure 4, when the finite element model Comp glue of the target structural part is a layer of hexahedral mesh model shown in (a) in Figure 4, the generated finite element model Comp cohesive_zero_elements of the cohesive force unit It can be shown in (b) diagram in Figure 4.
又比如,如图5所示,在目标结构件的有限元模型Comp glue为图5中的(a)图所示的三层六面体网格模型的情况下,生成的内聚力单元的有限元模型Comp cohesive_zero_elements可以如图5中的(b)图所示。For another example, as shown in Figure 5, when the finite element model Comp glue of the target structural member is the three-layer hexahedral mesh model shown in (a) in Figure 5, the generated finite element model Comp of the cohesive force unit cohesive_zero_elements can be shown in (b) diagram in Figure 5.
再比如,如图6所示,在目标结构件的有限元模型Comp glue为图6中的(a)图所示的五面体网格模型的情况下,生成的内聚力单元的有限元模型Comp cohesive_zero_elements可以如图6中的(b)图所示。For another example, as shown in Figure 6, when the finite element model Comp glue of the target structure is the pentahedral mesh model shown in (a) in Figure 6, the generated finite element model Comp cohesive_zero_elements of the cohesive force unit It can be shown in (b) diagram in Figure 6.
还比如,如图7所示,在目标结构件的有限元模型Comp glue为图7中的(a)图所示的四面体网格模型的情况下,生成的内聚力单元的有限元模型Comp cohesive_zero_elements可以如图7中的(b)图所示。For example, as shown in Figure 7, when the finite element model Comp glue of the target structure is the tetrahedral mesh model shown in (a) in Figure 7, the generated finite element model Comp cohesive_zero_elements of the cohesive force unit It can be shown in (b) diagram in Figure 7.
第三步:为目标结构件的有限元模型Comp glue赋予本体属性,为内聚力单元的有限元模型Comp cohesive_zero_elements赋予内聚力属性。Step 3: Assign body attributes to the finite element model Comp glue of the target structural member, and assign cohesive force attributes to the finite element model Comp cohesive_zero_elements of the cohesive force unit.
示例地,目标结构件的有限元模型Comp glue的本体属性可以包括密度、弹性模量、泊松比等。内聚力单元的有限元模型Comp cohesive_zero_elements的内聚力属性可以包括拉伸刚度、剪切刚度、拉伸强度、剪切强度、拉伸断裂能、剪切断裂能等。Exemplarily, the body properties of the finite element model Compglue of the target structural member may include density, elastic modulus, Poisson's ratio, and the like. The cohesive properties of the finite element model Comp cohesive_zero_elements of the cohesive force element can include tensile stiffness, shear stiffness, tensile strength, shear strength, tensile fracture energy, shear fracture energy, etc.
第四步:定义工况以及其他有限元模型Comp,完成前处理。Step 4: Define the working conditions and other finite element models Comp, and complete the pre-processing.
工况用于指示在后续仿真模拟过程中目标结构件与其他部件之间的连接关系,以及指示在后续仿真模拟过程中所需执行的操作。Working conditions are used to indicate the connection relationship between the target structure and other components in the subsequent simulation process, and indicate the operations that need to be performed in the subsequent simulation process.
前处理完成后,获得多个有限元模型,包括目标结构件的有限元模型Comp glue、内聚力单元的有限元模型Comp cohesive_zero_elements以及其他相关部件的有限元模型Comp。其中,内聚力单元的有限元模型Comp cohesive_zero_elements嵌入在目标结构件的有限元模型Comp glue中。之后,可以将获得的多个有限元模型提交给其他软件进行模拟。After the pre-processing is completed, multiple finite element models are obtained, including the finite element model Comp glue of the target structural part, the finite element model Comp cohesive_zero_elements of the cohesive force unit, and the finite element model Comp of other related components. Among them, the finite element model Comp cohesive_zero_elements of the cohesive force unit is embedded in the finite element model Comp glue of the target structure. Afterwards, the obtained multiple finite element models can be submitted to other software for simulation.
比如,如图8所示,建立的简化的胶水开裂的有限元模型可以包括被粘接物的有限元模型、插入了内聚力单元的胶层的有限元模型。工况为:被粘接物下端固定,上端施加一个向上的拉力,以模拟胶层受拉开裂现象。之后,可以将胶水开裂的有限元模型提交给其他软件进行计算,以模拟单轴拉伸胶本体开裂现象。For example, as shown in Fig. 8, the established simplified finite element model of glue cracking may include the finite element model of the bonded object and the finite element model of the glue layer inserted with cohesive force elements. The working condition is: the lower end of the adhered object is fixed, and an upward pulling force is applied to the upper end to simulate the cracking phenomenon of the adhesive layer. Afterwards, the finite element model of glue cracking can be submitted to other software for calculation to simulate the phenomenon of uniaxial tensile glue body cracking.
图9是本申请实施例提供的一种生成内聚力单元的装置的结构示意图,该装置可以由软件、硬件或者两者的结合实现成为计算机设备的部分或者全部,该计算机设备可以为上文图1实施例所述的计算机设备。参见图9,该装置包括:Fig. 9 is a schematic structural diagram of a device for generating a cohesive force unit provided by an embodiment of the present application. The device can be implemented by software, hardware or a combination of the two as part or all of a computer device. The computer device can be the above-mentioned Fig. 1 The computer equipment described in the embodiment. Referring to Figure 9, the device includes:
获取模块901,用于获取第一有限元模型,第一有限元模型是目标结构件的有限元模型,第一有限元模型包括m个目标单元,m为大于或等于2的整数;An
第一生成模块902,用于生成m个目标单元中每个目标单元的多个面单元;The
确定模块903,用于从m个目标单元中每个目标单元的多个面单元中确定n个重复面单元对,n个重复面单元对中每个重复面单元对包括位置重复的两个面单元,n为大于或等于2的整数;A
第二生成模块904,用于根据n个重复面单元对生成n个内聚力单元。The
可选地,第一生成模块902用于:Optionally, the
获取m个目标单元中每个目标单元的单元标识;Obtain the unit identifier of each target unit in the m target units;
根据m个目标单元中任意一个目标单元的单元标识,使用面单元生成功能生成这一个目标单元的多个面单元。According to the unit identification of any one of the m target units, use the surface unit generation function to generate multiple surface units of this one target unit.
可选地,该装置还包括:Optionally, the device also includes:
第三生成模块,用于生成第二有限元模型,第二有限元模型包括m个目标单元中每个目标单元的多个面单元;The third generation module is used to generate the second finite element model, the second finite element model includes a plurality of surface units of each target unit in the m target units;
确定模块903用于:The determining
显示第二有限元模型;Display the second finite element model;
使用重复单元查找功能从所显示的第二有限元模型中的所有面单元中查找n个重复面单元对。Use the duplicate element lookup function to find n duplicate area element pairs from all the area elements in the displayed second finite element model.
可选地,该装置还包括:Optionally, the device also includes:
第一创建模块,用于创建第一集合,第一集合包括与m个目标单元一一对应的m个第一子集,m个第一子集中每个第一子集包括对应的目标单元的单元标识以及对应的目标单元的多个面单元中每个面单元的单元标识;The first creation module is used to create a first set, the first set includes m first subsets corresponding to m target units one-to-one, and each first subset in the m first subsets includes the corresponding target unit A unit identification and a unit identification of each area unit in a plurality of area units corresponding to the target unit;
第二创建模块,用于创建第二集合,第二集合包括与n个重复面单元对一一对应的n个第二子集,n个第二子集中每个第二子集包括对应的重复面单元对包括的两个面单元中每个面单元的单元标识;The second creation module is used to create a second set, the second set includes n second subsets corresponding to n repeated surface unit pairs one-to-one, and each second subset in the n second subsets includes a corresponding repetition The element identification of each of the two surface elements included in the surface element pair;
第二生成模块904用于:The
根据第一集合和第二集合生成n个内聚力单元。Generate n cohesion elements from the first set and the second set.
可选地,第二生成模块904用于:Optionally, the
根据第一集合中的m个第一子集,将m个目标单元中每个目标单元的面单元与其他目标单元的面单元分离,以更新分离开的面单元的结点信息;According to the m first subsets in the first set, the surface unit of each target unit in the m target units is separated from the surface units of other target units, so as to update the node information of the separated surface units;
获取与第二集合中的n个第二子集一一对应的n组结点信息,n组结点信息中每组结点信息包括对应的第二子集包括的两个单元标识中每个单元标识所标识的面单元的结点信息;Acquiring n sets of node information corresponding to n second subsets in the second set, each set of node information in the n sets of node information includes each of the two unit identifiers included in the corresponding second subset The node information of the area unit identified by the unit identifier;
根据n组结点信息生成n个内聚力单元。Generate n cohesion units according to n groups of node information.
可选地,第二生成模块904用于:Optionally, the
对于n个第二子集中任意的一个第二子集,获取一个第二子集包括的两个单元标识中每个单元标识所标识的面单元的结点信息,以得到两个结点信息;For any one of the n second subsets, obtain the node information of the surface unit identified by each of the two unit IDs included in the second subset, so as to obtain two node information;
确定两个结点信息中的结点标识之间的对应关系;Determine the correspondence between the node identifiers in the two node information;
根据两个结点信息中的结点标识之间的对应关系,将两个结点信息中的结点标识按序添加到与一个第二子集对应的一组结点信息中。According to the corresponding relationship between the node identifiers in the two node information, the node identifiers in the two node information are sequentially added to a set of node information corresponding to a second subset.
可选地,两个结点信息中的结点标识之间的对应关系中相对应的两个结点标识所标识的两个结点是两个结点信息中的所有结点标识所标识的结点中相距最近的两个结点;Optionally, the two nodes identified by the corresponding two node identifiers in the correspondence between the node identifiers in the two node information are identified by all the node identifiers in the two node information The two closest nodes among the nodes;
第二生成模块904用于:The
将两个结点信息中的一个结点信息中的所有结点标识按序添加到与一组结点信息中;Add all node identifiers in one of the two node information to a set of node information in sequence;
根据一个结点信息中所有结点标识的顺序和两个结点信息中的结点标识之间的对应关系,对两个结点信息中另一个结点信息中的所有结点标识进行排序;According to the order of all node identifiers in one node information and the corresponding relationship between the node identifiers in the two node information, sort all the node identifiers in the other node information of the two node information;
将排序后的另一个结点信息中的所有结点标识按序添加到一组结点信息中。Add all node identifiers in another sorted node information to a set of node information in sequence.
可选地,该装置还包括:Optionally, the device also includes:
第四生成模块,用于生成第三有限元模型,第三有限元模型包括n个内聚力单元;A fourth generating module, configured to generate a third finite element model, where the third finite element model includes n cohesive force units;
设置模块,用于为第一有限元模型设置本体属性,以及为第三有限元模型设置内聚力属性。A setting module is used for setting body properties for the first finite element model, and setting cohesion properties for the third finite element model.
在本申请实施例中,获取目标结构件的第一有限元模型后,可以生成第一有限元模型包括的m个目标单元中每个目标单元的多个面单元,然后从这些面单元中确定n个重复面单元对,最后根据n个重复面单元对生成n个内聚力单元,如此,可以批量生成n个内聚力单元。In the embodiment of the present application, after obtaining the first finite element model of the target structure, multiple surface units of each of the m target units included in the first finite element model can be generated, and then determined from these surface units n repeated surface unit pairs, and finally generate n cohesive force units according to the n repeated surface unit pairs. In this way, n cohesive force units can be generated in batches.
需要说明的是:上述实施例提供的生成内聚力单元的装置在生成内聚力单元时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that: when the device for generating cohesive force units provided by the above-mentioned embodiments generates cohesive force units, it only uses the division of the above-mentioned functional modules for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules according to needs. To complete means to divide the internal structure of the device into different functional modules to complete all or part of the functions described above.
上述实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请实施例的保护范围。The functional units and modules in the above-mentioned embodiments can be integrated into one processing unit, or each unit can exist separately physically, or two or more units can be integrated into one unit, and the above-mentioned integrated units can use hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
上述实施例提供的生成内聚力单元的装置与生成内聚力单元的方法实施例属于同一构思,上述实施例中单元、模块的具体工作过程及带来的技术效果,可参见方法实施例部分,此处不再赘述。The device for generating the cohesive force unit provided in the above-mentioned embodiment and the embodiment of the method for generating the cohesive force unit belong to the same idea. For the specific working process and technical effects of the unit and module in the above-mentioned embodiment, please refer to the method embodiment part, which is not described here. Let me repeat.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络或其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,比如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(比如:同轴电缆、光纤、数据用户线(Digital Subscriber Line,DSL))或无线(比如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质,或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(比如:软盘、硬盘、磁带)、光介质(比如:数字通用光盘(Digital Versatile Disc,DVD))或半导体介质(比如:固态硬盘(Solid State Disk,SSD))等。In the above embodiments, all or part may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be accessed from a website, computer, server, or data center Transmission to another website site, computer, server or data center via wired (such as: coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as: infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or may be a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a digital versatile disc (Digital Versatile Disc, DVD)), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)) wait.
以上所述为本申请提供的可选实施例,并不用以限制本申请,凡在本申请的揭露的技术范围之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above-mentioned optional embodiments provided by the application are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the technical scope of the disclosure of the application shall be included in the scope of the application. within the scope of protection.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310364016.XA CN116127819B (en) | 2023-04-07 | 2023-04-07 | Method for generating cohesive force unit, computer device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310364016.XA CN116127819B (en) | 2023-04-07 | 2023-04-07 | Method for generating cohesive force unit, computer device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116127819A true CN116127819A (en) | 2023-05-16 |
| CN116127819B CN116127819B (en) | 2023-09-15 |
Family
ID=86297718
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310364016.XA Active CN116127819B (en) | 2023-04-07 | 2023-04-07 | Method for generating cohesive force unit, computer device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116127819B (en) |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120141966A1 (en) * | 2009-05-08 | 2012-06-07 | Hyperspace Pty Ltd | Useable Electromagnetic Blueprint of the Structure of Space |
| US20130215362A1 (en) * | 2010-05-10 | 2013-08-22 | Yasuhiro Koike | Method For Evaluating Birefringence Of Adhesive, Method For Designing Adhesive, Method For Producing Adhesive, Adhesive, Polarizing Plate, Liquid Crystal Display Device, Method For Producing Polarizing Plate And Method For Producing Liquid Crystal Display Device |
| US20180245435A1 (en) * | 2017-02-24 | 2018-08-30 | Gauthier D. Becker | Nitsche Continuity Enforcement for Non-Conforming Meshes |
| CN108804787A (en) * | 2018-05-26 | 2018-11-13 | 南京理工大学 | The method for being inserted into cohesive force unit simulation Rock Bridge Failure based on batch |
| CN109684724A (en) * | 2018-12-25 | 2019-04-26 | 吉林大学 | A kind of viscous compound steel skeleton construction analysis method of riveting of the more material vehicle bodies of car |
| CN113283146A (en) * | 2021-06-09 | 2021-08-20 | 深圳大学 | Two-dimensional coherent unit global embedding method |
| CN114302049A (en) * | 2022-01-25 | 2022-04-08 | 荣耀终端有限公司 | A new type of motor, camera module and electronic equipment |
| CN217506512U (en) * | 2022-03-02 | 2022-09-27 | 荣耀终端有限公司 | Display module, display screen and electronic equipment |
| CN115775602A (en) * | 2022-11-28 | 2023-03-10 | 西安交通大学 | Composite fracture interface parameter identification method based on machine learning |
-
2023
- 2023-04-07 CN CN202310364016.XA patent/CN116127819B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120141966A1 (en) * | 2009-05-08 | 2012-06-07 | Hyperspace Pty Ltd | Useable Electromagnetic Blueprint of the Structure of Space |
| US20130215362A1 (en) * | 2010-05-10 | 2013-08-22 | Yasuhiro Koike | Method For Evaluating Birefringence Of Adhesive, Method For Designing Adhesive, Method For Producing Adhesive, Adhesive, Polarizing Plate, Liquid Crystal Display Device, Method For Producing Polarizing Plate And Method For Producing Liquid Crystal Display Device |
| US20180245435A1 (en) * | 2017-02-24 | 2018-08-30 | Gauthier D. Becker | Nitsche Continuity Enforcement for Non-Conforming Meshes |
| CN108804787A (en) * | 2018-05-26 | 2018-11-13 | 南京理工大学 | The method for being inserted into cohesive force unit simulation Rock Bridge Failure based on batch |
| CN109684724A (en) * | 2018-12-25 | 2019-04-26 | 吉林大学 | A kind of viscous compound steel skeleton construction analysis method of riveting of the more material vehicle bodies of car |
| CN113283146A (en) * | 2021-06-09 | 2021-08-20 | 深圳大学 | Two-dimensional coherent unit global embedding method |
| CN114302049A (en) * | 2022-01-25 | 2022-04-08 | 荣耀终端有限公司 | A new type of motor, camera module and electronic equipment |
| CN217506512U (en) * | 2022-03-02 | 2022-09-27 | 荣耀终端有限公司 | Display module, display screen and electronic equipment |
| CN115775602A (en) * | 2022-11-28 | 2023-03-10 | 西安交通大学 | Composite fracture interface parameter identification method based on machine learning |
Non-Patent Citations (5)
| Title |
|---|
| GLAUCIO H ET AL: "A general topology-based framework for adaptive insertion of cohesive elements in finite element meshes", 《ENGINEERING WITH COMPUTERS》, pages 59 - 78 * |
| 张奥迪;蔡长春;王振军;周金秋;杨思远;王忠远;杨伟;徐志锋;余欢;: "单向石墨纤维增强铝合金复合材料轴向压缩损伤演化与断裂力学行为研究", 塑性工程学报, no. 02, pages 154 - 164 * |
| 王孝慧;姚卫星;: "复合材料胶接结构有限元分析方法研究进展", 力学进展, no. 05, pages 562 - 571 * |
| 谢浩: "基于内聚力模型的细观混凝土破坏过程及机理研究", 《中国优秀博士学位论文全文数据库 工程科技I辑》, no. 1, pages 148 * |
| 谢浩: "基于内聚力模型的细观混凝土破坏过程及机理研究", 《中国博士学位论文全文数据库 工程科技I辑》, no. 1, pages 2 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116127819B (en) | 2023-09-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8166009B2 (en) | Method and apparatus for optimistic locking using SQL select, update, delete, and insert statements | |
| CN103186622B (en) | The update method of index information and device in a kind of text retrieval system | |
| CN112115153B (en) | Data processing method, device, equipment and storage medium | |
| CN113656407A (en) | A data topology generation method, device, electronic device and storage medium | |
| CN112528090B (en) | Graph data storage method and storage device | |
| CN114048583A (en) | Application method and system for extending real object ID based on GIM model | |
| EP3750078B1 (en) | System and methods for loading objects from hash chains | |
| CN115168291A (en) | Hierarchical directory implementation method, apparatus, electronic device and storage medium | |
| CN111797278A (en) | Method for mapping associated object and relation | |
| CN108733709A (en) | Method, device and computer storage medium for knowledge management | |
| CN116127819B (en) | Method for generating cohesive force unit, computer device and storage medium | |
| CN112948228A (en) | Multi-mode database evaluation benchmark system facing streaming data and construction method thereof | |
| CN113297226B (en) | Data storage method, data reading device, electronic equipment and medium | |
| CN111290714B (en) | Data reading method and device | |
| CN111782633B (en) | Data processing method and device and electronic equipment | |
| CN101828374A (en) | Acquisition and expansion of storage area network interoperation relationships | |
| CN111708582B (en) | Online configuration method and device and electronic equipment | |
| CN112084141B (en) | A method, device, equipment and medium for expanding full-text search system | |
| CN113849482A (en) | Data migration method and device and electronic equipment | |
| CN112069155A (en) | Data multidimensional analysis model generation method and device | |
| CN114201568B (en) | Information processing method, information generating method, information processing apparatus, electronic device, and storage medium | |
| CN101686121A (en) | A data synchronization method, system and device | |
| CN112422668B (en) | Storage method and device for network community, electronic equipment and readable medium | |
| CN116011955A (en) | Robot flow automation demand realization method, device, equipment and storage medium | |
| CN112015729B (en) | Data management device, method and computer storage medium thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |