Acoustic metamaterial feature fusion method, device and equipment
By generating, identifying, discretizing, and reconstructing acoustic metamaterial models, and combining material physics parameters to construct point cloud files, the problem of characterizing the multiphase and multiconfiguration features of acoustic metamaterials is solved, achieving more accurate characterization and optimization.
Patent Information
- Application Number
- CN202411286950.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-09-13
AI Technical Summary
Existing technologies are unable to accurately characterize the multiphase and multiconfiguration features of acoustic metamaterials, leading to information loss and affecting design and optimization.
An acoustic metamaterial model is generated using modeling software, saved as a triangular mesh model file, the starting row index of the entity object is identified, sub-lists are divided to record geometric information, geometric feature indexes are corrected, discretization and voxel surface reconstruction are performed, material physical parameter information is added, and point cloud files are constructed for three-dimensional spatial feature aggregation.
It achieves a comprehensive and accurate characterization of acoustic metamaterial models, avoids information loss, and provides more accurate performance prediction and optimization support.
Smart Images

Figure CN118782198B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of acoustic metamaterial data characterization, and in particular to an acoustic metamaterial feature fusion method, device and equipment. Background Art
[0002] Acoustic metamaterials are a class of artificially designed materials with special acoustic properties, and their ability to manipulate sound waves far exceeds that of conventional materials. The uniqueness of acoustic metamaterials lies in the precise design of their internal structure, which can enable them to exhibit unconventional acoustic responses, such as negative refraction, superlens, and invisible cloak effects. These properties make acoustic metamaterials have broad application prospects in noise control, acoustic imaging, acoustic stealth, and other acoustic engineering fields.
[0003] Acoustic metamaterials have the characteristics of multi-configuration and multi-phase, and usually contain two or more types of materials. The acoustic properties of these materials not only depend on the intrinsic properties of their constituent materials, but are also closely related to the geometric morphology and arrangement of their internal structures. Therefore, accurate characterization of the structure of acoustic metamaterials is crucial for their design and optimization. At present, when constructing machine learning algorithm input data, researchers mostly use parameters, images and other methods to characterize the topological structure of acoustic metamaterials. Such traditional characterization methods can reflect the macroscopic properties of acoustic metamaterials to a certain extent, but they cannot characterize the multi-phase and multi-configuration characteristic information of acoustic metamaterials, and will also lead to information loss caused by over-simplification of input, thereby affecting the design and optimization of acoustic metamaterials. Therefore, it is urgent to develop new acoustic metamaterial feature characterization methods and data construction strategies to more comprehensively and accurately describe the complex structure and polymorphism of acoustic metamaterials, and provide stronger support for their performance prediction and optimization. Summary of the invention
[0004] Based on this, it is necessary to provide an acoustic metamaterial feature fusion method, device and equipment to address the above technical problems.
[0005] A method for fusion of acoustic metamaterial features, the method comprising:
[0006] Generate acoustic metamaterial models in batches through modeling software, and export the acoustic metamaterial models in the form of triangular mesh model files for storage;
[0007] Read and identify each line of the triangular mesh model file in a list form, obtain the starting line index of all entity objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each entity object based on the sub-list records; wherein the geometric information includes geometric features and facet information;
[0008] The geometric features of the entity objects recorded and stored in each sublist are indexed in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, the geometric feature index compiled for the entity object is corrected to obtain a geometric feature correction index, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage based on the geometric feature correction index; wherein each mesh model file records and stores the geometric information of one entity object;
[0009] Each mesh model file is discretized and reconstructed with voxel surfaces to obtain a complete acoustic metamaterial model surface. By adding the material physical parameter information of each entity object, a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed. The three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file.
[0010] In one embodiment, the acoustic metamaterial model is generated in batches by modeling software, and the acoustic metamaterial model is exported in the form of a triangular mesh model file for storage, including:
[0011] The acoustic metamaterial models are generated in batches through the parametric control method of Blender software, and exported and saved in the form of triangular mesh model files in obj format; the triangular mesh model files support viewing and displaying the model structure through a 3D viewer, and also support opening in text form and reading the model structure through programming languages.
[0012] In one embodiment, each line of content in the triangular mesh model file is read and identified in a list form, the starting line index of all entity objects in the acoustic metamaterial model is obtained, and the original list is divided into multiple sub-lists according to the starting line index, and the geometric information of each entity object is stored based on the sub-list records, including:
[0013] Read and identify each line of content in the triangular mesh model file in a list form to obtain the starting line index of all entity objects in the acoustic metamaterial model; wherein, when the triangular mesh model file records the information of the acoustic metamaterial model, each entity object in the acoustic metamaterial model is identified with a starting line index, and the geometric information of each entity object is recorded starting from its starting line index until the starting line index of the next entity object;
[0014] The original list is divided into multiple sub-lists according to the starting row index of each entity object, and the geometric information of each entity object is stored based on the sub-list records; the number of sub-lists is consistent with the number of entity objects, and the geometric information of the entity objects includes three types of geometric features: vertex coordinates, normal vectors and texture coordinates, as well as face information.
[0015] In one embodiment, the geometric features of the entity objects recorded and stored in each sub-list are indexed in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, the geometric feature index compiled for the entity object is corrected to obtain a geometric feature correction index, including:
[0016] According to the row number sequence of the starting row index of the entity object, the three types of geometric features of the vertex coordinates, normal vectors and texture coordinates of the entity object recorded and stored in each sublist are indexed to obtain the three types of geometric feature indexes of each entity object, and the face element of each entity object accesses the geometric feature data through the three types of geometric feature indexes;
[0017] For each entity object, the total number of three types of geometric features of all entity objects before the row number where the starting row index of the entity object is located is obtained by cumulative addition and calculation, and the total number of geometric features of the corresponding category is subtracted from the three types of geometric feature indexes compiled by the entity object to obtain the three types of geometric feature corrected indexes of the entity object.
[0018] In one embodiment, exporting each entity object in the acoustic metamaterial model as a separate mesh model file for storage based on the geometric feature correction index includes:
[0019] For each entity object after the three types of geometric feature indexes are corrected, a mesh model file in obj format is created, and the three types of geometric features and facet information of the entity object are written into the mesh model file line by line, so as to realize the independent export and storage of each entity object in the acoustic metamaterial model. Each mesh model file supports viewing the model structure through a 3D viewer, and also supports opening it in text form and reading the model structure through a programming language.
[0020] In one embodiment, discretization processing and voxel surface reconstruction are performed on each mesh model file to obtain a complete acoustic metamaterial model surface, including:
[0021] Each mesh model file is read through a third-party library, and the maximum side length of the entity object recorded and stored in each mesh model file in a certain direction in the three-dimensional space is selected as its size. Each mesh model file is discretized into a three-dimensional voxel space of a fixed size based on the size ratio, and the scaling factor of the entity object recorded and stored in each mesh model file is obtained;
[0022] The vertex coordinates of the face elements of each entity object after discrete transformation are calculated according to the scaling factor, and based on the vertex coordinates of the face elements after discrete transformation, the triangular mesh unit representation of each entity object in the discretized three-dimensional voxel space is obtained. The open source algorithm is used to reconstruct the voxel surface of each triangular mesh unit representation to obtain the complete acoustic metamaterial model surface.
[0023] In one embodiment, before performing discretization processing and voxel surface reconstruction on each mesh model file to obtain a complete acoustic metamaterial model surface, the method further includes:
[0024] According to the modeling order of the internal entity objects when the modeling software generates the acoustic metamaterial model, a digital identifier is added to each entity object.
[0025] In one embodiment, by adding the material physical parameter information of each entity object, a point cloud file integrating the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed, and a three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file, including:
[0026] Based on the digital identification and modeling order of each entity object in the acoustic metamaterial model, the material physical parameter information of each entity object is added and integrated into the discretized three-dimensional voxel space coordinate points in sequence, and a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed. The three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file.
[0027] An acoustic metamaterial feature fusion device, the device comprising:
[0028] A model generation and export module is used to generate acoustic metamaterial models in batches through modeling software, and export the acoustic metamaterial models in the form of triangular mesh model files for storage;
[0029] The entity object recognition module is used to read and recognize each line of content in the triangular mesh model file in the form of a list, obtain the starting line index of all entity objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each entity object based on the sub-list records; wherein the geometric information includes geometric features and facet information;
[0030] The file rewriting export module is used to index the geometric features of the entity objects recorded and stored in each sublist in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, correct the geometric feature index compiled for the entity object to obtain a geometric feature correction index, and export each entity object in the acoustic metamaterial model as a separate grid model file for storage based on the geometric feature correction index; wherein each grid model file records and stores the geometric information of one entity object;
[0031] The physical information fusion module is used to discretize and reconstruct the voxel surface for each grid model file to obtain a complete acoustic metamaterial model surface. By adding the material physical parameter information of each entity object, a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed. The three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file.
[0032] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0033] Generate acoustic metamaterial models in batches through modeling software, and export the acoustic metamaterial models in the form of triangular mesh model files for storage;
[0034] Read and identify each line of the triangular mesh model file in a list form, obtain the starting line index of all entity objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each entity object based on the sub-list records; wherein the geometric information includes geometric features and facet information;
[0035] The geometric features of the entity objects recorded and stored in each sublist are indexed in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, the geometric feature index compiled for the entity object is corrected to obtain a geometric feature correction index, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage based on the geometric feature correction index; wherein each mesh model file records and stores the geometric information of one entity object;
[0036] Each mesh model file is discretized and reconstructed with voxel surfaces to obtain a complete acoustic metamaterial model surface. By adding the material physical parameter information of each entity object, a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed. The three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file.
[0037] The above-mentioned acoustic metamaterial feature fusion method, device and equipment can accurately distinguish and record the entity objects inside the acoustic metamaterial model through the generation and export of the acoustic metamaterial model and the identification of the entity objects. On this basis, the mesh model file is rewritten and exported for each entity object, which can fully characterize the geometric information of each entity object in the acoustic metamaterial model. Further, by discretizing each mesh model file in turn, reconstructing the voxel surface and adding the material physical parameter information, a point cloud file that integrates the geometric information of the entity object and the material physical parameter information is finally constructed, so as to realize the three-dimensional spatial feature aggregation and comprehensive characterization of the acoustic metamaterial model. Compared with the prior art, the present application can organically combine the geometric information of each entity object in the acoustic metamaterial model with the material physical parameter information, avoid the information loss problem caused by over-simplification of the traditional characterization method, and can more comprehensively and accurately describe the complex structure and polymorphism of the acoustic metamaterial, and provide more accurate basic data support for the performance prediction and optimization of the acoustic metamaterial. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 is a schematic flow chart of a method for fusion of acoustic metamaterial features in one embodiment;
[0039] Figure 2 A schematic diagram of partial contents of an obj file exported by Blender software in one embodiment;
[0040] Figure 3 A schematic diagram of the file organization of an acoustic metamaterial general database in one embodiment;
[0041] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] It should be further explained that the feature fusion method provided in this application has a wide range of applicability and is not limited to the application of acoustic metamaterials. It can also be effectively applied to other types of metamaterials, such as mechanical metamaterials, electromagnetic metamaterials, and optical metamaterials. In different metamaterial fields, the feature fusion method proposed in this application can provide comprehensive and accurate complex structure and polymorphism characterization solutions for various metamaterials, and provide more powerful support for the performance prediction and optimization of various metamaterials. In the following, we will take acoustic metamaterials as an example for a detailed introduction.
[0044] In one embodiment, Figure 1 As shown, a method for fusion of acoustic metamaterial features is provided, comprising the following steps:
[0045] Step S1, generating acoustic metamaterial models in batches through modeling software, and exporting the acoustic metamaterial models in the form of triangular mesh model files for storage.
[0046] The specific implementation process of step S1 includes:
[0047] The acoustic metamaterial models are generated in batches through the parametric control method of Blender software, and exported and saved in the form of triangular mesh model files in obj (three-dimensional model file) format; the triangular mesh model files support viewing and displaying the model structure through a 3D viewer, and also support opening in text form and reading the model structure through programming languages.
[0048] Furthermore, Blender software supports Python script compilation. In Python, input the path of the triangular mesh model file in obj format exported by Blender software, open the file and return each line of the file in a list form to facilitate subsequent processing.
[0049] Among them, as a 3D graphics software, Blender is suitable for multiple fields such as modeling, rendering, animation, etc. It supports script-controlled modeling and the export of obj format mesh files. The mesh file contains the geometric information of all entity objects inside the structural model, including vertex coordinates, texture coordinates, normal vectors, face elements, etc. The face elements access three geometric features through index positioning. The mesh file can not only display the model structure through the 3D viewer, but also be opened in text format and read through programming languages, which is convenient for subsequent data conversion processing and the establishment of material structure characterization methods.
[0050] Step S2, read and identify each line of content in the triangular mesh model file in list form, obtain the starting line index of all entity objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each entity object based on the sub-list records; wherein the geometric information includes geometric features and facet information.
[0051] The specific implementation process of step S2 includes:
[0052] First, read and identify each line of the triangular mesh model file in the form of a list to obtain the starting line index of all entity objects in the acoustic metamaterial model; wherein, when the triangular mesh model file records the information of the acoustic metamaterial model, each entity object in the acoustic metamaterial model is identified with a starting line index, and the geometric information of each entity object is recorded starting from its starting line index until the starting line index of the next entity object. Specifically, Figure 2 As shown in the figure, when the triangular mesh model file records the information of the acoustic metamaterial model, each entity object is recorded with a line of content starting with the starting line index "o". "o cube" means that from this line on, the following geometric information represents this cube until the next entity object is encountered. Therefore, by judging each line of content in the original list, the starting line index of all entity objects can be obtained. Among them, Figure 2 Here, v represents vertex coordinates, vn represents normal vector, vt represents texture coordinates, f represents face element, s represents smooth group, and usemt1 represents material.
[0053] Then, the original list is divided into multiple sub-lists according to the starting row index of each entity object, and the geometric information of each entity object is stored based on the sub-list records; the number of sub-lists is consistent with the number of entity objects, and the geometric information of the entity objects includes three types of geometric features, namely vertex coordinates, normal vectors and texture coordinates, as well as face information.
[0054] Step S3, indexing the geometric features of the entity objects recorded and stored in each sub-list in order, and for each entity object, correcting the geometric feature index compiled for the entity object based on the total number of geometric features of all entity objects before the entity object to obtain a geometric feature correction index, and exporting each entity object in the acoustic metamaterial model as a separate mesh model file for storage based on the geometric feature correction index; wherein each mesh model file records and stores the geometric information of one entity object.
[0055] The specific implementation process of step S3 includes:
[0056] First, the three types of geometric features of the vertex coordinates, normal vectors and texture coordinates of the entity objects recorded and stored in each sublist are indexed according to the row number sequence of the starting row index of the entity object, and the three types of geometric feature indexes of each entity object are obtained. The face element of each entity object accesses the geometric feature data through the three types of geometric feature indexes. Specifically, Figure 2 As shown, the face element f records the information of each entity object and accesses the geometric feature data through the index of "v / vn / vt". If the entity object is divided into a triangular mesh, each face element records three sets of "v / vn / vt" indexes.
[0057] Furthermore, since the next entity object will continue to count down when it is encountered during indexing, and the geometric feature index must start from 1 when the mesh model file is read and written independently, before rewriting the file, we first determine the beginning of the line (that is, the starting line index of the entity object) to distinguish the geometric features recorded in the line content, and then count all the geometric features of each entity object in the original file.
[0058] Then, for each entity object, the total number of the three types of geometric features of all entity objects before the row number where the starting row index of the entity object is located is obtained by cumulative addition and calculation, and the three types of geometric feature indexes compiled by the entity object are subtracted from the total number of geometric features of the corresponding category to obtain the three types of geometric feature corrected indexes of the entity object.
[0059] Finally, for each entity object after the three types of geometric feature indexes are corrected, a mesh model file in obj format is created, and the three types of geometric features and facet information of the entity object are written into the mesh model file line by line, so as to realize the independent export and storage of each entity object in the acoustic metamaterial model. Each mesh model file supports viewing the model structure through a 3D viewer, and also supports opening it in text form and reading the model structure through a programming language.
[0060] It can be understood that after distinguishing and identifying each entity object inside the acoustic metamaterial model, further compiling a correction index and rewriting the export file through geometric features, each entity object can be exported and saved separately in the form of a mesh model file. This can fully characterize the geometric information of each entity object in the acoustic metamaterial model, and ensure that the geometric information of each entity object is completely and accurately captured and saved, avoiding information confusion and data loss, and providing a high-quality data foundation for subsequent analysis and simulation.
[0061] Step S4, discretizes and reconstructs the voxel surface for each grid model file to obtain a complete acoustic metamaterial model surface, and constructs a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model by adding the material physical parameter information of each entity object, and performs three-dimensional spatial feature aggregation representation of the acoustic metamaterial model based on the point cloud file.
[0062] The specific implementation process of step S4 includes:
[0063] First, each mesh model file is read through a third-party library, and the maximum side length of the entity object recorded and stored in each mesh model file in a certain direction in the three-dimensional space is selected as its size. Based on the size ratio, each mesh model file is discretized into a three-dimensional voxel space of a fixed size, and the scaling factor of the entity object recorded and stored in each mesh model file is obtained; specifically, the mesh model file is discretized into a fixed 64*64*64 three-dimensional voxel space.
[0064] Then, the vertex coordinates of the face elements of each solid object after discrete transformation are calculated according to the scaling factor, and based on the vertex coordinates of the face elements after discrete transformation, the triangular mesh unit representation of each solid object in the discretized three-dimensional voxel space is obtained. The open source algorithm is used to reconstruct the voxel surface of each triangular mesh unit representation to obtain the complete acoustic metamaterial model surface.
[0065] Finally, further considering that before the present application discretizes and reconstructs the voxel surface for each grid model file to obtain the complete acoustic metamaterial model surface, that is, when rewriting and exporting the grid model file of each entity object, a digital identifier is added to each entity object according to the modeling order of the internal entity objects when the acoustic metamaterial model is generated by the modeling software. Based on the digital identifier and modeling order of each entity object in the acoustic metamaterial model, the material physical parameter information of each entity object is sequentially added and integrated into the discretized three-dimensional voxel space coordinate point, and a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed, and the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file.
[0066] It can be understood that after all the entity objects within an acoustic metamaterial model are converted into separate mesh model files for export and saving, each mesh model file is further discretized, voxel surface reconstructed, and material physical parameter information is added in turn. Among them, the discretization process can display the shape, size and other spatial information of the entity objects in the mesh model file in a more intuitive and accurate way, thereby improving the resolution of the entity objects; the voxel surface reconstruction can effectively repair and optimize the complete acoustic metamaterial model surface, ensuring its accuracy and integrity after discretization; the added material physical parameter information can be integrated with the geometric information of the entity object, so that the generated point cloud file not only contains geometric information, but also records the material properties of each entity object in detail. The point cloud file becomes a multidimensional data set, which can comprehensively characterize the three-dimensional spatial characteristics and material properties of the acoustic metamaterial model, realize the three-dimensional spatial feature aggregation and comprehensive characterization of the acoustic metamaterial model, improve the accuracy and reliability of the acoustic metamaterial model, and provide important technical support for more complex acoustic design and optimization.
[0067] In one embodiment, the present application further constructs a general database of acoustic metamaterials based on the grid model file and point cloud file constructed by the acoustic metamaterial feature fusion method provided above, as well as the sound absorption coefficient table of the acoustic metamaterial.
[0068] The database files are organized in the form of Figure 3 As shown, the acoustic metamaterial general database contains ten different types of acoustic metamaterials, and each acoustic metamaterial includes multiple sets of different parameter matching schemes. Specifically, ten directories are created under the parent folder "Material Database", each corresponding to an acoustic metamaterial, and each directory contains two sub-directories of mesh model files and point cloud files, as well as a sound absorption coefficient table. Among them, the sound absorption coefficient is calculated using simulation modeling software.
[0069] Furthermore, in order to realize the simple and efficient management of the acoustic metamaterial general database and the functions of customized update, the database file is managed in the form of a dictionary file. Specifically, in Python, the configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path of the acoustic metamaterial can be used as keys, and the corresponding values can be filled in according to the actual situation. A dictionary file is created based on the key-value pair and the dictionary file is saved in json format.
[0070] In addition, when developing the management of the acoustic metamaterials universal database, you can develop command line interactive programs based on the cmd library in Python (which provides a library for command line interpreters), read dictionary files, and use key-value pairs to query and access commands. You can design and develop basic functions such as adding, querying, listing, deleting, and saving. You can also interact with the acoustic metamaterials universal database for database management through command line input, realize data entry query and data set generation in the acoustic metamaterials universal database based on tags, and users can quickly customize and update data sets.
[0071] Specifically, the specific process of using the acoustic metamaterial general database and generating the dataset includes:
[0072] (1) Combined with the existing database functions, users can customize and select data objects from the acoustic metamaterials general database to generate a dataset and save it as a dictionary file in json format.
[0073] (2) Obtaining the file path. In Python, take the dictionary file as input, obtain the storage path of the point cloud file and the storage path of the sound absorption coefficient table, and return them in the form of a storage path list.
[0074] (3) Dataset generation. By inheriting the PyTorch Dataset class method, taking the storage path list as input, loading all data entries, and preprocessing the input point cloud file, the original digital identifiers of each entity object in the point cloud file are deleted, and only the spatial coordinates and material physical parameter information are retained to generate a PyTorch dataset object.
[0075] It can be understood that this application generates a universal database of acoustic metamaterials through parametric modeling based on the acoustic metamaterial feature fusion method, solving the problem of cross-configuration database loss. Database management is performed through dictionary files, and a data interaction program is developed to quickly manage database files, support data entry queries and data set generation based on tags, and support users to quickly customize and update data sets. In addition, using dictionary files as input, the data entries contained in the dictionary file can be quickly encapsulated as PyTorch dataset objects. Further, by loading the dataset through Dataloader, the dataset can be encapsulated as an iterable data object for machine learning algorithm training.
[0076] In one embodiment, an acoustic metamaterial feature fusion device is provided, comprising:
[0077] The model generation and export module is used to generate acoustic metamaterial models in batches through modeling software, and export the acoustic metamaterial models in the form of triangular mesh model files for storage.
[0078] The entity object recognition module is used to read and recognize each line of content in the triangular mesh model file in list form, obtain the starting line index of all entity objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each entity object based on the sub-list records; wherein the geometric information includes geometric features and facet information.
[0079] The file rewriting export module is used to index the geometric features of the entity objects recorded and stored in each sub-list in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, correct the geometric feature index compiled for the entity object to obtain a geometric feature correction index, and export each entity object in the acoustic metamaterial model as a separate mesh model file for storage based on the geometric feature correction index; wherein each mesh model file records and stores the geometric information of one entity object.
[0080] The physical information fusion module is used to discretize and reconstruct the voxel surface for each grid model file to obtain a complete acoustic metamaterial model surface. By adding the material physical parameter information of each entity object, a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed. The three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file.
[0081] For the specific definition of the acoustic metamaterial feature fusion device, please refer to the definition of the acoustic metamaterial feature fusion method above, which will not be repeated here. Each module in the above-mentioned acoustic metamaterial feature fusion device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0082] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for fusion of acoustic metamaterial features is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0083] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0084] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0085] Generate acoustic metamaterial models in batches through modeling software, and export the acoustic metamaterial models in the form of triangular mesh model files for storage;
[0086] Read and identify each line of the triangular mesh model file in a list form, obtain the starting line index of all entity objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each entity object based on the sub-list records; wherein the geometric information includes geometric features and facet information;
[0087] The geometric features of the entity objects recorded and stored in each sublist are indexed in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, the geometric feature index compiled for the entity object is corrected to obtain a geometric feature correction index, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage based on the geometric feature correction index; wherein each mesh model file records and stores the geometric information of one entity object;
[0088] Each mesh model file is discretized and reconstructed with voxel surfaces to obtain a complete acoustic metamaterial model surface. By adding the material physical parameter information of each entity object, a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed. The three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file.
[0089] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0090] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for fusion of acoustic metamaterial features. It is characterized in that The method comprises: Batch generate acoustic metamaterial models through modeling software, and export the acoustic metamaterial models in the form of triangular mesh model files for storage; Read and identify each line of content in the triangular mesh model file in a list form, obtain the starting line index of all entity objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each entity object based on the sub-list records; wherein the geometric information includes geometric features and facet information; The geometric features of the entity objects recorded and stored in each sublist are indexed in sequence, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, the geometric feature index compiled for the entity object is corrected to obtain a geometric feature correction index, and each entity object in the acoustic metamaterial model is exported as a separate grid model file for storage based on the geometric feature correction index; wherein each grid model file records and stores the geometric information of an entity object; wherein the geometric features of the entity objects recorded and stored in each sublist are indexed in sequence, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, the geometric feature index compiled for the entity object is corrected to obtain a geometric feature correction index. The geometric feature index is corrected to obtain a geometric feature correction index, including: indexing the three types of geometric features of the vertex coordinates, normal vectors and texture coordinates of the entity objects recorded and stored in each sublist according to the order of the row numbers of the starting row index of the entity objects, to obtain the three types of geometric feature indexes of each entity object, and the face element of each entity object accesses the geometric feature data through the three types of geometric feature indexes; for each entity object, the total number of the three types of geometric features of all entity objects before the row number where the starting row index of the entity object is located is obtained by cumulative addition and calculation, and the total number of geometric features of the corresponding categories is subtracted from the three types of geometric feature indexes compiled by the entity object to obtain the three types of geometric feature correction index of the entity object; Discretization processing and voxel surface reconstruction are performed on each grid model file to obtain a complete acoustic metamaterial model surface, and by adding the material physical parameter information of each entity object, a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed. Based on the point cloud file, the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed.
2. The method according to claim 1, It is characterized in that The acoustic metamaterial model is generated in batches by modeling software, and the acoustic metamaterial model is exported in the form of a triangular mesh model file for storage, including: The acoustic metamaterial model is generated in batches by parametric control of Blender software, and is exported in the form of a triangular mesh model file in obj format for storage; wherein the triangular mesh model file supports viewing and displaying the model structure through a 3D viewer, and also supports opening in text form and reading the model structure through a programming language.
3. The method according to claim 2, It is characterized in that Read and identify each line of the triangular mesh model file in a list form, obtain the starting line index of all entity objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each entity object based on the sub-list records, including: Read and identify each line of content in the triangular mesh model file in a list form to obtain the starting row index of all entity objects in the acoustic metamaterial model; wherein, when the triangular mesh model file records the information of the acoustic metamaterial model, each entity object in the acoustic metamaterial model is identified with a starting row index, and the geometric information of each entity object is recorded starting from its starting row index until the starting row index of the next entity object; The original list is divided into multiple sub-lists according to the starting row index of each entity object, and the geometric information of each entity object is stored based on the sub-list records; wherein the number of sub-lists is consistent with the number of entity objects, and the geometric information of the entity objects includes three types of geometric features, namely vertex coordinates, normal vectors and texture coordinates, as well as face information.
4. The method according to claim 1, It is characterized in that Exporting each entity object in the acoustic metamaterial model as a separate mesh model file for storage based on the geometric feature correction index includes: For each entity object after the three types of geometric feature indexes are corrected, a mesh model file in obj format is created, and the three types of geometric features and facet information of the entity object are written line by line into the mesh model file, so as to realize independent export and storage of each entity object in the acoustic metamaterial model, and each mesh model file supports viewing and displaying the model structure through a 3D viewer, and also supports opening in text form and reading the model structure through a programming language.
5. The method according to claim 4, It is characterized in that Discretization and voxel surface reconstruction are performed on each mesh model file to obtain a complete acoustic metamaterial model surface, including: Each mesh model file is read through a third-party library, and the maximum side length of the entity object recorded and stored in each mesh model file in a certain direction in the three-dimensional space is selected as its size. Each mesh model file is discretized into a three-dimensional voxel space of a fixed size based on the size ratio, and the scaling factor of the entity object recorded and stored in each mesh model file is obtained; The vertex coordinates of the face elements after the discrete transformation of each entity object are calculated according to the scaling factor, and based on the vertex coordinates of the face elements after the discrete transformation, a triangular mesh unit representation of each entity object in the discretized three-dimensional voxel space is obtained, and an open source algorithm is applied to perform voxel surface reconstruction on each triangular mesh unit representation to obtain a complete acoustic metamaterial model surface.
6. The method according to claim 5, It is characterized in that Before discretizing and reconstructing the voxel surface for each mesh model file to obtain a complete acoustic metamaterial model surface, it also includes: According to the modeling order of the internal entity objects when the modeling software generates the acoustic metamaterial model, a digital identifier is added to each entity object.
7. The method according to claim 6, It is characterized in that By adding the material physical parameter information of each entity object, a point cloud file integrating the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed, and a three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file, including: Based on the digital identification and modeling order of each entity object in the acoustic metamaterial model, the material physical parameter information of each entity object is added and integrated into the discretized three-dimensional voxel space coordinate points in sequence, and a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model is constructed. Based on the point cloud file, the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed.
8. An acoustic metamaterial feature fusion device, It is characterized in that The device comprises: A model generation and export module is used to generate acoustic metamaterial models in batches through modeling software, and export the acoustic metamaterial models in the form of triangular mesh model files for storage; A physical object identification module, used to read and identify each line of content in the triangular mesh model file in a list form, obtain the starting line index of all physical objects in the acoustic metamaterial model, and divide the original list into multiple sub-lists according to the starting line index, and store the geometric information of each physical object based on the sub-list records; wherein the geometric information includes geometric features and facet information; The file rewriting export module is used to index the geometric features of the entity objects recorded and stored in each sub-list in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, correct the geometric feature index compiled for the entity object to obtain a geometric feature correction index, and export each entity object in the acoustic metamaterial model as a separate grid model file for storage based on the geometric feature correction index; wherein each grid model file records and stores the geometric information of an entity object; wherein, the geometric features of the entity objects recorded and stored in each sub-list are indexed in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, the entity object is corrected. The geometric feature index compiled by the image is corrected to obtain a geometric feature correction index, including: according to the row number sequence of the starting row index of the entity object, the three types of geometric features of the vertex coordinates, normal vectors and texture coordinates of the entity object recorded and stored in each sublist are indexed to obtain the three types of geometric feature indexes of each entity object, and the face element of each entity object accesses the geometric feature data through the three types of geometric feature indexes; for each entity object, the total number of the three types of geometric features of all entity objects before the row number where the starting row index of the entity object is located is obtained by cumulative addition and calculation, and the total number of geometric features of the corresponding category is subtracted from the three types of geometric feature indexes compiled by the entity object to obtain the three types of geometric feature correction index of the entity object; The physical information fusion module is used to discretize and reconstruct the voxel surface for each grid model file to obtain a complete acoustic metamaterial model surface, and to construct a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model by adding the material physical parameter information of each entity object, and to perform three-dimensional spatial feature aggregation representation of the acoustic metamaterial model based on the point cloud file.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
