Acoustic metamaterial database management method, device and equipment

By constructing the three-dimensional spatial feature aggregation and dictionary file management of acoustic metamaterials, the problems of insufficient characterization information and complex database use in the existing technology are solved, and a comprehensive description of the multi-configuration and multi-phase characteristics of acoustic metamaterials are realized. and simple and fast database management extends the configuration range of the data set and supports performance evaluation and design of acoustic metamaterials.

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

Patent Information

Application Number
CN202411284397.1
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 existing technology is difficult to effectively 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 the use of existing database tools is complex, making it difficult to achieve small and medium-sized scale. Simple and quick data management.

Method used

By constructing a three-dimensional spatial feature aggregation characterization of acoustic metamaterials, creating a general database using grid model files and point cloud files, combining dictionary files for database management interaction and data set generation, supporting the multi-configuration and polyphase characteristics of acoustic metamaterials A complete description of the information and reduces the complexity of database management.

Benefits of technology

A comprehensive description of the multi-configuration and multi-phase state feature information of acoustic metamaterials is realized, the configuration scope of the data set is expanded, the database management process is simplified, the database is improved, the scalability and flexibility of the database is supported, and the cross-configuration is supported. Data management provides strong data support for performance evaluation and design of acoustic metamaterials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201894A_ABST
    Figure CN119201894A_ABST
Patent Text Reader

Abstract

The invention relates to an acoustic metamaterial database management method, device and equipment. The method comprises the following steps: constructing an acoustic metamaterial universal database based on grid model files and point cloud files corresponding to various acoustic metamaterial models and an acoustic absorption coefficient table of the acoustic metamaterial models obtained by calculation through simulation modeling software; in the acoustic metamaterial universal database, the configuration, the material type, the material phase state number, the point cloud file path and the sound absorption coefficient table path of the acoustic metamaterial serve as keys, specific data information corresponding to the keys serve as values, and a dictionary file is created based on key-value pairs; and querying and accessing used files in the acoustic metamaterial universal database through key value pairs in the dictionary file, and performing database management interaction and data set generation. By adopting the method, the acoustic metamaterial three-dimensional space feature aggregation characterization can be realized, a universal database is constructed by taking the three-dimensional space feature aggregation characterization as a support, a database interaction function is developed, and simple and rapid database management is 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 an acoustic metamaterial database management method, device and equipment. Background Art

[0002] Acoustic metamaterials are a class of artificially designed materials with special acoustic properties, and their ability to manipulate sound waves far exceeds that of conventional materials. The uniqueness of acoustic metamaterials lies in the precise design of their internal structure, which can enable them to exhibit unconventional acoustic responses, such as negative refraction, superlens, and invisible cloak effects. These properties make acoustic metamaterials have broad application prospects in noise control, acoustic imaging, acoustic stealth, and other acoustic engineering fields.

[0003] Acoustic metamaterials have the characteristics of multi-configuration and multi-phase, and usually contain two or more types of materials. The acoustic properties of these materials not only depend on the intrinsic properties of their constituent materials, but are also closely related to the geometric morphology and arrangement of their internal structures. Therefore, accurate characterization of the structure of acoustic metamaterials is crucial for their design and optimization. At present, when constructing machine learning algorithm input data, researchers mostly use parameters, images and other methods to characterize the topological structure of acoustic metamaterials. Such traditional characterization methods can reflect the macroscopic properties of acoustic metamaterials to a certain extent, but cannot characterize the multi-phase and multi-configuration characteristic information of acoustic metamaterials, and will also lead to information loss caused by over-simplification of input. In addition, the data set covers a limited range of configurations, which hinders the establishment of a general characterization method. 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 on material data sets of specific configurations, making it difficult to achieve disruptive and innovative cross-configuration reverse design. The lack of an acoustic metamaterial database also restricts the design space of intelligent algorithms.

[0004] Moreover, although existing database tools provide powerful functional support, it takes a lot of time for users to learn how to use such tools effectively, and for small and medium-sized tasks, using such tools is too complicated. Therefore, for some small and medium-sized data, a simpler and faster way to manage the database is needed. 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] 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 the simulation modeling software, a general database of acoustic metamaterials is constructed; 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;

[0008] The configuration, material type, material phase number, point cloud file path and sound absorption coefficient table path of the acoustic metamaterial in the acoustic metamaterial general database are used as keys, and the specific data information corresponding to each key is used as the value, and a dictionary file is created based on the key-value pairs;

[0009] Through the key-value pairs in the dictionary file, all the files used in the acoustic metamaterials general database are queried and database management interaction and dataset generation are performed.

[0010] In one of the embodiments, the acoustic metamaterial models are generated in batches through the parametric control method of the Blender software, and all the acoustic metamaterial models are exported and saved in the form of a triangular mesh model file in the 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 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;

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

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

[0015] In one embodiment, the geometric features of the entity objects recorded and stored in each sub-list are indexed in order, and for each entity object, based on the total number of geometric features of all entity objects before the entity object, the geometric feature index compiled for the entity object is corrected to obtain a geometric feature correction index, 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:

[0016] According to the row number sequence of the starting row index of the entity object, the three types of geometric features of the vertex coordinates, normal vectors and texture coordinates of the entity object recorded and stored in each sublist are indexed to obtain the three types of geometric feature indexes of each entity object, and the face element of each entity object accesses the geometric feature data through the three types of geometric feature indexes;

[0017] For each entity object, the total number of 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;

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

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

[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 then performed based on the point cloud file.

[0023] In one embodiment, material physical parameter information of each entity object is added to construct a point cloud file that integrates geometric information and material physical parameter information of each entity object in the acoustic metamaterial model, and 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 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.

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

[0027] In one embodiment, querying through key-value pairs in a dictionary file, accessing all files in a general database of acoustic metamaterials, and performing database management interaction and data set generation include:

[0028] Based on the cmd library in Python, develop a command line interactive program and read the key-value pairs in the dictionary file. Use the key-value pairs to query and access all the files in the acoustic metamaterials universal database, and use the command line input to interact with the acoustic metamaterials universal database for database management.

[0029] In Python, take 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 the form of a list;

[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, the device comprising:

[0032] A database construction module is used to construct a general database of acoustic metamaterials 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 the simulation modeling software; wherein the grid model file is used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud file is 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 configuration, material type, material phase number, point cloud file path, and sound absorption coefficient table path of the acoustic metamaterial 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 used in the acoustic metamaterial general database through key-value pairs in the dictionary file and to perform database management interaction and data set generation.

[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] 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 the simulation modeling software, a general database of acoustic metamaterials is constructed; 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;

[0037] The configuration, material type, material phase number, point cloud file path and sound absorption coefficient table path of the acoustic metamaterial in the acoustic metamaterial general database are used as keys, and the specific data information corresponding to each key is used as the value, and a dictionary file is created based on the key-value pairs;

[0038] Through the key-value pairs in the dictionary file, all the files used in the acoustic metamaterials general database are queried and database management interaction and dataset generation are performed.

[0039] The above-mentioned acoustic metamaterial database management method, device and equipment first construct an acoustic metamaterial general database covering 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 entity 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 is also possible to integrate the geometric information of the entity 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 general 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 general 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 is a schematic diagram of a flow chart of a method for managing an acoustic metamaterial database in one embodiment;

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

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

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

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

[0045] It should be further explained that the database management method provided in this application has a wide range of applicability and is not limited to the application of acoustic metamaterials. It can also be effectively applied to other types of metamaterials, such as mechanical metamaterials, electromagnetic metamaterials, and optical metamaterials. In different metamaterial fields, the method proposed in this application can provide a flexible and efficient database management solution for the research and development of various metamaterials. In the following, we will take acoustic metamaterials as an example for 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 an acoustic metamaterial general 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 the simulation modeling software; wherein the mesh model file is used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud file is used to record and store the geometric information and material physical parameter information of each entity object in the acoustic metamaterial model.

[0048] Among them, the acoustic metamaterial model is generated in batches through the parametric control method of the Blender software, and all acoustic metamaterial models are exported and saved in the form of a triangular mesh model file in the 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. Furthermore, the Blender software supports Python script compilation. In Python, enter the path of the triangular mesh model file in the obj format exported by the Blender software, open the file, and return each line of the file in a list form for subsequent processing.

[0049] As a 3D graphics software, Blender is suitable for modeling, rendering, animation and other fields. It supports script-controlled modeling and the export of obj format mesh files. The mesh file contains the geometric information of all entity objects inside the structural model, including vertex coordinates, texture coordinates, normal vectors, face elements, etc. The face elements access three geometric features through index positioning. The mesh file can not only display the model structure through the 3D viewer, but also be opened in text format and read through programming languages, which is convenient for subsequent data conversion processing and the establishment of material structure characterization methods.

[0050] The generation process of the mesh model file includes:

[0051] First, for each acoustic metamaterial model, each line of the triangular mesh model file identifying the acoustic metamaterial model is read in a list format to obtain the starting line index of all entity objects in the acoustic metamaterial model; wherein, when the triangular mesh model file records the information of the acoustic metamaterial model, each entity object in the acoustic metamaterial model is identified with a starting line index, and the geometric information of each entity object is recorded starting from its starting line index until the starting line index of the next entity object. Specifically, Figure 2 As shown in the figure, when the triangular mesh model file records the information of the acoustic metamaterial model, each entity object is recorded with a line of content starting with the starting line index "o". "o cube" means that from this line on, the following geometric information represents this cube until the next entity object is encountered. Therefore, by judging each line of content in the original list, the starting line index of all entity objects can be obtained. Among them, Figure 2 Here, v represents vertex coordinates, vn represents normal vector, vt represents texture coordinates, f represents face element, s represents smooth group, and usemt1 represents material.

[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, namely 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 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.

[0054] Specifically, when correcting the index and exporting the mesh model file: first, 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. 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.

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

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

[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, 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.

[0061] Then, the vertex coordinates of the face elements of each solid object after discrete transformation are calculated according to the scaling factor, and based on the vertex coordinates of the face elements after discrete transformation, the triangular mesh unit representation of each solid object in the discretized three-dimensional voxel space is obtained. The open source algorithm is used to reconstruct the voxel surface of each triangular mesh unit representation to obtain the complete acoustic metamaterial model surface.

[0062] Finally, when generating the mesh model file of each entity object, a digital identifier is added to each entity object according to the modeling order of the internal entity objects when the 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 is constructed 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.

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

[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 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 metamaterials general database shown contains ten directories.

[0065] Step S2, 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, to create a dictionary file based on the key-value pairs.

[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 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, querying and accessing all the files in the acoustic metamaterial general database through the key-value pairs in the dictionary file, and performing database management interaction and data set generation.

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

[0069] Based on the cmd library (a library for command line interpreters) 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 metamaterials general database through the key-value pairs, and interact with the acoustic metamaterials general database for database management through command line input. Specifically, based on cmd, basic functions such as adding, querying, listing, deleting, and saving can be designed and developed, realizing the query of data items in the acoustic metamaterials general database and the generation of data sets based on tags, as well as the user's rapid customized update of data sets.

[0070] In Python, the dictionary file is used as input, and 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 based on the dictionary file query, and returned in the form of a list.

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

[0073] In one embodiment, a device for managing an acoustic metamaterial database is provided, comprising:

[0074] The database construction module is used to construct 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 table of the acoustic metamaterial model calculated by the simulation modeling software; wherein the grid model file is used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud file is 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 configuration, material type, material phase number, point cloud file path and sound absorption coefficient table path of the acoustic metamaterial 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 used in the acoustic metamaterial general database through key-value pairs in the dictionary file and to perform database management interaction and data set generation.

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

[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 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 managing an acoustic metamaterial database 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.

[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 those shown in the figure, or combine certain components, or have a different arrangement of components.

[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] 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 the simulation modeling software, a general database of acoustic metamaterials is constructed; 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;

[0082] The configuration, material type, material phase number, point cloud file path and sound absorption coefficient table path of the acoustic metamaterial in the acoustic metamaterial general database are used as keys, and the specific data information corresponding to each key is used as the value, and a dictionary file is created based on the key-value pairs;

[0083] Through the key-value pairs in the dictionary file, all the files used in the acoustic metamaterials general database are queried and database management interaction and dataset generation are performed.

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

[0085] 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 construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements may 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 managing an acoustic metamaterial database, characterized in that: The method comprises: 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 the simulation modeling software, a general database of acoustic metamaterials is constructed; wherein the grid model file is used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud file is 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 specific data information corresponding to each key as values, to create a dictionary file based on key-value pairs; Through the key-value pairs in the dictionary file, all the 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 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 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 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.

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 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.

5. The method according to claim 1, characterized in that The point cloud file generation process 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 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.

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, 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 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.

8. The method according to claim 1, characterized in that Querying and accessing all files in the acoustic metamaterial general 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 used files 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, obtaining the storage path of the point cloud file and the storage path of the sound absorption coefficient table in the acoustic metamaterial general database based on the dictionary file query, and returning them in the form of a list; 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 an acoustic metamaterial general 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 the simulation modeling software; wherein the grid model file is used to record and store the geometric information of the entity objects in the acoustic metamaterial model, and the point cloud file is 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 is used to create a dictionary file based on key-value pairs by 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 to 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, 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

  • 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

Cited By

  • Hydraulic simulation data construction method and device

    CN121682942A