A pre-processing method and system for material point method numerical simulation
By adopting the material point discretization method with multiple access paths and tripartite index relationships in the irregular body model, the problems of low generation efficiency and poor scalability in irregular body model simulation are solved, and efficient material point generation and acceleration of the simulation process are achieved. .
Patent Information
- Application Number
- CN202410251475.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-08-30
AI Technical Summary
When dealing with irregular body models with complex shapes, the existing technology has problems such as low generation efficiency, poor scalability and high equipment performance requirements during the material point simulation process. In particular, the coupling between grid generation and material point conversion is difficult. Affects simulation progress and efficiency.
A new material point discretization method is adopted to split the grid model into local areas by obtaining vertex coordinates and index data in the shared file system, and utilizes multi-access paths and tripartite index relationships to improve the efficiency of data reading and writing. Independence, coordinates data conflicts and storage resources in distributed computing, and achieves efficient material point generation.
It improves the material point generation efficiency and scalability of irregular body models, reduces the requirements for computing power of computing equipment, can quickly generate large-scale material point data of hundreds of millions, and optimizes the speed and accuracy of the simulation process.
Smart Images

Figure CN118052106B
Abstract
Description
[0001] Divisional application
[0002] This application is based on application number CN202311109300.9, application date August 30, 2023,
[0003] Divisional application of the Chinese invention patent application entitled “A particle discretization method and system for external irregular body model”. Technical Field
[0004] The present invention relates to the technical field of material point simulation, and in particular to a pre-processing method and system for material point method numerical simulation. Background Art
[0005] Numerical simulation of explosion and impact problems has important research significance in both civil safety and national defense fields.
[0006] At present, the numerical simulation methods for explosion and impact problems are usually divided into the following two methods:
[0007] 1. Traditional grid simulation method
[0008] Common grid simulation methods mainly include Lagrangian method, Euler method, Euler-Lagrangian method, finite element method and modified surface element method, etc. For example, the patent application with application number CN202110981198.6 discloses a weighted bidirectional mapping method for accurately capturing shock wave discontinuities. This method uses Lagrangian particles to track the medium in the grid, and uses third-order shape functions to perform weighted bidirectional mapping on particles and grid physical quantities; uses a smooth particle method with a limiter to deal with the significant numerical oscillation problem at the discontinuity; adds virtual Lagrangian particles at the boundary to simulate continuous fluids, and realizes inflow, outflow and periodic boundary conditions by adding and deleting overall particles. For another example, refer to the invention patent application with application number CN202210263789.4, which discloses a coupled Euler-Lagrangian method for accurately capturing the shock wave propagation process. This method adopts the partition weighted bidirectional mapping method and weights the shape function by the coincident volume fraction between the particle volume domain and the grid domain to improve the mapping accuracy.
[0009] However, the dynamic response of materials and structures under impact blast loads is a nonlinear multi-physics field strong coupling problem, which will greatly limit the application of mesh simulation in blast impact problems. For example, when facing problems involving extremely large deformations, data may be difficult to solve due to severe mesh distortion, and it is difficult to effectively simulate the behavior of materials such as breakage, melting and gasification. For another example, nonlinear convection terms will also affect the accuracy and difficulty of mesh solution.
[0010] 2. Gridless Method
[0011] In order to reduce or avoid technical difficulties such as mesh distortion and nonlinear convection in simulation problems of extremely large deformation, meshless algorithms have gradually been applied to the field of impact explosions.
[0012] The grid method mainly includes:
[0013] 1) Use MPI to perform OTM simulation on gridless files
[0014] For example, see the patent application with application number CN202210476665.4, which discloses a parallel optimal transport gridless processing method and system based on graph topology. This method performs large-scale parallel processing of the OTM algorithm based on the graph structure of the topological connection relationship of material points. A computing data partitioning scheme is developed based on the graph topology structure at the MPI layer, and the OTM simulation is decomposed for distributed computing. At the same time, the graph topology structure is used to define the data interaction scheme between each processor to complete the synchronization of distributed OTM computing. For another example, see the patent application with application number CN201610875260.2, which discloses a double-layer hybrid parallel optimal transport gridless method for solving large deformations of materials. This method develops a Shadowpoint / node computing data partitioning scheme at the MPI layer to decompose the OTM simulation for distributed computing;
[0015] At the multi-threading layer, a multi-threaded parallel computing solution with dynamic load balancing was developed. However, although the above solution uses parallelization to try to optimize the computational efficiency of the gridless processing method,
[0016] The total computing time consumed is still relatively long, and the hardware requirements for the computing device are still relatively high.
[0017] 2) Material point method
[0018] The material point method is one of the effective means to study damage simulation (such as impact explosion problems). It adopts Lagrangian and Euler dual descriptions, absorbs the advantages of Lagrangian and Euler methods, and is suitable for analyzing large deformation and flow problems. See Huang Peng, Zhang Xiong, Ma Shang, et al. Research on parallelization of three-dimensional explicit material point method based on OpenMP [J], Journal of Computational Mechanics, 010, 27(1):7. DOI:CNKI:SUN:JSJG.0.2010-01-004, which discloses the application of material point method numerical simulation software MPM3D developed by Professor Zhang Xiong's team in solving problems such as hypervelocity collision, penetration, and explosion. The use of the above material point simulation method or MPM3D software can effectively improve the accuracy and reliability of damage simulation results.
[0019] At present, the material point generation or conversion of regular bodies with relatively simple shapes can be directly processed by MPM3D software. However, when the object to be studied is an irregular body with a relatively complex shape, MPM3D software is difficult to complete the processing or conversion of material points. There are generally two processing methods for material point simulation of irregular body models:
[0020] First, use ANSYS software to build the model, divide the mesh and generate the k file, then use the material point conversion program that matches the MPM3D software to convert the k file into a material point file that meets the requirements of MPM3D, and finally input the material point file into the MPM3D software to complete the subsequent simulation.
[0021] Second, staff can use MATLAB to write small programs to convert models or meshes into material point files of corresponding formats, and then use MPM3D to complete subsequent simulations.
[0022] However, the above two methods for processing irregular bodies are relatively limited in algorithm scalability, especially when it comes to the two stages of grid generation and material point conversion, the coupling of these two stages is relatively difficult.
[0023] For example, the mesh automatically generated by existing software is not necessarily suitable for directly generating material points. In other words, the material points directly generated by the mesh do not necessarily meet the simulation conditions. Therefore, it requires a high degree of human participation, such as manual intervention and adjustment by staff, or even repeated experiments on the mesh generation and material point conversion process. This will also affect the progress of the entire material point simulation process.
[0024] In addition, the above-mentioned irregular processing methods also need to be improved in conversion efficiency, and put forward certain requirements on equipment performance (such as requiring the computer to have higher computing power).
[0025] Therefore, there is an urgent need for a method that can improve the scalability and processing efficiency of the material point conversion process of irregular body models. Summary of the invention
[0026] The object of the present invention is to provide a particle discretization method and system for an external irregular body model, which can partially solve or alleviate the above-mentioned deficiencies in the prior art and improve the efficiency of material point generation of the irregular body.
[0027] The first aspect of the present invention provides a particle discretization method for an external irregular body model, comprising the steps of:
[0028] S101: acquiring a first shared file system, wherein the first shared file system provides at least one coordinate access path, the coordinate access path being used to access a vertex coordinate array of a mesh model of an irregular body; and provides at least one index access path, the index access path being used to access at least one index array associated with the vertex coordinate array;
[0029] S102: split the grid model into at least one local grid area according to a preset splitting rule, and acquire a corresponding vertex index data set from the first shared file system through the index access path according to grid point information of the local grid area;
[0030] S103 sends the vertex index data set to at least one first node accordingly, the first node finds the vertex coordinates associated with the vertex index data through the coordinate access path, and converts the vertex coordinates into material point data using a material point conversion method, and the material point data includes: mass, x coordinate, y coordinate, and z coordinate of the material point;
[0031] S104: Acquire a second shared file system, where the second shared file system provides at least one regional access path, and the first node can write and / or read the material point data in a corresponding storage area through the regional access path;
[0032] S105: The second shared file system provides a shared access path, and the second node can obtain the material point data and the corresponding storage path in the second shared file system through the shared access path, and connect the material point data according to the storage path to generate a material point file.
[0033] In some embodiments, before S101, the process further includes the following steps:
[0034] S106: obtaining an input model file, wherein the model file includes: relevant data for describing or simulating a damage state of an irregular body;
[0035] S107: obtaining the format of the model file, and selecting corresponding mesh processing conditions through the format by using a preset script relationship mapping rule, wherein the mesh processing conditions include one or more of the following: parsing script, workflow, mesh partitioning algorithm;
[0036] S108: performing mesh division processing on the model file according to the mesh processing condition to obtain a corresponding mesh model, wherein the mesh model is composed of tetrahedral meshes and / or hexahedral meshes;
[0037] S109: obtaining grid point information of the tetrahedral grid and / or hexahedral grid, and correspondingly creating a vertex coordinate array of a grid model;
[0038] S110: creating a vertex index array according to the vertex coordinate array; and creating a tetrahedral index array and / or a hexahedral index array corresponding to the tetrahedral mesh and / or the hexahedral mesh;
[0039] S111 creates the first shared file system according to the vertex coordinate array and at least one index array.
[0040] In some embodiments, when the mesh is a tetrahedral mesh, S103 includes the steps of:
[0041] Obtaining index data of vertices of the tetrahedral mesh, and finding coordinates of vertices of the tetrahedral mesh through the coordinate access path;
[0042] Calculating the volume of the tetrahedral mesh using the vertex coordinates;
[0043] Using a centroid calculation function to calculate the centroid and coordinates of the tetrahedral mesh through the volume and the vertex coordinates;
[0044] Calculating the mass of the tetrahedral mesh using the volume and density using a mass calculation function;
[0045] The centroid is recorded as a material point corresponding to the tetrahedral mesh, and the corresponding coordinates and mass are recorded as the material point data.
[0046] In some embodiments, before S109, the step of:
[0047] Obtaining preset standard conditions for evaluating the mesh model, and determining whether the mesh model obtained in S108 meets the standard conditions, wherein the standard conditions include one or more of the following: Jacobian matrix, aspect ratio of mesh units, dihedral angle, convolution or volume, edge ratio, and upgrade rate;
[0048] When the grid model meets the standard conditions, step S109 is executed. If not, the grid processing conditions are updated and step S108 is executed again according to the new grid processing conditions.
[0049] In some embodiments, S102 includes the steps of:
[0050] Acquire working information of the first node, the working information including: an available number n of the first node and a computing space λi of the first node;
[0051] The grid model is split according to the splitting rule and the working information to obtain at least one local grid area, wherein the relationship between the size Xa of the local grid area in the splitting rule and the calculation space λa of the corresponding first node is:
[0052] Wherein, i=1, 2, ... n, and Y is the size of the grid model.
[0053] In some embodiments, the first shared file system is stored in the memory space of the computer.
[0054] The second shared file system is stored in the external space (or external storage space) of the computer.
[0055] In some embodiments, S103 includes the steps of:
[0056] Splitting the vertex index data set on the first node into at least one vertex index subset using the Ray distributed framework;
[0057] Deploy a corresponding number of storage sub-areas in the storage area corresponding to the first node according to the number of the vertex index subsets;
[0058] Sending the material point data blocks calculated according to the index subset to the storage sub-area respectively, and recording the storage sub-paths of the material point data blocks;
[0059] The material point data blocks are connected in series through the storage subpath to obtain material point data corresponding to the vertex index data set.
[0060] In some embodiments, the steps include:
[0061] Monitoring the operating status of the first node, where the operating status includes: normal and abnormal;
[0062] When the operating state is detected to be abnormal, the index data set associated with the first node is sent to the third node; the third node finds the corresponding vertex coordinates through the index data set, and converts the vertex coordinates into material point data using a material point conversion method;
[0063] The third node writes the material point data into the corresponding storage area through the new area access path.
[0064] In some embodiments, the format of the model file includes an input format and input parameters; wherein,
[0065] The input format includes one or more of the following: kpoint file, Stp file, Stl file, Vtk file, Msh file; the input parameters include one or more of the following: number of parallel processes, grid density, maximum discrete size of the grid, and minimum discrete size.
[0066] In some embodiments, the storage format of the material point file is text file storage or binary file storage.
[0067] A second aspect of the present invention is to provide a particle discretization system for an external irregular body model, comprising:
[0068] A mesh index module is configured to obtain a first shared file system, wherein the first shared file system provides at least one coordinate access path for accessing a vertex coordinate array of a mesh model of an irregular body; and provides at least one index access path for accessing at least one index array associated with the vertex coordinate array;
[0069] A mesh splitting module, configured to split the mesh model into at least one local mesh area according to a preset splitting rule, and obtain a corresponding vertex index data set from the first shared file system through the index access path according to the mesh point information of the local mesh area;
[0070] A material point conversion module is configured to send the vertex index data set to at least one first node correspondingly, wherein the first node finds the vertex coordinates associated with the vertex index data through the coordinate access path, and converts the vertex coordinates into material point data using a material point conversion method, and the material point data includes: mass, x coordinate, y coordinate, and z coordinate of the material point;
[0071] a material point storage module, configured to obtain a second shared file system, wherein the second shared file system provides at least one area access path, and the first node can write and / or read the material point data in a corresponding storage area through the area access path;
[0072] The material point file generation module is configured to provide a shared access path for the second shared file system. The second node can obtain the material point data and the corresponding storage path in the second shared file system through the shared access path, and connect the material point data according to the storage path to generate a material point file.
[0073] Beneficial technical effects:
[0074] Aiming at the material point simulation of the damage problem of irregular bodies with complex external shapes, such as buildings, mountains and other scenes, the present invention provides a new material point discretization method to improve the efficiency and scalability of the material point discretization process (or material point generation). Specifically, the present invention creates a three-party corresponding index relationship of "vertex coordinates-vertex index-tetrahedron index (or hexahedron index)" for grid data on the one hand, and also creates a first shared file system and a second shared file system on the other hand, wherein each shared file system is provided with an independent storage space and an independent access path to improve the mutual independence of the data reading process and the data writing process. Therefore, the three-party index relationship adopted by the present invention cooperates with the shared file system with multiple access paths, which can not only improve the disassembly of the massive material point conversion task, but also coordinate and balance the data reading and writing conflicts and storage resource conflicts of multiple tasks in the distributed computing process, thereby improving the scalability and computing efficiency of the material point conversion process of irregular bodies through highly independent multi-process computing.
[0075] In addition, the present invention also provides a minimum unit conversion process for the material point conversion of tetrahedral grids, thereby further improving the relative independence of each task process in distributed computing. Among them, the minimum unit conversion process cooperates with the three-party index mode and the shared system of multiple access paths, which can improve the flexibility of task splitting and allocation of complex irregular body models. And this flexibility of task splitting and allocation further optimizes the scalability of the material point conversion process, which is conducive to solving the data processing problem of hundreds of millions of grid points.
[0076] In summary, the material point discretization method used in the present invention can greatly improve the speed of meshing and material point generation without affecting the mesh quality and calculation accuracy of irregular bodies, and can quickly generate large-scale material point data of more than 100 million levels. Therefore, the present invention actually reduces the user's requirements for the computing power of computing equipment to a certain extent, which is of great significance to the current explosion damage simulation process of large buildings, mountains and other objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale. Obviously, the drawings described below are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without paying creative labor.
[0078] Figure 1ais a schematic flow chart of a material point discretization method in an exemplary embodiment of the present invention;
[0079] Figure 1b is a flow chart of a material point conversion method in an exemplary embodiment of the present invention;
[0080] Figure 1c A schematic diagram of a flow chart of data block concatenation in an exemplary embodiment of the present invention;
[0081] Figure 2 A table showing the support degree of a material point discretization system for files of different formats in an exemplary embodiment of the present invention;
[0082] Figure 3a It is a schematic diagram of the module structure of a material point discrete system in an exemplary embodiment of the present invention;
[0083] Figure 3b It is a schematic diagram of the unit structure of a network splitting module and a material point conversion module in an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0084] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0085] Herein, suffixes such as "module", "component" or "unit" used to represent elements are used only to facilitate the description of the present invention and have no specific meanings.
[0086] The terms "component" or "unit" may be used interchangeably.
[0087] In this document, the terms "upper", "lower", "inner", "outer", "front", "back", "one end", "the other end" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0088] In this document, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0089] Herein "and / or" includes any and all combinations of one or more of the associated listed items.
[0090] Herein, "plurality" means two or more than two, ie, it includes two, three, four, five, etc.
[0091] In this article, "regular body" can also be referred to as "object with regular shape". The geometric shape of the regular body can be a regular geometric shape (such as rectangle, trapezoid, circle, square, triangle, etc.)
[0092] Describe or simulate.
[0093] In this article, "irregular bodies" can also be referred to as "objects with irregular shapes". Unlike regular bodies, irregular bodies are objects with irregular shapes, and their geometric shapes usually include parts that are difficult to describe or simulate by regular geometric figures. For example, the shape or local shape of an irregular body needs to be described or simulated by non-elementary functions, or needs to be described or simulated by composite functions or elementary functions. Specifically, common irregular bodies can be complex terrains / landforms such as mountains, hills, and mountain road slopes. Of course, irregular bodies can also be large buildings such as bridges and high-rise buildings.
[0094] Herein, the "first node" may be a computing node, a cluster node, etc. For example, the first node may also be a data terminal equipment (DTE), such as a computer, a digital mobile phone, a printer, or a host (such as a router, a workstation, or a server), etc.
[0095] Herein, the "second node" is a master node, which can monitor, recycle, and manage distributed computing tasks or data in the first node or storage space (or storage area).
[0096] Herein, the "third node" is a computing node in a standby state. When the computing space of the first node is insufficient, or when the operation state of the first node fails, the third node can be started to complete the computing task of the failed node.
[0097] In the simulation and modeling process of actual damage scenes, the objects to be simulated / researched are usually large irregular bodies with large morphological differences, such as large buildings, mountains, underground tunnels, etc. And as the damage scenes to be simulated become larger and larger, or the structures of the damage scenes become more and more complex, the generation of grids and the conversion of material points become more complicated. Especially in the face of irregular body models where the number of grids may reach billions or tens of billions, traditional methods are often forced to reduce the grid accuracy to reduce the difficulty of material point conversion, which will seriously affect the accuracy and reliability of subsequent material point simulation.
[0098] Embodiment 1
[0099] In order to improve the accuracy and efficiency of generating material point files for irregular bodies, such as Figure 1a-Figure 1c As shown,
[0100] The present invention provides a particle discretization method for an external irregular body model (equivalent to providing a
[0101] A pre-processing method for material point method simulation) comprising the steps of:
[0102] S101 obtains a first shared file system, which provides at least one coordinate access path I for accessing a vertex coordinate array of a mesh model of an irregular body; and provides at least one index access path II for accessing at least one index array associated with the vertex coordinate array.
[0103] In some embodiments, the vertex coordinate array includes all vertices (i.e., mesh points) in the mesh model.
[0104] The coordinate data of .
[0105] In some embodiments, the vertex coordinate array and the index array are stored in different memory spaces, that is, the coordinate access path I and the index access path II are different. In this embodiment, independent storage and access methods are used to improve the independence of data access, so as to facilitate subsequent distributed computing design.
[0106] S102 splits the grid model into at least one local grid area according to a preset splitting rule, and acquires a corresponding vertex index data set from the first shared file through an index access path according to grid point information of the local grid area.
[0107] In some embodiments, the splitting rules may be pre-set by the user according to actual engineering application requirements. For example, the grid model may be evenly split in sequence according to a preset number of splits.
[0108] In some embodiments, the local grid area may be a continuous grid area or a discontinuous grid area (in other words, the local grid area may also be composed of a plurality of points that are discontinuous in space).
[0109] S103 sends the vertex index data set to at least one first node accordingly. The first node finds the vertex coordinates associated with the vertex index data through the coordinate access path I, and converts the vertex coordinates into material point data using a material point conversion method. The material point data includes: the mass, x coordinate, y coordinate, and z coordinate of the material point.
[0110] In some embodiments, the vertex coordinates are coordinate data in a spatial coordinate system xyz.
[0111] S104 obtains a second shared file system, where the second shared file system provides at least one regional access path, and the first node can write and / or read material point data in a corresponding storage area through the regional access path.
[0112] In some embodiments, each first node obtains a regional access path respectively, so as to independently write data into the storage space of the second shared file system.
[0113] S105 The second shared file system provides a shared access path, and the second node can obtain the material point data and the corresponding storage path in the second shared file through the shared access path, and connect the material point data according to the storage path to generate a material point file.
[0114] For example, in some embodiments, ray (also known as distributed application framework or distributed computing framework) is installed on the first node A and the second node B, wherein the first node is set as a computing node (also known as a working node), the second node is set as a master node, and the first node and the second node are combined into a ray cluster. After all the computing tasks of the first nodes are completed, the master node B can be used to write the final material point data in parallel and output the material point file.
[0115] In some embodiments, a node may be a workstation, client, network user or personal computer, and may also be a server or other network-connected device.
[0116] In some embodiments, any device with its own unique network address can be used as a computing node.
[0117] In some embodiments, the material point file finally generated contains four-dimensional information, namely, the mass of the material point, the position of the material point in the X direction, the position of the material point in the Y direction, and the position of the material point in the Z direction.
[0118] Preferably, in some embodiments, the Ceph open source distributed file system and object storage system is used to create the above-mentioned distributed storage path, thereby ensuring that data is distributed and replicated to multiple storage nodes to ensure high availability and redundancy of the data.
[0119] For example, in some embodiments, the creation process of the second shared file system is as follows:
[0120] 1. Build a Ceph cluster: First, you can build a Ceph cluster, which consists of multiple storage nodes. Each storage node can have multiple disks, which will be used to store Ceph data. For example, a storage node or a storage disk can provide a storage space (or storage area).
[0121] 2. Install Ceph software on each storage node, including Ceph Monitor, Ceph OSD (ObjectStorage Daemon) and Ceph Metadata Server. Monitor is responsible for cluster status and mapping information maintenance, OSD is responsible for data storage, and Metadata Server is responsible for
[0122] Responsible for processing metadata.
[0123] 3. Configure the various components of the Ceph cluster, including specifying the Monitor node, creating and configuring the OSD storage pool, configuring the metadata server, etc. This configuration information will be used for data management and communication in the entire cluster.
[0124] 4. RADOS (Reliable Autonomic Distributed Object Store) is the core storage system used by Ceph to store data. In Ceph, you can create multiple RADOS storage pools and specify different configurations and replica numbers for each storage pool.
[0125] 5. Once the Ceph cluster is configured, it can be used through the Ceph file system interface. The Ceph file system (CephFS) is a distributed file system based on the RADOS storage pool. It provides an interface similar to a standard file system (such as providing an access path to the first node), allowing users to access shared files on multiple nodes (such as writing material point data in the shared storage space through the first node).
[0126] 6. On each node that needs to access shared storage, use the CephFS client to mount the Ceph file system. In this way, applications and users on the node (such as the first node) can access the Ceph file system through CephFS.
[0127] Interface to access shared storage.
[0128] In some embodiments, before S101, the process further includes the following steps:
[0129] S106: obtaining an input model file, wherein the model file includes: relevant data for describing or simulating the damage state of the irregular body; for example, the model file includes structural data of a building after explosion damage;
[0130] S107: obtaining the format of the model file, and selecting corresponding mesh processing conditions through the format by using a preset script relationship mapping rule, wherein the mesh processing conditions include one or more of the following: parsing script, workflow, mesh partitioning algorithm;
[0131] S108: performing mesh division processing on the model file according to the mesh processing condition to obtain a corresponding mesh model, wherein the mesh model is composed of tetrahedral meshes and / or hexahedral meshes;
[0132] S109: obtaining grid point information of the tetrahedral grid and / or hexahedral grid, and correspondingly creating a vertex coordinate array of a grid model;
[0133] S110: Create a vertex index array according to the vertex coordinate array; and create a tetrahedral index array and / or a hexahedral index array corresponding to the tetrahedral mesh and / or hexahedral mesh.
[0134] Index array;
[0135] S111 creates the first shared file system according to the vertex coordinate array and at least one index array.
[0136] For example, in some embodiments, a vertex coordinate array, a vertex index array, a tetrahedron index array, and a hexahedron index array are created and stored in different memory spaces.
[0137] For example, in some embodiments, the minimum unit data of the vertex coordinate array may be the coordinates of a vertex. In this case, the coordinates of a single vertex may be read through the index data (such as a sequence number, etc.) of the single vertex.
[0138] For another example, in some embodiments, the minimum unit data of the vertex coordinate data may also be the coordinates of all vertices of a tetrahedron. In this case, the coordinates of all vertices of the tetrahedron may be directly read through index data (such as a serial number, etc.).
[0139] For example, in some embodiments, the vertex index array includes: the serial number of the vertex coordinates and the storage location of the vertex coordinate data. The tetrahedron index array (or hexahedron index array) includes: the serial numbers of all vertices of at least one tetrahedron mesh (or hexahedron mesh).
[0140] like Figure 2 As shown, the method in this embodiment preferably supports inputting a model file in the following format:
[0141] Such as STEP, STL, STP and VTK files.
[0142] This embodiment first adjusts the mesh processing conditions according to the script mapping relationship before mesh generation, thereby ensuring good connection between the mesh file and the subsequent material point conversion and MPM3D software simulation process. Subsequently, a three-way mapping relationship of vertex coordinates-vertex index-tetrahedron (or hexahedron) index is created on the generated mesh file, thereby improving the computational independence of multiple processes.
[0143] In some embodiments, it is preferred to combine tetrahedral meshes to form a mesh model.
[0144] Preferably, in some embodiments, the automatic meshing technology of Gmsh is adopted to meet the meshing requirements of different model files.
[0145] Specifically, the present invention uses script relationship mapping to automatically mesh external model files (STL, MESH, STP and VTK). In addition, the entire calculation process (file format conversion, meshing process) is encapsulated into a service interface (such as Figure 2 As shown in the figure), it is transparent to the user, so that the user can use this method to realize automatic meshing in multi-model format.
[0146] Preferably, the import and processing flow of external model files is as follows:
[0147] Step 1) Obtain the format of the input model file, and use the verification function to determine whether the format flag and string meet the corresponding specifications;
[0148] Step 2) For different formats, the corresponding Gmsh parsing script and workflow are automatically matched through the preset script relationship mapping, and then the Gmsh parsing script and workflow are followed;
[0149] Step 3) reconstructing the model in the model file into one-dimensional points and two-dimensional lines according to the Gmsh parsing script and workflow, and dividing the grid into two-dimensional grids;
[0150] Step 4) performing adaptive three-dimensional meshing of the model according to the meshing result in step 3);
[0151] Among them, different types of meshing algorithms such as Delaunay, Initial meshonly, Frontal, MMG3D, R-tree and HXT can be automatically selected according to the section and shape of the model.
[0152] For example, for mesh partitioning algorithms that can be performed in parallel, such as HXT, etc., it is preferred to perform parallel computing according to the number of parallel cores set by the user.
[0153] Step 5) The meshing result in step 4) is judged according to the preset mesh standard conditions, and the mesh areas that do not meet the material point conversion standards are automatically re-meshed and mesh optimized.
[0154] Step 6) The final mesh division result is saved persistently on the hard disk in the form of a Mesh file, and the total time consumed by the mesh division and the number of generated meshes are output.
[0155] Of course, in other embodiments, the script relationship mapping rules (or, parameter selection rules for grid processing conditions) can also be customized by the user according to different damage scenarios or solution standards.
[0156] In some embodiments, for the parallel method of meshing, HXT is preferably selected to implement it.
[0157] That is, the fine-grained approach is used so that the actual meshing process of a single volume is parallelized. UR calculates the distance to a given curve and specifies the mesh size independently in the normal direction and in the direction parallel to the nearest curve. For efficiency, each curve is replaced by a set of sample points to which the distance is actually calculated.
[0158] In order to construct a Delaunay triangulation network, a local optimization process LOP (Local Optimization Procedure) is used. Generally, a triangulation network can be guaranteed to become a Delaunay triangulation network after LOP processing. The basic approach is as follows:
[0159] Combine two triangles with common sides into a single polygon.
[0160] Use the maximum empty circle criterion to check whether the fourth vertex is inside the circumcircle of the triangle.
[0161] If so, the diagonal is corrected, that is, the diagonal is swapped, thus completing the local optimization process.
[0162] In some embodiments, Figure 1bAs shown, when the mesh is a tetrahedral mesh, an independent conversion method is selected to generate material points, and S103 includes the steps of:
[0163] Obtaining index data of vertices of the tetrahedral mesh, and finding coordinates of vertices of the tetrahedral mesh through the coordinate access path;
[0164] Calculating the volume of the tetrahedral mesh using the vertex coordinates;
[0165] Using a centroid calculation function to calculate the centroid and coordinates of the tetrahedral mesh through the volume and the vertex coordinates;
[0166] Calculating the mass of the tetrahedral mesh using the volume and density using a mass calculation function;
[0167] The mass center is recorded as a material point corresponding to the tetrahedral mesh, and the corresponding coordinates and mass are recorded as the material point data (ie, the coordinates and mass of the material point).
[0168] Different from the existing material point generation method, this embodiment is aimed at generating material points of tetrahedral meshes.
[0169] An independent conversion method suitable for the smallest unit (such as a single grid) is provided, that is, the material points of each grid can be calculated independently, thereby further improving the decomposability of the material point conversion task.
[0170] In other words, the material point generation method provided in this embodiment helps to more flexibly split the grid model into local areas and perform independent operations on the local areas.
[0171] Specifically, in some embodiments, the tetrahedral mesh conversion process is as follows:
[0172] Step 1) Read and parse the mesh file after meshing, find and locate all the vertex information of the tetrahedron / hexahedron mesh according to the file definition, and create a vertex coordinate array.
[0173] Step 2) Use the vertex coordinate array to create a tetrahedron / hexahedron mesh array with the vertex array sequence as the value, for example, a tetrahedron mesh is composed of a vertex sequence of 1, 6, 18, and 66.
[0174] Step 3) Call the centroid calculation function and mass calculation function to facilitate the entire tetrahedral mesh array.
[0175] And complete the process of material point conversion in sequence.
[0176] Step 4) In view of the independent conversion characteristics of tetrahedral meshes, a parallelization method is adopted to fully utilize hardware resources for multi-process conversion, and the IO read and write parallel technology is used to write the conversion results into the result.txt file to avoid storage space conflicts.
[0177] Specifically, in some embodiments, the vertex coordinate array and the tetrahedron coordinate array are stored in shared memory as immutable objects of Ray, and the grouped tetrahedron index is passed to each process and enabled. The tetrahedron is processed and converted according to the conversion program method, and the process with insufficient memory is adjusted according to the weighted method for memory load balancing (that is, the computing task is divided according to the computing space ratio). For the special case of total memory overflow, the technology of Swap memory persistence to the hard disk is used to solve it, increasing the possibility of parallel computing under insufficient memory. Multiple processes write the final conversion results in parallel and output them to the result file.
[0178] In some embodiments, before S109, the step of:
[0179] Obtaining preset standard conditions for evaluating the mesh model, and determining whether the mesh model obtained in S108 meets the standard conditions, wherein the standard conditions include one or more of the following: Jacobian matrix, aspect ratio of mesh units, dihedral angle, convolution or volume, edge ratio, and upgrade rate;
[0180] When the grid model meets the standard conditions, step S109 is executed. If not, the grid processing conditions are updated and step S108 is executed again according to the new grid processing conditions.
[0181] For example, in some embodiments, the value of the Jacobian matrix is selected to determine the degree of distortion of the tetrahedron.
[0182] For example, in some embodiments, the aspect ratio (the ratio between the longest side and the shortest side of a grid cell) is selected to determine numerical stability during data processing.
[0183] For example, in some embodiments, the dihedral angle is selected to judge the quality of the tetrahedral mesh. In some specific embodiments, when the dihedral angle is close to 70.5 degrees, the quality of the tetrahedral mesh is judged to be good.
[0184] For example, in some embodiments, the value of convolution or volume is selected to judge the quality of the tetrahedral mesh. In some specific embodiments, when the volume is negative or close to 0, the tetrahedral mesh is judged to have poor quality.
[0185] For example, in some embodiments, edge ratios are used to judge the quality of opposite edges of a tetrahedral mesh.
[0186] For example, in some embodiments, an update rate is selected to determine numerical stability during data processing.
[0187] For example, in some embodiments, when the user has high requirements for the data processing quality of the material point conversion process, or when the simulated irregular body such as a building has a high morphological complexity, it is preferred to use the Jacobian matrix, the aspect ratio of the grid unit, the dihedral angle, the convolution or volume, the edge ratio, and the upgrade rate as a combination condition to assist the user in automatically determining whether the current grid quality meets the data requirements for material point conversion and MPM3D software processing.
[0188] Alternatively, in some embodiments, in order to improve the processing efficiency in the pre-processing process, some parameters may be selected from the above-mentioned multiple judgment criteria as combination conditions to complete the automatic judgment between grid generation and material point conversion.
[0189] For example, in some embodiments, the standard condition may be a system preset condition or may be manually selected by a user.
[0190] In this embodiment, the preset standard conditions are used to automatically verify the grid file, which can reduce manual participation to a certain extent, that is, improve the efficiency and autonomy of the overall calculation process. On the other hand, the key condition combination is used to verify the grid condition, so that the material point data results obtained by the subsequent material point calculation method can not only meet the characteristics of the model, but also meet the simulation requirements of the MPM3D software.
[0191] In some embodiments, S102 includes the steps of:
[0192] Acquire working information of the first node, the working information including: an available number n of the first node and a computing space λi of the first node;
[0193] The grid model is split according to the splitting rule and the working information to obtain at least one local grid area, wherein the size Xa of the local grid area in the splitting rule is
[0194] The relationship between the computation space λa of the corresponding first node is:
[0195] Wherein, i=1, 2, ... n, and Y is the size of the grid model.
[0196] In this embodiment, when there are two or more first nodes, they are preferably allocated according to the computing space of the first nodes, thereby being able to fully utilize computing resources and effectively balance the computing task burden of each first node.
[0197] In some embodiments, the first shared file system is stored in the memory space of the computer.
[0198] The second shared file system is stored in the external space (or external storage space) of the computer.
[0199] For example, in some embodiments, in order to ensure fast reading of original vertex data and solve the storage problem of massive data, the vertex coordinate array, vertex index array, tetrahedron index array, etc. that need to be read in real time are stored in the computer's memory, such as a memory stick. The calculation result data - material point data is stored in the computer's external memory, such as a floppy disk memory, a hard disk memory, an optical disk memory, and other external memories.
[0200] For example, in some embodiments, the vertex coordinate array, vertex index array, and tetrahedron index array can be stored in one computer, and multiple other computers connected thereto can directly access and read the original vertex coordinate data to be calculated through index data and storage path access. The indexing method in this embodiment can greatly reduce the amount of data transmission in a limited time (i.e., reduce the process waiting time), thereby reducing the computer's dependence on the quality of network communication.
[0201] In some embodiments, Figure 1c As shown, S103 includes the steps of:
[0202] Splitting the vertex index data set on the first node into at least one vertex index subset using the Ray distributed framework;
[0203] Deploying a corresponding number of storage sub-areas in a storage area (or storage space) corresponding to the first node according to the number of the vertex index subsets;
[0204] Send the material point data blocks calculated according to the index subset to the storage area respectively
[0205] and record the storage subpath (such as position code) of the material point data block;
[0206] The material point data blocks are connected in series through the storage subpath to obtain material point data corresponding to the vertex index data set.
[0207] For example, in some specific embodiments, when the data block is stored in the storage area,
[0208] First, a pre-deployed storage sub-path is obtained, and a pointer is set at the beginning of the storage space according to the storage sub-path, and the material point data is written into a data block under the instruction of the pointer.
[0209] The pointer may also be referred to as a pointer variable, which may be used to mark at least one entity occupying a storage space, or in other words, may be used to describe the location of data (such as a material point data block) in the storage space.
[0210] It is understandable that in addition to multi-node parallel computing, the present invention can also be implemented in a single-node or small-node manner. For example, when the number of grids is relatively limited and the staff has only one computing device or a small number of computing devices, the conversion efficiency of material points can also be improved by means of single-node multi-process computing.
[0211] In some embodiments, when the amount of calculated data is large and the number of first nodes called is large,
[0212] Also includes the steps:
[0213] Monitoring the operating status of the first node, where the operating status includes: normal and abnormal;
[0214] When the operating state is detected to be abnormal, the index data set associated with the first node is sent to the third node; the third node finds the corresponding vertex coordinates through the index data set, and converts the vertex coordinates into material point data using a material point conversion method;
[0215] The third node writes the material point data into the corresponding storage area through the new area access path.
[0216] In this embodiment, by transmitting index data to allocate tasks, coordinates and indexes are stored separately, when one or more currently running first nodes fail, a new computing node (such as a third node) can be quickly started to take over the operation to reduce the failure waiting time.
[0217] In some embodiments, the format of the model file includes an input format and input parameters; wherein,
[0218] The input format includes one or more of the following: kpoint file, Stp file, Stl file, Vtk file, Msh file; the input parameters include one or more of the following: number of parallel processes, grid density, maximum discrete size of the grid, and minimum discrete size.
[0219] In this embodiment, in order to ensure that the subsequent material point file meets the material point simulation conditions, the user may set the input parameters in advance to improve the quality of the output material point file.
[0220] In some embodiments, the storage format of the material point file is text file storage or binary file storage.
[0221] Preferably, the present invention can be used to solve the difficulty of material point conversion in hypervelocity collision, penetration and explosion problems.
[0222] Preferably, the present invention can be used in conjunction with material point method numerical simulation software such as MPM3D (for example, the computer software copyright registration number of MPM3D is 2009SRBJ4761, 2009). Or,
[0223] For relevant content about MPM3D software or material point simulation method, please refer to the references at the end of the article.
[0224] Preferably, Ray is used in conjunction with Ceph open source technology, which can effectively realize the distributed computing mode of the present invention on the one hand, and can also be used for data docking or coordination with the subsequent numerical simulation software MPM3D.
[0225] It is understandable that the material point discretization method provided by the present invention effectively reduces the requirements for computer computing power, thereby facilitating the staff to complete the material point conversion of complex models using only a single computer (or a small number of computers). Of course, for more complex shapes or relatively sufficient computing resources, multiple computer devices can also be used to implement the above process.
[0226] Embodiment 2
[0227] like Figure 3a , 3b As shown, corresponding to the method in the above-mentioned embodiment 1, the present invention provides a particle discretization system for an external irregular body model, comprising:
[0228] The mesh index module 11 is configured to obtain a first shared file system, wherein the first shared file system provides at least one coordinate access path for accessing a vertex coordinate array of a mesh model of an irregular body; and provides at least one index access path for accessing at least one index array associated with the vertex coordinate array;
[0229] A mesh splitting module 12 is configured to split the mesh model into at least one local mesh area according to a preset splitting rule, and obtain a corresponding vertex index data set from the first shared file system through the index access path according to the mesh point information of the local mesh area;
[0230] The material point conversion module 13 is configured to send the vertex index data set to at least one first node, the first node finds the vertex coordinates associated with the vertex index data through the coordinate access path, and converts the vertex coordinates into material point data using a material point conversion method, and the material creation point data includes: the mass, x coordinate, y coordinate, z coordinate of the material point
[0231] coordinate;
[0232] The material point storage module 14 is configured to obtain a second shared file system, wherein the second shared file system provides at least one regional access path, and the first node can write and / or read the material point data in a corresponding storage area through the regional access path;
[0233] The material point file generation module 15 is configured to provide a shared access path for the second shared file system. The second node can obtain the material point data and the corresponding storage path in the second shared file system through the shared access path, and connect the material point data according to the storage path to generate a material point file.
[0234] In some embodiments, the system further comprises:
[0235] The model input module 16 is configured to obtain an input model file, wherein the model file includes: relevant data for describing or simulating the damage state of the irregular body;
[0236] The mesh processing condition selection module 17 is configured to obtain the format of the model file and select the corresponding mesh processing condition through the format using a preset script relationship mapping rule, wherein the mesh processing condition includes one or more of the following: parsing script, workflow, mesh partitioning algorithm;
[0237] A mesh processing module 18 is configured to perform mesh division processing on the model file according to the mesh processing conditions to obtain a corresponding mesh model, wherein the mesh model is composed of tetrahedral meshes and / or hexahedral meshes;
[0238] A coordinate array creation module 19 is configured to obtain grid point information of the tetrahedral grid and / or hexahedral grid, and correspondingly create a vertex coordinate array of the grid model;
[0239] The index array creation module 20 is configured to create a vertex index array according to the vertex coordinate array; and to create a tetrahedral index array and / or a hexahedral index array corresponding to the tetrahedral mesh and / or the hexahedral mesh;
[0240] The first shared file system creating module 21 is configured to create the first shared file system according to the vertex coordinate array and at least one index array.
[0241] like Figure 3b In some embodiments, the material point conversion module 13 further includes:
[0242] The index search unit 131 is configured to obtain the index data of the vertices of the tetrahedral mesh when the mesh is a tetrahedral mesh, and find the vertex coordinates of the tetrahedral mesh through the coordinate access path;
[0243] A volume calculation unit 132, configured to calculate the volume of the tetrahedral mesh using the vertex coordinates;
[0244] A centroid calculation unit 133, configured to calculate the centroid and its coordinates of the tetrahedral mesh through the volume and the vertex coordinates using a centroid calculation function;
[0245] A quality calculation unit 134, configured to calculate the quality of the tetrahedral mesh by using the volume and density using a quality calculation function;
[0246] The material point recording unit 135 is configured to record the centroid as a material point corresponding to the tetrahedral mesh, and record the corresponding coordinates and mass as the material point data.
[0247] In some embodiments, the system further comprises:
[0248] The verification module 22 is configured to obtain preset standard conditions for evaluating the mesh model and determine whether the mesh model obtained in the mesh processing module meets the standard conditions, wherein the standard conditions include one or more of the following: Jacobian matrix, aspect ratio of mesh cells, dihedral angle, convolution or volume, edge ratio, and upgrade rate;
[0249] When the grid model meets the standard conditions, the grid model is input into the coordinate array creation module 19; if not, the grid processing conditions are updated and the updated grid processing conditions are input into the grid processing module.
[0250] In some embodiments, the grid splitting module 12 further includes:
[0251] The first node information acquisition unit 121 is configured to acquire the working information of the first node.
[0252] The working information includes: the available number n of the first node and the computing space λi of the first node.
[0253] The mesh model splitting unit 122 is configured to split the mesh model according to the working information according to the splitting rule to obtain at least one local mesh area, wherein the relationship between the size Xa of the local mesh area in the splitting rule and the calculation space λa of the corresponding first node is:
[0254] Wherein, i=1, 2, ... n, and Y is the size of the grid model.
[0255] The index data acquisition unit 123 is configured to acquire a corresponding vertex index data set from the first shared file system through the index access path according to the grid point information of the local grid area.
[0256] In some embodiments, the first shared file system is stored in the memory space of the computer.
[0257] The second shared file system is stored in an external space of the computer.
[0258] In some embodiments, the second shared file system further includes:
[0259] An index subset splitting unit, configured to split the vertex index data set on the first node into at least one vertex index subset using a Ray distributed framework;
[0260] A storage space deployment unit, configured to deploy a corresponding number of storage subspaces in the storage space corresponding to the first node according to the number of the vertex index subsets;
[0261] A data block storage unit, configured to send the material point data blocks calculated according to the index subset to the storage space respectively, and record the storage subpaths of the material point data blocks;
[0262] The data serial connection unit is configured to serially connect the material point data blocks through the storage subpath to obtain material point data corresponding to the vertex index data set.
[0263] In some embodiments, the system also includes: a risk management module, configured to monitor the operating status of the first node, the operating status including: normal and abnormal; when the operating status is monitored to be abnormal, the index data set associated with the first node is sent to a third node; the third node finds the corresponding vertex coordinates through the index data set, and converts the vertex coordinates into material point data using a material point conversion method; the third node writes the material point data into the corresponding storage area through a new area access path.
[0264] It is understandable that the present invention can also be used to process meshing and material point conversion of other types of objects (such as geometric structures with relatively simple external structures). Of course, the present invention can also be used for material point conversion in other research scenarios.
[0265] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0266] As used in this specification, the term "about" typically means + / - 5% of the stated value.
[0267] More typical are + / - 4% of the stated values, more typical are + / - 3% of the stated values, more typical are + / - 2% of the stated values, even more typical are + / - 1% of the stated values, even more typical are + / - 0.5% of the stated values.
[0268] In this specification, some embodiments may be disclosed in a format of being within a certain range. It should be understood that such description of "being within a certain range" is only for convenience and brevity, and should not be interpreted as a rigid limitation on the disclosed range. Therefore, the description of the range should be considered to have specifically disclosed all possible sub-ranges and independent numerical values within this range. For example, the range The description should be considered to have specifically disclosed subranges such as from 1 to 3, from 1 to 4, from 1 to 5, from 2 to 4, from 2 to 6, from 3 to 6, etc., as well as individual numbers within this range, for example 1, 2, 3,
[0269] 4, 5 and 6. The above rules apply regardless of the breadth of the range.
[0270] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0271] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a computer terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0272] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
[0273] References:
[0274] Ruichen Ni, Zixian Sun, Jiasheng Li, Xiong Zhang. Finite volume material point method for submerged multi-medium blast damage of structures. Chinese Journal of Mechanics, 2022, 54(12): 1-14doi:10.6052 / 0459-1879-22-446;
[0275] Zhang Xiong, Lian Yanping, Liu Yan, Zhou Xu. Material Point Method. Tsinghua University Press. 2013.
Claims
1. A pre-processing method and system for material point method numerical simulation, characterized in that: Includes steps: S101 obtains a first shared file system, where the first shared file system provides at least one coordinate access path, where the coordinate access path is used to access a vertex coordinate array of a mesh model of an irregular body; and providing at least one index access path for accessing at least one index array associated with the vertex coordinate array; S102: split the grid model into at least one local grid area according to a preset splitting rule, and acquire a corresponding vertex index data set from the first shared file system through the index access path according to grid point information of the local grid area; S103 sends the vertex index data set to at least one first node accordingly, the first node finds the vertex coordinates associated with the vertex index data through the coordinate access path, and converts the vertex coordinates into material point data using a material point conversion method, and the material point data includes: mass, x coordinate, y coordinate, and z coordinate of the material point; S104: Acquire a second shared file system, where the second shared file system provides at least one regional access path, and the first node writes and / or reads the material point data in a corresponding storage area through the regional access path; S105: The second shared file system provides a shared access path, and the second node obtains the material point data and the corresponding storage path in the second shared file system through the shared access path, and connects the material point data according to the storage path to generate a material point file.
2. The method according to claim 1, characterized in that Before S101, the following steps are also included: S106: obtaining an input model file, wherein the model file includes: relevant data for describing or simulating a damage state of an irregular body; S107: obtaining the format of the model file, and selecting corresponding mesh processing conditions through the format by using a preset script relationship mapping rule, wherein the mesh processing conditions include one or more of the following: parsing script, workflow, mesh partitioning algorithm; S108: performing mesh division processing on the model file according to the mesh processing condition to obtain a corresponding mesh model, wherein the mesh model is composed of tetrahedral meshes and / or hexahedral meshes; S109: obtaining grid point information of the tetrahedral grid and / or hexahedral grid, and correspondingly creating a vertex coordinate array of a grid model; S110: creating a vertex index array according to the vertex coordinate array; and creating a tetrahedral index array and / or a hexahedral index array corresponding to the tetrahedral mesh and / or the hexahedral mesh; S111 creates the first shared file system according to the vertex coordinate array and at least one index array.
3. The method according to claim 2, characterized in that Before S109, the steps include: Obtaining preset standard conditions for evaluating the mesh model, and determining whether the mesh model obtained in S108 meets the standard conditions, wherein the standard conditions include one or more of the following: Jacobian matrix, aspect ratio of mesh units, dihedral angle, convolution or volume, edge ratio, and upgrade rate; When the grid model meets the standard conditions, step S109 is executed. If not, the grid processing conditions are updated and step S108 is executed again according to the new grid processing conditions.
4. The method according to claim 1, characterized in that: S102 includes the steps of: Obtain the working information of the first node, the working information including: the available number n of the first node, the computing space of the first node ; The grid model is split according to the splitting rule and the working information to obtain at least one local grid area, wherein the size of the local grid area in the splitting rule is a and the calculation space of the corresponding first node The relationship between them is: , where i=1, 2, ...n, and Y is the size of the grid model.
5. The method according to claim 1, characterized in that The first shared file system is stored in the memory space of the computer, and the second shared file system is stored in the external memory space of the computer.
6. The method according to claim 1, characterized in that S103 includes the steps of: Splitting the vertex index data set on the first node into at least one vertex index subset using the Ray distributed framework; Deploy a corresponding number of storage sub-areas in the storage area corresponding to the first node according to the number of the vertex index subsets; Sending the material point data blocks calculated according to the index subsets to the storage area respectively, and recording the storage sub-paths of the material point data blocks; The material point data blocks are connected in series through the storage subpath to obtain material point data corresponding to the vertex index data set.
7. The method according to claim 1, characterized in that Also includes the steps: Monitoring the operating status of the first node, where the operating status includes: normal and abnormal; When the operating state is detected to be abnormal, the index data set associated with the first node is sent to the third node; the third node finds the corresponding vertex coordinates through the index data set, and converts the vertex coordinates into material point data using a material point conversion method; The third node writes the material point data into the corresponding storage area through the new area access path.
8. The method according to claim 2, characterized in that: The format of the model file includes an input format and input parameters; wherein the input format includes one or more of the following: kpoint file, Stp file, Stl file, Vtk file, Msh file; the input parameters include one or more of the following: number of parallel processes, grid density, maximum discrete size of the grid, and minimum discrete size; And / or, the storage format of the material point file is text file storage or binary file storage.
9. A pre-processing system for material point method numerical simulation, characterized in that: include: A mesh index module is configured to obtain a first shared file system, wherein the first shared file system provides at least one coordinate access path, and the coordinate access path is used to access a vertex coordinate array of a mesh model of an irregular body; and providing at least one index access path for accessing at least one index array associated with the vertex coordinate array; A mesh splitting module, configured to split the mesh model into at least one local mesh area according to a preset splitting rule, and obtain a corresponding vertex index data set from the first shared file system through the index access path according to the mesh point information of the local mesh area; A material point conversion module is configured to send the vertex index data set to at least one first node correspondingly, wherein the first node finds the vertex coordinates associated with the vertex index data through the coordinate access path, and converts the vertex coordinates into material point data using a material point conversion method, and the material point data includes: mass, x coordinate, y coordinate, and z coordinate of the material point; a material point storage module, configured to obtain a second shared file system, wherein the second shared file system provides at least one area access path, and the first node writes and / or reads the material point data in a corresponding storage area through the area access path; The material point file generation module is configured to provide a shared access path for the second shared file system, and the second node obtains the material point data and the corresponding storage path in the second shared file system through the shared access path, and connects the material point data according to the storage path to generate a material point file.
10. The system according to claim 9, characterized in that The grid splitting module also includes: A first node information acquisition unit is configured to acquire working information of the first node, wherein the working information includes: an available number n of the first node and a computing space λi of the first node; A mesh model splitting unit is configured to split the mesh model according to the working information according to the splitting rule to obtain at least one local mesh area, wherein the relationship between the size Xa of the local mesh area in the splitting rule and the calculation space λa of the corresponding first node is: , where i=1, 2, ...n, and Y is the size of the grid model.
Citation Information
Patent Citations
Dual-layer hybrid parallel optimal transportation meshfreep (pOTM) method for solving large deformation of material
CN106446433A
Method for accurately capturing shock wave discontinuity surface based on weighted bidirectional mapping
CN113673185A
Coupling Euler-Lagrange method for accurately capturing shock wave propagation process
CN114611340A
Parallel optimal transport meshless processing method and system based on graph topology structure
CN114912263A
Near-field kinetic material point dormancy method and system for simulating underground engineering excavation
CN111324959A
