WEB display method, device and system for three-dimensional simulation model

By acquiring simulation test data source files and combining them with columnar databases and visualization toolkit files, and selecting appropriate 3D display processing methods, the problem of difficult display of 3D simulation models on the web was solved, and the display performance and efficiency were improved.

CN118939894BActive Publication Date: 2025-01-21CHINA SHIPBUILDING ORLANDO WUXI SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411002041.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2025-01-21
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing technologies cannot effectively display 3D simulation models on the web, especially when dealing with large amounts of data, the web cannot load and display 3D simulation models.

Method used

By acquiring the data source file of the simulation experiment, a visualization toolkit file for the entire model is generated using the visualization tool interface library. The analysis results are stored in a columnar database, and different 3D display processing methods are selected according to the target type. The 3D display controls are then used for display.

Benefits of technology

It improves the display performance and efficiency of 3D simulation models on the web, solves the problem of loading large models, and enables post-processing display of some information without loading the whole model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118939894B_ABST
    Figure CN118939894B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of simulation test data visualization technology, and specifically discloses a WEB display method, device and system for a three-dimensional simulation model, including: obtaining a simulation test data source file of a three-dimensional simulation model on a server; calling a visualization tool interface library to read the simulation test data source file, and generating a visualization tool package file of the entire model according to preset visualization tool package parameters; parsing the simulation test data source file to obtain simulation test data parsing results, and storing the simulation test data parsing results in a column database; determining a target physical quantity type according to a target type display request instruction, and selecting a corresponding three-dimensional display processing method according to the target physical quantity type to obtain a three-dimensional target type to be displayed; calling a three-dimensional display control to display the three-dimensional target type to be displayed on the WEB side. The WEB display method for a three-dimensional simulation model provided by the present invention can realize the display of a three-dimensional simulation model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of simulation test data visualization, and in particular to a WEB display method for simulation test data, a WEB display device for simulation test data, and a WEB display system for simulation test data. Background Art

[0002] Web visualization of simulation test data is a hot topic in current industry research. Simulation software runs on servers (especially high-performance servers HPC), and users also want to access simulation test data on the server through the Web for post-processing and display, without having to download the simulation test data to the client machine for post-processing and display; similarly, as 3D simulation models become larger and larger, the number of grids is in the millions, tens of millions, or even hundreds of millions, resulting in the inability of the Web 3D cloud map control to receive such a large amount of data, nor to display such a large 3D simulation model.

[0003] Therefore, how to realize the WEB display of three-dimensional simulation models has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The present invention provides a WEB display method for simulation test data, a WEB display device for simulation test data and a WEB display system for simulation test data, which solve the problem in the related art that a WEB terminal cannot realize three-dimensional simulation model display.

[0005] As a first aspect of the present invention, a method for displaying a three-dimensional simulation model on a web is provided, which comprises:

[0006] Obtaining a simulation test data source file of a three-dimensional simulation model on a server;

[0007] Calling a visualization tool interface library to read the simulation test data source file, and generating a visualization tool package file of the whole model according to preset visualization tool package parameters, wherein the visualization tool package file of the whole model includes points, surfaces, units, physical quantities and network topology relationships;

[0008] Parsing the simulation test data source file to obtain simulation test data parsing results, and storing the simulation test data parsing results in a column-based database;

[0009] Determine the target physical quantity type according to the target type display request instruction, and select a corresponding three-dimensional display processing method according to the target physical quantity type to obtain the three-dimensional target type to be displayed, wherein the target physical quantity type includes any one or more of a point, a surface, and a unit, and when the target physical quantity type is a point, the corresponding three-dimensional display processing method is to query the column database, and when the target physical quantity type is a surface and a unit, the corresponding three-dimensional display processing method is to read the visualization toolkit file of the full model;

[0010] The three-dimensional display control is called to display the three-dimensional target type to be displayed on the WEB side.

[0011] Further, parsing the simulation test data source file to obtain simulation test data parsing results includes:

[0012] Parsing the simulation test data source file to obtain the point, surface, unit and network topology relationship;

[0013] Analyze points, surfaces and units to obtain the physical quantities of points, surfaces and units at each time step;

[0014] The points, surfaces and units with physical quantities under the time step are associated with the network topology relationship to obtain the simulation test data analysis results.

[0015] Furthermore, the column-based database includes a point information table, a surface information table, a unit information table, a result overview table and a result table, the point information table is used to store three-dimensional coordinates, the surface information table is used to store a set of points, the unit information table is used to store a set of points, the result overview table is used to store result description information, and the result table is used to store physical quantity information.

[0016] Further, the target physical quantity type is determined according to the target type display request instruction, and a corresponding three-dimensional display processing method is selected according to the target physical quantity type to obtain the three-dimensional target type to be displayed, including:

[0017] When the target type display request instruction is a surface type and / or unit type display request instruction, determining that the target physical quantity type is a surface physical quantity;

[0018] According to the surface physical quantity, a visualization toolkit file of the entire model is selected for processing to obtain a three-dimensional surface type to be displayed;

[0019] When the target type display request instruction is a point type display request instruction, determining that the target physical quantity type is a point physical quantity;

[0020] The column-based database is queried for processing according to the point physical quantity to obtain the type of the three-dimensional point to be displayed.

[0021] Further, according to the surface physical quantity, a visualization toolkit file of the full model is selected and processed to obtain the type of the three-dimensional surface to be displayed, including:

[0022] Reading a visualization toolkit file of the entire model according to the surface physical quantity to obtain a visualization toolkit file of the surface type;

[0023] The visualization toolkit file of the surface type is used as the three-dimensional surface type to be displayed.

[0024] Further, the column-based database is queried for processing according to the point physical quantity to obtain the type of the three-dimensional point to be displayed, including:

[0025] Querying the column database according to the point physical quantity to obtain the value of the point physical quantity at each time step of the simulation test;

[0026] The value of the physical quantity of the point at each time step of the simulation experiment is used as the three-dimensional point type to be displayed.

[0027] Further, calling a three-dimensional display control to display the three-dimensional target type to be displayed on the WEB side includes:

[0028] When the type of the three-dimensional object to be displayed is a three-dimensional surface type to be displayed, calling a three-dimensional display control to load the three-dimensional surface type to be displayed for display;

[0029] When the type of the 3D object to be displayed is a 3D point type to be displayed, a 3D display control is called to draw a curve according to the type of the 3D point to be displayed for display.

[0030] Further, calling the three-dimensional display control to display the three-dimensional target type to be displayed on the WEB side also includes:

[0031] According to the 3D display control, 3D operations, rendering, feature position addition and visualization are performed on the 3D target type to be displayed.

[0032] As another aspect of the present invention, a three-dimensional simulation model web display device is provided, which is used to implement the three-dimensional simulation model web display method described above, including:

[0033] An acquisition module is used to acquire a simulation test data source file of a three-dimensional simulation model on a server;

[0034] A source file reading module, used to call a visualization tool interface library to read the simulation test data source file, and generate a visualization tool package file of the whole model according to preset visualization tool package parameters, wherein the visualization tool package file of the whole model includes points, surfaces, units, physical quantities and network topology relationships;

[0035] A source file parsing module, used for parsing the simulation test data source file to obtain simulation test data parsing results, and storing the simulation test data parsing results in a column-based database;

[0036] A determination module, used to determine the target physical quantity type according to the target type display request instruction, and select a corresponding three-dimensional display processing method according to the target physical quantity type to obtain the three-dimensional target type to be displayed, wherein the target physical quantity type includes any one or more of a point, a surface and a unit, and when the target physical quantity type is a point, the corresponding three-dimensional display processing method is to query the column database, and when the target physical quantity type is a surface and a unit, the corresponding three-dimensional display processing method is to read the visualization toolkit file of the full model;

[0037] The display module is called to call the three-dimensional display control to display the three-dimensional target type to be displayed on the WEB side.

[0038] As another aspect of the present invention, a three-dimensional simulation model web display system is provided, which includes a server, a web terminal and the three-dimensional simulation model web display device described above, wherein the server and the web terminal are both in communication connection with the three-dimensional simulation model web display device,

[0039] The server is used to perform a simulation test of the three-dimensional simulation model and generate a simulation test data source file of the three-dimensional simulation model;

[0040] The WEB display device of the three-dimensional simulation model is used to determine the three-dimensional display processing mode according to the simulation test data source file of the three-dimensional simulation model, and select the matching three-dimensional display processing mode according to the target type display request instruction;

[0041] The WEB end is used to display the three-dimensional target type.

[0042] The WEB display method of the three-dimensional simulation model provided by the present invention reads the simulation test data source file, and determines two types of three-dimensional display processing methods based on the simulation test data source file, so that different three-dimensional display processing methods can be selected according to different target types. This WEB display method of the three-dimensional simulation model can extract the target information of the three-dimensional simulation model according to the business scenario for post-processing and display, instead of loading all of it, thereby solving the problem of loading large models in the three-dimensional display control on the WEB side. At the same time, by combining column database query with reading the visualization toolkit file of the full model, the display performance and efficiency of the three-dimensional simulation model on the WEB side are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present invention, but do not constitute a limitation of the present invention.

[0044] Figure 1 The present invention provides a flow chart of the WEB display method of the three-dimensional simulation model.

[0045] Figure 2 This is a flow chart of simulation test data analysis provided by the present invention.

[0046] Figure 3 A flowchart of selecting a corresponding three-dimensional display processing method according to the target physical quantity type provided by the present invention.

[0047] Figure 4 A flow chart for obtaining the type of three-dimensional surface to be displayed provided by the present invention.

[0048] Figure 5 A flow chart for obtaining the type of three-dimensional points to be displayed provided by the present invention.

[0049] Figure 6 A flow chart of calling a three-dimensional display control for three-dimensional display provided by the present invention.

[0050] Figure 7 A specific method flow chart of the WEB display method for executing a three-dimensional simulation model provided by the present invention.

[0051] Figure 8 A schematic diagram of a simulation test data source file provided by the present invention.

[0052] Fig. 9 A schematic diagram of a simulation test data table in the ClickHouse database provided by the present invention.

[0053] Fig.10 This is a schematic diagram of the display effect of the pressure isosurface provided by the present invention.

[0054] Fig.11 This is a schematic diagram showing the display effect of the pressure change curve of a point provided by the present invention.

[0055] Fig.12 This is a structural block diagram of a WEB display device for a three-dimensional simulation model provided by the present invention.

[0056] Fig.13 This is a structural block diagram of the WEB display system of the three-dimensional simulation model provided by the present invention. DETAILED DESCRIPTION

[0057] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0058] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present invention.

[0059] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present invention described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0060] In this embodiment, a three-dimensional simulation model web display method is provided. Figure 1 is a flow chart of a WEB display method of a three-dimensional simulation model provided according to an embodiment of the present invention, such as Figure 1 As shown, including:

[0061] S100, obtaining a simulation test data source file of a three-dimensional simulation model on a server;

[0062] In the embodiment of the present invention, after the simulation test of the three-dimensional simulation model is implemented on the server, the simulation test data can be obtained by reading the simulation test data source file of the three-dimensional simulation model on the server through a reading interface tool.

[0063] The reading interface tool in the embodiment of the present invention can be specifically a RESTful interface. It should be understood that the RESTful interface method means that after the simulation software is integrated with the simulation test data management system, the calculation is completed, and the simulation test data source file is automatically aggregated through the interface and read by the WEB display device of the three-dimensional simulation model.

[0064] It should be noted that the simulation test data in the embodiment of the present invention can specifically be data calculated and generated by open source simulation software, commercial simulation software, and self-developed simulation software. The data needs to be parseable and readable, so the data source file is preferably in plain text, ASCII encoding format.

[0065] Specifically, open source simulation software includes OpenFOAM, etc., commercial simulation software includes tecplot, STAR-CCM+, etc., and self-developed simulation software includes JIEFX, etc.

[0066] S200, calling a visualization tool interface library to read the simulation test data source file, and generating a visualization tool package file of the whole model according to preset visualization tool package parameters, wherein the visualization tool package file of the whole model includes points, surfaces, units, physical quantities and network topology relationships;

[0067] In an embodiment of the present invention, a simulation test data source file is read by calling a visualization tool interface library to generate a visualization tool package file of the entire model. Specifically, the visualization tool interface library in the embodiment of the present invention may be a PyVista API library, and the visualization tool package file of the entire model may be a VTK file.

[0068] It should be noted that PyVista API represents a Python library for 3D data processing and visualization. PyVista is also based on VTK at the bottom layer, directly inheriting VTK's Mesh grid type, and encapsulating functions on these types, making the creation and analysis of these data structures simple and intuitive. At the same time, PyVista can interoperate with any VTK-based software. VTK, the full name of which is Visualization Toolkit, is an open source, cross-platform, freely available, parallel processing-supported graphics application function library, mainly used for 3D computer graphics, image processing, and visualization.

[0069] S300, parsing the simulation test data source file to obtain simulation test data parsing results, and storing the simulation test data parsing results in a column-based database;

[0070] In the embodiment of the present invention, the read simulation test data source file is parsed, and the parsing result is directly stored in the column-based database.

[0071] Specifically, the column-based database may include a ClickHouse database, and query efficiency can be improved by using the database.

[0072] S400, determining the target physical quantity type according to the target type display request instruction, and selecting a corresponding three-dimensional display processing method according to the target physical quantity type to obtain a three-dimensional target type to be displayed, wherein the target physical quantity type includes any one or more of a point, a surface, and a unit, and when the target physical quantity type is a point, the corresponding three-dimensional display processing method is to query the column database, and when the target physical quantity type is a surface and a unit, the corresponding three-dimensional display processing method is to read the visualization toolkit file of the full model;

[0073] It should be understood that the embodiments of the present invention can select different 3D display methods for different target types. For the 3D display of the surface type, the visualization toolkit file of the full model is directly read. Since the visualization toolkit file of the full model has its own network topology relationship, the construction of the network topology relationship can be omitted, thereby improving the efficiency of the 3D display and making the display on the WEB side easier to achieve. In addition, for the display of the point type, the query results of the point can be directly obtained by querying the columnar database, and then the display of the point type can be obtained based on the query results of these points.

[0074] S500: Calling a three-dimensional display control to display the three-dimensional object type to be displayed on the WEB side.

[0075] In the embodiment of the present invention, calling the three-dimensional display control can directly realize the display of the three-dimensional target type.

[0076] The WEB display method of the three-dimensional simulation model provided by the present invention reads the simulation test data source file, and determines two types of three-dimensional display processing methods based on the simulation test data source file, so that different three-dimensional display processing methods can be selected according to different target types. This WEB display method of the three-dimensional simulation model can extract the target information of the three-dimensional simulation model according to the business scenario for post-processing and display, instead of loading all of it, thereby solving the problem of loading large models in the three-dimensional display control on the WEB side. At the same time, by combining column database query with reading the visualization toolkit file of the full model, the display performance and efficiency of the three-dimensional simulation model on the WEB side are improved.

[0077] In an embodiment of the present invention, the simulation test data source file is parsed to obtain the simulation test data parsing result, such as Figure 2 As shown, including:

[0078] S310, parsing the simulation test data source file to obtain the point, surface, unit and network topology relationship;

[0079] S320, analyzing the points, surfaces and units to obtain the physical quantities of the points, surfaces and units at each time step;

[0080] S330, associating the points, surfaces and units having physical quantities under the time step with the network topology relationship to obtain simulation test data analysis results.

[0081] It should be understood that the simulation test data can be parsed and stored in the database through Python scripts, and the parsing rules are as follows: parse the simulation test data source file to obtain points, faces, cells, and grid topology relationships; then parse the physical quantities at each time step and associate them with the grid topology; finally, store the above data in the simulation test data table. The column-based database in the embodiment of the present invention can specifically include a ClickHouse database.

[0082] In an embodiment of the present invention, the column-based database includes a point information table, a surface information table, a unit information table, a result overview table and a result table, the point information table is used to store three-dimensional coordinates, the surface information table is used to store a set of points, the unit information table is used to store a set of points, the result overview table is used to store result description information, and the result table is used to store physical quantity information.

[0083] Specifically, the simulation test data table includes five tables: point (point information table), face (face information table), element (element information table), result_profile (result overview table), and result_data (result table); the relationship between the tables is associated through foreign keys. Among them, the point information table stores three-dimensional coordinates, including: point ID, x, y, z, and sorting. The face information table stores a collection of points, including face ID, point ID array, and sorting. The unit information table stores a collection of points, including cell ID, unit type, point ID array, and sorting. The result overview table stores result description information, including: physical quantity name, physical quantity type, time step, and position, among which the physical quantity type can be specifically divided into scalar and vector; the position can specifically refer to the physical quantity applied to the point or the center of the unit. The result table stores physical quantity information, including: point or unit ID, physical quantity value, physical quantity modulus, and sorting, among which, if the physical quantity is a vector, the modulus is calculated.

[0084] In the embodiment of the present invention, the target physical quantity type is determined according to the target type display request instruction, and the corresponding three-dimensional display processing method is selected according to the target physical quantity type to obtain the three-dimensional target type to be displayed, such as Figure 3 As shown, including:

[0085] S410: When the target type display request instruction is a surface type and / or unit type display request instruction, determine that the target physical quantity type is a surface physical quantity;

[0086] S420, selecting and reading a visualization toolkit file of the entire model according to the surface physical quantity for processing to obtain a three-dimensional surface type to be displayed;

[0087] Specifically, according to the surface physical quantity, the visualization toolkit file of the full model is read and processed to obtain the type of the three-dimensional surface to be displayed, such as Figure 4 As shown, including:

[0088] S421, reading a visualization toolkit file of the entire model according to the surface physical quantity, and obtaining a visualization toolkit file of the surface type;

[0089] S422: Use the visualization toolkit file of the surface type as the three-dimensional surface type to be displayed.

[0090] In an embodiment of the present invention, taking the surface type as an isosurface as an example, in the application scenario of the isosurface of a certain physical quantity, the value of the certain physical quantity is first input, and then the full model VTK file is read through the PyVista API to generate the corresponding isogrid surface, and the isosurface VTK file is written. The isosurface VTK file is the three-dimensional surface type to be displayed.

[0091] S430: When the target type display request instruction is a point type display request instruction, determining that the target physical quantity type is a point physical quantity;

[0092] S440, querying the column-based database for processing according to the point physical quantity, and obtaining the type of the three-dimensional point to be displayed.

[0093] Specifically, the column-based database is queried for processing according to the point physical quantity to obtain the type of three-dimensional point to be displayed, such as Figure 5 As shown, including:

[0094] S441, querying the column database according to the point physical quantity to obtain the value of the point physical quantity at each time step of the simulation test;

[0095] S442: The value of the physical quantity of the point at each time step of the simulation test is used as the type of the three-dimensional point to be displayed.

[0096] In an embodiment of the present invention, taking a point-type physical quantity change curve as an example, in an application scenario of a physical quantity change curve of a certain point, a user selects a point in the isosurface, queries the simulation test data table in the column database, and obtains the value of the point at each time step of the simulation test. The value of the point at each time step of the simulation test is the three-dimensional point type to be displayed.

[0097] In the embodiment of the present invention, the three-dimensional display control is called to display the three-dimensional target type to be displayed on the WEB side, such as Figure 6 As shown, including:

[0098] S510: When the 3D object type to be displayed is a 3D surface type to be displayed, calling a 3D display control to load the 3D surface type to be displayed for display;

[0099] In an embodiment of the present invention, when the type of the three-dimensional target to be displayed is a three-dimensional surface type to be displayed, for example, an isosurface to be displayed, a three-dimensional cloud map control can be called to load the isosurface VTK file to be displayed to realize isosurface display.

[0100] S520: When the type of the 3D object to be displayed is a 3D point type to be displayed, call a 3D display control to draw a curve according to the 3D point type to be displayed for display.

[0101] In an embodiment of the present invention, when the three-dimensional target type to be displayed is a three-dimensional point type to be displayed, for example, the value of the point to be displayed at each time step of a simulation experiment, the three-dimensional uniform graph control can be called to draw a curve according to the value of the point at each time step of the simulation experiment, so as to realize the display of the physical quantity change curve of a certain point.

[0102] More specifically, calling the three-dimensional display control to display the three-dimensional object type to be displayed on the WEB side also includes:

[0103] According to the 3D display control, 3D operations, rendering, feature position addition and visualization are performed on the 3D target type to be displayed.

[0104] In an embodiment of the present invention, the three-dimensional display control is specifically a three-dimensional cloud map control on the WEB side. The three-dimensional cloud map control can be specifically a software based on the VTK format, which is mainly used to realize three-dimensional operations, multiple rendering methods, feature position addition and visualization functions. In addition, the three-dimensional cloud map control can directly load a three-dimensional simulation model with hundreds of thousands of points.

[0105] In the embodiment of the present invention, the three-dimensional operations specifically include: rotation, translation and scaling, etc.; multiple rendering methods include: surface, wireframe, surface and wireframe, semi-transparent surface, surface with grid and grid, etc. The feature position is the position of the result physical quantity that the user is concerned about and wants to view, and supports adding surfaces and lines. The added feature position can be used for subsequent cross-section or isosurface cloud map viewing, flow line generation, etc. All added positions will appear in the feature panel tree in the upper right corner of the interface.

[0106] The visualization function in the embodiment of the present invention can perform visualization processing on the VTK file generated by the solution calculation to generate corresponding cloud maps, vector maps, streamline maps, etc. The visualization function can be combined with the feature position to produce results in a variety of different ways, making it easy for users to view the results they are concerned about.

[0107] The specific implementation process of the WEB display method of the three-dimensional simulation model of the present invention is described below in conjunction with specific embodiments.

[0108] Specific basis Figure 7 The process shown executes a WEB display method of a three-dimensional simulation model. In an embodiment of the present invention, the simulation test data source file parsing process includes:

[0109] (1) After the simulation software openfoam on the server completes the calculation, obtain the simulation test data source file. The specific simulation test source file is as follows: Figure 8 shown.

[0110] (2) Write a Python-openfoam parsing script, use the PyVista API to read the simulation test data source file on the server, generate the openfoam 3D model VTK file (time_openfoam_vtk) according to the time step, parse it according to the parsing rules, and store it in the ClickHouse database. If the source file is generated by other simulation software, you need to write a corresponding Python script, such as Fig. 9 shown.

[0111] After the above analysis is completed, the process of post-processing and displaying the simulation test data may specifically include:

[0112] (3) The user inputs a certain pressure value, calls the Python-openfoam isosurface query script, uses the PyVistaAPI to read the openfoam 3D model VTK file, generates the corresponding pressure isosurface, and writes the isosurface VTK file.

[0113] (4) Use the WEB 3D cloud map control to download the isosurface VTK file and load it to display the pressure isosurface, such as Fig.10 shown.

[0114] (5) The user uses the probe function of the WEB 3D cloud map control to select a grid point on the isosurface, enter a pressure value, call the Python-openfoam database query script, query the pressure value of the point at each time step of the simulation test, and feed the result back to the WEB 3D cloud map control in the form of a JSON string.

[0115] (6) Use the WEB 3D cloud map control to draw the pressure change curve of the point, such as Fig.11 shown.

[0116] In summary, the WEB display method of the three-dimensional simulation model provided by the present invention obtains simulation test data; and uses Python scripts to parse and store the simulation test data into the database (ClickHouse database), and at the same time, uses PyVista API to generate the VTK file of the full model; finally, for different post-processing display scenarios, a method combining database query and VTK query is used to realize the post-processing display of simulation test data through a three-dimensional cloud map control, such as: isosurfaces of a certain physical quantity, a physical quantity change curve of a certain point, analysis and calculation (velocity synthesis, vortex calculation) and other application scenarios. The present invention adopts a method combining database query and VTK query to post-process and display simulation test data, and by displaying part of the information of the three-dimensional simulation model, it effectively solves the problem that the WEB end cannot load a large three-dimensional simulation model under the condition of general network bandwidth; at the same time, while taking into account server performance and user experience, there is no need to configure a high-performance server (HPC) or even a supercomputer, and the display performance and efficiency of the three-dimensional cloud map on the WEB end can also be guaranteed.

[0117] As another embodiment of the present invention, a three-dimensional simulation model web display device 100 is provided, which is used to implement the three-dimensional simulation model web display method described above, wherein: Fig.12 As shown, including:

[0118] An acquisition module 110 is used to acquire a simulation test data source file of a three-dimensional simulation model on a server;

[0119] The source file reading module 120 is used to call the visualization tool interface library to read the simulation test data source file, and generate a visualization tool package file of the whole model according to the preset visualization tool package parameters, wherein the visualization tool package file of the whole model includes points, surfaces, units, physical quantities and network topology relationships;

[0120] A source file parsing module 130, used for parsing the simulation test data source file to obtain simulation test data parsing results, and storing the simulation test data parsing results in a column-based database;

[0121] A determination module 140 is used to determine the target physical quantity type according to the target type display request instruction, and select a corresponding three-dimensional display processing method according to the target physical quantity type to obtain a three-dimensional target type to be displayed, wherein the target physical quantity type includes any one or more of a point, a surface, and a unit. When the target physical quantity type is a point, the corresponding three-dimensional display processing method is to query the column database, and when the target physical quantity type is a surface and a unit, the corresponding three-dimensional display processing method is to read the visualization toolkit file of the full model;

[0122] The calling display module 150 is used to call the three-dimensional display control to display the three-dimensional object type to be displayed on the WEB side.

[0123] The WEB display device of the three-dimensional simulation model provided by the present invention reads the simulation test data source file and determines two types of three-dimensional display processing methods based on the simulation test data source file, so that different three-dimensional display processing methods can be selected according to different target types. The WEB display device of the three-dimensional simulation model can extract the target information of the three-dimensional simulation model according to the business scenario for post-processing and display, instead of loading all of it, thereby solving the problem of loading large models in the three-dimensional display control on the WEB side. At the same time, by combining column database query with reading the visualization toolkit file of the full model, the display performance and efficiency of the three-dimensional simulation model on the WEB side are improved.

[0124] The specific working principle of the three-dimensional simulation model WEB display device of the present invention can be referred to the description of the three-dimensional simulation model WEB display method in the previous text, and will not be repeated here.

[0125] As another embodiment of the present invention, a three-dimensional simulation model web display system 10 is provided, wherein Fig.13 As shown, it includes a server 200, a WEB terminal 300 and the WEB display device 100 of the three-dimensional simulation model mentioned above, and the server 200 and the WEB terminal 300 are both connected to the WEB display device 100 of the three-dimensional simulation model for communication.

[0126] The server 200 is used to perform a simulation test of a three-dimensional simulation model and generate a simulation test data source file of the three-dimensional simulation model;

[0127] The three-dimensional simulation model WEB display device 100 is used to determine the three-dimensional display processing method according to the simulation test data source file of the three-dimensional simulation model, and select the matching three-dimensional display processing method according to the target type display request instruction;

[0128] The WEB terminal 300 is used to display three-dimensional object types.

[0129] The WEB display system of the three-dimensional simulation model provided by the present invention adopts the WEB display device of the three-dimensional simulation model mentioned above, reads the server simulation test data source file, and determines two types of three-dimensional display processing methods based on the simulation test data source file, so that different three-dimensional display processing methods can be selected according to different target types. This WEB display system of the three-dimensional simulation model can extract the target information of the three-dimensional simulation model according to the business scenario and perform post-processing and display on the WEB side instead of loading all of it, thereby solving the problem of loading large models in the three-dimensional display control on the WEB side, and at the same time, by combining the column database query with the reading of the visualization toolkit file of the full model, the display performance and efficiency of the three-dimensional simulation model on the WEB side are improved.

[0130] The specific working principle of the three-dimensional simulation model WEB display system of the present invention can be referred to the description of the three-dimensional simulation model WEB display method in the previous text, and will not be repeated here.

[0131] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A WEB display method for a three-dimensional simulation model, characterized in that: include: Obtaining a simulation test data source file of a three-dimensional simulation model on a server; Calling a visualization tool interface library to read the simulation test data source file, and generating a visualization tool package file of the whole model according to preset visualization tool package parameters, wherein the visualization tool package file of the whole model includes points, surfaces, units, physical quantities and network topology relationships; Parsing the simulation test data source file to obtain simulation test data parsing results, and storing the simulation test data parsing results in a column-based database; Determine the target physical quantity type according to the target type display request instruction, and select a corresponding three-dimensional display processing method according to the target physical quantity type to obtain the three-dimensional target type to be displayed, wherein the target physical quantity type includes any one or more of a point, a surface, and a unit, and when the target physical quantity type is a point, the corresponding three-dimensional display processing method is to query the column database, and when the target physical quantity type is a surface and a unit, the corresponding three-dimensional display processing method is to read the visualization toolkit file of the full model; Calling a three-dimensional display control to display the three-dimensional target type to be displayed on the WEB side; Determining the target physical quantity type according to the target type display request instruction, and selecting a corresponding three-dimensional display processing method according to the target physical quantity type to obtain the three-dimensional target type to be displayed, including: When the target type display request instruction is a surface type and / or unit type display request instruction, determining that the target physical quantity type is a surface physical quantity; According to the surface physical quantity, a visualization toolkit file of the entire model is selected for processing to obtain a three-dimensional surface type to be displayed; When the target type display request instruction is a point type display request instruction, determining that the target physical quantity type is a point physical quantity; Select and query the column-based database for processing according to the point physical quantity to obtain the type of the three-dimensional point to be displayed; According to the surface physical quantity, the visualization toolkit file of the full model is selected for processing to obtain the type of three-dimensional surface to be displayed, including: Reading a visualization toolkit file of the entire model according to the surface physical quantity to obtain a visualization toolkit file of the surface type; Using the visualization toolkit file of the surface type as the three-dimensional surface type to be displayed; Selecting and querying the column database for processing according to the point physical quantity to obtain the type of the three-dimensional point to be displayed includes: Querying the column database according to the point physical quantity to obtain the value of the point physical quantity at each time step of the simulation test; The value of the physical quantity of the point at each time step of the simulation experiment is used as the three-dimensional point type to be displayed.

2. The WEB display method of the three-dimensional simulation model according to claim 1, characterized in that: Parsing the simulation test data source file to obtain simulation test data parsing results includes: Parsing the simulation test data source file to obtain the point, surface, unit and network topology relationship; Analyze points, surfaces and units to obtain the physical quantities of points, surfaces and units at each time step; The points, surfaces and units with physical quantities under the time step are associated with the network topology relationship to obtain the simulation test data analysis results.

3. The WEB display method of the three-dimensional simulation model according to claim 1, characterized in that: The column-based database includes a point information table, a surface information table, a unit information table, a result overview table and a result table. The point information table is used to store three-dimensional coordinates, the surface information table is used to store a set of points, the unit information table is used to store a set of points, the result overview table is used to store result description information, and the result table is used to store physical quantity information.

4. The WEB display method of the three-dimensional simulation model according to any one of claims 1 to 3, characterized in that: Calling a three-dimensional display control to display the three-dimensional target type to be displayed on the WEB side includes: When the type of the three-dimensional object to be displayed is a three-dimensional surface type to be displayed, calling a three-dimensional display control to load the three-dimensional surface type to be displayed for display; When the type of the 3D object to be displayed is a 3D point type to be displayed, a 3D display control is called to draw a curve according to the type of the 3D point to be displayed for display.

5. The WEB display method of the three-dimensional simulation model according to claim 4, characterized in that: Calling a three-dimensional display control to display the three-dimensional target type to be displayed on the WEB side also includes: According to the 3D display control, 3D operations, rendering, feature position addition and visualization are performed on the 3D target type to be displayed.

6. A three-dimensional simulation model web display device, used to implement the three-dimensional simulation model web display method according to any one of claims 1 to 5, characterized in that: include: An acquisition module is used to acquire a simulation test data source file of a three-dimensional simulation model on a server; A source file reading module, used to call a visualization tool interface library to read the simulation test data source file, and generate a visualization tool package file of the whole model according to preset visualization tool package parameters, wherein the visualization tool package file of the whole model includes points, surfaces, units, physical quantities and network topology relationships; A source file parsing module, used for parsing the simulation test data source file to obtain simulation test data parsing results, and storing the simulation test data parsing results in a column-based database; A determination module, used to determine the target physical quantity type according to the target type display request instruction, and select a corresponding three-dimensional display processing method according to the target physical quantity type to obtain the three-dimensional target type to be displayed, wherein the target physical quantity type includes any one or more of a point, a surface and a unit, and when the target physical quantity type is a point, the corresponding three-dimensional display processing method is to query the column database, and when the target physical quantity type is a surface and a unit, the corresponding three-dimensional display processing method is to read the visualization toolkit file of the full model; The display module is called to call the three-dimensional display control to display the three-dimensional target type to be displayed on the WEB side.

7. A three-dimensional simulation model WEB display system, characterized in that: The invention comprises a server, a WEB terminal and a WEB display device of the three-dimensional simulation model according to claim 6, wherein the server and the WEB terminal are both connected to the WEB display device of the three-dimensional simulation model in communication, The server is used to perform a simulation test of the three-dimensional simulation model and generate a simulation test data source file of the three-dimensional simulation model; The WEB display device of the three-dimensional simulation model is used to determine the three-dimensional display processing mode according to the simulation test data source file of the three-dimensional simulation model, and select the matching three-dimensional display processing mode according to the target type display request instruction; The WEB end is used to display the three-dimensional target type.

Citation Information

Patent Citations

  • Method for displaying three-dimensional simulation scene image

    WO2016177288A1

  • Utility network project modeling & management

    WO2020181152A1