A CAE flexible report automatic generation method with customizable template

By providing a CAE flexible report automatic generation method with customizable templates, the problem of lack of flexibility and compatibility of existing tools is solved, and efficient and accurate report generation is achieved to adapt to diverse simulation engineering needs.

CN119378518BActive Publication Date: 2025-04-01XUNFANG TECH (SHANGHAI) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411406940.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2025-04-01
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

The existing CAE simulation report generation tools lack flexibility, cannot support user-defined report templates, and are difficult to compatible with multiple CAE post-processing software and simulation results, resulting in a large number of manual adjustments to reports, affecting efficiency and quality.

Method used

It provides a CAE flexible report automatic generation method with customizable templates. By obtaining extracted data parameters and simulation result data, it automatically extracts post-processing data, and assembles flexible statements based on flexible templates and generated report parameters, supports static and dynamic page generation, and dynamic adjustment of report structure.

Benefits of technology

It greatly reduces manual operations, improves report generation efficiency and quality, supports diverse reporting requirements, ensures content accuracy and format consistency, and adapts to simulation projects of different scales and complexities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119378518B_ABST
    Figure CN119378518B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of CAE automatic reporting, and specifically relates to a CAE flexible report automatic generation method with a customizable template. According to the invention, users can flexibly customize the structure and content of reports according to different requirements and simulation projects through customizing flexible templates to meet diverse reporting requirements, adopt predefined flexible grammar rules and automated data filling mechanisms to ensure the accuracy of report content and consistency of format, reduce human errors, support the automatic generation of static and dynamic pages, and dynamically adjust the number of pages and content display methods of reports according to different data volumes and content requirements to adapt to simulation projects of different scales and complexities. CAE engineers can easily and quickly extract data from simulation analysis results and generate reports without having deep programming or template design knowledge, which improves user convenience and satisfaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of CAE automatic report, and in particular relates to a CAE flexible report automatic generation method with a customizable template. Background Art

[0002] CAE (Computer Aided Engineering) refers to computer-aided engineering in engineering design, which refers to the use of computers to solve and analyze the structural mechanical properties of complex projects and products, as well as to optimize structural performance, etc., to organically organize all aspects of engineering (production). The key is to integrate relevant information so that it is generated and exists throughout the entire life cycle of the project (product). The CAE simulation system is a computing tool specifically used for CAE simulation analysis. The CAE simulation system can be divided into three independent stages: pre-processing, solver, and post-processing. The CAE simulation analysis report is an important part of the post-processing stage of the CAE simulation system, including a systematic description of the simulation elements. It is an important basis for engineers to analyze the physical characteristics of the flow field, discover the advantages and disadvantages of industrial design solutions, and optimize and improve design solutions.

[0003] In modern CAE (computer-aided engineering) simulation analysis, as the scale and complexity of engineering projects continue to increase, the diversity and complexity of simulation results are also increasing. CAE simulation reports are the core documents that display simulation analysis results, usually including stress cloud maps, strain cloud maps, acceleration curves, displacement curves and other data forms. These reports not only need to accurately reflect the simulation results, but also need to customize the structure and content of the reports according to user needs to meet the requirements of different projects and analysis objectives.

[0004] Traditional CAE simulation report generation methods mostly rely on manual operations. Engineers need to compile and edit reports page by page, manually insert images and curve data, and write analysis instructions. This method not only consumes a lot of time and energy, but also easily leads to problems such as data omissions and inconsistent formats, which in turn affects the quality and consistency of reports. Especially when dealing with multi-source data (such as 3D animations, 2D curves, text descriptions, etc.), the manual report generation process is more complicated and has a high error rate. In addition, different CAE simulation projects often have personalized requirements for the format and structure of reports, and manually adjusting and customizing these reports further increases the workload.

[0005] In order to improve the efficiency and accuracy of CAE simulation report generation, automated report generation methods have gradually gained attention in recent years. However, existing automated report generation tools are usually inflexible and cannot support users to customize report templates according to different project requirements. At the same time, existing methods are often limited to certain specific formats when processing diverse data, making it difficult to achieve compatibility with a variety of CAE post-processing software and simulation results. This results in engineers still needing to make a lot of manual adjustments to the automatically generated reports when using these tools, and they are unable to fully utilize the advantages of automated tools. Summary of the invention

[0006] The purpose of the present invention is to provide a CAE flexible report automatic generation method with a customizable template, which can automatically extract simulation result data, is compatible with multiple data formats, supports flexible template customization, and can dynamically adjust the report structure according to different project requirements, thereby improving the report generation efficiency and quality.

[0007] The technical solution adopted by the present invention is as follows:

[0008] A CAE flexible report automatic generation method with a customizable template, comprising:

[0009] Get the extracted data parameters and store them in a JSON format file;

[0010] Acquire simulation result data of the part, wherein the simulation result data includes a 3D animation data file and a 2D curve data file;

[0011] Obtain post-processing data of parts based on extracted data parameters and simulation result data;

[0012] Get report generation parameters and flexible templates;

[0013] Acquire multiple flexible statements according to the flexible template, report generation parameters and post-processing data, and assemble the multiple flexible statements into a flexible statement list;

[0014] Obtain multiple result object keywords and corresponding result placeholder names in the flexible statement list, and obtain corresponding processing programs according to the result object keywords;

[0015] Obtain the page type of the flexible statement corresponding to each result object keyword, and obtain the corresponding page generation method according to the page type;

[0016] Corresponding page data is obtained according to the corresponding page generation method, and a flexible report is obtained according to the multiple page data and the flexible template.

[0017] In a preferred embodiment, the extracted data parameters include post-processing software path, CAE result storage path, velocity / acceleration curve node number, and part number excluded from the cloud map.

[0018] In a preferred embodiment, the step of obtaining post-processing data of the part according to the extracted data parameters and the simulation result data includes:

[0019] Obtain post-processing software parameters and target part number according to the extracted data parameters;

[0020] Obtain the corresponding post-processing software API interface according to the post-processing software parameters;

[0021] According to the post-processing software API interface, the post-processing data of the part corresponding to the target part number is obtained from the simulation result data.

[0022] In a preferred embodiment, the post-processing data includes cloud map data and curve data, the cloud map data is a PNG format file, the curve data is a csv format file, the cloud map data includes stress cloud map and strain cloud map, and the curve data includes acceleration curve, displacement curve, stress curve and strain curve.

[0023] In a preferred solution, the step of acquiring multiple flexible statements according to the flexible template, generating report parameters and post-processing data, and assembling the multiple flexible statements into a flexible statement list includes:

[0024] Obtain corresponding path parameters according to the generated report parameters, wherein the path parameters include the file saving path and the flexible template file path;

[0025] Loop through all pages in the post-processing data according to the flexible template file path corresponding to the flexible template, and process page by page to extract the initial flexible statement;

[0026] The initial flexible sentences extracted from each page are selected to meet the grammatical rules and marked as target sentences;

[0027] Segment the selected target sentence to obtain the target flexible sentence;

[0028] Add all target flexible statements to the flexible statement list in the order in which they appear in the flexible template.

[0029] In a preferred solution, the step of obtaining multiple result object keywords and corresponding result placeholder names in the flexible statement list and obtaining corresponding processing programs according to the result object keywords includes:

[0030] Get the preset flexible grammar rules;

[0031] Iterate through each target flexible statement in the flexible statement list, parse each target flexible statement according to a preset flexible grammar rule, and obtain multiple result object keywords and corresponding result placeholder names;

[0032] Obtaining a processing program mapping table, wherein the processing program mapping table includes a plurality of result object keywords and a processing program corresponding to each result object keyword;

[0033] According to the obtained result object keyword, the corresponding handler is obtained from the handler mapping table.

[0034] In a preferred embodiment, the processing program includes a curve processing program, a cloud graph processing program, a text processing program and a table processing program.

[0035] In a preferred solution, the step of obtaining the page type of the flexible statement corresponding to each result object keyword and obtaining the corresponding page generation mode according to the page type includes:

[0036] Obtaining the page type of the flexible statement corresponding to each result object keyword and marking it as target type information, wherein the target page information includes static pages and dynamic pages;

[0037] Determine whether the target type information is a static page or a dynamic page;

[0038] If the target type information is a static page, the page generation method is a single page;

[0039] If the target type information is a dynamic page, the page generation method is multiple pages.

[0040] In a preferred solution, the step of obtaining corresponding page data according to the corresponding page generation mode and obtaining a flexible report according to the plurality of page data and the flexible template includes:

[0041] Obtain corresponding page data according to the corresponding page generation method;

[0042] Get the invalid original page in the page data;

[0043] Integrate multiple page data and delete invalid original pages to obtain integrated page data;

[0044] The multiple page data in the integrated page data are assembled according to the definition order of the flexible template to obtain a flexible report.

[0045] And, a CAE flexible report automatic generation program product with customizable templates, including:

[0046] Deployed on one or more servers;

[0047] When one or more programs are executed by one or more servers, the one or more servers implement the CAE flexible report automatic generation method with customizable templates.

[0048] The technical effects achieved by the present invention are:

[0049] The present invention greatly reduces manual operations in the CAE report generation process, reduces the need for manual intervention, and improves work efficiency. The data extraction and report generation processes are decoupled so that template design and data processing can be performed independently, thereby improving the flexibility and maintainability of the system. Users can customize flexible templates to flexibly customize the structure and content of reports according to different needs and simulation projects to meet diverse report requirements. Predefined flexible grammar rules and an automated data filling mechanism are used to ensure the accuracy of report content and consistency of format, reduce human errors, support automatic generation of static and dynamic pages, and can dynamically adjust the number of pages and content display methods of reports according to different data volumes and content requirements to adapt to simulation projects of different scales and complexities. CAE engineers can quickly and easily extract data from simulation analysis results and generate reports without having to possess profound programming or template design knowledge, thereby improving user convenience and satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 is a flow chart of the method provided by the present invention;

[0051] Figure 2 It is a schematic diagram of assembling all pages into a PPT to obtain a final flexible CAE analysis report provided by the present invention. DETAILED DESCRIPTION

[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0054] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The phrase "in a preferred embodiment" that appears in different places in this specification does not refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.

[0055] Secondly, the present invention is described in detail in conjunction with schematic diagrams. When describing the embodiments of the present invention in detail, for the convenience of explanation, the schematic diagrams are only examples and should not limit the scope of protection of the present invention.

[0056] Please see attached Figure 1 As shown in the figure, a CAE flexible report automatic generation method with a customizable template is provided, including:

[0057] S1. Obtain the extracted data parameters and store the extracted data parameters as a JSON format file;

[0058] S2. Acquire simulation result data of the part, wherein the simulation result data includes a 3D animation data file and a 2D curve data file;

[0059] S3, obtaining post-processing data of the part according to the extracted data parameters and simulation result data;

[0060] S4, obtaining report generation parameters and a flexible template;

[0061] S5, obtaining multiple flexible statements according to the flexible template, generating report parameters and post-processing data, and assembling the multiple flexible statements into a flexible statement list;

[0062] S6, obtaining multiple result object keywords and corresponding result placeholder names in the flexible statement list, and obtaining corresponding processing programs according to the result object keywords;

[0063] S7, obtaining the page type of the flexible statement corresponding to each result object keyword, and obtaining the corresponding page generation mode according to the page type;

[0064] S8. Obtain corresponding page data according to the corresponding page generation method, and obtain a flexible report according to the multiple page data and the flexible template.

[0065] It should be noted that the extracted data parameters include the post-processing software path, CAE result storage path, velocity / acceleration curve node number, and part number excluded from the cloud map.

[0066] As in the above steps S1 to S8, first, the extracted data parameters input by the user are accepted. These parameters include the post-processing software path, CAE result storage path, velocity / acceleration curve node number, part number excluded from the cloud map, etc. These parameters are structured and stored as JSON format files to ensure the uniformity and ease of parsing of the data. The simulation result data are obtained through the specified path. These data include 3D animation files (used to display the three-dimensional deformation and stress distribution of parts) and 2D curve data files (such as acceleration curves, displacement curves, etc.), which provide basic data for subsequent report generation. The extracted data parameters are used to call the API interface of the post-processing software to extract the stress cloud map, strain cloud map of the specified part, and the acceleration and displacement of the key nodes. The extracted data are preprocessed and saved as PNG format image files and CSV format curve data files respectively. The report generation parameters are accepted, including the result file save path and the user-defined flexible template file path (usually in PPT format). The flexible template file is loaded, all pages in the template are traversed, and the flexible statements in the comment column are extracted. These flexible statements adopt specific grammatical rules (such as <result object keyword: result placeholder name>), and multiple statements are separated by semicolons. The extracted flexible statements are parsed and assembled into an ordered list of flexible statements. The flexible statement list is traversed, and the "result object keyword" and "result placeholder name" in each statement are parsed. According to the predefined keywords and The mapping relationship of the handler is obtained, and the corresponding handler (such as curve handler, cloud diagram handler, etc.) is obtained, and the handler is associated with the placeholder name and stored. According to the result object keyword in each flexible statement, the corresponding page type (static page or dynamic page) is identified. Static pages generate a single page, which is suitable for displaying fixed content. Dynamic pages dynamically generate multiple pages according to the amount of data, which is suitable for large amounts of data or content that needs to be displayed in segments. According to the page type, the corresponding page generation method is selected. According to the selected page generation method, the corresponding handler is called to obtain the data required for the page. For static pages, the extracted data is directly inserted into the placeholder of the template. For dynamic pages, multiple pages are generated cyclically according to the amount of data. Each Each page displays different data content. All generated pages are assembled in the order of flexible templates, and finally a complete CAE flexible report (usually in PPT format) is generated and saved to the specified path, which greatly reduces the manual operations in the CAE report generation process, reduces the need for manual intervention, and improves work efficiency. The data extraction and report generation processes are decoupled, so that the template design and data processing can be carried out independently, which improves the flexibility and maintainability of the system. Users can customize the flexible templates to flexibly customize the structure and content of the report according to different needs and simulation projects to meet diverse reporting requirements. Predefined flexible grammar rules and automated data filling mechanisms are used to ensure the accuracy of the report content and the consistency of the format.It reduces human errors, supports the automatic generation of static and dynamic pages, and can dynamically adjust the number of pages and content display methods of reports according to different data volumes and content requirements, adapting to simulation projects of different scales and complexities. CAE engineers can easily and quickly extract data from simulation analysis results and generate reports without having deep programming or template design knowledge, which improves user convenience and satisfaction.

[0067] In a specific embodiment, the step of obtaining post-processing data of a part according to the extracted data parameters and the simulation result data includes:

[0068] S301, obtaining post-processing software parameters and target part number according to the extracted data parameters;

[0069] S302, obtaining a corresponding post-processing software API interface according to the post-processing software parameters;

[0070] S303, obtaining post-processing data of the part corresponding to the target part number from the simulation result data according to the post-processing software API interface.

[0071] It is worth mentioning that the post-processing data includes cloud map data and curve data. The cloud map data is a PNG format file, and the curve data is a csv format file. The cloud map data includes stress cloud map and strain cloud map, and the curve data includes acceleration curve, displacement curve, stress curve and strain curve.

[0072] As in the above steps S301 to S303, first, read the pre-stored extraction data parameter file (JSON format), which contains the path of the post-processing software, the part number to be processed, the type of data to be extracted (such as stress, strain, acceleration, displacement, etc.), and other necessary post-processing setting information. By parsing these parameters, the target part number to be processed and the relevant parameters of the post-processing software can be determined. Once the path and relevant parameters of the post-processing software are obtained, the corresponding post-processing software API interface is obtained based on this information. Different CAE post-processing software (such as META, HyperView, etc.) usually provide different API interfaces. Through these interfaces, the data extraction function in the software can be called. By calling the API interface, according to the target part number in the extraction data parameters, The part number is marked, and the post-processing data of the part is extracted from the simulation result data (including 3D animation files and 2D curve data files). These post-processing data include two main types (cloud map data and curve data). For the cloud map data, the extracted stress and strain cloud map data are saved as PNG format image files. For the curve data, the acceleration, displacement, stress and strain curve data are extracted from the simulation results and saved as CSV format files. The post-processing data extraction work is automatically completed and the data is saved in a specific format to provide basic data for subsequent report generation and presentation. By reading the preset extraction data parameters and automatically calling the API interface of the post-processing software to obtain the simulation results, the workload of manual data extraction and processing is greatly reduced, and work efficiency is improved.

[0073] In a specific implementation, the step of acquiring multiple flexible statements according to the flexible template, generating report parameters and post-processing data, and assembling the multiple flexible statements into a flexible statement list includes:

[0074] S501, acquiring corresponding path parameters according to the report generation parameters, wherein the path parameters include a file saving path and a flexible template file path;

[0075] S502, looping through all pages in the post-processing data according to the flexible template file path corresponding to the flexible template, and processing page by page to extract the initial flexible statement;

[0076] S503, selecting sentences that conform to grammatical rules from the initial flexible sentences extracted from each page and marking them as target sentences;

[0077] S504, segmenting the selected target sentence to obtain a target flexible sentence;

[0078] S505: Add all target flexible statements to the flexible statement list in the order in which they appear in the flexible template.

[0079] As in the above steps S501 to S505, first, read the report generation parameter file, which contains the file path of the flexible template and the file save path of the generated report. By obtaining the path parameters, it is possible to clearly know where to read the flexible template file and where the subsequently generated report should be saved. Each page is loaded one by one according to the file path of the flexible template, and the parsing operation is performed on the content of each page. The charts, values, data displays and other elements in the page are parsed into initial flexible statements. Each statement is a description related to the simulation data in the page, which may include picture descriptions, numerical statistics and curve descriptions, etc. The initially extracted statements are screened to ensure that the statements comply with the grammatical rules for generating reports. For example, the statements must correctly embed data objects such as values, curves, and cloud maps. The grammatical rule verification tool automatically marks the statements that comply with the grammatical rules. For "target statements", target statements may contain multiple data elements or multiple expressions. Complex target statements are split and independent flexible statements are extracted. For example, a target statement may describe multiple charts. These descriptions are split into multiple separate flexible statements to ensure that each statement describes only one data object or chart. According to the structure of the flexible template, all target flexible statements are arranged and combined according to the requirements in the template and added to the flexible statement list in sequence. This list is the core part of the subsequent report generation, ensuring that the generated report content conforms to the logical structure and can be automatically adjusted to fill in according to different simulation data content. It can generate personalized and customized reports for different CAE simulation projects. Users can adjust the template according to different report requirements and can automatically adapt to different content, thereby generating reports with different styles, structures and contents.

[0080] In a specific implementation, the step of obtaining multiple result object keywords and corresponding result placeholder names in the flexible statement list, and obtaining corresponding processing programs according to the result object keywords includes:

[0081] S601, obtaining preset flexible grammar rules;

[0082] S602, looping through each target flexible statement in the flexible statement list, parsing each target flexible statement according to a preset flexible grammar rule, and obtaining a plurality of result object keywords and corresponding result placeholder names;

[0083] S603, obtaining a processing program mapping table, wherein the processing program mapping table includes a plurality of result object keywords and a processing program corresponding to each result object keyword;

[0084] S604: Obtain corresponding processing procedures from the processing procedure mapping table according to the obtained result object keywords.

[0085] Furthermore, the processing program includes a curve processing program, a cloud graph processing program, a text processing program and a table processing program.

[0086] As in the above steps S601 to S604, first, load the preset flexible grammar rules, which are the standards for parsing the flexible statement list, and define how to identify keywords, placeholders and their relationships. Traverse each target flexible statement in the flexible statement list and apply the flexible grammar rules to parse it. During the parsing process, extract the result object keywords and placeholder names contained therein. The result object keywords are used to identify specific data types in the report, such as "stress cloud map", "displacement curve", etc. The placeholder name is usually a dynamic element in the report template, which is used to replace it with specific data content when generating a report. The corresponding relationship of the handler is obtained from the preset handler mapping table, which lists all possible result object keywords and their corresponding handlers. The handler mapping table is a data structure used to match result object keywords and specific handlers. Different result object keywords will trigger different data processing methods, such as curve processing, image rendering, table generation, etc. According to each result object keyword obtained by parsing, the corresponding handler is found in the handler mapping table. According to different result object types, a suitable handler will be specified for each flexible statement. For example, the curve handler is used to process and display 2D or 3D curve data, the cloud map handler is responsible for processing the generation and display of stress, strain and other cloud maps, the text handler processes the content of the text description, such as instructions and conclusions, and the table handler processes the generation of statistical data, numerical tables and other contents. Different handlers are matched according to different result object keywords, making the generation of report content highly customizable. Users can expand or modify the mapping table according to specific application scenarios to adapt to more types of data or different report format requirements.

[0087] In a specific implementation, the steps of obtaining the page type of the flexible statement corresponding to each result object keyword and obtaining the corresponding page generation mode according to the page type include:

[0088] S701, obtaining the page type of the flexible statement corresponding to each result object keyword, and marking it as target type information, wherein the target page information includes static page and dynamic page;

[0089] S702, determining whether the target type information is a static page or a dynamic page;

[0090] If the target type information is a static page, the page generation method is a single page;

[0091] If the target type information is a dynamic page, the page generation method is multiple pages.

[0092] As in the above steps S701 to S702, first, the result object keyword of each target flexible statement is extracted from the flexible statement list, and the page type corresponding to each keyword is obtained according to the preset rules or the existing template structure. The page type may be a static page (usually displaying a single result, such as a picture or a short text description) or a dynamic page (usually used to display multiple complex data sets, such as animation, sequence data or multi-segment curve graphs). The type of each page is determined according to the obtained target type information. If the target page is a static page, a single page generation method can be adopted; if it is a dynamic page, multiple pages need to be generated to display the complete content. By automatically identifying static pages and dynamic pages, various data display requirements can be flexibly responded to. For simple data (such as a single cloud map or curve), it can be displayed through a single page, and for complex, multi-dimensional data (such as 3D animation, multi-segment curve comparison, etc.), multiple pages can be automatically generated for step-by-step display. This flexible page generation method ensures the integrity and clarity of data display.

[0093] In a specific implementation, the steps of obtaining corresponding page data according to the corresponding page generation mode and obtaining a flexible report according to the plurality of page data and the flexible template include:

[0094] S801, obtaining corresponding page data according to a corresponding page generation method;

[0095] S802, obtaining an invalid original page in the page data;

[0096] S803, integrating multiple page data and deleting invalid original pages to obtain integrated page data;

[0097] S804 , assembling the multiple page data in the integrated page data according to the definition order of the flexible template to obtain a flexible report.

[0098] As in the above steps S801 to S804, first, according to the page generation method (static page or dynamic page) determined in the previous steps, the corresponding page data is extracted from the post-processing data. If the page is static, the data of a single page will be obtained from the corresponding file (such as a stress cloud map in PNG format, curve data in CSV format, etc.). If the page is dynamic, the data of multiple pages will be extracted by time or sequence, such as 3D animation or multiple groups of time-related curve graphs. In the process of extracting data, invalid page data is automatically identified. Invalid original pages may be due to errors in the data extraction process, incomplete simulation data, or irrelevant pages that do not meet the requirements of generating reports. By setting conditions, such as missing data or incorrect page format, these invalid pages are marked, and the valid page data is integrated to remove the invalid original pages marked previously. This integration process may involve multiple data sources. (such as multiple stress cloud maps, multi-segment curves or 3D animations), they will be summarized into a unified format to facilitate the next presentation in the flexible template. The integrated page data is arranged and assembled in the order pre-defined by the flexible template. The flexible template defines the position, display format and content type (such as images, tables, texts, etc.) of each page. According to these definitions, the integrated data is inserted into the template as needed. Finally, the generated flexible report is a complete, multi-page CAE simulation report that contains all valid data and is displayed in a suitable format. When generating the report, the page data is assembled according to the definition order of the template to ensure the logic and coherence of the report. Whether it is a static page or a dynamic page, the page data can be displayed page by page in a predetermined order, making the report content clear and easy to read, and has a good hierarchical structure to meet different types of CAE simulation analysis needs.

[0099] And, a CAE flexible report automatic generation program product with customizable templates, including:

[0100] Deployed on one or more servers;

[0101] When one or more programs are executed by one or more servers, the one or more servers implement a CAE flexible report automatic generation method with customizable templates.

[0102] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.

Claims

1. A method for automatically generating CAE flexible reports with customizable templates, characterized in that: include: Get the extracted data parameters and store them in a JSON format file; Acquire simulation result data of the part, wherein the simulation result data includes a 3D animation data file and a 2D curve data file; Obtain post-processing data of parts based on extracted data parameters and simulation result data; Get report generation parameters and flexible templates; Acquire multiple flexible statements according to the flexible template, report generation parameters and post-processing data, and assemble the multiple flexible statements into a flexible statement list; Obtain multiple result object keywords and corresponding result placeholder names in the flexible statement list, and obtain corresponding processing programs according to the result object keywords; Obtain the page type of the flexible statement corresponding to each result object keyword, and obtain the corresponding page generation method according to the page type; Obtain corresponding page data according to the corresponding page generation method, and obtain a flexible report according to multiple page data and a flexible template; The step of obtaining post-processing data of the part according to the extracted data parameters and the simulation result data comprises: Obtain post-processing software parameters and target part number according to the extracted data parameters; Obtain the corresponding post-processing software API interface according to the post-processing software parameters; Obtain post-processing data of the part corresponding to the target part number from the simulation result data according to the post-processing software API interface; The step of obtaining a plurality of result object keywords and corresponding result placeholder names in the flexible statement list and obtaining corresponding processing programs according to the result object keywords includes: Get the preset flexible grammar rules; Iterate through each target flexible statement in the flexible statement list, parse each target flexible statement according to a preset flexible grammar rule, and obtain multiple result object keywords and corresponding result placeholder names; Obtaining a processing program mapping table, wherein the processing program mapping table includes a plurality of result object keywords and a processing program corresponding to each result object keyword; According to the obtained result object keyword, the corresponding processing program is obtained from the processing program mapping table; The step of obtaining the page type of the flexible statement corresponding to each result object keyword and obtaining the corresponding page generation mode according to the page type includes: Obtaining the page type of the flexible statement corresponding to each result object keyword and marking it as target type information, wherein the target page information includes static pages and dynamic pages; Determine whether the target type information is a static page or a dynamic page; If the target type information is a static page, the page generation method is a single page; If the target type information is a dynamic page, the page generation method is multiple pages.

2. The method for automatically generating CAE flexible reports with customizable templates according to claim 1, characterized in that: The extracted data parameters include the post-processing software path, the CAE result storage path, the speed / acceleration curve node number, and the part number excluded from the cloud map.

3. The method for automatically generating CAE flexible reports with customizable templates according to claim 1, characterized in that: The post-processing data includes cloud map data and curve data. The cloud map data is a PNG format file, and the curve data is a csv format file. The cloud map data includes stress cloud map and strain cloud map, and the curve data includes acceleration curve, displacement curve, stress curve and strain curve.

4. The method for automatically generating CAE flexible reports with customizable templates according to claim 1, characterized in that: The step of acquiring multiple flexible statements according to the flexible template, generating report parameters and post-processing data, and assembling the multiple flexible statements into a flexible statement list includes: Obtain corresponding path parameters according to the generated report parameters, wherein the path parameters include the file saving path and the flexible template file path; Loop through all pages in the post-processing data according to the flexible template file path corresponding to the flexible template, and process page by page to extract the initial flexible statement; The initial flexible sentences extracted from each page are selected to meet the grammatical rules and marked as target sentences; Segment the selected target sentence to obtain the target flexible sentence; Add all target flexible statements to the flexible statement list in the order in which they appear in the flexible template.

5. The method for automatically generating CAE flexible reports with customizable templates according to claim 1, characterized in that: The processing program includes a curve processing program, a cloud diagram processing program, a text processing program and a table processing program.

6. The method for automatically generating CAE flexible reports with customizable templates according to claim 1, characterized in that: The step of obtaining corresponding page data according to the corresponding page generation mode and obtaining a flexible report according to the plurality of page data and the flexible template includes: Obtain corresponding page data according to the corresponding page generation method; Get the invalid original page in the page data; Integrate multiple page data and delete invalid original pages to obtain integrated page data; The multiple page data in the integrated page data are assembled according to the definition order of the flexible template to obtain a flexible report.

7. A CAE flexible report automatic generation program product with customizable templates, characterized in that: include: Deployed on one or more servers; When one or more programs are executed by one or more servers, the one or more servers implement the method for automatically generating CAE flexible reports with customizable templates as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Flexible distributed transaction center system based on Java probe technology

    CN114281838A

  • Automatic report generating system

    US6055541A