Acoustic metamaterial database management method, device and equipment
By constructing a universal database for acoustic metamaterials, using grid models and point cloud files to record geometric information and material parameters, and combining it with dictionary file management, we solved the problem of characterizing the multiphase and multi-configuration characteristics of acoustic metamaterials, achieved simple and fast database management and dataset generation, and improved the scalability and flexibility of the database.
Patent Information
- Application Number
- CN202411284397.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2044-09-13
AI Technical Summary
Existing technologies make it difficult to accurately characterize the multi-phase and multi-configuration characteristics of acoustic metamaterials, resulting in information loss and limited database coverage. In addition, existing database tools are complex to use, making it difficult to achieve simple and fast management of small and medium-scale tasks.
By constructing a universal database of acoustic metamaterials, using mesh model files and point cloud files to record geometric information and material physical parameters, and combining dictionary files for key-value pair management, simple and fast database interaction and dataset generation can be achieved.
It achieves a comprehensive description of the multi-configuration and multi-phase characteristics of acoustic metamaterials, avoids information loss, expands the coverage of the data set, simplifies database management, improves scalability and flexibility, and supports performance evaluation and design.
Smart Images

Figure CN119201894B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of acoustic metamaterial data characterization, and in particular to a method, apparatus, and device for managing an acoustic metamaterial database. Background Art
[0002] Acoustic metamaterials are artificially engineered materials with unique acoustic properties, enabling them to manipulate sound waves far beyond the capabilities of conventional materials. Their uniqueness lies in the precision engineering of their internal structures, which enables them to exhibit unconventional acoustic responses, such as negative refraction, superlenses, and invisibility cloaking effects. These properties hold great promise for applications in noise control, acoustic imaging, acoustic stealth, and other acoustic engineering fields.
[0003] Acoustic metamaterials are multi-configurational and multi-phase, typically comprising two or more material types. The acoustic properties of these materials depend not only on the intrinsic properties of their constituent materials but also on the geometry and arrangement of their internal structures. Therefore, accurately characterizing the structure of acoustic metamaterials is crucial for their design and optimization. Currently, when constructing input data for machine learning algorithms, researchers mostly use parameters and images to characterize the topology of acoustic metamaterials. While these traditional characterization methods can reflect the macroscopic properties of acoustic metamaterials to a certain extent, they cannot capture the multi-phase and multi-configurational characteristics of acoustic metamaterials. They also lead to information loss due to oversimplification of the inputs, and the limited configuration coverage of the datasets hinders the development of universal characterization methods. Furthermore, due to the lack of universal databases for acoustic metamaterial performance evaluation and design, existing algorithms often learn and generate data sets based on material datasets of specific configurations, making it difficult to achieve disruptive cross-configuration reverse design. The lack of a universal database for acoustic metamaterials also restricts the design space for intelligent algorithms.
[0004] Furthermore, while existing database tools offer powerful functional support, they require significant time to learn how to effectively use them, and are often overly complex for small- to medium-scale tasks. Therefore, a simpler and faster approach to database management is needed for small- to medium-scale data. Summary of the Invention
[0005] Based on this, it is necessary to provide an acoustic metamaterial database management method, device and equipment to address the above technical problems. While realizing the three-dimensional spatial feature aggregation representation of acoustic metamaterials, it is necessary to use this as a support to build a general database and develop database interaction functions to achieve simple and fast database management.
[0006] A method for managing an acoustic metamaterial database, the method comprising:
[0007] A general acoustic metamaterial database is constructed based on the mesh model files and point cloud files corresponding to various acoustic metamaterial models, as well as the sound absorption coefficient tables of the acoustic metamaterial models calculated by simulation modeling software. The mesh model files are used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud files are used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model.
[0008] Create a dictionary file based on the key-value pairs using the acoustic metamaterial configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path in the acoustic metamaterial general database as keys and the specific data information corresponding to each key as values;
[0009] Through the key-value pairs in the dictionary file, all files in the acoustic metamaterial general database are queried and accessed, and database management interaction and dataset generation are performed.
[0010] In one embodiment, acoustic metamaterial models are generated in batches through parametric control 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.
[0011] In one embodiment, the process of generating the mesh model file includes:
[0012] For each acoustic metamaterial model, each line of content in the triangular mesh model file that identifies the acoustic metamaterial model is first read in list form to obtain the starting row index of all entity objects in the acoustic metamaterial model. When the triangular mesh model file records the information of the acoustic metamaterial model, each entity object within the acoustic metamaterial model is identified by 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 is reached.
[0013] Secondly, the original list is divided into multiple sublists based on the starting row index of each entity object. The geometric information of each entity object is stored in the sublists. The number of sublists is the same as the number of entity objects. The geometric information of the entity objects includes three types of geometric features: vertex coordinates, normal vectors, and texture coordinates, as well as facet information.
[0014] Finally, the geometric features of the entity objects recorded and stored in each sublist 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 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.
[0015] In one embodiment, geometric features of entity objects recorded and stored in each sublist 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 preceding 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, including:
[0016] Indexing the three types of geometric features of the entity objects recorded and stored in each sublist, namely, vertex coordinates, normal vectors, and texture coordinates, according to the row number order 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;
[0017] 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 calculated by cumulative summation, and the total number of geometric features of the corresponding category is subtracted from the three types of geometric feature index compiled for the entity object to obtain the three types of geometric feature correction index of the entity object;
[0018] 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.
[0019] In one embodiment, the process of generating a point cloud file includes:
[0020] 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 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 fixed size, and the scaling factor of the entity object recorded and stored in each mesh model file is obtained;
[0021] The vertex coordinates of the facets after the discrete transformation of each solid object are calculated according to the scaling factor. Based on the vertex coordinates of the facets after the discrete transformation, the triangular mesh unit representation of each solid object in the discretized three-dimensional voxel space is obtained. The voxel surface of each triangular mesh unit representation is reconstructed using an open source algorithm to obtain the complete acoustic metamaterial model surface.
[0022] 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 performed based on the point cloud file.
[0023] In one embodiment, the material physical parameter information of each entity object is 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 a three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed based on the point cloud file, including:
[0024] When generating a mesh model file for each entity object, 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;
[0025] 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 is constructed 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 performed based on the point cloud file.
[0026] In one embodiment, the file organization format of the acoustic metamaterial general database consists of a parent folder, a directory, and a subdirectory; multiple directories are created under the parent folder, each directory corresponds to an acoustic metamaterial, and three subdirectories are created under each directory, corresponding to a mesh model file, a point cloud file, and a sound absorption coefficient table that record the acoustic metamaterial model.
[0027] In one embodiment, querying and accessing all files in the acoustic metamaterial general database through key-value pairs in a dictionary file and performing database management interaction and data set generation include:
[0028] Based on the cmd library in Python, a command line interactive program was developed to read the key-value pairs in the dictionary file. The key-value pairs were used to query and access the files used in the acoustic metamaterials universal database. The database management interaction with the acoustic metamaterials universal database was performed through command line input.
[0029] In Python, use the dictionary file as input, query the dictionary file to obtain the storage path of the point cloud file and the storage path of the sound absorption coefficient table in the acoustic metamaterial general database, and return them in list form;
[0030] By inheriting the PyTorch Dataset class method, taking the storage path list as input, loading all data entries, and preprocessing the point cloud file, the digital identifier in the point cloud file is deleted, and only the spatial coordinates and material physical parameter information are retained to generate a PyTorch dataset object.
[0031] An acoustic metamaterial database management device, comprising:
[0032] A database construction module is used to construct a general acoustic metamaterial database based on the mesh model files and point cloud files corresponding to various acoustic metamaterial models and the sound absorption coefficient tables of the acoustic metamaterial models calculated by simulation modeling software. The mesh model files are used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud files are used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model.
[0033] A dictionary file creation module is used to create a dictionary file based on key-value pairs, using the acoustic metamaterial configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path in the acoustic metamaterial general database as keys and the specific data information corresponding to each key as values;
[0034] The management interaction module is used to query and access all files in the acoustic metamaterial general database through key-value pairs in the dictionary file and perform database management interaction and dataset generation.
[0035] A computer device includes 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] A general acoustic metamaterial database is constructed based on the mesh model files and point cloud files corresponding to various acoustic metamaterial models, as well as the sound absorption coefficient tables of the acoustic metamaterial models calculated by simulation modeling software. The mesh model files are used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud files are used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model.
[0037] Create a dictionary file based on the key-value pairs using the acoustic metamaterial configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path in the acoustic metamaterial general database as keys and the specific data information corresponding to each key as values;
[0038] Through the key-value pairs in the dictionary file, all files in the acoustic metamaterial general database are queried and accessed, and database management interaction and dataset generation are performed.
[0039] The above-mentioned acoustic metamaterial database management method, device and equipment first constructs an acoustic metamaterial general database covering the multi-configuration and multi-phase characteristic information of acoustic metamaterials by collecting grid model files, point cloud files and sound absorption coefficient tables corresponding to various acoustic metamaterial models. Among them, based on the grid model file, it is possible to accurately distinguish the physical objects of different structures inside the model and record the corresponding geometric information. Based on the point cloud file, it is possible to realize the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model. It can also fuse the geometric information of the physical object with the physical parameter information of the material to form a more comprehensive and detailed description of the metamaterial structure and performance, avoid the problem of information loss, ensure the integrity and diversity of the database input data, and expand the configuration range covered by the data set. Secondly, by creating a dictionary file based on various key-value pairs of data in the acoustic metamaterials universal database, all files in the database can be queried and accessed based on the dictionary file, and management interactions and data set generation can be performed. Compared with the existing technology, the design of the dictionary file not only reduces the complexity of use, making database management interactions simpler and faster, but also improves the scalability and flexibility of the acoustic metamaterials universal database, solves the problem of cross-configuration data loss, and provides strong data support for the performance evaluation and design of acoustic metamaterials. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 1 is a flow chart of a method for managing an acoustic metamaterial database in one embodiment;
[0041] Figure 2 A schematic diagram of part of the contents of an obj file exported by Blender software in one embodiment;
[0042] Figure 3 Schematic diagram of the file organization of the acoustic metamaterial general database in one embodiment;
[0043] Figure 4 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0045] It should be further noted that the database management method provided in this application has broad 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 method proposed in this application can provide a flexible and efficient database management solution for the research and development of various metamaterials. Below, we will use acoustic metamaterials as an example to provide a detailed introduction.
[0046] In one embodiment, Figure 1 As shown, a method for managing an acoustic metamaterial database is provided, comprising the following steps:
[0047] Step S1, constructing a general acoustic metamaterial database based on the mesh model files and point cloud files corresponding to various acoustic metamaterial models and the sound absorption coefficient table of the acoustic metamaterial model calculated by simulation modeling software; wherein the mesh model files are used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud files are used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model.
[0048] Acoustic metamaterial models are generated in batches using Blender's parametric control method. All models are exported and saved as triangular mesh model files in the obj (three-dimensional model file) format. These triangular mesh model files can be viewed and displayed in a 3D viewer, and can also be opened as text and read using programming languages. Furthermore, Blender supports Python script compilation. In Python, the path to the triangular mesh model file in the obj format exported by Blender is entered, the file is opened, and each line of the file is returned as a list for easy subsequent processing.
[0049] As a 3D graphics software, Blender is suitable for a variety of fields, including modeling, rendering, and animation. It supports script-controlled modeling and the export of mesh files in the obj format. Mesh files contain the geometric information of all entities within a structural model, including vertex coordinates, texture coordinates, normal vectors, and facets. Facets access these three geometric features through indexing. Mesh files can not only display the model structure in a 3D viewer, but can also be opened as text and read using programming languages, facilitating subsequent data conversion and the development of material structure characterization methods.
[0050] The process of generating the mesh model file includes:
[0051] First, for each acoustic metamaterial model, each line of the triangular mesh model file that identifies the acoustic metamaterial model is read in a list format 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. Specifically, Figure 2 As shown in the figure, when recording the information of the acoustic metamaterial model, the triangular mesh model file records each entity object 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 the content of each line in the original list, the starting line index of all entity objects can be obtained. Figure 2 Where v represents the vertex coordinate, vn represents the normal vector, vt represents the texture coordinate, f represents the face element, s represents the smoothing group, and usemt1 represents the material.
[0052] 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: vertex coordinates, normal vectors and texture coordinates, as well as face information.
[0053] Finally, the geometric features of the entity objects recorded and stored in each sublist 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 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.
[0054] Specifically, when correcting the index and exporting the mesh model file: first, index 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 according to the row number order of the entity object's starting row index, and obtain the three types of geometric feature indexes of each entity object. The face element of each entity object accesses the geometric feature data through the three types of geometric feature indexes. Specifically, if 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.
[0055] Furthermore, since the next entity object encountered during indexing will continue to count down, and the geometric feature index must start from 1 when the grid model file is read and written independently, before rewriting the file, the beginning of the line (that is, the starting line index of the entity object) is first determined to distinguish the geometric features recorded in the line content, and then all the geometric features of each entity object in the original file are counted.
[0056] 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.
[0057] 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.
[0058] It can be understood that after distinguishing and identifying the various entity objects inside the acoustic metamaterial model, further compiling the correction index and file rewriting export 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 the problems of information confusion and data loss, and providing a high-quality data foundation for subsequent analysis and simulation.
[0059] The point cloud file generation process includes:
[0060] First, 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. The maximum side length of the entity object in a certain direction in three-dimensional space recorded and stored in each mesh model file is selected as its size. Based on the size ratio, each mesh model file is discretized into a fixed-size three-dimensional voxel space 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.
[0061] Then, the vertex coordinates of the face elements after the discrete transformation of each solid object are calculated according to the scaling factor. Based on the vertex coordinates of the face elements after the 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 applied to reconstruct the voxel surface of each triangular mesh unit representation to obtain the complete acoustic metamaterial model surface.
[0062] Finally, when generating the mesh model file for each entity object, a digital identifier is added to each entity object based on the modeling order of the internal entity objects when the modeling software generates the acoustic metamaterial model. After 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 points, thereby constructing a point cloud file that integrates the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model. Based on the point cloud file, the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed.
[0063] It can be understood that after all the entity objects within an acoustic metamaterial model are converted into separate mesh model files and exported and saved, each mesh model file is further discretized, voxel surface reconstructed, and material physical parameter information is added in turn. Among them, the discretization processing 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 that 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.
[0064] Furthermore, the file organization format of the acoustic metamaterials 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 mesh model file, point cloud file, and sound absorption coefficient table that record the acoustic metamaterial model. Specifically, Figure 3 The file organization of the acoustic metamaterial general database shown contains ten directories.
[0065] Step S2: Create a dictionary file based on the key-value pairs, using the acoustic metamaterial configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path in the acoustic metamaterial general database as keys and the specific data information corresponding to each key as values.
[0066] 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 the 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.
[0067] Step S3: query and access all files in the acoustic metamaterial general database through the key-value pairs in the dictionary file, and perform database management interaction and data set generation.
[0068] The specific implementation process of step S3 includes:
[0069] Based on the Python library cmd (a library for command-line interpreters), a command-line interactive program was developed to read key-value pairs from a dictionary file. This allowed for querying and accessing all files in the Acoustic Metamaterials Universal Database through key-value pairs, and for database management interaction with the database through command-line input. Specifically, based on cmd, basic functions such as adding, querying, listing, deleting, and saving were designed and developed. This enabled querying data entries in the Acoustic Metamaterials Universal Database and generating datasets based on tags, as well as rapid, customized updates of datasets by users.
[0070] In Python, a dictionary file is used as input. Based on the dictionary file query, the storage path of the point cloud file and the storage path of the sound absorption coefficient table in the acoustic metamaterial general database are obtained and returned in list form.
[0071] By inheriting the PyTorch Dataset class method, taking the storage path list as input, loading all data entries, and preprocessing the point cloud file, the digital identifier in the point cloud file is deleted, and only the spatial coordinates and material physical parameter information are retained to generate a PyTorch dataset object.
[0072] It can be understood that this application is based on the acoustic metamaterial feature fusion method and generates a universal database of acoustic metamaterials through parametric modeling, which solves the problem of cross-configuration database loss. It also manages the database through dictionary files and develops a data interaction program that 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. Moreover, with the dictionary file as input, the data entries contained in the dictionary file can be quickly encapsulated as a PyTorch dataset object. Furthermore, by loading the dataset through the Dataloader, the dataset can be encapsulated as an iterable data object for machine learning algorithm training.
[0073] In one embodiment, a device for managing an acoustic metamaterial database is provided, comprising:
[0074] The database construction module is used to build a general acoustic metamaterial database based on the grid model files and point cloud files corresponding to various acoustic metamaterial models and the sound absorption coefficient tables of the acoustic metamaterial models calculated by simulation modeling software; among them, the grid model files are used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud files are used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model.
[0075] The dictionary file creation module is used to create a dictionary file based on key-value pairs, using the acoustic metamaterial configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path in the acoustic metamaterial general database as keys and the specific data information corresponding to each key as values.
[0076] The management interaction module is used to query and access all files in the acoustic metamaterial general database through key-value pairs in the dictionary file and perform database management interaction and dataset generation.
[0077] The specific definitions of the acoustic metamaterial database management device can be found in the definitions of the acoustic metamaterial database management method described above and will not be repeated here. Each module in the aforementioned acoustic metamaterial database management device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of these modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a computer device memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0078] 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 4As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. 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 via a network connection. When the computer program is executed by the processor, an acoustic metamaterial database management method 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 provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0079] 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 shown in the figure, or combine certain components, or have a different component arrangement.
[0080] 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:
[0081] A general acoustic metamaterial database is constructed based on the mesh model files and point cloud files corresponding to various acoustic metamaterial models, as well as the sound absorption coefficient tables of the acoustic metamaterial models calculated by simulation modeling software. The mesh model files are used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud files are used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model.
[0082] Create a dictionary file based on the key-value pairs using the acoustic metamaterial configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path in the acoustic metamaterial general database as keys and the specific data information corresponding to each key as values;
[0083] Through the key-value pairs in the dictionary file, all files in the acoustic metamaterial general database are queried and accessed, and database management interaction and dataset generation are performed.
[0084] The technical features of the above embodiments can 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.
[0085] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for managing an acoustic metamaterial database, characterized in that: The method comprises: A general acoustic metamaterial database is constructed based on the mesh model files and point cloud files corresponding to various acoustic metamaterial models, as well as the sound absorption coefficient tables of the acoustic metamaterial models calculated by simulation modeling software; wherein the mesh model files are used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud files are used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model; Using the acoustic metamaterial configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path in the acoustic metamaterial general database as keys and the specific data information corresponding to each key as values, a dictionary file is created based on the key-value pairs; Through the key-value pairs in the dictionary file, all used files in the acoustic metamaterial universal database are queried and accessed, and database management interaction and data set generation are performed.
2. The method according to claim 1, characterized in that The acoustic metamaterial models are generated in batches using 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 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 a programming language.
3. The method according to claim 1, characterized in that The generation process of the grid model file includes: 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 list form to obtain the starting row index of all entity objects in the acoustic metamaterial model; wherein, when recording information of the acoustic metamaterial model in the triangular mesh model file, each entity object within the acoustic metamaterial model is identified by 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 is reached; Secondly, the original list is divided into multiple sublists based on the starting row index of each entity object, and the geometric information of each entity object is recorded and stored in the sublists. The number of sublists is the same as the number of entity objects. The geometric information of the entity objects includes three types of geometric features: vertex coordinates, normal vectors, and texture coordinates, as well as facet information. Finally, the geometric features of the entity objects recorded and stored in each sublist 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 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.
4. The method according to claim 3, characterized in that The geometric features of the entity objects recorded and stored in each sublist 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 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: Indexing the three types of geometric features of the entity objects recorded and stored in each sublist, namely, vertex coordinates, normal vectors, and texture coordinates, according to the row number order 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 calculated by cumulative summation, and the total number of geometric features of the corresponding category is subtracted from the three types of geometric feature index compiled for the entity object to obtain the three types of geometric feature correction index 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.
5. The method according to claim 1, characterized in that The process of generating the point cloud file includes: 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 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 fixed size, and the scaling factor of the entity object recorded and stored in each mesh model file is obtained; Calculating the vertex coordinates of the facets 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 facets after the discrete transformation, and applying an open source algorithm to perform voxel surface reconstruction on each triangular mesh unit representation 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. Based on the point cloud file, the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed.
6. The method according to claim 5, characterized in that Add the material physical parameter information of each entity object 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 perform a three-dimensional spatial feature aggregation representation of the acoustic metamaterial model based on the point cloud file, including: When generating a mesh model file for each entity object, 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. Based on the point cloud file, the three-dimensional spatial feature aggregation representation of the acoustic metamaterial model is performed.
7. The method according to claim 1, characterized in that The file organization of the acoustic metamaterial general database consists of a parent folder, a directory, and a subdirectory. Multiple directories are created under the parent folder, 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.
8. The method according to claim 1, characterized in that Querying and accessing all files in the acoustic metamaterial universal database through the key-value pairs in the dictionary file and performing database management interaction and data set generation include: Based on the cmd library in Python, a command line interactive program is developed to read the key-value pairs in the dictionary file, query and access the files used in the acoustic metamaterial universal database through the key-value pairs, and perform database management interaction with the acoustic metamaterial universal database through command line input; In Python, using the dictionary file as input, querying the dictionary file to obtain the storage path of the point cloud file and the storage path of the sound absorption coefficient table in the acoustic metamaterial general database, and returning them in a list form; By inheriting the PyTorch Dataset class method, taking the storage path list as input, loading all data entries, and preprocessing the point cloud file, the digital identifier in the point cloud file is deleted, and only the spatial coordinates and material physical parameter information are retained to generate a PyTorch dataset object.
9. An acoustic metamaterial database management device, characterized in that: The device comprises: A database construction module is used to construct a universal acoustic metamaterial database based on the grid model files and point cloud files corresponding to various acoustic metamaterial models and the sound absorption coefficient table of the acoustic metamaterial model calculated by simulation modeling software; wherein the grid model files are used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud files are used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model; a dictionary file creation module for creating a dictionary file based on key-value pairs, using the acoustic metamaterial configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path in the acoustic metamaterial general database as keys and specific data information corresponding to each key as values; A management interaction module is used to query and access all used files in the acoustic metamaterial universal database through the key-value pairs in the dictionary file and perform database management interaction and data set generation.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: 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
Intelligent reverse design method for sound absorption porous composite material
CN117831683A
Design assistance device, design assistance method, design assistance program, metamaterial information generation method, structure, and structure manufacturing method
WO2022080091A1