Method and device for building post-processing simulation data display frame and electronic equipment
By building a post-processing simulation data display framework, using Qt Designer and matplotlib software library, the problems of unclear user needs and the risks of code refactoring are solved, and the rapid iterative software development and development efficiency are improved.
Patent Information
- Application Number
- CN202411637974.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-03-18
AI Technical Summary
During the development of post-processing simulation data display modules for existing industrial software, unclear user needs lead to a large difference between design and user needs, and the lack of a suitable code framework leads to serious risks of code overturning and reconstruction.
By building a post-processing simulation data display framework, including the console area, data display area and menu bar area, the Qt Designer and matplotlib software library are used to realize modular design, so that the changes between modules do not affect each other, and quickly build a flexible software prototype.
Significantly reduce the understanding error between users and designers, reduce the risk of code overturning and reconstruction, realize the rapid iterative development of software on the right track, improve development efficiency and shorten product time to market.
Smart Images

Figure CN119645393A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer processing technology, and in particular to a method for building a post-processing simulation data display framework, a device for building a post-processing simulation data display framework, an electronic device, a machine-readable storage medium and a computer program product. Background Art
[0002] The development process of the post-processing simulation data display module of existing industrial software will formulate design analysis documents such as outline design and detailed design according to user needs, and then carry out software coding. Finally, through repeated communication with users, the final product is iteratively generated.
[0003] Since users' early needs are not clear, designers' initial deliverables are often very different from what users need. If a suitable code framework is not built, the risk of code tearing down and refactoring will be seriously increased. Therefore, how to quickly build a flexible software prototype that can significantly reduce the misunderstanding between users and designers, reduce the risk of code tearing down and refactoring, and thus achieve rapid iterative development of software on the right track has become an urgent problem to be solved. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a method, device and electronic device for building a post-processing simulation data display framework to solve the problem of how to quickly build a flexible software prototype, which can significantly reduce the misunderstanding between users and designers and reduce the risk of code pushback and reconstruction, thereby achieving rapid iterative development of software on the right track.
[0005] In order to achieve the above object, an embodiment of the present invention provides a method for building a post-processing simulation data display framework, comprising: In response to a configuration instruction of the console area, a console area is created; the console area is used to receive a visualization parameter editing command for a post-processing simulation data file; In response to a configuration instruction of a data display area, creating a data display area; the data display area is used to display a visualization result of the post-processing simulation data file; In response to the configuration instruction of the menu bar area, a menu bar area is created; the menu bar area is used to receive menu operation commands for the post-processing simulation data file.
[0006] Optionally, the creating a console area in response to a configuration instruction of the console area includes: In response to the configuration instruction of the console area, the console area is created using controls in the Qt Designer program.
[0007] Optionally, the creating a data display area in response to a configuration instruction of the data display area includes: In response to the configuration instruction of the data display area, a data display area is created based on the matplotlib software library; The console area and the data display area are integrated based on the main window in the Qt Designer program.
[0008] Optionally, creating a data display area based on the matplotlib software library includes: Instantiate the canvas and navigation toolbar; Importing the canvas and the navigation toolbar into a vertical layout or a horizontal layout; Place the vertical layout or the horizontal layout into a control.
[0009] Optionally, the creating a menu bar area in response to a configuration instruction of the menu bar area includes: In response to the configuration instruction of the console area, a menu bar area is created in a multi-document interface manner using the main window in the Qt Designer program.
[0010] On the other hand, an embodiment of the present invention further provides a device for building a post-processing simulation data display framework, comprising: A first creation module, for creating a console area in response to a configuration instruction of the console area; the console area is used to receive a visualization parameter editing command for a post-processing simulation data file; A second creation module is used to create a data display area in response to a configuration instruction of the data display area; the data display area is used to display the visualization result of the post-processing simulation data file; The third creation module is used to create a menu bar area in response to a configuration instruction of the menu bar area; the menu bar area is used to receive menu operation commands for the post-processing simulation data file.
[0011] Optionally, the creating a console area in response to a configuration instruction of the console area includes: In response to the configuration instruction of the console area, the console area is created using controls in the Qt Designer program.
[0012] Optionally, the creating a data display area in response to a configuration instruction of the data display area includes: In response to the configuration instruction of the data display area, a data display area is created based on the matplotlib software library; The console area and the data display area are integrated based on the main window in the Qt Designer program.
[0013] Optionally, creating a data display area based on the matplotlib software library includes: Instantiate the canvas and navigation toolbar; Importing the canvas and the navigation toolbar into a vertical layout or a horizontal layout; Place the vertical layout or the horizontal layout into a control.
[0014] Optionally, the creating a menu bar area in response to a configuration instruction of the menu bar area includes: In response to the configuration instruction of the console area, a menu bar area is created in a multi-document interface manner using the main window in the Qt Designer program.
[0015] On the other hand, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for constructing the above-mentioned post-processing simulation data display framework when executing the program.
[0016] On the other hand, the present invention also provides a machine-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for constructing the above-mentioned post-processing simulation data display framework.
[0017] On the other hand, the present invention also provides a computer program product, including a computer program, which implements the method for building the above-mentioned post-processing simulation data display framework when executed by a processor.
[0018] Through the above technical solution, the embodiment of the present invention constructs a console area for receiving visual parameter editing commands for post-processing simulation data files, a data display area for displaying the visual results of the post-processing simulation data files, and a menu bar area for receiving menu operation commands for the post-processing simulation data files. The embodiment of the present invention separates the console area, the data display area, and the menu bar area in a modular way, so that the changes between the modules do not affect each other, and a flexible software prototype can be quickly built, which significantly reduces the misunderstanding between users and designers and reduces the risk of code pushback and reconstruction, thereby realizing rapid iterative development of software on the right track.
[0019] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings: Figure 1 It is a flow chart of a method for building a post-processing simulation data display framework provided by the present invention; Figure 2 It is a schematic diagram of the functional modules of the console area designed using QWidget provided by the present invention; Figure 3 It is a schematic diagram of a middle-level framework designed using QMainWindow provided by the present invention; Figure 4 It is a schematic diagram of the top-level frame designed using QMainWindow provided by the present invention; Figure 5 It is a structural schematic diagram of a device for building a post-processing simulation data display framework provided by the present invention; Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0022] Method Embodiment Please refer to Figure 1 , an embodiment of the present invention provides a method for building a post-processing simulation data display framework, comprising: Step 100: Create a console area in response to a configuration instruction of the console area.
[0023] The electronic device creates a console area in response to the user's configuration instructions for the console area. The console area can be a simple text input area, and the user interacts with the framework by entering specific commands. For example, the console area is used to receive a user's visualization parameter editing command for a post-processing simulation data file. The visualization parameter editing command may include a color mapping command, a graphic type command, and a graphic style command. The color mapping command can map data values by selecting a suitable color table, such as rainbow, grayscale, Viridis, Cividis, etc. The graphic type command refers to a display type command for the visualization result of the post-processing simulation data file. The graphic type command includes a two-dimensional graphic command and a three-dimensional graphic command. The two-dimensional graphic command includes a line graph command that displays the trend of data over time or other variables, a scatter plot command that displays the correlation between data points, and a bar chart command that compares the size of data of different categories. The three-dimensional graphic command includes a three-dimensional surface graph command that displays the distribution of data in a three-dimensional space, a three-dimensional scatter plot command that displays the positional relationship of data points in a three-dimensional space, and a volume rendering command that displays the internal structure of volume data (such as CT scans). Graphic style commands include line thickness setting commands, line color setting commands, line style setting commands, point style, point size, point color of dot charts, column width, column color, column shadow effects of bar charts, etc.
[0024] In one embodiment, creating the console area in response to the configuration instruction of the console area includes: creating the console area using a control (QWidget) in a Qt Designer program in response to the configuration instruction of the console area.
[0025] The electronic device responds to the user's configuration instructions for the console area, and uses the QWidget in the Qt Designer program built into PyQT to design the lowest-level UI framework for the software console area (Console). For example, first design and generate the ***.ui interface program. Then use the PyUIC program built into PyQT to use the ***.py interface program of the same name. Generate the required custom interface class through the following code: class ExampleConsoleWidget(Ui_Form, QWidget): / / Implement the constructor of the custom class def __init__(self, parent=None): super(ExampleConsoleWidget, self).__init__(parent) self.setupUi(self) The steps represented by the above code mean: Step 1, design the UI interface and generate the ***.ui interface program; Step 2, use the PyUIC program to generate the ***.py interface program; Step 3, inherit the UI interface class generated in the first two steps to generate a custom interface class.
[0026] Next, the console area is instantiated using QDockWidget. The specific code is as follows: def init_dock_widget(self): / / Instantiate the QDockWidget class self.dockWidget = QtWidgets.QDockWidget(self) self.dockWidget.setObjectName("dockWidget") / / Instantiate the custom class ExampleConsoleWidget class dockWidgetContent = ExampleConsoleWidget() dockWidgetContent.setObjectName("exampleConsoleWidgetContent") self.exampleConsoleWidget = dockWidgetContent self.dockWidget.setWidget(dockWidgetContent) / / Pass the custom class ExampleConsoleWidget class to the QDockWidget class self.addDockWidget(QtCore.Qt.DockWidgetArea(1),self.dockWidget) The steps in the above code are: Step 1, instantiate QDockWidget and set the object name; Step 2, instantiate the custom interface class; Step 3, pass the instantiated custom interface class as the dockWidgetContent to the instantiated QDockWidget; Step 4, set the hover position of QDockWidget. After completing the above steps, the creation of the console area is realized. Please refer to Figure 2 , Figure 2A functional module that represents a console area designed using a widget (QWidget).
[0027] Step 200: Create a data display area in response to a configuration instruction of the data display area.
[0028] The electronic device creates a data display area in response to a user's configuration instruction for the data display area. The data display area is used to display the visualization result of the post-processed simulation data file. The visualization result of the post-processed simulation data file may include a line graph, a scatter graph, a bar graph, a three-dimensional surface graph, a three-dimensional scatter graph, and a volume rendering, etc.
[0029] In one embodiment, the step of creating a data display area in response to a configuration instruction of the data display area includes: creating a data display area based on the matplotlib software library in response to the configuration instruction of the data display area; integrating the console area and the data display area based on the main window (QMainWindow) in the QtDesigner program. The step of creating a data display area based on the matplotlib software library includes: instantiating a canvas and a navigation toolbar; importing the canvas and the navigation toolbar into a vertical layout or a horizontal layout; and placing the vertical layout or the horizontal layout into a QWidget. The embodiment of the present invention can provide a rich visual display effect by integrating the matplotlib software library through the Qt Designer program.
[0030] In the embodiment of the present invention, the data display area is developed using the Python-based matplotlib software library. First, the navigation toolbar and canvas of matplotlib are imported, and when the UI interface is initialized, they are associated with setCentralWidget. The specific code is as follows: from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg asFigureCanvas from matplotlib.backends.backend_qt5agg import NavigationToolbar2QTas NavigationToolbar from matplotlib.figure import Figure / / Initialize the UI class member function def initUI(self): self.figure = Figure() / / Instantiate the FigureCanvas class self.canvas = FigureCanvas(self.figure) self.toolbar = NavigationToolbar(self.canvas, self) / / Instantiate the QVBoxLayout vertical layout class vertical_layout = QVBoxLayout() vertical_layout.addWidget(self.canvas) vertical_layout.addWidget(self.toolbar) self.centralwidget = QtWidgets.QWidget() / / Set the layout mode of the QWidget class self.centralwidget.setLayout(vertical_layout) self.setCentralWidget(self.centralwidget) The steps represented by the above code mean: Step 1, instantiate Figure (graphics window), FigureCanvas (canvas) and NavigationToolbar (navigation bar). Step 2, put the FigureCanvas canvas and the NavigationToolbar navigation bar into the vertical layout QVBoxLayout. Step 3, put the vertical layout QVBoxLayout containing FigureCanvas and NavigationToolbar into QWidget, and associate it with setCentralWidget. The data display area of the embodiment of the present invention is developed using the Python-based matplotlib software library. First, the navigation toolbar and canvas of matplotlib are imported, and when the UI interface is initialized, they are associated with setCentralWidget. SetCentralWidget is a member function of the main window (QMainWindow) class, which is used to set the central widget of the main window. The central widget is the main content area of the main window and can contain other QWidgets or custom QWidget derived classes. By calling the setCentralWidget function, the window widget of the data display area can be set as the central widget, so that the widget is displayed in the main window. This allows the console area and the data display area to be integrated based on the main window in the Qt Designer program. Figure 3 , Figure 3 Represents a mid-level frame designed using the main window (QMainWindow), including the console area ① on the left and the data display area ② on the right.
[0031] In other aspects of the embodiments of the present invention, a data display area may also be created based on the PyVista software library.
[0032] Step 300: Create a menu bar area in response to a configuration instruction of the menu bar area. The menu bar area is used to receive menu operation commands for the post-processing simulation data file.
[0033] The electronic device creates a menu bar area in response to the user's configuration instruction for the menu bar area. The menu operation command for the post-processed simulation data file may include an open command, a close command for the post-processed simulation data file, and a save command for the visualization result of the post-processed simulation data file.
[0034] In one embodiment, the step of creating the menu bar area in response to the configuration instruction of the menu bar area includes: creating the menu bar area in a multi-document interface manner using QMainWindow in the Qt Designer program in response to the configuration instruction of the console area. The specific code is as follows: def initUI(self): / / Instantiate the custom window class exampleWindow chart_window = exampleWindow() sub = QMdiSubWindow() sub.setWidget(chart_window) self.mdiArea.addSubWindow(sub) sub.show() The steps in the above code are: Step 1, instantiate the custom window class exampleWindow; Step 2, instantiate QMdiSubWindow and load the custom window class exampleWindow; Step 3, set the member variable mdiArea of the instantiated QMainWindow; Step 4, display. The exampleWindow() represents the instantiation of the second-level frame. After completing the above steps, the menu bar area is created. Please refer to Figure 4 , Figure 4 It represents the top-level frame designed using the main window (QMainWindow), including a three-layer post-processing simulation data display framework including the upper menu bar area ③, etc. The embodiment of the present invention finally constructs a post-processing simulation data display framework with a three-layer structure, which is fast to build and easy to expand.
[0035] The embodiment of the present invention separates the console, data display area and menu bar area in a modular way, so that the changes between modules do not affect each other. In addition, the control interaction between modules is carried out through the upper-level framework, so that the bottom-level modules can be quickly and flexibly changed and easily expanded.
[0036] Since the user's early needs are not clear, the designer's initial deliverables are often very different from what the user needs. If a suitable code framework is not built, the risk of code tearing down and refactoring will be seriously aggravated. How to quickly build a flexible software prototype can significantly reduce the misunderstanding between users and designers, reduce the risk of code tearing down and refactoring, and thus achieve rapid iterative development of the software on the right track. The embodiment of the present invention summarizes the common characteristics of a number of self-developed industrial post-processing simulation data display software, and based on these characteristics, innovatively proposes the above-mentioned method for quickly building a prototype of a post-processing simulation data display framework. This method can not only significantly reduce the cost of communicating with users, but also achieve rapid development and iteration of software, thereby improving development efficiency and shortening product time to market.
[0037] In summary, the method for building a post-processing simulation data display framework in an embodiment of the present invention has the following advantages: 1. Good versatility: the three-layer display framework is a general architecture for extracting industrial post-processing simulation data display software; 2. Low code and fast construction: third-party (matplotlib, PyVista) and other data libraries are integrated in the middle layer.
[0038] Device Embodiment Please refer to Figure 5 On the other hand, an embodiment of the present invention further provides a device for building a post-processing simulation data display framework, comprising: The first creation module 501 is used to create a console area in response to a configuration instruction of the console area; the console area is used to receive a visualization parameter editing command for a post-processing simulation data file; A second creation module 502 is used to create a data display area in response to a configuration instruction of the data display area; the data display area is used to display the visualization result of the post-processing simulation data file; The third creation module 503 is used to create a menu bar area in response to a configuration instruction of the menu bar area; the menu bar area is used to receive menu operation commands for the post-processing simulation data file.
[0039] The embodiment of the present invention constructs a console area for receiving visual parameter editing commands for post-processing simulation data files, a data display area for displaying the visual results of the post-processing simulation data files, and a menu bar area for receiving menu operation commands for the post-processing simulation data files. The embodiment of the present invention separates the console area, the data display area, and the menu bar area in a modular way, so that changes between modules do not affect each other, and a flexible software prototype can be quickly built, which significantly reduces the misunderstanding between users and designers and reduces the risk of code pushback and reconstruction, thereby achieving rapid iterative development of software on the right track.
[0040] Optionally, the creating a console area in response to a configuration instruction of the console area includes: In response to the configuration instruction of the console area, the console area is created using controls in the Qt Designer program.
[0041] Optionally, the creating a data display area in response to a configuration instruction of the data display area includes: In response to the configuration instruction of the data display area, a data display area is created based on the matplotlib software library; The console area and the data display area are integrated based on the main window in the Qt Designer program.
[0042] Optionally, creating a data display area based on the matplotlib software library includes: Instantiate the canvas and navigation toolbar; Importing the canvas and the navigation toolbar into a vertical layout or a horizontal layout; Place the vertical layout or the horizontal layout into a control.
[0043] Optionally, the creating a menu bar area in response to a configuration instruction of the menu bar area includes: In response to the configuration instruction of the console area, a menu bar area is created in a multi-document interface manner using the main window in the Qt Designer program.
[0044] The apparatus for constructing the post-processing simulation data display framework includes a processor and a memory. The first creation module 501, the second creation module 502 and the third creation module 503 are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
[0045] The processor includes a kernel, which calls the corresponding program unit from the memory. There can be one or more kernels.
[0046] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0047] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute a method for building a post-processing simulation data display framework, the method comprising: creating a console area in response to a configuration instruction of a console area; the console area is used to receive a visualization parameter editing command for a post-processing simulation data file; creating a data display area in response to a configuration instruction of a data display area; the data display area is used to display the visualization result of the post-processing simulation data file; creating a menu bar area in response to a configuration instruction of a menu bar area; the menu bar area is used to receive a menu operation command for the post-processing simulation data file.
[0048] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0049] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a machine-readable storage medium. When the computer program is executed by a processor, the computer can execute a method for building a post-processing simulation data display framework, which method includes: creating a console area in response to a configuration instruction of the console area; the console area is used to receive visualization parameter editing commands for post-processing simulation data files; creating a data display area in response to a configuration instruction of the data display area; the data display area is used to display the visualization results of the post-processing simulation data files; creating a menu bar area in response to a configuration instruction of the menu bar area; the menu bar area is used to receive menu operation commands for the post-processing simulation data files.
[0050] On the other hand, the present invention also provides a machine-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for building a post-processing simulation data display framework, the method comprising: creating a console area in response to a configuration instruction of a console area; the console area is used to receive visualization parameter editing commands for post-processing simulation data files; creating a data display area in response to a configuration instruction of a data display area; the data display area is used to display visualization results of the post-processing simulation data files; creating a menu bar area in response to a configuration instruction of a menu bar area; the menu bar area is used to receive menu operation commands for the post-processing simulation data files.
[0051] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0052] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0053] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for constructing a post-processing simulation data display framework, characterized in that: include: In response to a configuration instruction of the console area, creating a console area; The console area is used to receive a visualization parameter editing command for a post-processing simulation data file; In response to a configuration instruction of a data display area, creating a data display area; the data display area is used to display a visualization result of the post-processing simulation data file; In response to the configuration instruction of the menu bar area, creating a menu bar area; The menu bar area is used to receive menu operation commands for the post-processing simulation data file.
2. The method for constructing a post-processing simulation data display framework according to claim 1, characterized in that: The step of creating a data display area in response to a configuration instruction of the data display area includes: In response to the configuration instruction of the data display area, a data display area is created based on the matplotlib software library; The console area and the data display area are integrated based on the main window in the Qt Designer program.
3. The method for constructing a post-processing simulation data display framework according to claim 2, characterized in that: The data display area is created based on the matplotlib software library, including: Instantiate the canvas and navigation toolbar; Importing the canvas and the navigation toolbar into a vertical layout or a horizontal layout; Place the vertical layout or the horizontal layout into a control.
4. The method for constructing a post-processing simulation data display framework according to claim 1, characterized in that: The step of creating a console area in response to a configuration instruction of the console area includes: In response to the configuration instruction of the console area, the console area is created using controls in the Qt Designer program.
5. The method for constructing a post-processing simulation data display framework according to claim 1, characterized in that: The step of creating a menu bar area in response to a configuration instruction of the menu bar area includes: In response to the configuration instruction of the console area, a menu bar area is created in a multi-document interface manner using the main window in the Qt Designer program.
6. A device for constructing a post-processing simulation data display framework, characterized in that: include: A first creation module, configured to create a console area in response to a configuration instruction of the console area; The console area is used to receive a visualization parameter editing command for a post-processing simulation data file; A second creation module, configured to create a data display area in response to a configuration instruction of the data display area; The data display area is used to display the visualization result of the post-processing simulation data file; A third creation module, for creating a menu bar area in response to a configuration instruction of the menu bar area; The menu bar area is used to receive menu operation commands for the post-processing simulation data file.
7. The device for constructing a post-processing simulation data display framework according to claim 6, characterized in that: The step of creating a data display area in response to a configuration instruction of the data display area includes: In response to the configuration instruction of the data display area, a data display area is created based on the matplotlib software library; The console area and the data display area are integrated based on the main window in the Qt Designer program.
8. The device for constructing a post-processing simulation data display framework according to claim 7, characterized in that: The data display area is created based on the matplotlib software library, including: Instantiate the canvas and navigation toolbar; Importing the canvas and the navigation toolbar into a vertical layout or a horizontal layout; Place the vertical layout or the horizontal layout into a control.
9. The device for constructing a post-processing simulation data display framework according to claim 6, characterized in that: The step of creating a console area in response to a configuration instruction of the console area includes: In response to the configuration instruction of the console area, the console area is created using controls in the Qt Designer program.
10. The device for constructing a post-processing simulation data display framework according to claim 6, characterized in that: The step of creating a menu bar area in response to a configuration instruction of the menu bar area includes: In response to the configuration instruction of the console area, a menu bar area is created in a multi-document interface manner using the main window in the Qt Designer program.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for building a post-processing simulation data display framework according to any one of claims 1 to 5 is implemented.
12. A machine-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for building a post-processing simulation data display framework according to any one of claims 1 to 5 is implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for building a post-processing simulation data display framework according to any one of claims 1 to 5 is implemented.