Header file generation method and device, electronic equipment and storage medium
By automating the identification and updating of header file generation methods, the problem of cumbersome and error-prone header file generation in existing technologies is solved. This achieves efficient, accurate, and standardized header file generation, with strong adaptability, meeting the high-efficiency simulation needs of enterprises.
Patent Information
- Application Number
- CN202511820998.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-04
- Publication Date
- 2026-02-27
AI Technical Summary
Existing header file generation methods are cumbersome, highly specialized, error-prone, and have low automation, failing to meet the efficient, reliable, and standardized R&D needs of modern enterprises.
By acquiring the simulation analysis type, mesh model file, and default parameter set selected by the user, an initial header file is generated using an automated recognition mechanism. The header file is then updated using preset recognition fields and import information, and finally, the target header file is generated through user interaction.
It achieves high efficiency, accuracy and automation in header file generation, reduces the professional background requirements of operators, ensures the correctness and completeness of header files, and improves the standardization level of the simulation process.
Smart Images

Figure CN121580665A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of simulation technology, and more specifically, to a header file generation method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the widespread application of computer simulation technology in the automotive industry, using simulation to replace or partially replace physical testing has become an industry trend, especially in the areas of noise, vibration, and ride comfort. The implementation of NVH simulation relies on two core input files: one is a mesh model file containing geometric and structural information, and the other is a header file containing all operating conditions, control, and solution settings. The quality of the header file directly determines the accuracy and reliability of the simulation results.
[0003] Currently, the industry mainly relies on two traditional methods when generating NVH simulation header files: one is to use commercial pre-processing software for setup assistance, which relies on software such as Altair HyperMesh and BETA CAE. Professional commercial preprocessing software like ANSA requires engineers to manually select and set parameters one by one through a complex graphical interface and wizards. While this method offers some guidance, its inherent drawbacks are significant: the process is tedious and inefficient, requiring numerous clicks and selections for each analysis item, making batch processing impossible; it demands high levels of expertise, requiring operators to deeply understand the specific physical meaning and setting methods of each parameter, resulting in a high technical threshold; and companies must bear high software licensing fees. Another approach is purely manual text editing, the most primitive method, where engineers directly write header files using a text editor. This method places extremely high demands on engineers, requiring them not only to be experts in the NVH field but also to be proficient in the specific solver's file format, syntax rules, and the precise usage of numerous keywords. Furthermore, this method is highly prone to errors; manually writing complex text files of thousands of lines is highly susceptible to spelling, formatting, or logical errors. Additionally, it lacks a real-time error checking mechanism during the writing process; errors can usually only be debugged and located after submission using the solver's error messages, which is time-consuming and labor-intensive.
[0004] In summary, existing header file generation methods generally suffer from core problems such as high specialization, cumbersome processes, susceptibility to errors, and low efficiency. More importantly, these methods heavily rely on the individual experience and skill level of engineers, making it difficult to standardize and regulate header file quality, and failing to meet the urgent needs of modern enterprises for efficient, reliable, and standardized R&D processes. Therefore, a new header file generation method is needed to address the problems of cumbersome processes, low accuracy, weak automation, and inconvenience in using existing header file writing techniques. Summary of the Invention
[0005] In view of this, embodiments of the present invention provide a header file generation method, apparatus, electronic device, and storage medium to solve the problems of cumbersome process, low accuracy, weak automation, and inconvenience in use in existing header file writing technologies.
[0006] One aspect of the present invention provides a header file generation method, the method comprising the following steps: The system retrieves the user-selected simulation analysis type, mesh model file, first default parameter set corresponding to the simulation analysis type, and import information corresponding to the simulation analysis type; the import information is determined based on the simulation analysis model. Based on the mesh model file and the first default dataset, generate an initial header file; Based on preset identification fields, the mesh model file is type-identified to obtain the model file type, and a second default parameter set is determined based on the model file type; Based on the second default parameter set and the import information, the initial header file is updated to obtain the updated header file; The updated header file is output, and the user's modification instructions for the updated header file are received; the updated header file is modified based on the modification instructions to obtain the target header file.
[0007] Another aspect of the present invention provides a header file generation apparatus, the apparatus comprising: The acquisition module is used to acquire the simulation analysis type selected by the user, the mesh model file, the first default parameter set corresponding to the simulation analysis type, and the import information corresponding to the simulation analysis type; the import information is determined based on the simulation analysis model. The generation module is used to generate an initial header file based on the mesh model file and the first default dataset; The determination module is used to identify the type of the mesh model file based on a preset identification field, obtain the model file type, and determine a second default parameter set based on the model file type; The update module is used to update the initial header file based on the second default parameter set and the import information to obtain an updated header file; The modification module is used to output the updated header file, receive user modification instructions for the updated header file, and modify the updated header file based on the modification instructions to obtain the target header file.
[0008] Another aspect of the present invention provides an electronic device, comprising: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the header file generation method described in any one of the above descriptions.
[0009] Another aspect of the present invention provides a computer-readable storage medium that, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the header file generation method described above.
[0010] This invention provides a header file generation method, apparatus, electronic device, and storage medium. It acquires the user-selected simulation analysis type, mesh model file, a first default parameter set corresponding to the simulation analysis type, and import information corresponding to the simulation analysis type. Based on the mesh model file and the first default dataset, it generates an initial header file. Based on preset recognition fields, it performs type recognition on the mesh model file to obtain the model file type. An automated type recognition mechanism is used, and a second default parameter set is accurately matched based on the recognition results, effectively avoiding oversights and errors caused by manual model type identification or manual parameter input. The second default parameter set is determined based on the model file type. This achieves "one-click" automatic filling of key simulation parameters, freeing engineers from tedious and repetitive manual settings and writing work, greatly shortening header file generation time, and significantly reducing the workload on operators. The system considers the professional background requirements of the operators; furthermore, based on the second default parameter set and imported information, the initial header file is updated to obtain an updated header file; by integrating imported information to generate complete working condition definitions, the technical correctness and completeness of the header file are ensured; furthermore, the updated header file is output, and user modification instructions for the updated header file are received; and based on the modification instructions, the updated header file is modified to obtain the target header file. User interaction (such as importing information and modification instructions) is introduced in key steps, which not only ensures that the header file generation conforms to enterprise and industry standards and improves the standardization level of the simulation process, but also retains the flexibility to meet specific analysis needs, forming a new working mode that is efficient, reliable and highly adaptable. This improves the accuracy, efficiency, automation and simplicity of header file generation, and thus improves the ease of use of the header file. Attached Figure Description
[0011] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0012] Figure 1 This is a flowchart illustrating a header file generation method according to an exemplary embodiment; Figure 2 This is a schematic diagram of a process for obtaining a mesh model file according to an exemplary embodiment; Figure 3 This is a schematic diagram of a process for obtaining import information corresponding to a simulation analysis type, according to an exemplary embodiment. Figure 4 This is a schematic diagram of a process for generating an initial header file according to an exemplary embodiment; Figure 5 This is a schematic diagram of a process for determining a model file type according to an exemplary embodiment; Figure 6 This is a schematic diagram of another process for obtaining a model file type, provided according to an exemplary embodiment; Figure 7 This is a schematic diagram of a header file generation apparatus provided according to an exemplary embodiment. Detailed Implementation
[0013] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0014] It should be noted that the terms "first," "second," etc., in the specification and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0015] Figure 1This is a flowchart illustrating a header file generation method according to an exemplary embodiment. This specification provides method operation steps as shown in the embodiments or flowcharts, but based on conventional or non-inventive labor, more or fewer operation steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual system or server product execution, the method can be executed in the order shown in the embodiments or drawings, or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Specifically, as shown... Figure 1 As shown, taking a cooking system as the executing entity, this application introduces an embodiment of a header file generation method. The method may include: S101: Obtain the simulation analysis type selected by the user, the mesh model file, the first default parameter set corresponding to the simulation analysis type, and the import information corresponding to the simulation analysis type.
[0016] In a specific embodiment, the simulation analysis types include common NVH (Noise, Vibration, and Harshness) analysis categories such as frequency response analysis, origin dynamic stiffness analysis, vibration transfer function analysis, noise transfer function analysis, nodal contribution analysis, wheel center transfer function analysis, and structural modal analysis. The mesh model file can be an input file generated by finite element preprocessing software for NVH simulation calculations. Optionally, the mesh model file is a digital model of a physical object (such as a whole vehicle, body-in-white, interior parts, acoustic cavity, etc.). The first default parameter set is a set of preset parameters strongly related to the simulation analysis type. Specifically, the first default parameter set is pre-stored in the system's knowledge base, including general parameters necessary for achieving this type of simulation but not dependent on the specific analysis object (mesh model). The imported information is determined based on the simulation analysis model. Specifically, the imported information mainly refers to the additional input data required to complete a specific analysis, most commonly the information of excitation points and response points, such as frequency response analysis and origin dynamic stiffness analysis, which all require imported information. Specifically, after starting the system, the user selects the simulation analysis type through the graphical user interface and obtains the corresponding mesh model file. When the user selects a specific analysis type, the system automatically retrieves the corresponding first default parameter set from the knowledge base. This parameter set covers the core parameters required to complete this type of analysis; for example, for frequency response analysis, it may include the frequency sweep range, default damping value, and output control flags. The system interface uses different background colors (e.g., yellow for general adjustable parameters, brown for critical parameters) to highlight the parameter input boxes, guiding the user's attention. Optionally, when the user selects a simulation analysis type, the system dynamically determines whether to enable the import function to import information and prompts the user. Optionally, after starting the system, the user can check "Vibration Transfer Function Analysis" from the checkbox list. The system then immediately retrieves the first default parameter set corresponding to this analysis type from the background knowledge base and initializes its display in the parameter area of the interface. Optionally, the frequency sweep range FREQ1 may be automatically set to "20, 1.0, The system uses a frequency range of 280 steps (starting at 20Hz, with a step size of 1Hz, for a total of 280 steps). The ID of the structural damping TABDMP1 is preset to 1000, and the output type is set to "ACCELERATION" by default. Simultaneously, based on the vibration transfer function analysis simulation type, the system determines that the required import type is information that needs to be imported. Therefore, the corresponding import button is activated on the interface, and a prompt is displayed. The user can then drag and drop the mesh model file named "Vehicle_TB_Model.fem" corresponding to the vibration transfer function analysis into the designated area of the system, which then loads the file.
[0017] Figure 2 This is a schematic diagram of a process for obtaining a mesh model file according to an exemplary embodiment. In an optional embodiment, such as... Figure 2 As shown, obtaining the mesh model file as described above can include: S201: Obtain the grid address mapping; S203: Determine the model address based on the correspondence between the required mesh model and the mesh address corresponding to the simulation analysis type; S205: Obtain the mesh model file based on the model address.
[0018] In one specific embodiment, the mesh address mapping is used to characterize the correspondence between mesh model files and mesh model addresses; optionally, the mesh address mapping can be a configuration file. The system obtains predefined mesh address mappings and associates the analysis type with the possible mesh model file paths or naming rules. Then, based on the required mesh model corresponding to the simulation analysis type selected by the user (e.g., a body-in-white model requires a BIW mesh, and vehicle vibration and noise analysis requires a TB model and a cavity mesh), and in conjunction with the mesh address mapping, one or more model addresses are determined. Finally, based on these model addresses, the system automatically locates and loads the mesh model files. Furthermore, the system also supports users manually specifying mesh model files through interactive methods such as direct input, file selection dialog boxes, or dragging and dropping files to a specified area.
[0019] In the above embodiments, by automatically matching type and address, errors that may be caused by manual search and input of paths are avoided, thus improving the accuracy and reliability of the operation. Moreover, the process does not require users to manually locate and select files, which significantly simplifies the operation steps and further improves the efficiency of header file generation. This method ensures a high degree of consistency between the referenced mesh model and the analysis intent, thus guaranteeing the scientificity and effectiveness of subsequent simulation calculations from the source. It is an important link in realizing full-process automation and intelligence.
[0020] Figure 3 This is a schematic diagram of a process for obtaining import information corresponding to a simulation analysis type, according to an exemplary embodiment. In an optional embodiment, such as... Figure 3 As shown, the import information for obtaining the simulation analysis type mentioned above can include: S301: Obtain the import type of the requirement; S303: Based on the simulation analysis type and the requirement import type, perform type matching and determine the type matching result; S305: If the type matching result indicates that the type matches, generate import prompt information and obtain the import information corresponding to the simulation analysis type.
[0021] In a specific embodiment, the requirement import type can be a simulation analysis type that requires imported information. Optionally, the simulation analysis process corresponding to the requirement import type heavily relies on the external excitation and response location, such as frequency response analysis, origin dynamic stiffness analysis, vibration transfer function analysis, noise transfer function analysis, etc. The essence of these analyses is to study the transfer characteristics from a specific excitation point to a specific response point, and therefore they are classified as requirement import types. When the system determines that this is the type, it will actively prompt and guide the user to complete the information import. Specifically, the system obtains the pre-stored requirement import types and performs type matching between the simulation analysis type and the requirement import type selected by the user to determine the type matching result. Then, when the type matching result indicates that the type matches, import prompt information is generated. Optionally, the import prompt information is not a simple pop-up window, but a contextual interface that integrates operation guidance. Its form can be a highlighted button, a pop-up data import wizard, or directly activating and marking the corresponding input area in the software interface. Furthermore, the user inputs the import information based on the import prompt information.
[0022] In an optional embodiment, the above-described import information generation process may include: Obtain the import format and import rules, and display the import format and import rules to the user so that the user can generate the import information based on the import rules and import format.
[0023] In a specific embodiment, the import format can be a system-predefined standardized format for regulating user-inputted information; the import rules can be validation standards used in conjunction with the import format to constrain the data values and logical validity of the imported information. Specifically, the system acquires the import format and import rules that match the simulation analysis type, integrates these formats and rules into a standardized template, such as a spreadsheet file containing specific column headers and data validation rules, and displays it to the user. The user generates or organizes data based on the standardized template and its embedded rules. Then, the system receives the raw data provided by the user based on the template through a graphical interface, and calls the built-in parser to perform format compliance and logical validity validation on the data, converting it into structured import information that the system can recognize and process.
[0024] In the above embodiments, the system automatically identifies the type of simulation analysis that requires imported information and proactively triggers a guided process, avoiding unnecessary user operations. By generating clear import prompts, it significantly reduces the user's operational difficulty and error probability, ensuring the integrity of the working condition definition. This design internalizes professional judgment into the system, improving automation while also considering operational accuracy and user experience.
[0025] S103: Generate the initial header file based on the mesh model file and the first default dataset.
[0026] In one specific embodiment, the system intelligently integrates the user-provided specific analysis object (mesh model file) with the general professional knowledge (first default dataset) of the selected simulation analysis type for the first time. Optionally, in this process, the system does not simply create a blank file, but actively calls the first default dataset that precisely matches the obtained simulation analysis type from the built-in parameter library that stores industry and enterprise standards. At the same time, the system will identify and read the user-provided mesh model file, use it as the physical carrier of the simulation, and the generation operation uses this mesh model as the object of action, and instantiates the parameter template in the first default dataset, thereby automatically writing an initial header file that conforms to the solver syntax specification and has a complete structure.
[0027] Figure 4 This is a schematic diagram of a process for generating an initial header file according to an exemplary embodiment. In an optional embodiment, such as Figure 4 As shown, the above method may further include: S401: Obtain quality inspection results; S403: Based on the quality inspection content, perform quality inspection on the mesh model file and obtain the quality inspection results; S405: If the quality check results indicate that there are no quality problems in the network model, generate the initial header file based on the mesh model file and the first default dataset.
[0028] In a specific embodiment, the quality check content can be a pre-defined set of rules and standards used to automatically verify the correctness and applicability of the mesh model file before simulation calculation. Optionally, the quality check content is to identify and report potential defects in the model in advance to avoid simulation failure or result distortion due to model problems. The quality check result is used to indicate whether there are quality problems in the mesh model file. Specifically, the system will obtain the quality check content from the built-in knowledge base. The check items comprehensively cover key dimensions such as material properties, element connection relationships, boundary conditions, specific parameters, and potential setting conflicts. Then, the system will perform a quality check on the mesh model file based on the quality check content. Optionally, this process is automatically executed in the background without user intervention. The system will compare the data in the mesh model with the built-in standard rules item by item and finally generate a structured quality check result. Only when the quality check result indicates that there are no quality problems in the mesh model will the system execute the step of generating the initial header file based on the qualified mesh model file and the first default parameter set.
[0029] In the above embodiments, before the simulation calculation begins, the system can automatically perform a standardization check on the mesh model, identify potential errors in key elements such as materials, connection relationships, and boundary conditions in advance, and remove the model verification step from the solver and advance it significantly, effectively avoiding solution failures or result distortions caused by model defects, and significantly reducing the debugging time in the later stage; by ensuring that the header file is generated based on a qualified model, the smoothness of the simulation process and the credibility of the results are guaranteed from the source, and the overall work efficiency is improved.
[0030] S105: Based on the preset identification fields, perform type identification on the mesh model file to obtain the model file type, and determine the second default parameter set based on the model file type.
[0031] In a specific embodiment, the preset identification field can be a set of key feature characters or rules pre-stored in the system for automatically identifying the type of mesh model file; the model file type can be the classification result obtained after automatically analyzing the mesh model file based on the preset identification rules; the second default parameter set can be a set of preset parameters strongly related to the model file type, specifically, key parameters strongly related to the physical properties of the model. Optionally, the second default parameter set may include parameters such as modal extraction range, frequency sweep range, and excitation curve; specifically, after forming the initial header file, the preset identification field is obtained, and then the type of the mesh model file is identified, thereby obtaining the model file type. Further, the second default parameter set corresponding to the model file type stored in the system is called based on the model file type.
[0032] Figure 5 This is a schematic flowchart illustrating a process for determining a model file type according to an exemplary embodiment. In an optional embodiment, the preset identification field includes a retrieval content field; such as... Figure 5 As shown above, based on preset recognition fields, the type of the mesh model file is identified, and the resulting model file type may include: S501: Obtain the correspondence between the model file content and content type corresponding to the mesh model file; S503: Based on the search content field, search the content of the model file to determine the first search result; and if the first search result indicates that the search content field exists in the content of the model file, determine that the content field exists; S505: Determine the model file type based on the existing correspondence between content fields and content types.
[0033] In a specific embodiment, the retrieval content field can be a key data segment identifier that is preset in the system and can characterize the features of the model type. Optionally, the retrieval content field can include solver sequence (SOL), multi-point constraint (MPC), unstructured quality (NSM), constraint (SPC), lumped quality (CONM2), etc. The content type correspondence is used to characterize the mapping rules between the retrieval content field corresponding to the mesh model file and the model file type. Specifically, the system obtains the mesh model file to be identified and reads its complete model file content. At the same time, it calls the preset content type correspondence knowledge base, and then the system enters the key retrieval step, that is, based on the retrieval content field, it searches the model file content to determine the first retrieval result. The system will scan the existence of these key fields in the full text of the mesh model file, and if the first retrieval result indicates that the retrieval content field exists in the model file content, the system determines that the content field exists. That is, as long as the traces of these key data segments are found in the model file content, regardless of the file name, the system will prioritize this evidence. Then the system executes the determination of the model file type based on the existence of the content field and the content type correspondence.
[0034] In the above embodiments, the system directly parses key data segments within the mesh model file to determine its type, overcoming the limitations of relying solely on filenames and resulting in more accurate and reliable identification. This mechanism effectively distinguishes models with different physical properties, laying a solid foundation for subsequent automatic matching of precise simulation parameters.
[0035] Figure 6 This is a schematic diagram of another process for obtaining a model file type according to an exemplary embodiment. In an optional embodiment, the preset identification field includes a search name field; such as... Figure 6 As shown above, based on preset recognition fields, the type of the mesh model file can be identified, and the resulting model file type may also include: S601: If the first search result indicates that the search content field does not exist in the model file content, obtain the correspondence between the model file name and the name type of the mesh model file; S603: Based on the search name field, search for the model file name to determine the second search result; and if the second search result indicates that the model file name has the search name field, determine that the name field exists; S605: Determine the model file type based on the correspondence between the search name field and the name type.
[0036] In a specific embodiment, the search name field can be a set of key strings or naming pattern rules pre-stored in the system for feature matching of filenames of mesh model files; the name type correspondence can be a mapping rule representing the relationship between the search name field corresponding to the mesh model file and the name of the model file type; specifically, if the first search result indicates that the search content field does not exist in the model file content, the model file name corresponding to the mesh model file is obtained, and the name type correspondence defining the filename keyword and model type mapping rule is called from the repository. Then, the system searches for the model file name based on the search name field to determine the second search result, i.e., in the text... The system scans the file name for a preset key string. If the second search result indicates that the model file name has a search name field, the system determines the model file type based on the correspondence between the search name field and the name type. Optionally, if the second search result indicates that the model file name does not have a search name field, the system will execute the final default decision step, that is, determine the model file type based on a preset default type correspondence. Optionally, the preset default type is a conservative and reliable choice when the system cannot make an intelligent judgment. Specifically, the setting follows engineering safety principles and is usually set to the one of the two model types that has higher requirements for the safety of simulation results or is more universal.
[0037] In the above embodiments, when the content retrieval cannot determine the type, the system can automatically switch to the filename retrieval process to ensure effective identification of various standardized or non-standard model files. This design significantly reduces the risk of recognition failure due to missing model file content or special format, making the method more practical for engineering applications and more tolerant of errors, and ensuring the smoothness and high success rate of the header file generation process in complex real-world scenarios.
[0038] S107: Based on the second default parameter set and import information, update the initial header file to obtain the updated header file.
[0039] In a specific embodiment, the system applies the second default parameter set, which was previously identified by model file type and matched the model file type, and the import information provided by the user that defines the specific simulation conditions, to the initial header file. This update is not a simple text replacement, but rather a series of complex integration operations based on the solver syntax rules. For example, it updates the damping values in the second default parameter set to the corresponding data segments, and automatically generates a complete SET set, dynamic load sequence, and SUBCASE condition definition based on the imported excitation / response point information, i.e., the import information, thereby generating the updated header file.
[0040] In an optional embodiment, if the simulation analysis type selected by the user does not require the input of corresponding import information, then during the process of updating the initial header file, it is only necessary to update the initial header file based on the second default parameter set to obtain the updated header file.
[0041] S109: Output the updated header file, receive the user's modification instructions for the updated header file, and modify the updated header file based on the modification instructions to obtain the target header file.
[0042] In one specific embodiment, the modification instruction can be a modification instruction for the updated header file. Specifically, the system enters an interactive confirmation phase and outputs the updated header file. Typically, this is done through a preview window in the graphical user interface, which displays the entire generated content to the user, providing a crucial opportunity for inspection and intervention. The user can fine-tune any automatically generated parameters or settings based on their professional judgment. The system then receives the user's modification instruction for the updated header file and, based on the user's precise modification instruction, modifies and updates the updated header file to obtain the target header file.
[0043] This invention provides a header file generation method that obtains the user-selected simulation analysis type, mesh model file, first default parameter set corresponding to the simulation analysis type, and import information corresponding to the simulation analysis type; generates an initial header file based on the mesh model file and the first default dataset; performs type identification on the mesh model file based on preset identification fields to obtain the model file type; adopts an automated type identification mechanism and accurately matches the second default parameter set based on the identification results, effectively avoiding oversights and errors caused by manual identification of model types or manual input of parameters; and determines the second default parameter set based on the model file type; achieves "one-click" automatic filling of key simulation parameters, freeing engineers from tedious and repetitive manual settings and writing work, greatly shortening the header file generation time, and significantly reducing the professional requirements for operators. Background requirements; furthermore, based on the second default parameter set and imported information, the initial header file is updated to obtain an updated header file; by integrating imported information, a complete working condition definition is generated, ensuring the technical correctness and completeness of the header file; furthermore, the updated header file is output, and user modification instructions for the updated header file are received; and based on the modification instructions, the updated header file is modified to obtain the target header file. User interaction (such as imported information and modification instructions) is introduced in key steps, which not only ensures that the header file generation conforms to enterprise and industry standards and improves the standardization level of the simulation process, but also retains the flexibility to meet specific analysis needs, forming a new working mode that is efficient, reliable, and highly adaptable. This improves the accuracy, efficiency, automation, and simplicity of header file generation, thereby enhancing the ease of use of the header file.
[0044] Figure 7 This is a schematic diagram of a header file generation apparatus according to an exemplary embodiment. The following describes an embodiment of a header file generation apparatus according to this application, specifically, as follows... Figure 7 As shown, the device includes: The acquisition module 701 is used to acquire the simulation analysis type selected by the user, the mesh model file, the first default parameter set corresponding to the simulation analysis type, and the import information corresponding to the simulation analysis type; the import information is determined based on the simulation analysis model. The generation module 703 is used to generate an initial header file based on the mesh model file and the first default dataset; The determination module 705 is used to identify the type of the mesh model file based on a preset identification field, obtain the model file type, and determine a second default parameter set based on the model file type; Update module 707 is used to update the initial header file based on the second default parameter set and the import information to obtain an updated header file; The modification module 709 is used to output the updated header file, receive the user's modification instruction for the updated header file, and modify the updated header file based on the modification instruction to obtain the target header file.
[0045] In an optional embodiment, the preset identification field includes a search content field; the determination module 705 includes: The content acquisition unit is used to acquire the correspondence between the model file content and content type corresponding to the mesh model file; The content retrieval unit is used to retrieve the content of the model file based on the retrieval content field, determine a first retrieval result, and determine the existence of the content field if the first retrieval result indicates that the content of the model file contains the retrieval content field. The first type determination unit is used to determine the model file type based on the correspondence between the existing content field and the content type.
[0046] In an optional embodiment, the preset identification field includes a search name field; the determination module 705 further includes: The name acquisition unit is used to acquire the model file name and name type correspondence corresponding to the mesh model file when the first search result indicates that the model file content does not exist in the search content field; The name retrieval unit is used to retrieve the model file name based on the retrieval name field, determine the second retrieval result, and determine the existence of the name field if the second retrieval result indicates that the model file name has a retrieval name field. The second type determination unit is used to determine the model file type based on the correspondence between the search name field and the name type.
[0047] In an optional embodiment, the acquisition module 701 includes: The requirement retrieval unit is used to retrieve the requirement import type; The type matching unit is used to perform type matching based on the simulation analysis type and the requirement import type, and determine the type matching result; An import input unit is used to generate import prompt information and obtain the import information corresponding to the simulation analysis type when the type matching result indicates that the type matches.
[0048] In an optional embodiment, the acquisition module 701 further includes an import generation unit, used for: Obtain the import format and import rules, and display the import format and import rules to the user so that the user can generate the import information based on the import rules and import format.
[0049] In an optional embodiment, the apparatus further includes: The quality acquisition unit is used to acquire quality inspection content; A quality inspection unit is used to perform quality inspection on the mesh model file based on the quality inspection content, and obtain the quality inspection result; An initial generation unit is used to generate the initial header file based on the mesh model file and the first default dataset, provided that the quality check result indicates that the network model has no quality problems.
[0050] In an optional embodiment, the acquisition module 701 includes: The address acquisition unit is used to obtain the grid address correspondence. The address determination unit is used to determine the model address based on the correspondence between the requirement grid model corresponding to the simulation analysis type and the grid address; The file acquisition unit is used to acquire the mesh model file based on the model address.
[0051] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the header file generation method as described in the embodiments of this disclosure.
[0052] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the header file generation method of the present disclosure embodiments.
[0053] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the header file generation method provided in the various optional implementations described above.
[0054] It is understood that in the specific embodiments of the present invention, user-related data is involved. When the above embodiments of the present invention are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0055] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0056] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0057] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A header file generation method, characterized in that, The method includes: The system retrieves the user-selected simulation analysis type, mesh model file, first default parameter set corresponding to the simulation analysis type, and import information corresponding to the simulation analysis type; the import information is determined based on the simulation analysis model. Based on the mesh model file and the first default dataset, generate an initial header file; Based on preset identification fields, the mesh model file is type-identified to obtain the model file type, and a second default parameter set is determined based on the model file type; Based on the second default parameter set and the import information, the initial header file is updated to obtain the updated header file; The updated header file is output, and the user's modification instructions for the updated header file are received; the updated header file is modified based on the modification instructions to obtain the target header file.
2. The method according to claim 1, characterized in that, The preset identification field includes a search content field; the type identification of the mesh model file based on the preset identification field, to obtain the model file type, includes: Obtain the correspondence between the model file content and content type corresponding to the mesh model file; Based on the search content field, the model file content is searched to determine a first search result; and if the first search result indicates that the model file content contains the search content field, the existence of the content field is determined. Based on the correspondence between the existing content fields and the content types, the model file type is determined.
3. The method according to claim 2, characterized in that, The preset identification field includes a search name field; the step of identifying the type of the mesh model file based on the preset identification field to obtain the model file type also includes: If the first search result indicates that the search content field does not exist in the model file content, obtain the correspondence between the model file name and the name type of the mesh model file; Based on the search name field, the model file name is searched to determine the second search result; and if the second search result indicates that the model file name has a search name field, it is determined that a name field exists. Based on the correspondence between the search name field and the name type, the model file type is determined.
4. The method according to claim 1, characterized in that, The process of obtaining the import information corresponding to the simulation analysis type includes: Obtain the required import type; Based on the simulation analysis type and the requirement import type, perform type matching to determine the type matching result; If the type matching result indicates a type match, an import prompt message is generated and the import information corresponding to the simulation analysis type is obtained.
5. The method according to claim 4, characterized in that, The process of generating the import information includes: Obtain the import format and import rules, and display the import format and import rules to the user so that the user can generate the import information based on the import rules and import format.
6. The method according to claim 1, characterized in that, The method further includes: Obtain the quality inspection content; Based on the quality inspection content, the mesh model file is subjected to quality inspection to obtain the quality inspection results; If the quality check results indicate that the network model has no quality issues, the initial header file is generated based on the mesh model file and the first default dataset.
7. The method according to claim 1, characterized in that, The acquisition of the mesh model file includes: Obtain the grid address mapping; Based on the correspondence between the required mesh model corresponding to the simulation analysis type and the mesh address, the model address is determined; Based on the model address, obtain the mesh model file.
8. A header file generation apparatus, characterized in that, The device includes: The acquisition module is used to acquire the simulation analysis type selected by the user, the mesh model file, the first default parameter set corresponding to the simulation analysis type, and the import information corresponding to the simulation analysis type; the import information is determined based on the simulation analysis model. The generation module is used to generate an initial header file based on the mesh model file and the first default dataset; The determination module is used to identify the type of the mesh model file based on a preset identification field, obtain the model file type, and determine a second default parameter set based on the model file type; The update module is used to update the initial header file based on the second default parameter set and the import information to obtain an updated header file; The modification module is used to output the updated header file, receive user modification instructions for the updated header file, and modify the updated header file based on the modification instructions to obtain the target header file.
9. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the header file generation method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the header file generation method as described in any one of claims 1 to 7.