Simulation report template and simulation report generation method, device and medium

By automatically generating simulation report templates and methods for operating condition scripts, the problem of manually writing scripts in vehicle operating condition simulation has been solved, improving development efficiency and the flexibility of report templates.

CN114021537BActive Publication Date: 2026-03-03AUTOMOTIVE DATA OF CHINA (TIANJIN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111220674.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2026-03-03
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

In existing technologies, when different display methods are required during vehicle operating condition simulation, developers need to manually write scripts, resulting in a waste of manpower and costs.

Method used

This paper provides a simulation report template and generation method, which automatically generates operating condition scripts and displays them in the report template based on simulation data, replacing manual script editing.

Benefits of technology

It improves development efficiency, enables flexibility and customization of report templates, and reduces the workload of developers manually writing scripts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114021537B_ABST
    Figure CN114021537B_ABST
Patent Text Reader

Abstract

The present application relates to the field of vehicle working condition simulation, and discloses a simulation report template, a simulation report generation method, equipment and a medium.The simulation report template generation method comprises the following steps: creating a report master for displaying working condition simulation data, and a display area on the report master; automatically generating a working condition script according to first simulation data generated in a working condition simulation process, adding the working condition script to an original area script to obtain an added area script; the added area script is used for describing a final display format of the report master; and generating a report template from the report master.This embodiment improves the development efficiency and realizes customization based on a simulation process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle operating condition simulation, and in particular to a simulation report template and a simulation report generation method, device and medium. Background Technology

[0002] Currently, major automobile manufacturers and related parts companies need to conduct vehicle operating condition simulation. The simulation development process includes the operating condition simulation process and the output of the simulation report after the simulation, that is, the simulation results are output to the user in the form of a simulation report so that the user can intuitively understand the simulation results.

[0003] Simulation reports, as a way to display simulation data, typically use scripts to define the report's display framework, which requires script developers to manually write the scripts. However, in some scenarios, different simulation processes require different display methods, necessitating script developers to repeatedly create new scripts, consuming significant manpower and resources. Therefore, this invention is proposed to address this issue. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention provides a simulation report template, a simulation report generation method, device, and medium, which automatically generates corresponding operating condition scripts based on the operating condition simulation process, enabling the display of simulation data in the report template.

[0005] This invention provides a method for generating simulation report templates, the method comprising:

[0006] Create a report master for displaying operating condition simulation data, and a display area on the report master;

[0007] Based on the first simulation data generated during the working condition simulation, a working condition script is automatically generated. The working condition script is then added to the original area script to obtain the added area script. The added area script is used to describe the final display format of the report master.

[0008] Generate a report template from the report master;

[0009] The original region script includes: various display parameters of the display region;

[0010] The operating condition script includes various display parameters required to display the first simulation data in the display area.

[0011] This invention provides a simulation report generation method, the method comprising:

[0012] Obtain the working condition simulation file and the report template for displaying the simulation data, wherein the report template is generated using the method described in the above embodiments;

[0013] The simulation file is parsed using a file parsing tool to obtain the second simulation data;

[0014] The second simulation data is displayed in the display area of ​​the report template based on the second simulation data and the added area script of the report template.

[0015] This invention provides an electronic device, the electronic device comprising:

[0016] Processor and memory;

[0017] The processor executes the steps of the simulation report template generation method or the simulation report generation method described in any embodiment by calling the program or instructions stored in the memory.

[0018] This invention provides a computer-readable storage medium storing a program or instructions that cause a computer to execute the steps of the simulation report template generation method or the simulation report generation method described in any embodiment.

[0019] The embodiments of the present invention have the following technical effects: based on the first simulation data generated during the working condition simulation process, a corresponding working condition script is automatically generated to display the working condition simulation data, replacing the need for developers to manually edit the script, thus improving development efficiency. At the same time, it realizes template customization based on the simulation process, thereby improving the flexibility of the report template. Attached Figure Description

[0020] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0021] Figure 1 This is a flowchart of a simulation report template generation method provided in an embodiment of the present invention;

[0022] Figure 2 This is a schematic diagram of the report master after the best-view script is run, as provided in this embodiment of the invention;

[0023] Figure 3 This is a schematic diagram of the failure component screening process provided in an embodiment of the present invention;

[0024] Figure 4 This is a flowchart of a simulation report generation method provided in an embodiment of the present invention;

[0025] Figure 5 This is a schematic diagram of the added region script provided in an embodiment of the present invention;

[0026] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0028] This invention provides a method for generating simulation report templates, applicable to situations where report templates are generated based on vehicle operating condition simulation processes. The report templates are used to generate simulation reports. The method provided by this invention is executed by an electronic device that can simultaneously run operating condition simulation software.

[0029] Figure 1 This is a flowchart of a simulation report template generation method provided in an embodiment of the present invention. See also... Figure 1 The method for generating this simulation report template specifically includes:

[0030] S110. Create a report master for displaying operating condition simulation data, and a display area on the report master.

[0031] In this embodiment of the invention, a report master is first created. For example, the report master is a blank page; a blank page is created to display the simulation data.

[0032] After the report master is created, a display area is created within the report master in response to the user's display area selection operation. For example, the display area is a display box in the aforementioned blank page, used to define the display position of the simulation data; the display area selection operation is: using the mouse to draw at least one display box in the blank page. Optionally, each display box is the smallest display unit of simulation data, that is, each display box is used to display a corresponding set of simulation data. A set of simulation data refers to the first set of simulation data generated in a simulation process, or the second set of simulation data contained in a simulation file.

[0033] After creating the display area, the various display parameters of the display area are written into a script corresponding to the master slide of this report, called the raw area script. The raw area script describes the display format of the display area, such as the position, background color, and font of the display area.

[0034] S120. Based on the first simulation data generated during the operating condition simulation, an operating condition script is automatically generated, and the operating condition script is added to the original area script to obtain the added area script. The operating condition script includes various display parameters required to display the first simulation data in the display area.

[0035] First, after creating the report master and display area, the operating condition simulation operation is triggered to obtain the first simulation data generated during the operating condition simulation process. The display parameters required to display the first simulation data are then written into another script, called the operating condition script.

[0036] Optionally, the first simulation data includes: simulation parameters and simulation results; the display parameters required to display the first simulation data include: simulation parameters, simulation results, and display format parameters. Each display parameter includes a parameter name and a parameter value. The display format parameters are used to display the simulation parameters and simulation results in the display area. The display format parameters include: whether to display the Boolean values ​​of each simulation parameter, as well as the display range, display angle, and display position of the simulation results, etc.

[0037] Then, the operating condition script is added to the original region script to obtain another script. For ease of description and differentiation, this second script is referred to as the added region script. The operating condition script thus becomes part of the added region script. The added region script is used to describe the final display format of the report master, including the display content and display format. For example, the display content includes the operating condition simulation results to be displayed, and the display format includes the display position of the operating condition simulation results.

[0038] The entire process of S120 is described below through a specific implementation method.

[0039] Assuming the method provided by this invention runs on a first software platform, which is a secondary development based on the HyperWorks series of software, integrating simulation software such as HyperMesh, HyperView, and HyperGraph, each of which has slightly different simulation functions. HyperMesh can pre-process and capture modeling images to obtain physical parameters such as model mass and center of gravity; HyperView can post-process and obtain simulation result images, videos, and other result information; and HyperGraph can post-process and obtain simulation curves, simulation parameters, and other result information.

[0040] After creating the report master and display area, users can perform the following steps: Step 1: Based on the desired operating condition, launch the simulation software corresponding to the simulation function required for that condition. For example, if the user wants to display the stiffness condition, and the stiffness condition simulation requires capturing modeling images and obtaining simulation result images, then the user launches HyperMesh and HyperView software; if the user wants to display the NVH (Noise, Vibration, Harshness) condition, and the NVH condition simulation requires capturing modeling images, obtaining simulation result images, and obtaining simulation curves, then the user launches HyperMesh, HyperView, and HyperGraph software. Step 2: Call the input files required by the launched simulation software and enter the required simulation parameters in the simulation interface of the launched simulation software; finally, run the launched simulation software to obtain the simulation results.

[0041] Suppose a user wants to display stiffness simulation data in a display area. They launch HyperMesh and HyperView software and call the input file required by HyperMesh. The simulation software interface then displays various simulation parameters related to stiffness simulation. Each parameter corresponds to a drop-down menu with selectable values. For any simulation parameter required for this stiffness simulation, the user selects the desired value from the drop-down menu using the mouse. After selecting all required simulation parameters, the user clicks the run button to run the simulation and obtain the results. During this simulation, the method provided by this invention automatically acquires the first simulation data corresponding to the user's operations in the simulation software, including: the simulation parameters selected in the simulation software interface and the simulation results obtained at the end of the simulation; and automatically generates a working condition script corresponding to this simulation process based on these simulation parameters and results. The working condition script includes: these simulation data and results, and display format parameters for displaying these simulation parameters and results in the display area.

[0042] Specifically, the simulation parameters related to stiffness simulation in the simulation interface are AA, BB, and CC. This simulation requires setting AA and BB. The user selects the parameter value 'aa' from the drop-down menu corresponding to AA and the parameter value 'bb' from the drop-down menu corresponding to BB. Then, the user clicks the run button to start the stiffness simulation. After the simulation is complete, stiffness simulation results will be generated on the simulation interface, such as numerical values, curves, images, and animations. During the process of the user setting parameters with the mouse, the method provided in this embodiment automatically obtains the simulation parameters set by the user in the simulation software, including the parameter names AA and BB, and the parameter values ​​'aa' and 'bb', by sensing the mouse position. During the generation of simulation results, the method provided in this embodiment automatically obtains the simulation results by taking screenshots or recording screens. Finally, based on the obtained simulation parameters and simulation results, the method provided in this embodiment automatically generates the working condition script corresponding to this working condition simulation.

[0043] S130. Generate a report template from the report master.

[0044] If only one report master is created, that report master will be used as the report template. If multiple report masters are created, each report master will be used as a page in the report template, generating a multi-page report template.

[0045] It should be noted that in the report template generation method provided in this embodiment of the invention, the scripts generated at each stage are not executed, including the original area script, the working condition script, and the added area script. These scripts are used to display corresponding content when they are executed, but they are not run after generation during the report template generation process; the report master is always a blank page, only containing the corresponding scripts. The scripts must run in subsequent processes to display the corresponding content in the report master.

[0046] The report master generated in this embodiment will be applicable to all simulation processes that are consistent with the operation of this simulation process. Consistent operation between two simulation processes includes: the simulated operating conditions are the same, the parameter names of the simulation parameters set by the user in the simulation software interface are the same, the types of simulation results obtained are the same, and the parameter names of the simulation parameters and the corresponding display format parameters of the simulation results are also the same.

[0047] This embodiment has the following technical effects: Based on the first simulation data generated during the working condition simulation process, this embodiment automatically generates the corresponding working condition script to display the working condition simulation data, replacing the need for developers to manually edit the script, thus improving development efficiency. At the same time, it realizes template customization based on the simulation process, improving the flexibility of the report template.

[0048] Based on the above embodiments, this embodiment refines the process of generating report templates from report masters. Optionally, for the case of creating multiple report masters, firstly, multiple report masters for displaying operating condition simulation data, and display areas on each report master, are created. The display areas of two report masters can be the same or different. Optionally, each report master corresponds to one operating condition simulation process.

[0049] Then, based on the first simulation data generated during each simulation of a working condition, a corresponding working condition script is generated. This working condition script is then added to the original region script corresponding to each report master, resulting in an added region script for each report master. The added region script is used to describe the final display format of the corresponding report master.

[0050] Scenario 1: Different report master templates have different final display formats corresponding to different operating conditions. For example, if a report master template is created, a stiffness simulation process is performed, and the corresponding operating condition script is automatically generated and added to the original area script of the first report master template, then the final display format of the first report master template corresponds to the stiffness operating condition. If another report master template is created, a strength simulation process is performed, and the corresponding operating condition script is automatically generated and added to the original area script of the other report master template, then the final display format of the other report master template corresponds to the strength operating condition.

[0051] Scenario 2: Different report master templates have different final display formats corresponding to different simulation parameter settings for the same working condition. For example, create another report master template, set the required simulation parameters according to the first simulation conditions, perform the first stiffness simulation process, automatically generate the working condition script corresponding to this process and add it to the original area script of the other report master template. Then, the final display format of the other report master template corresponds to the first simulation parameter settings for the stiffness working condition. Create yet another report master template, set the required simulation parameters according to the second simulation conditions, perform the second stiffness simulation process, automatically generate the working condition script corresponding to this process and add it to the original area script of the yet another report master template. Then, the final display format of the yet another report master template corresponds to the second simulation parameter settings for the stiffness working condition.

[0052] Finally, multiple report masters are integrated to generate a report template. Optionally, after obtaining the expanded area scripts of multiple report masters, a report template is created in response to the user's selection of a report master. Each page in the report template is a report master. A report master can be referenced in multiple report templates. If the expanded area script of a report master is modified, all report templates referencing that report master need to be updated to ensure consistency in display format across updated report templates.

[0053] In this embodiment, for any report master, the final display format can be adjusted according to a user's requirements (such as the operating conditions to be simulated, simulation parameter settings, etc.). By performing a simulation process corresponding to those requirements, the report master can have a final display format corresponding to those requirements. Multiple report masters can also be integrated according to user requirements, and multiple report masters can be called to form a report template. Different combinations of report masters correspond to different combinations of user requirements.

[0054] Based on the above embodiments, this embodiment provides a method for optimizing the working condition script, applicable to situations where 3D simulation data is displayed from the optimal perspective. Optionally, if the simulation object in the working condition simulation process is a 3D structure, and the first simulation data includes the 3D simulation results of the 3D structure, then the working condition script includes: an optimal perspective script.

[0055] The optimal viewpoint script, when run, performs the following operations: modifies the original rendering viewpoint of the simulation results to the normal direction (i.e., the normal direction) of the finite element plane where the target location is located; renders the simulation results according to the new rendering viewpoint to obtain a two-dimensional rendering view. The target location is the position selected by the user in the three-dimensional structure or the location of the failed component.

[0056] When the simulation object is a three-dimensional structure, the working condition script includes an optimal viewpoint script, which is used to display the desired location to the user from the best perspective.

[0057] Optionally, rendering the simulation results according to the new rendering perspective to obtain a two-dimensional rendering view includes: after displaying the three-dimensional simulation structure in the simulation interface, automatically rotating the three-dimensional simulation results in the simulation interface so that the normal of the finite element plane where the target position is located is perpendicular to the simulation interface; taking a screenshot of the two-dimensional image of the rotated simulation results in the simulation interface to obtain the two-dimensional rendering view.

[0058] In this embodiment, the rendering of the three-dimensional result can be achieved by rotating and then taking a screenshot. However, the rotation and screenshot process is not manually operated by the user, but is automatically implemented when the optimal viewpoint script runs, which improves the intelligence of the three-dimensional data display.

[0059] In one specific implementation, after performing strength simulation analysis on the vehicle's 3D structural components using Hyperworks software, the user wants to see the point with the highest stress in the 3D structural component, i.e., the point with strength risk. However, due to the differences between 3D structural components, the location of the risk within the component is unknown, and the view angle preset in the working condition script may not be able to observe the actual risk point. When the optimal view script runs, it can obtain the finite element corresponding to the maximum stress picked up by HyperView, use the normal of this finite element as the optimal view angle, rotate the 3D strength simulation results displayed in the simulation interface, and capture the 2D simulation image from the rotated simulation interface as the obtained 2D rendered view displayed in the report master.

[0060] In this specific implementation, the finite element element with the highest stress is usually located on the surface of the three-dimensional structure. Therefore, the captured two-dimensional simulation image can clearly show the actual risk points to the user, avoiding any obstruction of these points. Even if the finite element element with the highest stress is located inside the three-dimensional structure, the optimal viewpoint script can adjust the viewpoint of the screenshot during runtime. After adjustment, the user's observation of the actual risk points is still better than the preset viewpoint. Figure 2 This is a schematic diagram of the report master after the optimal perspective script is executed, as provided in this embodiment of the invention. Figure 2 As shown, the point of maximum stress is presented directly to the user in the report master, avoiding the situation where the point of maximum stress is obscured by the back of the view.

[0061] Based on the above embodiments, this embodiment provides another method for optimizing the operating condition script, applicable to situations where failed components are determined using failed materials in the first simulation data. Optionally, the first simulation data includes failed materials in the simulation object, then the operating condition script includes a failed component determination script. The failed component determination script, when running, performs the following operations: based on the failed materials, it filters out components made from the failed materials in the simulation object; if the operating condition value of a component exceeds the preset operating condition range of the component, the component is determined to be a failed component.

[0062] In one specific implementation, when the simulation object is a three-dimensional structural component of a vehicle, in the strength analysis of the three-dimensional structural component, assuming that the simulation report template needs to first present which materials are failure materials (i.e., the strength of the materials does not meet the requirements), and then display which components are failure components (i.e., the strength of the components does not meet the requirements), the method provided in this embodiment first performs a strength simulation process, and then automatically generates a failure component determination script based on the simulation results containing failure materials generated during the strength simulation process. When the failure component determination script runs, it can filter out each component made of failure materials from the three-dimensional structural component; if the working condition value of a component exceeds the preset working condition range of the component, the component is determined to be a failure component.

[0063] Figure 3 This is a schematic diagram illustrating the process of screening failed components according to an embodiment of the present invention. See also... Figure 3 The materials used to manufacture the three-dimensional structural components include: material 1, material 2, ..., material N. The simulation results include the failed materials in the three-dimensional structural components: material 1 and material 3. Based on the failed materials, a script for determining the failed components is automatically generated. When the script for determining the failed components is run, it performs the following operations: (1) Filter out the components made of material 1 from the three-dimensional structural components: component 1, component 2, ..., component N, and components made of material 3: component 4, component 5, ..., component M; (2) The working condition value of component 1 exceeds the preset strength range [A1,A2] of component 1, so component 1 is determined to be a failed component; the working condition value of component 2 does not exceed the preset strength range [A3,A4] of component 2, so component 2 is determined to be a non-failed component; and so on, each component is judged separately. Since the strength range of each component is different, the union of the failed components and the union of the components made of the failed materials are not exactly the same.

[0064] Optionally, the operating script also includes a component optimal view script. When the component optimal view script runs after the failed component determination script, it modifies the original rendering view of the 3D simulation results, including the failed material, to the normal of the finite element element containing the failed component; the simulation results are then rendered according to the new rendering view to obtain a 2D rendering view. This 2D rendering view can more clearly show the condition of the failed component.

[0065] This invention also provides a simulation report generation method. Based on the simulation report template generation method provided in any of the above embodiments, this method is applicable to situations where a simulation report is generated according to simulation data and a report template. This invention is executed by an electronic device.

[0066] Figure 4 This is a flowchart of a simulation report generation method provided in an embodiment of the present invention. See also... Figure 4 The method for generating this simulation report specifically includes:

[0067] S410. Obtain the operating condition simulation file and the report template for displaying the simulation data, wherein the report template is generated using the method described in any of the above embodiments.

[0068] In one specific embodiment, it is assumed that the method provided in this invention runs on a second software platform, wherein the second software platform may be the same as or different from the first software platform in the above embodiments. The simulation file is a file output by HyperWorks software (including model files and result files). After generating the report template required by the user using the method of any of the above embodiments, the pre-obtained simulation file and the report template generated by the first software platform are used as inputs to the second software platform.

[0069] S420. Call the file parsing tool to parse the simulation file and obtain the second simulation data.

[0070] In the above specific implementation, the second software platform automatically launches the HyperWorks software via application programming interface (API) technology to parse the simulation file, that is, to read the second simulation data from the file storage according to the data storage rules of the simulation file. It should be noted that since the simulation file is obtained through the HyperWorks software, this embodiment still calls the HyperWorks software to parse the simulation file to ensure the accuracy and feasibility of the simulation data parsing.

[0071] S430. Based on the second simulation data and the added area script of the report template, display the second simulation data in the display area of ​​the report template.

[0072] Optionally, displaying the second simulation data in the display area of ​​the report template based on the second simulation data and the added area script of the report template includes: replacing the parameter value of the display parameter corresponding to the first simulation data with the parameter value of the display parameter corresponding to the second simulation data in the added area script; running the replaced area script to display the second simulation data in the display area of ​​the report master.

[0073] The second simulation data in this embodiment is usually different from the first simulation data in the above embodiments, but the two are also related.

[0074] First, the generation stages and functions of the two methods differ. The report template generation method and report generation method provided in this embodiment of the invention operate in two different stages. In the first stage, a report template is generated using the report template generation method described in the above embodiment. In the second stage, a simulation report is generated by referencing the report template obtained using the report generation method in this embodiment. Therefore, the first simulation data is generated during the simulation process in the first stage and is used to automatically generate a report master corresponding to the simulation process. The working condition script containing the increased parameter values ​​of the first simulation data is not run, and the parameter values ​​of the first simulation data are not displayed in the report template. On the other hand, the second simulation data is generated during the parsing process in the second stage and is used to substitute the parameter values ​​of the specific display parameters into the increased display template. The working condition script containing the increased parameter values ​​of the second simulation data is the final script that is run, and the parameter values ​​of the second simulation data are displayed in the final report template, thus obtaining the simulation report.

[0075] Secondly, the parameter names of the display parameters included in both are the same. Since a generated report master is applicable to all simulation processes that operate in the same way as the simulation process that generated the master, the parameter names of the display parameters included in the first and second simulation data should be identical, both being display parameters generated during the simulation process. In the above specific implementation, after the second software platform parses and obtains the second simulation data, if the parameter names included in the second simulation data are different from those in the first simulation data, the corresponding parameter values ​​cannot be replaced. In this case, the second software platform will report an error, prompting to re-call the simulation file that guarantees consistent parameter names and re-parse the second data.

[0076] In this embodiment, the simulation file is parsed using a file parsing tool (e.g., HyperWorks software) to automatically obtain the simulation data required for the simulation report. This effectively avoids the risks caused by manual errors by engineers, greatly improves work efficiency, and shortens the development cycle. The parsed second simulation data includes: simulation result images, animations, result parameters, curves, tables, etc., which can fully cover the user's development needs.

[0077] Optionally, when running the replaced region script, at least one of the following operations is performed:

[0078] Operation 1: When the simulation object of the working condition simulation process is a three-dimensional structure, and the first simulation data includes the three-dimensional simulation results of the three-dimensional structure, the original rendering perspective of the simulation results is modified to the normal of the finite element plane where the target position is located; the simulation results are rendered according to the new rendering perspective to obtain a two-dimensional rendering view; wherein, the target position is the position selected by the user in the three-dimensional structure or the position of the failed component.

[0079] Operation 2: When the first simulation data includes failed materials in the simulation object, select components made of the failed materials from the simulation object based on the failed materials; if the operating condition value of a component exceeds the preset operating condition range of the component, determine that the component is a failed component.

[0080] Operation 3: When the first simulation data includes the failed material in the simulation object, select the components made of the failed material from the simulation object according to the failed material; if the working condition value of a component exceeds the preset working condition range of the component, determine that the component is a failed component; modify the original rendering perspective of the simulation result to the normal of the finite element element where the failed component is located; render the simulation result according to the new rendering perspective to obtain a two-dimensional rendering view.

[0081] By running the replaced area script, the best perspective conversion and / or failure component screening can be achieved for specific second simulation data, so that different second simulation data can achieve their own optimal display effects.

[0082] Based on the above embodiments, this embodiment refines the process of calling parsing tools to parse simulation files. Optionally, there are multiple simulation files, multiple file parsing tools, and multiple display areas; the step of calling a file parsing tool to parse the simulation file to obtain second simulation data includes: according to the file format of any simulation file, calling a file parsing tool that matches the file format to parse the simulation file and obtain the second simulation data corresponding to the simulation file.

[0083] Accordingly, displaying the simulation data in the display area of ​​the report template based on the second simulation data and the added region script includes: displaying the second simulation data corresponding to the simulation file in the display area corresponding to any simulation file, based on the added region script of the display area.

[0084] For example, each report master in the report template is a blank page, and each display area within the blank page is a display box. The second simulation data in each simulation file corresponds to one display box. By running the script for the added area corresponding to any display box, the second simulation data corresponding to that display box will be displayed in that display box.

[0085] In one specific embodiment, it is still assumed that the method provided in this embodiment of the invention runs on a second software platform. The second software platform is developed and integrated based on HyperWorks simulation software, including HyperMesh, HyperView, and HyperGraph. The simulation functions that each software can implement are not entirely the same, and the file formats of the generated simulation files are also not entirely the same. Table 1 shows the simulation file formats generated by each HyperWorks simulation software. Table 2 shows the simulation file formats corresponding to different working conditions. Different working conditions include: stiffness, strength, collision, NVH, etc.

[0086] Table 1. Simulation file formats for each HyperWorks software.

[0087] Serial Number HyperWorks File format 1 HyperMesh bdf / nas / k / rad preprocessing file 2 HyperView op2 / d3plot / h3d post-processing file 3 HyperGraph pch / binout / h3d / t01 post-processing file

[0088] Table 2 shows the simulation file formats for each operating condition.

[0089] Serial Number Operating condition name Model file format Result file format 1 stiffness bdf / nas preprocessing files op2 / pch post-processing files 2 strength bdf / nas preprocessing files op2 / pch post-processing files 3 Collision safety k / rad preprocessing file d3plot / t01 post-processing file 4 NVH bdf / nas preprocessing files op2 / pch post-processing files

[0090] Users select multiple simulation files (multiple sets of model files and result files) and input them into the second software platform according to the operating conditions and display format required in the simulation report. The second software platform performs the following operations on each set of model files and result files: automatically identifies the file format of any simulation file (any model file or any result file), calls the simulation software that matches the file format to parse the simulation file, and obtains the second simulation data corresponding to the simulation file.

[0091] Referring to Tables 1 and 2, for example, when the report needs to display simulation data of stiffness, a set of model files in bdf / nas format and op2 / pch result files are input into the second software platform. The second software platform automatically recognizes the bdf / nas format of the model file, calls the HyperMesh software that matches the bdf / nas format to parse the model file, and obtains the simulation data corresponding to the model file; it also automatically recognizes the bdf / nas format of the result file, calls the HyperView software that matches the bdf / nas format to parse the result file, and obtains the simulation data corresponding to the result file.

[0092] In this embodiment, by parsing simulation files under different working conditions, report templates for all structural R&D fields can be created.

[0093] Based on the above embodiments, in order to meet different user needs, this embodiment considers user modifications to the added region script. Optionally, after displaying the second simulation data in the display area of ​​the report template according to the parsed second simulation data and the added region script, the method further includes: updating the display content of the display area according to the modified region script in response to the user's modification operation of the display parameters in the added region script.

[0094] Figure 5 This is a schematic diagram of the added region script provided in an embodiment of the present invention. See also... Figure 5 The added area script is displayed to the user through the script interface. It can be seen that the added area script in this embodiment includes: the original area script and the operating condition script. The original area script includes: Original Area Script 1 and Original Area Script 2. The operating condition script is located between Original Area Script 1 and Original Area Script 2 and is part of the added area script. The operating condition script includes: a failed component determination script and an optimal viewing angle script.

[0095] exist Figure 5 In the script interface shown, users can modify any display parameters in the added region script to adjust the display format of the report master. For example, the second simulation data includes simulation curves of the intensity conditions. When a user wants to display only a portion of the simulation curves in the simulation report, they can modify the range of the display interval in the condition script included in the added region script to achieve the desired display result.

[0096] Optionally, the step of responding to the user's modification operation on the display parameters in the added region script, and updating the display content of the display region according to the modified region script, includes:

[0097] Step 1: In response to the user's modification operation on the parameter value in the calling file, the parameter value of the display parameter that needs to be modified is replaced with the corresponding identifier in the added area script, wherein the identifier includes: parameter name information.

[0098] The calling file includes the parameter names and values ​​of the display parameters that the user needs to modify. When a user wants to modify the display content of a certain display area, the parameter values ​​of the display parameters to be modified are changed to the new parameter values ​​in the calling file. In response to the user's modification operation, the method provided in this embodiment modifies the parameter values ​​of the display parameters to be modified in the newly added area script corresponding to the display area, replacing them with the corresponding identifiers.

[0099] In one specific implementation, the calling file includes an Excel file, where each row represents a display parameter. Each row corresponds to two columns: a Key column and a Value column, representing the parameter name and parameter value, respectively. Assume the added region script includes the statement: Interval = [30, 100], indicating that the display interval of the simulation result curve is [30, 100], where Interval is the parameter name and [30, 100] is the original parameter value. Correspondingly, the Excel file includes a row where the Key column and Value column are Interval and [30, 100], respectively. This row corresponds to the statement.

[0100] If the user wants to display a curve between [30, 70] in the report, the parameter value [30, 100] in the Excel file should be modified to [30, 70]. In response to the user's modification of the parameter value, the method provided in this embodiment modifies the statement "Interval = [30, 100]" to "Interval = " in the added region script. <arg:interval> ”。 <arg:interval>This is the identifier corresponding to the parameter name Interval, which includes the parameter name information Interval.

[0101] Step 2: Run the modified area script and read the new parameter values ​​of the display parameters from the calling file according to the parameter name information.

[0102] In the above specific implementation, the modified region script is run, that is, the modified statement "Interval=" is run. <arg:interval>According to the label <arg:interval>The parameter name information Interval in the Excel file is used to read the new parameter value [30,70] in the Value column, which is located in the same row as the Interval in the Key column.

[0103] Step 3: In the modified area script, assign the new parameter value to the parameter name of the display parameter that needs to be modified, and update the display content of the display area according to the new parameter value.

[0104] In the above specific implementation, in the modified region script, the new parameter value [30,70] is assigned to the parameter name Interval, resulting in the new statement "Interval=[30,70]". Running the new statement will update the display content in the display region to the simulation result curve between the interval [30,70].

[0105] Since the simulation report involves many display parameters, if each display parameter needs to be manually entered by the user, it will not only be a lot of work, but sometimes it will also be impossible to implement. At the same time, it will greatly affect the degree of automation in generating the simulation report. Therefore, this embodiment realizes the batch input of parameters by calling a file.

[0106] This invention also provides an electronic device. Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. For example... Figure 6 As shown, the electronic device 600 includes one or more processors 601 and memory 602.

[0107] The processor 601 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 600 to perform desired functions.

[0108] The memory 602 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 901 may execute the program instructions to implement the simulation report template generation method of any embodiment of the present invention described above, or the steps of the simulation report generation method, and / or other desired functions. Various contents such as initial extrinsic parameters and thresholds may also be stored in the computer-readable storage medium.

[0109] In one example, electronic device 600 may further include an input device 603 and an output device 604, these components being interconnected via a bus system and / or other forms of connection mechanisms (not shown). The input device 603 may include, for example, a keyboard, a mouse, etc. The output device 604 may output various information to the outside, including warning messages, braking force, etc. The output device 604 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.

[0110] Of course, for the sake of simplicity, Figure 6 Only some of the components of the electronic device 600 relevant to the present invention are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device 600 may include any other suitable components depending on the specific application.

[0111] In addition to the methods and devices described above, embodiments of the present invention may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps of the simulation report template generation method or simulation report generation method provided in any embodiment of the present invention.

[0112] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of the present invention. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0113] Furthermore, embodiments of the present invention may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps of the simulation report template generation method or simulation report generation method provided in any embodiment of the present invention.

[0114] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0115] It should be noted that the terminology used in this invention is for describing specific embodiments only and is not intended to limit the scope of this application. As shown in the specification and claims, unless the context clearly indicates otherwise, words such as "a," "an," "an," and / or "the" do not specifically refer to the singular and may include the plural. The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, or apparatus that includes said element.

[0116] It should also be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. Unless otherwise expressly specified and limited, the terms "installed," "connected," "linked," etc., should be interpreted broadly. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be a connection within two components. For those skilled in the art, the specific meaning of the above terms in the present invention can be understood according to the specific circumstances.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the technical solutions of the embodiments of the present invention.< / arg:interval> < / arg:interval> < / arg:interval> < / arg:interval>

Claims

1. A method for generating an emulation report template, the method comprising: The method comprises the following steps: creating a report template for displaying working condition simulation data, and a display area on the report template; automatically generating a working condition script according to first simulation data generated in a working condition simulation process, adding the working condition script to an original area script to obtain an added area script; the added area script is used to describe a final display format of the report template; generating a report template from the report template; wherein the original area script comprises various display parameters of the display area; the working condition script comprises various display parameters required for displaying the first simulation data in the display area; a simulation object of the working condition simulation process is a three-dimensional structure, and the first simulation data comprises a three-dimensional simulation result of the three-dimensional structure; the working condition script comprises an optimal viewing angle script, which is used to perform the following operations when running: modifying a rendering viewing angle of the simulation result to a normal of a finite element plane where a target position is located; rendering the simulation result according to the new rendering viewing angle to obtain a two-dimensional rendering view; wherein the target position is a position selected by a user in the three-dimensional structure or a position of a failed component.

2. The simulation report template generation method of claim 1, wherein, the number of the report templates is multiple, and the number of the working condition simulation processes is multiple; the step of automatically generating a working condition script according to first simulation data generated in a working condition simulation process, and adding the working condition script to an original area script to obtain an added area script comprises the following steps: automatically generating a corresponding working condition script according to first simulation data generated in each working condition simulation process, and adding the working condition script to an original area script corresponding to each report template to obtain an added area script corresponding to each report template; the step of generating a report template from the report template comprises the following step: integrating multiple report templates to generate a report template.

3. The simulation report template generation method of claim 1, wherein, the first simulation data comprises a failed material in a simulation object; the working condition script comprises a failed component determination script, which is used to perform the following operations when running: screening components made of the failed material from the simulation object according to the failed material; if a working condition value of a component exceeds a preset working condition range of the component, determining that the component is a failed component.

4. A simulation report generation method characterized by comprising: The method comprises the following steps: obtaining working condition simulation files and a report template for displaying simulation data, wherein the report template is generated by using the simulation report template generation method in any one of claims 1-3; calling a file analysis tool to analyze the simulation files to obtain second simulation data; displaying the second simulation data in a display area of the report template according to the second simulation data and the added area script of the report template.

5. The simulation report generation method of claim 4, wherein, the number of the simulation files is multiple, the number of the file analysis tools is multiple, and the number of the display areas is multiple; the step of calling a file analysis tool to analyze the simulation files to obtain second simulation data comprises the following step: calling a file analysis tool matched with a file format of any simulation file to analyze the simulation file to obtain second simulation data corresponding to the simulation file. The second simulation data is displayed in the display area of the report template according to the increased area script of the second simulation data and the report template, and the method comprises the following steps of: In any display area corresponding to a simulation file, the second simulation data corresponding to the simulation file is displayed according to the increased area script of the display area.

6. The simulation report generation method of claim 4, wherein, After the second simulation data is displayed in the display area of the report template according to the increased area script of the second simulation data and the report template, the method further comprises the following steps of: In response to a modification operation of a display parameter in the increased area script by a user, the display content of the display area is updated according to the modified area script.

7. The simulation report generation method of claim 6, wherein, The display content of the display area is updated according to the modified area script in response to the modification operation of the display parameter in the increased area script by the user, and the method comprises the following steps of: In response to a modification operation of a parameter value in the calling file by the user, the parameter value of the display parameter to be modified is replaced by a corresponding identifier in the increased area script, wherein the identifier comprises parameter name information. The modified area script is run, and the new parameter value of the display parameter is read from the calling file according to the parameter name information. In the modified area script, the new parameter value is assigned to the parameter name of the display parameter to be modified, and the display content of the display area is updated according to the new parameter value. The calling file comprises the parameter name and the parameter value of the display parameter to be modified by the user.

8. An electronic device, comprising: The electronic device comprises: a processor and a memory; the processor calls the program or instruction stored in the memory to execute the steps of the simulation report template generation method according to any one of claims 1-3 or the simulation report generation method according to any one of claims 4-7.

9. A computer readable storage medium, characterized in that, The computer readable storage medium stores the program or instruction, and the program or instruction makes the computer execute the steps of the simulation report template generation method according to any one of claims 1-3 or the simulation report generation method according to any one of claims 4-7.

Citation Information

Patent Citations

  • Method of automatically generating report

    CN108595397A

  • Analysis report generation method

    CN110728114A