Example report design and generation method for pneumatic calculation field
By constructing a three-level classification index system and an online platform database, the automatic generation of case reports in the field of aerodynamic calculation has been realized, solving the problem of the limitation of generating data for a single case and improving the efficiency and accuracy of report preparation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
- Filing Date
- 2025-12-24
- Publication Date
- 2026-04-21
AI Technical Summary
In the field of pneumatic computing, existing technologies for the automated generation of case reports are mostly limited to single case data, which cannot meet the report generation needs of a certain type of case data, resulting in low report compilation efficiency.
A three-level classification indicator system was constructed, including primary, secondary, and tertiary indicators. Four levels of report types were designed, and the case study data was automatically generated through an online platform and database, producing Word documents in XML format.
It has enabled the automated generation of data reports for a certain type of calculation case, reducing report integration time, improving compilation efficiency, and ensuring the report's organization and accuracy.
Smart Images

Figure CN121902784A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software development technology, and more specifically to a method for designing and generating example reports in the field of pneumatic calculation. Background Technology
[0002] Aerodynamic case study data is characterized by its wide range of applications, complex parameters, and diverse classification methods. As a crucial foundation for fluid computation, a single case study typically includes basic data such as case description, mesh information, and flow state information. The data volume varies depending on the complexity of the case study. Case study data can be classified in several ways: by application field (e.g., aerodynamics, aerothermodynamics); by velocity (e.g., subsonic, transonic, supersonic); and by configuration (e.g., airfoil, simple configuration, full configuration). The complexity, varying data volume, and diverse classification methods of case study data mean that users typically need to spend a significant amount of time and effort preparing case study reports.
[0003] To improve report compilation efficiency, various technical methods have emerged. Besides manual compilation, the most frequently tried method by technicians is a combination of software and scripts. Software such as Ansys Fluent and Ansys CFX are commonly used in aerodynamic simulation calculations and have excellent simulation image output capabilities. Supplementing these with customized scripts can improve report compilation efficiency to some extent. Furthermore, existing methods use the Jinja2 template engine to build CFD simulation analysis report templates, combined with script files to achieve dynamic report generation. However, current automated report generation is mostly limited to single-case data and cannot meet the report generation needs of a specific type of case data. Summary of the Invention
[0004] In view of this, embodiments of this application provide a method for designing and generating case study reports in the field of pneumatic calculation. This method can not only automatically generate reports for individual case study data, but also achieve the automatic generation of reports for a certain type of case study data by designing a customizable multi-level report classification method. That is, a single report contains all case study data content under that category, thereby meeting different user needs, reducing the time for report integration, and thus comprehensively improving the efficiency of report preparation.
[0005] This application provides the following technical solution: a method for designing and generating calculation report in the field of aerodynamics, comprising the following steps: Report classification design: Construct a three-level classification indicator system including primary indicators, secondary indicators and tertiary indicators, and classify several case data into the corresponding tertiary indicators; wherein, a primary indicator contains at least one secondary indicator, a secondary indicator contains at least one tertiary indicator, and a tertiary indicator contains at least one case data. Report content structure definition: Define four levels of report types and the content structure of each type corresponding to the three-level classification index system to obtain the case report content database; the four levels of report types include: single case report based on a single case data, third-level index report based on a third-level index, second-level index report based on a second-level index, and first-level index report based on a first-level index; Report generation and output: Responding to the report generation request submitted by the user through the online platform, the report generation request contains the target identifier corresponding to the report. Based on the target identifier, the corresponding case data content is obtained from the case report content database through database query. According to the corresponding report type, an XML format report is generated and output as a Word document.
[0006] According to one embodiment of this application, based on the target identifier, the corresponding case study data content is obtained from the case study report content database through a database query, including: The report type is determined based on the target identifier, and the names of all target case data contained in the report to be generated are obtained by querying the case report content database. Based on the determined report type, the detailed content of each target example data is obtained sequentially and assembled according to the predetermined content structure to form a report content string; The report content string is populated into a predefined XML format template to generate the final report file, which is then available for download.
[0007] According to one embodiment of this application, the three-level classification index system is determined based on user customization; the content structure of the four-level report types is defined as follows: The content structure of a single calculation case report includes: report title, calculation case description, test purpose, grid information, calculation parameters, and calculation results; The content structure of the third-level indicator report includes: the title of the third-level indicator report and the individual case report corresponding to all case data under that level of indicator; The content structure of the secondary indicator report includes: the title of the secondary indicator report and the corresponding tertiary indicator reports for all tertiary indicators under that level of indicator; The content structure of the primary indicator report includes: the title of the primary indicator report and the corresponding secondary indicator reports for all secondary indicators under that primary indicator.
[0008] According to one embodiment of this application, the case description in the single case report includes: case description, experiment description, calculation description, comparable data, and references; the comparable data includes at least one of point data, curve data, image data, and engineering curves.
[0009] According to one embodiment of this application, the calculation results in the single calculation report include: calculation status information and at least one of point data, curve data, image data and engineering curves generated by solver software.
[0010] According to one embodiment of this application, when obtaining the calculation description and calculation results of a single calculation case, for the point data, a report content string in tabular form is generated by calling an XML function; for the curve data, image data, and engineering curves, a report content string in image form is generated by calling the corresponding drawing function.
[0011] According to one embodiment of this application, the report type is determined based on the target identifier, and the names of all target test data contained in the report to be generated are obtained by querying the test report content database, including: If the target identifier is a test case data name, then the report type is determined to be a single test case report, and the target test case data name is the test case data name corresponding to the target identifier; If the target identifier is a third-level indicator name, then the report type is determined to be a third-level indicator report, and all example data names under the third-level indicator name are obtained by querying the example report content database; If the target identifier is a secondary indicator name, then the report type is determined to be a secondary indicator report. All tertiary indicator names under the secondary indicator name are obtained by querying the database of the example report content, and then all example data names under all tertiary indicators are obtained. If the target identifier is a primary indicator name, then the report type is determined to be a primary indicator report. All secondary indicator names under the primary indicator name are obtained by querying the database of the example report content. Then, all tertiary indicator names under the secondary indicator name are obtained, and finally, all example data names under all tertiary indicators are obtained.
[0012] Compared with existing technologies, the beneficial effects achieved by at least one of the above-mentioned technical solutions adopted in the embodiments of this specification include at least the following: To improve the efficiency of case study report preparation, this invention, relying on a database and an online display platform for case study data, proposes a clean and efficient method for designing and generating case study reports. It standardizes the report structure, simplifies the preparation process, and improves preparation efficiency while ensuring the completeness of the report content. Starting from the diversity and complexity of case study data classification, this method utilizes an online display platform to support custom classification of case study data, supports the automatic generation of case study reports containing multiple case study data, and provides generation request interfaces for different categories of case study reports. This greatly simplifies the original report preparation process and maximizes the report's organization and accuracy while automatically generating case study reports. Attached Figure Description
[0013] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a schematic diagram of the report classification method design structure according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the design structure of a single example report content in an embodiment of the present invention; Figure 3 This is a schematic diagram of the design structure of the primary indicator report content in an embodiment of the present invention. Detailed Implementation
[0015] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0016] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. This application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, in the absence of conflict, the following embodiments and features in the embodiments can be combined with each other. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0017] This invention provides a method for designing and generating calculation report in the field of aerodynamics, comprising the following steps: Report classification method design: Construct a three-level classification indicator system including primary indicators, secondary indicators and tertiary indicators, and classify several case data into the corresponding tertiary indicators; wherein, a primary indicator contains at least one secondary indicator, a secondary indicator contains at least one tertiary indicator, and a tertiary indicator contains at least one case data. Report content structure definition: Define four levels of report types and the content structure of each type corresponding to the three-level classification index system to obtain the case report content database; the four levels of report types include: single case report based on a single case data, third-level index report based on a third-level index, second-level index report based on a second-level index, and first-level index report based on a first-level index; Report generation and output: Responding to the report generation request submitted by the user through the online platform, the report generation request contains the target identifier corresponding to the report. Based on the target identifier, the corresponding case data content is obtained from the case report content database through database query. According to the corresponding report type, an XML format report is generated and output as a Word document.
[0018] This invention proposes a method for designing and generating case study reports based on an online display platform, thereby enabling the automatic generation of case study reports.
[0019] The technical solution adopted in the embodiments of the present invention is as follows: 1. Report classification method design: Users implement classification through a custom indicator system. The indicator system is divided into three levels: primary indicators, secondary indicators, and tertiary indicators. Each primary indicator contains several secondary indicators, each secondary indicator contains several tertiary indicators, and each tertiary indicator contains several example data points. Users specify the indicator to which each example data point belongs, thus classifying the data. A single tertiary indicator can contain multiple example data points. For example... Figure 1 As shown.
[0020] Based on the above indicator system, the case study data is classified, resulting in four types of case study reports: (1) Single Case Report: This report contains only one case data item; (2) Level 3 Indicator Report: This report contains all the example data under the current Level 3 indicator; (3) Secondary indicator report: This report contains all the tertiary indicators under the current secondary indicator, as well as all the example data under the tertiary indicators; (4) Primary indicator report: This report contains all secondary indicators under the current primary indicator, all tertiary indicators under the secondary indicators, and all example data under the tertiary indicators; 2. Report Content Design: (1) A single case report consists of the following parts: single case report title, case description, test objective, grid information, calculation parameters, and calculation results. For example... Figure 2 As shown.
[0021] The title of a single case report is the name of the current case data. The example description section includes: example description, experimental description, computational description, comparable data, and references. The example description includes: source information and basic information; the experimental description mainly reflects the source of experimental data and experimental status information; the computational description includes: computational model information, computational status information, mesh description information, boundary condition information, and computational reference information; comparable data are data results obtained through experiments or calculations, including: point data, curve data, image data, and engineering curves; the references include the sources of all the above data.
[0022] The test objective section includes: the metrics used to evaluate the case study data, and the solver software used to perform simulation calculations on the current case study data.
[0023] The grid information section includes: the grid name, grid type, grid dimension, number of grid blocks, number of grid points, and specific grid file name of the example data.
[0024] The calculation parameters section includes the names and values of the calculation parameters set when using the solver software to calculate the data for this example.
[0025] The calculation results section includes: calculation results obtained using the solver software to calculate the data for this example, specifically including: calculation status information and calculation data information. The calculation status information includes all calculation states contained in this example, with each state including a state name, Mach number, angle of attack, sideslip angle, unit Reynolds number, free-flow static pressure, and free-flow static temperature; the calculation data information corresponds one-to-one with the above comparable data, representing the actual calculation results generated by the solver software after completing the calculation, such as point data and curve data.
[0026] (2) The Level 3 Indicator Report consists of the Level 3 Indicator Report Title and a Single Calculation Case Report.
[0027] (3) The secondary indicator report consists of the secondary indicator report title and the tertiary indicator report.
[0028] (4) The primary indicator report consists of a primary indicator report title and a secondary indicator report.
[0029] 3. Report generation method: (1) Submit a report generation request.
[0030] Prerequisites for submitting a report generation request: 1) The user has completed the upload of the case study data on the online display platform, and the database storage information has been synchronized and updated. 2) Through the online display platform, all case study data has been classified, and each case study data has a clear classification indicator. The classification method is stored in the database. 3) The solver software has completed the simulation calculations for the example data; Users specify a particular data set or metric and submit a report generation request through the online platform. The request includes the name of the corresponding metric or data set. The backend program then retrieves the report generation request.
[0031] (2) Obtain the names of all example data in the report to be generated, in preparation for subsequent database queries; Determine the report type based on the request (types include: single case report, third-level indicator report, second-level indicator report, and first-level indicator report).
[0032] 1) The report type is a single case report. Obtain the case data name through the report generation request.
[0033] 2) The report type is a Level 3 indicator report. Obtain the Level 3 indicator name through the report generation request. Retrieve the names of all example data contained under this Level 3 indicator through a database query.
[0034] 3) The report type is a secondary indicator report. The secondary indicator name is obtained through a report generation request. All tertiary indicator names under this secondary indicator are obtained through a database query. All example data names under all tertiary indicators are obtained through a database query. Finally, the names of all example data under this secondary indicator are obtained.
[0035] 4) The report type is a Level 1 indicator report. The process involves obtaining the Level 1 indicator name through a report generation request, retrieving all Level 2 indicator names under this Level 1 indicator through a database query, retrieving all Level 3 indicator names under all Level 2 indicators through a database query, and retrieving all example data names under all Level 3 indicators through a database query. Finally, the process yields the names of all example data under this Level 1 indicator.
[0036] (3) Obtain the report content; 1) The report type is a single case report. For example... Figure 2 As shown.
[0037] A single test report contains only one test data, and the title of a single test report is the name of the current test data.
[0038] Based on the data name of the calculation case, retrieve the data content of the calculation case through a database query, including: calculation case description, test purpose, grid information, calculation parameters, and calculation results. Save the entire report content as a string.
[0039] a. How to obtain the case study description: The case study description includes five parts: case study description, experimental description, calculation description, comparable data, and references.
[0040] The descriptions of the case studies, experiments, calculations, and references are mainly in text and image format. By searching for keywords in the corresponding storage form in the database, which are the names of the case study data, the corresponding report content strings can be obtained.
[0041] Comparable data types include point data, curve data, image data, and engineering curves. All data in this category originates from user-uploaded experimental data. This data is retrieved through database queries. Point data categories typically include CL (lift coefficient) and CD (drag coefficient), with each category represented by a separate table. One column represents the angle of attack (one of the parameters indicating the calculation state), and the other column represents the numerical value. A pre-designed XML function is used to generate the corresponding report content string. Curve data categories typically include CL (lift coefficient) and CP (pressure distribution), etc. The curve data type is extracted, and a curve plotting function is called to create a scatter plot based on the x and y coordinates of each point within the curve data, generating the corresponding report content string. Image data categories typically include contour maps, etc. The image data type is extracted, and an image plotting function is called to create a display image, generating the corresponding report content string. Engineering curves are based on point data. Within the same data category, the angle of attack is used as the x-axis, and the point data values are used as the y-axis. A curve plotting function is called to draw the engineering data curve, generating the corresponding report content string.
[0042] b. Method for obtaining the test objective: The test objective consists of two parts: the index to which the current example data belongs and the solver software information. The corresponding form is queried in the database to obtain the relevant information, and an XML function is called to obtain the string of the corresponding report content.
[0043] c. Mesh Information Acquisition Method: Mesh file information is obtained through database query and displayed in a table format. The first row of the table header contains: mesh name, mesh type, 2D / 3D, number of blocks, number of points, and specific mesh file name. Starting from the second row, the retrieved information is entered, and an XML function is called to obtain the corresponding report content string.
[0044] d. Method for obtaining calculation parameters: The calculation parameters used in the calculation are obtained through database query and displayed in a table. The table has two columns: the first column is the parameter name, and the second column is the value. The corresponding report content string is obtained by calling an XML function.
[0045] e. Method for obtaining calculation results: The calculation results include: calculation status, point data, curve data, image data, and engineering curves. This section, based on the comparable data mentioned above, adds results generated by the solver software, facilitating comparison between the calculation results and experimental data. It also uses database queries to retrieve the relevant content and calls XML functions to obtain the corresponding report string.
[0046] 2) The report type is a level three indicator report.
[0047] The Level 3 Indicator Report contains several example data points, and the title of the Level 3 Indicator Report is the name of the current Level 3 Indicator.
[0048] Based on the names of all data examples included under the three-level indicators, a database query is used to obtain individual data example reports for all data examples. These reports are then sorted sequentially and stored as strings.
[0049] 3) The report type is a secondary indicator report.
[0050] The secondary indicator report contains several tertiary indicators, and the title of the secondary indicator report is the name of the current secondary indicator.
[0051] Repeat the above method for obtaining the three-level indicator reports, sort the three-level indicator reports in order, and save all report content in string format.
[0052] 4) The report type is a Level 1 indicator report.
[0053] The primary indicator report contains several secondary indicators, and the title of the primary indicator report is the name of the current primary indicator.
[0054] Repeat the above method for obtaining secondary indicator reports, sort the secondary indicator reports sequentially, and save all report content as a string. For example... Figure 3 As shown.
[0055] (4) Create a Word document; Edit the Word document using the XML language format, fill in the string containing all the report content, and you will get the completed report in XML format.
[0056] Create a Word document, write the XML content into the Word document, call the download API, and download the Word report.
[0057] The technical solution of the present invention will be further described in detail below, taking the integration of a certain software as an example.
[0058] 1. Upload example data information Based on the online demonstration platform, upload the case study data, including: case study description, experimental description, calculation description, comparable data, and references. Complete the data upload for the low-speed NACA0012 airfoil, hypersonic ball head, straight pipe flow, and low-speed laminar flat plate flow cases, ensuring the completeness of the case study data.
[0059] 2. Define the classification method for the calculation examples Based on the online display platform, the first-level indicator is named "Software Function Evaluation Indicator", the second-level indicator is named "Code Verification Indicator", and the third-level indicator is named "Symmetry Test", "Conservation Test", "Galileo Invariant Test", and "Discrete Error Quantification".
[0060] The specified examples of low-speed NACA0012 airfoil and hypersonic ball head belong to the third-level index "symmetry test"; the specified examples of straight pipe flow belong to the third-level index "conservation test"; the specified examples of low-speed NACA0012 airfoil belong to the third-level index "Galilean invariant test"; and the specified examples of low-speed laminar flat plate belong to the third-level index "discrete error quantization".
[0061] 3. Use calculation software to perform calculations. Based on the online demonstration platform, the calculation parameters are specified in the calculation interface, and the calculation software xxxCFD v1.0 is used to perform calculations on the low-speed NACA0012 airfoil example data. The solver is called in the background to complete the calculation.
[0062] 4. Submit a report generation request Based on the online demonstration platform, a report generation request for the low-speed NACA0012 airfoil can be submitted by clicking a button.
[0063] After receiving a single case report generation request, the background program queries the database for the corresponding case content based on the case name "Low-speed NACA0012 airfoil," including the case description, experimental description, calculation description, comparable data, and references. This information is stored as a string.
[0064] Using a pre-formatted XML template, write the string containing the report content into the template to generate an XML-formatted report.
[0065] Call the download function interface to obtain a report in Word format.
[0066] To improve the efficiency of case study report preparation, this invention proposes a clean and efficient method for designing and generating case study reports, relying on a database and an online platform for displaying case study data. It standardizes the report structure, simplifies the preparation process, and improves efficiency while ensuring the completeness of the report content. Considering the diversity and complexity of case study data classifications, this method utilizes an online display platform to support custom case study data classifications, automatically generate case study reports containing multiple case study data sets, and provides generation request interfaces for different types of case study reports. It allows users to customize the classification methods of case study data, greatly simplifying the original report preparation process. While automatically generating case study reports, it maximizes the report's organization and accuracy, improving preparation efficiency and reducing labor costs.
[0067] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for designing and generating calculation report in the field of pneumatic calculation, characterized in that, Includes the following steps: Report classification method design: Construct a three-level classification indicator system including primary indicators, secondary indicators and tertiary indicators, and classify several case data into the corresponding tertiary indicators; wherein, a primary indicator contains at least one secondary indicator, a secondary indicator contains at least one tertiary indicator, and a tertiary indicator contains at least one case data. Report content structure definition: Define four levels of report types and the content structure of each type corresponding to the three-level classification index system to obtain the case report content database; the four levels of report types include: single case report based on a single case data, third-level index report based on a third-level index, second-level index report based on a second-level index, and first-level index report based on a first-level index; Report generation and output: Responding to the report generation request submitted by the user through the online platform, the report generation request contains the target identifier corresponding to the report. Based on the target identifier, the corresponding case data content is obtained from the case report content database through database query. According to the corresponding report type, an XML format report is generated and output as a Word document.
2. The method for designing and generating calculation report in the field of aerodynamics according to claim 1, characterized in that, Based on the target identifier, the corresponding case study data content is retrieved from the case study report content database through a database query, including: The report type is determined based on the target identifier, and the names of all target case data contained in the report to be generated are obtained by querying the case report content database. Based on the determined report type, the detailed content of each target example data is obtained sequentially and assembled according to the predetermined content structure to form a report content string; The report content string is populated into a predefined XML format template to generate the final report file, which is then available for download.
3. The method for designing and generating calculation report in the field of aerodynamics according to claim 1, characterized in that, The three-level classification index system is determined based on user customization; the content structure of the four-level report types is defined as follows: The content structure of a single calculation case report includes: report title, calculation case description, test purpose, grid information, calculation parameters, and calculation results; The content structure of the third-level indicator report includes: the title of the third-level indicator report and the individual case report corresponding to all case data under that level of indicator; The content structure of the secondary indicator report includes: the title of the secondary indicator report and the corresponding tertiary indicator reports for all tertiary indicators under that level of indicator; The content structure of the primary indicator report includes: the title of the primary indicator report and the corresponding secondary indicator reports for all secondary indicators under that primary indicator.
4. The method for designing and generating case study reports in the field of aerodynamic calculations according to claim 3, characterized in that, The case description in the individual case report includes: case description, experiment description, calculation description, comparable data, and references; the comparable data includes at least one of point data, curve data, image data, and engineering curves.
5. The method for designing and generating calculation report in the field of aerodynamics calculation according to claim 4, characterized in that, The calculation results in the individual case report include: calculation status information and at least one of point data, curve data, image data, and engineering curves generated by the solver software.
6. The method for designing and generating calculation report in the field of aerodynamics according to claim 5, characterized in that, When obtaining the calculation description and calculation results of a single calculation case, for the point data, a report content string in tabular form is generated by calling an XML function; for the curve data, image data, and engineering curves, a report content string in image form is generated by calling the corresponding drawing function.
7. The method for designing and generating calculation report in the field of aerodynamics calculation according to claim 2, characterized in that, The report type is determined based on the target identifier, and the names of all target case data contained in the report to be generated are obtained by querying the case report content database, including: If the target identifier is a test case data name, then the report type is determined to be a single test case report, and the target test case data name is the test case data name corresponding to the target identifier; If the target identifier is a third-level indicator name, then the report type is determined to be a third-level indicator report, and all example data names under the third-level indicator name are obtained by querying the example report content database; If the target identifier is a secondary indicator name, then the report type is determined to be a secondary indicator report. All tertiary indicator names under the secondary indicator name are obtained by querying the database of the example report content, and then all example data names under all tertiary indicators are obtained. If the target identifier is a primary indicator name, then the report type is determined to be a primary indicator report. All secondary indicator names under the primary indicator name are obtained by querying the database of the example report content. Then, all tertiary indicator names under the secondary indicator name are obtained, and finally, all example data names under all tertiary indicators are obtained.