Acoustic metamaterial general database construction method, device and equipment

By constructing a general database of acoustic metamaterials, the problem of difficult to characterize multiphase states and multi-configuration characteristics in the prior art is solved, and detailed description of acoustic metamaterials and cross-configuration design support are realized.

CN119201895AActive Publication Date: 2024-12-27NAT UNIV OF DEFENSE TECH

Patent Information

Application Number
CN202411285346.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-27
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

The prior art is difficult to accurately characterize the multiphase state and multi-configuration feature information of acoustic metamaterials, resulting in limited configuration coverage of the data set, hindering the establishment of general characterization methods, and existing algorithms on specific configuration materials data sets Learning, it is difficult to achieve cross-configuration reverse design.

Method used

Acoustic metamaterial models are generated in batches through modeling software, triangular mesh model files are exported, internal entity object recognition and file rewriting are performed, discretization processing, voxel surface reconstruction and material physical parameter information are attached, and acoustic metamaterials are constructed to construct A general database containing grid model files, point cloud files and sound absorption factor tables.

Benefits of technology

A three-dimensional spatial feature aggregation and characterization of the acoustic metamaterial model is realized, and the geometric information of solid objects and material physical parameter information is integrated to form a more comprehensive and detailed description of the metamaterial structure and performance, avoid information loss and expand data Sets covers configuration ranges, supporting the integrity and diversity of data across configurations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201895A_ABST
    Figure CN119201895A_ABST
Patent Text Reader

Abstract

The invention relates to an acoustic metamaterial general database construction method, device and equipment. The method comprises the steps that acoustic metamaterial models are generated in batches through modeling software; for each acoustic metamaterial model, internal entity object recognition and file rewriting are firstly carried out, and each entity object in the model is exported as an independent grid model file to be stored; discretization processing, voxel surface reconstruction and material physical parameter information addition are sequentially carried out on each grid model file, and a point cloud file of each acoustic metamaterial model is constructed; and finally, on the basis of the grid model file and the point cloud file corresponding to each acoustic metamaterial model and an acoustic absorption coefficient table of the acoustic metamaterial model calculated by simulation modeling software, constructing an acoustic metamaterial universal database. By adopting the method, the problem of cross-configuration data loss can be solved, and three-dimensional space feature aggregation and comprehensive characterization of the acoustic metamaterial model are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of acoustic metamaterial data characterization, and in particular to a method, device and equipment for constructing a universal database of acoustic metamaterials. 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 form and arrangement of their internal structure. 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. This traditional characterization method can reflect the macroscopic properties of acoustic metamaterials to a certain extent, but it cannot characterize the multi-phase and multi-configuration characteristic information of acoustic metamaterials. It will also lead to information loss caused by over-simplification of input, and the data set covers a limited range of configurations, which hinders the establishment of a general characterization method.

[0004] In addition, when evaluating and designing the performance of acoustic metamaterials, due to the lack of a general database, existing algorithms often learn and generate material data sets of specific configurations, making it difficult to achieve disruptive and innovative cross-configuration reverse design. Summary of the invention

[0005] Based on this, it is necessary to provide a method, device and equipment for constructing a universal database of acoustic metamaterials to address the above technical problems.

[0006] A method for constructing a universal database of acoustic metamaterials, the method comprising:

[0007] Generate acoustic metamaterial models in batches through modeling software, and export all acoustic metamaterial models in the form of triangular mesh model files for storage;

[0008] For each acoustic metamaterial model, internal entity object identification and file rewriting are first performed, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage; wherein each mesh model file records and stores the geometric information of a entity object;

[0009] Then, the mesh model file of each entity object in the acoustic metamaterial model is discretized, the voxel surface is reconstructed, and the material physical parameter information is added in sequence to construct a point cloud file of each acoustic metamaterial model; wherein a point cloud file records and stores the geometric information and material physical parameter information of each entity object in an acoustic metamaterial model;

[0010] Based on the grid model files and point cloud files corresponding to each acoustic metamaterial model and the sound absorption coefficient table of the acoustic metamaterial model calculated by simulation modeling software, a general database of acoustic metamaterials is constructed.

[0011] In one of the embodiments, the file organization of the acoustic metamaterial general database consists of a parent folder, a directory and a sub-directory; multiple directories are created under the parent folder, each directory corresponds to an acoustic metamaterial, and three sub-directories are created under each directory, corresponding to a grid model file, a point cloud file and a sound absorption coefficient table that record the acoustic metamaterial model.

[0012] In one embodiment, the acoustic metamaterial models are generated in batches by modeling software, and all acoustic metamaterial models are exported in the form of triangular mesh model files for storage, including:

[0013] Acoustic metamaterial models are generated in batches through the parametric control method of Blender software, and all acoustic metamaterial models are exported and saved in the form of triangular mesh model files in obj format; among them, 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.

[0014] In one embodiment, for each acoustic metamaterial model, internal entity object recognition and file rewriting are first performed, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage, including:

[0015] For each acoustic metamaterial model, each line of content in a triangular mesh model file that identifies the acoustic metamaterial model is first read 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;

[0016] Secondly, the original list is divided into multiple sublists according to the starting row index of each entity object, and the geometric information of each entity object is stored based on the sublist records; the number of sublists is the same as the number of entity objects, and the geometric information of the entity object includes three types of geometric features, namely vertex coordinates, normal vectors and texture coordinates, as well as face information;

[0017] Finally, the geometric features of the entity objects recorded and stored in each sub-list are indexed in sequence, and for each entity object, the geometric feature index compiled for the entity object is corrected based on the total number of geometric features of all entity objects before the entity object to obtain a corrected geometric feature index, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage based on the corrected geometric feature index.

[0018] 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, 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, including:

[0019] 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;

[0020] 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 indexes of the entity object;

[0021] 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.

[0022] In one embodiment, the mesh model file of each entity object in the acoustic metamaterial model is discretized, the voxel surface is reconstructed, and the material physical parameter information is added in sequence to construct a point cloud file of each acoustic metamaterial model, including:

[0023] For each acoustic metamaterial model, the mesh model file of each entity object in the acoustic metamaterial model 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, and 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;

[0024] The vertex coordinates of the face element after the discrete transformation of each entity object are calculated according to the scaling factor, and based on the vertex coordinates of the face element after the discrete transformation, the triangular mesh unit representation of each entity object in the discretized three-dimensional voxel space is obtained, and the voxel surface of each triangular mesh unit representation is reconstructed using an open source algorithm to obtain a complete acoustic metamaterial model surface;

[0025] On the basis of obtaining the complete surface of the acoustic metamaterial model, the material physical parameter information of each entity object is further added 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. The three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is then performed based on the point cloud file.

[0026] In one embodiment, the method further comprises:

[0027] When performing internal entity object recognition and file rewriting, a digital identifier is added to each entity object according to the modeling order of the internal entity objects when the modeling software generates the acoustic metamaterial model;

[0028] On the basis of obtaining the complete surface of the acoustic metamaterial model, 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 sequentially added and integrated into the discretized three-dimensional voxel space coordinate points, 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.

[0029] In one embodiment, the acoustic metamaterial general database performs file management interaction based on a dictionary file, the dictionary file is composed of key-value pairs, and all files in the acoustic metamaterial general database are queried and accessed through key-value pairs for management interaction; wherein the key includes the configuration of the acoustic metamaterial, the material type, the number of material phases, the point cloud file path, and the sound absorption coefficient table path, and the value is the specific data information corresponding to each type of key.

[0030] A device for constructing a universal database of acoustic metamaterials, the device comprising:

[0031] The model generation and export module is used to generate acoustic metamaterial models in batches through modeling software, and export all acoustic metamaterial models in the form of triangular mesh model files for storage;

[0032] The entity object recognition module is used to first perform internal entity object recognition and file rewriting for each acoustic metamaterial model, and export each entity object in the acoustic metamaterial model as a separate mesh model file for storage; wherein each mesh model file records and stores geometric information of a entity object;

[0033] The point cloud file generation module is used to sequentially discretize, reconstruct the voxel surface, and append the material physical parameter information to the mesh model file of each entity object in the acoustic metamaterial model, so as to construct a point cloud file of each acoustic metamaterial model; wherein a point cloud file records and stores the geometric information and material physical parameter information of each entity object in an acoustic metamaterial model;

[0034] The database file organization module is used to construct a general database of acoustic metamaterials based on the grid model files and point cloud files corresponding to each acoustic metamaterial model and the sound absorption coefficient table of the acoustic metamaterial model calculated by the simulation modeling software.

[0035] 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:

[0036] Generate acoustic metamaterial models in batches through modeling software, and export all acoustic metamaterial models in the form of triangular mesh model files for storage;

[0037] For each acoustic metamaterial model, internal entity object identification and file rewriting are first performed, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage; wherein each mesh model file records and stores the geometric information of a entity object;

[0038] Then, the mesh model file of each entity object in the acoustic metamaterial model is discretized, the voxel surface is reconstructed, and the material physical parameter information is added in sequence to construct a point cloud file of each acoustic metamaterial model; wherein a point cloud file records and stores the geometric information and material physical parameter information of each entity object in an acoustic metamaterial model;

[0039] Based on the grid model files and point cloud files corresponding to each acoustic metamaterial model and the sound absorption coefficient table of the acoustic metamaterial model calculated by simulation modeling software, a general database of acoustic metamaterials is constructed.

[0040] The above-mentioned acoustic metamaterial general database construction method, device and equipment, firstly, can accurately distinguish physical objects of different structures and record the corresponding geometric information by performing internal entity object recognition and file rewriting for each acoustic metamaterial model generated in batches by the modeling software, providing more accurate data support for subsequent analysis. Furthermore, the grid model file that records the geometric information of the physical object is discretized, the voxel surface is reconstructed, and the material physical parameter information is attached in sequence, and finally a point cloud file that integrates the geometric information of the physical object and the material physical parameter information is constructed, which can not only realize the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model, but also integrate the geometric information of the physical object and the material physical parameter information to form a more comprehensive and detailed description of the metamaterial structure and performance, avoiding the problem of information loss, ensuring the integrity and diversity of the database input data, and expanding the configuration range covered by the data set. Finally, by aggregating and organizing the mesh model files, point cloud files, and sound absorption coefficient tables of each acoustic metamaterial model, the acoustic metamaterial general database is formed. It is a comprehensive data set covering the multi-configuration and multi-phase characteristic information of acoustic metamaterials, which solves the problem of cross-configuration data loss and provides strong support for the performance evaluation and design of acoustic metamaterials. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a process for constructing a universal database of acoustic metamaterials in one embodiment;

[0042] Figure 2 A schematic diagram of partial contents of an obj file exported by Blender software in one embodiment;

[0043] Figure 3 A schematic diagram of the file organization of an acoustic metamaterial general database in one embodiment;

[0044] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0045] 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.

[0046] It should be further explained that the general database construction method provided by this application has wide applicability and is not limited to the application of acoustic metamaterials. It can also be effectively applied to other types of metamaterial fields, such as mechanical metamaterials, electromagnetic metamaterials, and optical metamaterials. In different metamaterial fields, the method proposed in this application can provide a flexible and efficient general database construction solution for the research and development of various metamaterials. In the following, we will take acoustic metamaterials as an example for a detailed introduction.

[0047] In one embodiment, Figure 1 As shown, a method for constructing a general database of acoustic metamaterials is provided, comprising the following steps:

[0048] Step S1, generating acoustic metamaterial models in batches through modeling software, and exporting all acoustic metamaterial models in the form of triangular mesh model files for storage.

[0049] The specific implementation process of step S1 includes:

[0050] Acoustic metamaterial models are generated in batches through the parametric control method of Blender software, and all acoustic metamaterial models are exported and saved in the form of triangular mesh model files in obj (three-dimensional model file) format; among them, 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.

[0051] 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.

[0052] 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.

[0053] Step S2, for each acoustic metamaterial model, firstly perform internal entity object recognition and file rewriting, and export each entity object in the acoustic metamaterial model as a separate mesh model file for storage; wherein each mesh model file records and stores geometric information of a entity object.

[0054] The specific implementation process of step S2 includes:

[0055] First, for each acoustic metamaterial model, each line of content in the triangular mesh model file that identifies the acoustic metamaterial model is read 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 inside 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.

[0056] 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.

[0057] Secondly, 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.

[0058] Finally, the geometric features of the entity objects recorded and stored in each sub-list are indexed in sequence, and for each entity object, the geometric feature index compiled for the entity object is corrected based on the total number of geometric features of all entity objects before the entity object to obtain a corrected geometric feature index, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage based on the corrected geometric feature index.

[0059] Specifically, when correcting the index and exporting the mesh model file: First, 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 according to the row number sequence of the entity object's starting row index, and the three types of geometric feature indexes of each entity object are obtained, and 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.

[0060] 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 perform quantitative statistics on all the geometric features of each entity object in the original file.

[0061] 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.

[0062] 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.

[0063] 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.

[0064] Step S3, then discretize the mesh model file of each entity object in the acoustic metamaterial model, reconstruct the voxel surface, and append the material physical parameter information in sequence to construct a point cloud file of each acoustic metamaterial model; wherein a point cloud file records and stores the geometric information and material physical parameter information of each entity object in an acoustic metamaterial model.

[0065] The specific implementation process of step S3 includes:

[0066] For each acoustic metamaterial model, first, the mesh model file of each entity object in the acoustic metamaterial model 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, and each mesh model file is discretized into a three-dimensional voxel space of a fixed size based on the size ratio to obtain the scaling factor of the entity object recorded and stored in each mesh model file. Specifically, the mesh model file is discretized into a fixed 64*64*64 three-dimensional voxel space.

[0067] Then, 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.

[0068] Finally, further considering that when the application performs internal entity object recognition and file rewriting, a digital identifier is added to each entity object according to the modeling order of the internal entity objects when the modeling software generates the acoustic metamaterial model. On the basis of obtaining the complete acoustic metamaterial model surface, 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.

[0069] 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.

[0070] Step S4, constructing a general acoustic metamaterial database based on the grid model file and the point cloud file corresponding to each acoustic metamaterial model and the sound absorption coefficient table of the acoustic metamaterial model calculated by the simulation modeling software.

[0071] Among them, the file organization format of the acoustic metamaterial general database is as follows: Figure 3 As shown in the figure, it consists of a parent folder, directories and subdirectories; multiple directories are created under the parent folder "Material Database", each directory corresponds to an acoustic metamaterial, and three subdirectories are created under each directory, corresponding to the grid model file, point cloud file and sound absorption coefficient table recording the acoustic metamaterial model. Specifically, Figure 3 The file organization of the acoustic metamaterial general database shown contains ten directories.

[0072] Furthermore, the acoustic metamaterial general database performs file management interaction based on dictionary files, which are composed of key-value pairs, and manages and interacts with all files in the acoustic metamaterial general database by querying and accessing key-value pairs; wherein the keys include the configuration of the acoustic metamaterial, the type of material, the number of material phases, the point cloud file path, and the sound absorption coefficient table path, and the values ​​are the specific data information corresponding to each type of key.

[0073] Specifically, the dictionary file is created as follows: in Python, the configuration of the acoustic metamaterial, material type, material phase number, point cloud file path, and sound absorption coefficient table path are used as keys, and corresponding values ​​are filled in according to the actual conditions of each key. A dictionary file is created based on the key-value pair and saved in json format.

[0074] Furthermore, when developing the management of the acoustic metamaterial universal database, a command line interactive program can be developed based on the cmd library in Python (which provides a library for command line interpreters), dictionary files can be read, and basic functions such as adding, querying, listing, deleting, and saving can be designed and developed through key-value pair query and access commands. Database management interaction with the acoustic metamaterial universal database can be performed through command line input, which realizes data entry query and data set generation in the acoustic metamaterial universal database based on tags, as well as user's rapid customized update of data sets.

[0075] Specifically, the specific process of using the acoustic metamaterial general database and generating the dataset includes:

[0076] (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.

[0077] (2) Obtaining the file path. In Python, the dictionary file is used as input to obtain the storage path of the point cloud file and the storage path of the sound absorption coefficient table, and the storage path is returned in the form of a storage path list.

[0078] (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.

[0079] 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. And through dictionary files for database management, a data interaction program has been developed, which can 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, with 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.

[0080] In one embodiment, a device for constructing a universal database of acoustic metamaterials is provided, comprising:

[0081] The model generation and export module is used to generate acoustic metamaterial models in batches through modeling software, and export all acoustic metamaterial models in the form of triangular mesh model files for storage.

[0082] The entity object recognition module is used to first perform internal entity object recognition and file rewriting for each acoustic metamaterial model, and export each entity object in the acoustic metamaterial model as a separate mesh model file for storage; wherein each mesh model file records and stores geometric information of a entity object.

[0083] The point cloud file generation module is used to discretize, reconstruct the voxel surface, and append the material physical parameter information to the mesh model file of each entity object in the acoustic metamaterial model in turn, so as to construct a point cloud file of each acoustic metamaterial model; wherein a point cloud file records and stores the geometric information and material physical parameter information of each entity object in an acoustic metamaterial model.

[0084] The database file organization module is used to construct a general database of acoustic metamaterials based on the grid model files and point cloud files corresponding to each acoustic metamaterial model and the sound absorption coefficient table of the acoustic metamaterial model calculated by the simulation modeling software.

[0085] For the specific definition of the acoustic metamaterial universal database construction device, please refer to the definition of the acoustic metamaterial universal database construction method above, which will not be repeated here. Each module in the above-mentioned acoustic metamaterial universal database construction 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.

[0086] 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 constructing a universal database of acoustic metamaterials 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.

[0087] 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.

[0088] 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:

[0089] Generate acoustic metamaterial models in batches through modeling software, and export all acoustic metamaterial models in the form of triangular mesh model files for storage;

[0090] For each acoustic metamaterial model, internal entity object identification and file rewriting are first performed, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage; wherein each mesh model file records and stores the geometric information of a entity object;

[0091] Then, the mesh model file of each entity object in the acoustic metamaterial model is discretized, the voxel surface is reconstructed, and the material physical parameter information is added in sequence to construct a point cloud file of each acoustic metamaterial model; wherein a point cloud file records and stores the geometric information and material physical parameter information of each entity object in an acoustic metamaterial model;

[0092] Based on the grid model files and point cloud files corresponding to each acoustic metamaterial model and the sound absorption coefficient table of the acoustic metamaterial model calculated by simulation modeling software, a general database of acoustic metamaterials is constructed.

[0093] 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.

[0094] 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 constructing a universal database of acoustic metamaterials, characterized in that: The method comprises: Generate acoustic metamaterial models in batches through modeling software, and export all acoustic metamaterial models in the form of triangular mesh model files for storage; For each acoustic metamaterial model, internal entity object identification and file rewriting are first performed, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage; wherein each mesh model file records and stores the geometric information of a entity object; Then, the mesh model file of each entity object in the acoustic metamaterial model is discretized, the voxel surface is reconstructed, and the material physical parameter information is added in sequence to construct a point cloud file of each acoustic metamaterial model; wherein a point cloud file records and stores the geometric information and material physical parameter information of each entity object in an acoustic metamaterial model; Based on the grid model files and point cloud files corresponding to each acoustic metamaterial model and the sound absorption coefficient table of the acoustic metamaterial model calculated by simulation modeling software, a general database of acoustic metamaterials is constructed.

2. The method according to claim 1, characterized in that The file organization form of the acoustic metamaterial general database consists of a parent folder, a directory and a subdirectory; a plurality of directories are created under the parent folder, each directory corresponds to an acoustic metamaterial, and three subdirectories are created under each directory, which correspond to a grid model file, a point cloud file and a sound absorption coefficient table recording an acoustic metamaterial model.

3. The method according to claim 1, characterized in that Generate acoustic metamaterial models in batches through modeling software, and export all acoustic metamaterial models in the form of triangular mesh model files for saving, including: Acoustic metamaterial models are generated in batches through the parametric control method of Blender software, and all acoustic metamaterial models are exported and saved in the form of triangular mesh model files in obj format; 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.

4. The method according to claim 3, characterized in that: For each acoustic metamaterial model, firstly, internal entity object identification and file rewriting are performed, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage, including: For each acoustic metamaterial model, each line of content in a triangular mesh model file identifying the acoustic metamaterial model is first read 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; Secondly, 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 recorded and stored based on the sub-lists; 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; Finally, the geometric features of the entity objects recorded and stored in each sub-list are indexed in sequence, and for each entity object, the geometric feature index compiled for the entity object is corrected based on the total number of geometric features of all entity objects before the entity object to obtain a corrected geometric feature index, and each entity object in the acoustic metamaterial model is exported as a separate mesh model file for storage based on the corrected geometric feature index.

5. The method according to claim 4, characterized in that 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, 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 indexes of the entity object; 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.

6. The method according to claim 5, characterized in that The mesh model file of each entity object in the acoustic metamaterial model is discretized, the voxel surface is reconstructed, and the material physical parameter information is added in sequence to construct a point cloud file of each acoustic metamaterial model, including: For each acoustic metamaterial model, the mesh model file of each entity object in the acoustic metamaterial model 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, and 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; Calculating the vertex coordinates of the face element after the discrete transformation of each entity object according to the scaling factor, and obtaining a triangular mesh unit representation of each entity object in the discretized three-dimensional voxel space based on the vertex coordinates of the face element after the discrete transformation, and reconstructing the voxel surface of each triangular mesh unit representation using an open source algorithm to obtain a complete acoustic metamaterial model surface; On the basis of obtaining a complete acoustic metamaterial model surface, the material physical parameter information of each entity object is further added 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, and the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file.

7. The method according to claim 6, characterized in that The method further comprises: When performing internal entity object recognition and file rewriting, a digital identifier is added to each entity object according to the modeling order of the internal entity objects when the modeling software generates the acoustic metamaterial model; On the basis of obtaining a complete acoustic metamaterial model surface, 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 sequentially added and integrated into the discretized three-dimensional voxel space coordinate points, 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.

8. The method according to claim 1, characterized in that The acoustic metamaterial universal database performs file management interaction based on a dictionary file, and the dictionary file is composed of key-value pairs, and all files in the acoustic metamaterial universal database are queried and accessed through key-value pairs for management interaction; wherein the key includes the configuration of the acoustic metamaterial, the material type, the number of material phases, the point cloud file path and the sound absorption coefficient table path, and the value is the specific data information corresponding to each key.

9. A device for constructing a universal database of acoustic metamaterials, characterized in that: The device comprises: The model generation and export module is used to generate acoustic metamaterial models in batches through modeling software, and export all acoustic metamaterial models in the form of triangular mesh model files for storage; The entity object recognition module is used to first perform internal entity object recognition and file rewriting for each acoustic metamaterial model, and export each entity object in the acoustic metamaterial model as a separate mesh model file for storage; wherein each mesh model file records and stores geometric information of a entity object; The point cloud file generation module is used to sequentially discretize, reconstruct the voxel surface, and append the material physical parameter information to the mesh model file of each entity object in the acoustic metamaterial model, so as to construct a point cloud file of each acoustic metamaterial model; wherein a point cloud file records and stores the geometric information and material physical parameter information of each entity object in an acoustic metamaterial model; The database file organization module is used to construct a general database of acoustic metamaterials based on the grid model files and point cloud files corresponding to each acoustic metamaterial model and the sound absorption coefficient table of the acoustic metamaterial model calculated by the simulation modeling software.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Building method of acoustic material CAE simulation parameter database

    CN107563063A

  • Method for generating point cloud model based on two-phase composite material mesoscopic model

    CN107886464A

  • multi-physics field CAE modeling method based on knowledge reuse

    CN109766641A

  • Design aid method and design aid device for metallic material

    US20220083700A1

Cited By

  • Reverse design method, device and equipment of material structure and storage medium

    CN121565342A