A numerical reactor neutron physics visualization system based on WebGL

Through the WebGL-based numerical reactor neutron physical visualization system, the problems of high rendering pressure, poor visual effect and insufficient cross-platform compatibility are solved, and efficient three-dimensional numerical reactor model construction and cross-platform rendering are realized, improving user experience and collaboration efficiency.

CN119359898BActive Publication Date: 2025-07-29JIANGNAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411269895.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2025-07-29
Estimated Expiration
2044-09-11

AI Technical Summary

Technical Problem

The existing numerical reactor neutron physics visualization tools have problems such as high rendering pressure, poor visual effect, poor user experience and insufficient cross-platform compatibility, and cannot meet the diversified needs of modern scientific research and engineering applications.

Method used

The numerical reactor neutron physics visualization system is adopted based on WebGL, including model building module, model analysis processing module, rendering buffer building module, rendering module and UI operation module. It is built with three-dimensional mesh models, analyzed visibility, rendering using WebGL technology, and supports multi-angle and multi-level segmentation operations.

Benefits of technology

It realizes efficient three-dimensional numerical reactor model construction, reduces rendering pressure and delay, improves visual effects and cross-platform compatibility, improves user experience and multi-user collaboration efficiency, and is suitable for a variety of devices and platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119359898B_ABST
    Figure CN119359898B_ABST
Patent Text Reader

Abstract

The present invention discloses a numerical reactor neutron physics visualization system based on WebGL, belonging to the technical field of data visualization. The system of the present invention includes a model construction module, a model analysis and processing module, a rendering buffer construction module, a rendering module, and a UI operation module; the model construction module is used to construct a three-dimensional grid model; the model analysis and processing module creates and loads a data structure; the rendering buffer construction module only renders the visible surfaces of the visible grids to improve efficiency; the rendering module performs three-dimensional rendering using WebGL technology; the UI operation module realizes dissection operations at different angles and depths. The system of the present invention solves the problems of large rendering pressure, poor visualization effect, and insufficient cross-platform compatibility in the numerical reactor neutron physics visualization process in the prior art, is applicable to the three-dimensional visualization of numerical reactor neutron physics in nuclear engineering and scientific research, has the advantages of high efficiency and cross-platform, and can provide convenience for fields such as engineering design and education and teaching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a numerical reactor neutron physics visualization system based on WebGL, belonging to the technical field of data visualization. Background Art

[0002] In nuclear engineering and scientific research, the physical field visualization of numerical reactors is a key tool that can help researchers better understand and analyze the physical processes inside reactors. However, there is currently no dedicated software tool for the visualization of numerical reactor neutron physics on the market. Researchers and engineers usually rely on some general post-processing software for visualization, but these software are not designed for the complex structures of numerical reactors, so there are obvious limitations in practical applications.

[0003] First of all, the models of numerical reactors usually consist of tens of thousands of fuel pellets. Due to the limitations of their functions, existing general post-processing software can only take each fuel pellet as an independent rendering model. This means that when performing visualization, a large number of triangular patches need to be processed, which brings a huge pressure on the rendering ability of the software. When performing real-time interactive operations such as rotation, scaling, translation, or data filtering, significant delays and lags usually occur.

[0004] Secondly, there are also limitations in the visualization effects of existing general post-processing software. In order to process large amounts of data, these software often need to make trade-offs in rendering details. For example, in order to maintain a relatively smooth operation experience, they may reduce the application of advanced visual effects such as lighting, shadows, and transparency. Although this trade-off can reduce the rendering pressure, it also results in limited expressiveness when displaying complex numerical reactor neutron physics data, and the details and complexity of the physical field cannot be fully displayed. This limitation may affect the intuitive understanding and in-depth analysis of data by researchers.

[0005] In addition, there are also certain obstacles in the user experience of existing general software. The operation interface is complex and the process is not intuitive enough. Users need to spend a lot of time learning and adapting, which increases the usage threshold of the tool. This limits its wide application and popularity for users who need to get started and operate quickly.

[0006] Finally, the performance of these general software in cross-platform compatibility is also not satisfactory. Most software can only run on specific operating systems (such as Windows or Linux), which limits their applications in multi-operating system and multi-device environments. This limitation particularly affects teams and projects that require remote collaboration and data sharing, resulting in reduced efficiency in multi-user and cross-platform collaborations.

[0007] In summary, due to problems such as functional limitations, high rendering pressure, limited visualization effects, poor user experience, and insufficient cross-platform compatibility, the existing numerical reactor neutron physics visualization methods cannot meet the diverse needs of modern scientific research and engineering applications. These deficiencies indicate that it is very necessary to develop a more efficient and flexible visualization system. Summary of the Invention

[0008] To solve the problems of high rendering pressure, poor visual effects, and insufficient cross-platform compatibility in the visualization process of numerical reactor neutron physics, the present invention provides a numerical reactor neutron physics visualization system based on WebGL, and the technical solution is as follows:

[0009] The numerical reactor neutron physics visualization system of the present invention includes: a model construction module, a model analysis and processing module, a rendering buffer construction module, a rendering module, and a UI operation module;

[0010] The model construction module is configured to construct a three-dimensional grid model according to the calculation data of numerical reactor neutron physics;

[0011] The model analysis and processing module is configured to construct a data structure based on the three-dimensional grid model and load it into memory. The data structure includes: a vertex data set, a voxel unit set, a voxel face set, and a voxel data set;

[0012] The rendering buffer construction module is configured to traverse the voxel face set, analyze the visibility of each face data, and create a rendering data set according to the visibility. The rendering data set includes a patch vertex set, a patch normal set, a patch color set, a patch vertex index set, a wireframe vertex set, a wireframe color set, and a wireframe transparency set;

[0013] The rendering module is configured to render the rendering data set using WebGL technology;

[0014] The UI operation module is configured to implement dissection operations at different angles and to different degrees.

[0015] Optionally, the calculation data includes the floor height data, flux data, burnup data, and power data of the numerical reactor.

[0016] Optionally, the floor height data, flux data, burnup data, and power data all originate from the calculation result file of the numerical reactor.

[0017] Optionally, the three-dimensional grid model includes: a vertex set, a voxel grid set, and a voxel data set;

[0018] The vertex set is used to define the position of voxels in three-dimensional space; the voxel grid set is used to construct the voxelized geometry of a three-dimensional numerical reactor. Each voxel grid is a hexahedral unit defined by eight vertex indices that point to corresponding positions in the vertex set; the voxel data set is used to store specific physical field data, voxel sectors, voxel positions, voxel levels, voxel depths, and voxel colors. The physical field data includes flux data, burnup data, and power data, and the voxel colors are mapped to RGB channel values according to the physical field data.

[0019] Optionally, the model construction module includes a data reading interface and a model construction interface. The data reading interface is used to read the calculation data files of different numerical reactors, and the model construction interface is used to construct a three-dimensional grid model based on the read data.

[0020] Optionally, the model analysis and processing module includes a functional module for loading a three-dimensional grid model file and a functional module for constructing a data structure; the voxel unit set is used to store the voxel grids in the three-dimensional grid model, and the voxel face set is used to store the vertex indices of each face in the voxel grid.

[0021] Optionally, the construction process of the rendering buffer includes:

[0022] Clear all rendering buffer sets;

[0023] Traverse the voxel face set. When it is detected that the current face is a boundary face or the voxel unit where it is located is not marked as hidden, decompose the current face into two triangles, and add the six vertices, normals, voxel colors, and vertex indices of these two triangle patches to the patch vertex set, patch normal set, patch color set, and patch vertex index set respectively; according to the specific position of the current face, determine whether to generate corresponding wireframe information and add it to the wireframe vertex set, wireframe color set, and wireframe transparency set.

[0024] Optionally, the construction process of the rendering buffer ensures that only the visible faces of visible grids are rendered, avoiding unnecessary redundant rendering, thus significantly improving the rendering efficiency.

[0025] Optionally, the rendering module uses a WebGL-compatible three-dimensional engine library to convert the rendering data set into a data structure in the WebGL environment and add a rendering environment to implement three-dimensional graphics rendering through a graphics processing unit.

[0026] Optionally, the model construction module and the model analysis and processing module are implemented in C++ code and compiled into asm.js code by Emscripten, which not only retains the high execution efficiency of C++ but also achieves cross-platform compatibility on the Web side.

[0027] Optionally, the dissection operation of the UI operation module is implemented by hiding some voxel units.

[0028] Optionally, the dissections of different angles of the UI operation module include the dissection in the horizontal direction and the dissection from the outer ring to the inner ring, and the dissections of different degrees represent the number of hidden voxel units.

[0029] The present invention provides a method for visualizing neutron physics of a numerical reactor, and the method is implemented based on the system described in any one of the above, including:

[0030] Step 1: Obtain the calculation data of neutron physics of the numerical reactor and construct a three-dimensional grid model;

[0031] Step 2: Construct a data structure based on the three-dimensional grid model and load it into the memory. The data structure includes: a vertex data set, a voxel unit set, a voxel face set, and a voxel data set;

[0032] Step 3: Traverse the voxel face set, analyze the visibility of each face data, and create a rendering data set according to the visibility. The rendering data set includes a patch vertex set, a patch normal set, a patch color set, a patch vertex index set, a wireframe vertex set, a wireframe color set, and a wireframe transparency set;

[0033] Step 4: Render the rendering data set by using WebGL technology;

[0034] Step 5: Use UI technology to implement dissection operations of different angles and different degrees.

[0035] The present invention provides a device for visualizing neutron physics of a numerical reactor, including a memory and a processor;

[0036] The memory is used to store a computer program;

[0037] The processor is used to implement the method for visualizing neutron physics of the numerical reactor as described above when executing the computer program.

[0038] The present invention provides a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the method for visualizing neutron physics of the numerical reactor as described above is implemented.

[0039] The beneficial effects of the present invention are:

[0040] Through the design and cooperation of the model construction module, model analysis and processing module, rendering buffer construction module, rendering module, and UI operation module, the numerical reactor neutron physics visualization system constructed can efficiently build a three-dimensional numerical reactor model, and through WebGL technology, achieve cross-platform real-time rendering with low rendering pressure, effectively alleviating the phenomena of delay and lag, making the visual operation smoother, and performing excellently in cross-platform compatibility, improving the collaboration efficiency of multiple users and cross-platform.

[0041] The visualization system of the present invention supports multi-angle and multi-level dissection operations, enabling users to flexibly view and analyze the physical field distribution inside the numerical reactor; in addition, the system does not require high-performance hardware devices and can run on various common devices, greatly improving the user experience and application scope; compared with the existing visualization solutions using general post-processing software, the present invention effectively enhances the visual effect and cross-platform compatibility. Brief Description of the Drawings

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0043] Figure 1 It is a schematic structural diagram of the numerical reactor neutron physics visualization system based on WebGL in the embodiments of the present invention.

[0044] Figure 2 It is a three-dimensional visualization effect diagram of the flux of the numerical reactor neutron physics calculation result in the embodiments of the present invention. Detailed Embodiments

[0045] To make the purpose, technical solutions, and advantages of the present invention clearer, the following will further describe the embodiments of the present invention in detail with reference to the drawings.

[0046] Embodiment 1:

[0047] This embodiment provides a numerical reactor neutron physics visualization system, including: a model construction module, a model analysis and processing module, a rendering buffer construction module, a rendering module, and a UI operation module;

[0048] The model construction module is configured to construct a three-dimensional grid model according to the calculation data of the numerical reactor neutron physics;

[0049] The model analysis and processing module is configured to construct a data structure based on the three-dimensional grid model and load it into the memory. The data structure includes: a vertex data set, a voxel unit set, a voxel face set, and a voxel data set;

[0050] The rendering buffer construction module is configured to traverse the voxel face set, analyze the visibility of each face data, and create a rendering data set according to the visibility. The rendering data set includes a patch vertex set, a patch normal set, a patch color set, a patch vertex index set, a wireframe vertex set, a wireframe color set, and a wireframe transparency set;

[0051] The rendering module is configured to render the rendering data set using WebGL technology;

[0052] The UI operation module is configured to implement dissection operations at different angles and to different extents.

[0053] Embodiment 2:

[0054] This embodiment provides a numerical reactor neutron physics visualization system based on WebGL. Refer to Figure 1 , the system includes: a model construction module, a model analysis and processing module, a rendering buffer construction module, a rendering module, and a UI operation module.

[0055] The model construction module is used to construct a three-dimensional grid model according to the calculation data of the numerical reactor neutron physics.

[0056] Specifically, the calculation data includes the floor height data, flux data, burnup data, and power data of the numerical reactor, and these data are all from the calculation result file of the numerical reactor.

[0057] Specifically, the model construction module reads these calculation result files through a data reading interface and converts the data into a three-dimensional grid model through a model construction interface.

[0058] Specifically, the three-dimensional grid model includes a vertex set, a voxel grid set, and a voxel data set.

[0059] Specifically, the vertex set is used to define the position of the voxel in three-dimensional space, and each vertex is represented by three-dimensional coordinates (x, y, z); the voxel grid set is used to construct the voxelized geometric structure of the three-dimensional numerical reactor, and each voxel grid is a hexahedron unit defined by eight vertex indices, and the vertex indices point to the corresponding positions in the vertex set; the voxel data set is used to store specific physical field data, voxel sectors, voxel positions, voxel levels, voxel depths, and voxel colors, where the physical field data includes flux data, burnup data, and power data, and the voxel color is mapped to RGB channel values according to the physical field data.

[0060] The model analysis and processing module is used to create a data structure based on the three-dimensional grid model and load it into memory.

[0061] Specifically, the data structure includes a vertex data set VerticeArray, a voxel unit set CellArray, a voxel face set FaceArray, and a voxel data InfoArray set. The vertex data set is used to store the coordinate information of all vertices in the model; the voxel unit set is used to store each voxel unit in the voxel grid set; the voxel face set is used to store the vertex indices of each face in the voxel grid. See Table 1 for the main data structures and their member variables.

[0062] Table 1: Main data structures and their member variables

[0063]

[0064]

[0065] The rendering buffer construction module is used to analyze the visibility of the face data and create a rendering data set based on the visibility.

[0066] Specifically, first clear all the rendering buffer sets; then traverse the voxel face set FaceArray to detect the visibility of each face Face. If the current face Face is a boundary face or the voxel unit it belongs to is not marked as hidden, decompose the face into two triangular patches Triangle, and add the six vertices and their indices Index, voxel color Color, etc. of these two triangular patches to the patch vertex set SurfaceVerticeArray, the patch normal set SurfaceNoramlArray, the patch color set SurfaceColorArray, and the patch vertex index set SurfaceIndexArray respectively; according to the specific position of the face, determine whether to generate the corresponding wireframe information and add it to the wireframe vertex set WireframeVerticeArray, the wireframe color set WireframeColorArray, and the wireframe transparency set WireframeAlphaArray. See Table 2 for the data sets in the rendering buffer.

[0067] Table 2: Data sets in the rendering buffer

[0068] Set Element type Remarks SurfaceVerticeArray Vector3f Patch vertex SurfaceNoramlArray Vector3f Patch normal SurfaceColorArray Vector3f Patch color, normalized RGB components SurfaceIndexArray Int Patch vertex index WireframeVerticeArray Vector3f Wireframe vertex WireframeColorArray Vector3f Wireframe color WireframeAlphaArray Float Wireframe transparency between 0 and 1

[0069] The rendering module uses WebGL technology to perform three-dimensional rendering on the rendering data set.

[0070] Specifically, the rendering module can use Three.js or other WebGL-compatible 3D engine libraries to convert the rendering data set into data structures such as patches and materials in the WebGL environment, and add a rendering environment such as global illumination, cameras, and camera controllers to achieve efficient 3D graphics rendering through a graphics processing unit (GPU).

[0071] The UI operation module is used to implement dissection operations at different angles and to different extents.

[0072] Specifically, the dissection operation is achieved by hiding some voxel cells Cell, especially the surface voxel cells Cell can be hidden to display the internal structure; it supports horizontal dissection and dissection from the outer ring to the inner ring, and users can perform real-time operations on the model through the UI interface, so as to flexibly adjust the viewing angle and dissection depth.

[0073] Specifically, in actual use, the user first imports the calculation result file of the numerical reactor through the data reading interface, and then the model construction interface converts this data into a 3D mesh model suitable for visualization. Then, the model analysis and processing module optimizes and simplifies the model data as needed, deletes redundant data and arranges the structure to make the model more efficient during rendering.

[0074] The rendering buffer construction module analyzes the optimized model data, separates the parts to be displayed and stores them in the corresponding rendering set to ensure the best rendering effect on different devices and platforms.

[0075] Finally, through the efficient graphics rendering ability of WebGL, the rendering module presents the 3D visualization result of the numerical reactor in real time in the browser. Users can perform various operations through the UI operation module, such as rotation, scaling, dissection, etc., to further analyze various aspects of the model.

[0076] The present invention can effectively realize the 3D visualization of neutron physics of numerical reactors, can be applied to the fields of engineering design and education and teaching, and at the same time, the feasibility and practicality of the proposed method are verified through test cases.

[0077] The test object of the present invention is a hexagonal fast reactor model, which has a height of 74 layers, each layer contains 1,027 fuel pellets, the overall number of voxels is 75,998, and the number of meshes is 227,994.

[0078] Figure 2 Shows the 3D visualization result of the flux on the Web side.

[0079] Through the design and cooperation of a model construction module, a model analysis and processing module, a rendering buffer construction module, a rendering module, and a UI operation module, the numerical reactor neutron physics visualization system constructed in this embodiment can efficiently construct a three-dimensional numerical reactor model and achieve cross-platform real-time rendering through WebGL technology. It has low rendering pressure, effectively alleviates the phenomena of latency and jitter, provides smoother visual operations, and performs excellently in terms of cross-platform compatibility, improving the collaboration efficiency of multiple users and cross-platform.

[0080] The visualization system of this embodiment supports multi-angle and multi-level dissection operations, enabling users to flexibly view and analyze the physical field distribution inside the numerical reactor. In addition, the system does not require high-performance hardware devices and can run on various common devices, greatly improving the user experience and application scope. Compared with the existing visualization solutions using general post-processing software, the present invention effectively enhances the visual effect and cross-platform compatibility.

[0081] Some steps in the embodiments of the present invention can be implemented using software, and the corresponding software program can be stored in a readable storage medium, such as an optical disc or a hard disk.

[0082] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A numerical reactor neutron physics visualization system, characterized in that The system includes: a model construction module, a model analysis and processing module, a rendering buffer construction module, a rendering module, and a UI operation module; The model construction module is configured to construct a three-dimensional grid model based on the calculation data of numerical reactor neutron physics; The model analysis and processing module is configured to construct a data structure based on the three-dimensional grid model and load it into memory. The data structure includes: a vertex data set, a voxel unit set, a voxel face set, and a voxel data set; the voxel data set includes voxel colors, and the voxel colors are mapped to RGB channel values according to physical field data; The rendering buffer construction module is configured to traverse the voxel face set, analyze the visibility of each face data, and create a rendering data set according to the visibility. The rendering data set includes a patch vertex set, a patch normal set, a patch color set, a patch vertex index set, a wireframe vertex set, a wireframe color set, and a wireframe transparency set; The rendering module is configured to render the rendering data set using WebGL technology; The UI operation module is configured to implement dissection operations at different angles and to different degrees; The construction process of the rendering buffer includes: Clearing all rendering buffer sets; Traversing the voxel face set. When it is detected that the current face is a boundary face or the voxel unit where it is located is not marked as hidden, the current face is decomposed into two triangles, and the six vertices, normals, voxel colors, and vertex indices of these two triangle patches are respectively added to the patch vertex set, the patch normal set, the patch color set, and the patch vertex index set; according to the specific position of the current face, it is determined whether to generate corresponding wireframe information and add it to the wireframe vertex set, the wireframe color set, and the wireframe transparency set.

2. The numerical reactor neutron physics visualization system according to claim 1, wherein The calculation data includes the layer height data, flux data, burnup data, and power data of the numerical reactor.

3. The numerical reactor neutron physics visualization system according to claim 1, characterized in that, The three-dimensional grid model includes: a vertex set, a voxel grid set, and a voxel data set; The vertex set is used to define the position of the voxel in three-dimensional space; the voxel grid set is used to construct the voxelized geometric structure of the three-dimensional numerical reactor. Each voxel grid is a hexahedral unit defined by eight vertex indices, and the vertex indices point to the corresponding positions in the vertex set; the voxel data set is used to store specific physical field data, voxel sectors, voxel positions, voxel levels, voxel depths, and voxel colors, where the physical field data includes flux data, burnup data, and power data.

4. The numerical reactor neutron physics visualization system according to claim 1, characterized in that The rendering module uses a WebGL-compatible three-dimensional engine library to convert the rendering data set into a data structure in the WebGL environment and add a rendering environment, and realizes three-dimensional graphics rendering through a graphics processor.

5. The numerical reactor neutron physics visualization system according to claim 1, characterized in that The dissection operation of the UI operation module is realized by hiding some voxel units.

6. The numerical reactor neutron physics visualization system according to claim 1, characterized in that The dissection at different angles of the UI operation module includes horizontal dissection and dissection from the outer ring to the inner ring, and the dissection to different degrees represents the number of hidden voxel units.

7. A numerical reactor neutron physics visualization method, characterized in that, The method is implemented based on the system according to any one of claims 1-6 and includes: Step 1: Obtain the calculation data of the neutron physics of the numerical reactor and construct a three-dimensional grid model; Step 2: Based on the three-dimensional grid model, construct a data structure and load it into the memory. The data structure includes: a vertex data set, a voxel unit set, a voxel face set, and a voxel data set; the voxel data set includes voxel colors, and the voxel colors are mapped to RGB channel values according to the physical field data; Step 3: Traverse the voxel face set, analyze the visibility of each face data, and create a rendering data set according to the visibility. The rendering data set includes a patch vertex set, a patch normal set, a patch color set, a patch vertex index set, a wireframe vertex set, a wireframe color set, and a wireframe transparency set; Step 4: Render the rendering data set using WebGL technology; Step 5: Use UI technology to implement dissection operations at different angles and to different extents; The construction process of the rendering buffer in Step 3 includes: Clear all rendering buffer sets; Traverse the voxel face set. When it is detected that the current face is a boundary face or the voxel unit where it is located is not marked as hidden, decompose the current face into two triangles, and add the six vertices, normals, voxel colors, and vertex indices of these two triangle patches to the patch vertex set, the patch normal set, the patch color set, and the patch vertex index set respectively; according to the specific position of the current face, determine whether to generate corresponding wireframe information and add it to the wireframe vertex set, the wireframe color set, and the wireframe transparency set.

8. A numerical reactor neutron physics visualization device, characterized in that, It includes a memory and a processor; The memory is used to store computer programs; The processor is used to implement the numerical reactor neutron physics visualization method as claimed in claim 7 when executing the computer program.

9. A computer-readable storage medium, characterized in that, A computer program is stored on the storage medium, and when the computer program is executed by the processor, the numerical reactor neutron physics visualization method as claimed in claim 7 is implemented.

Citation Information

Patent Citations

  • System, method and device for three-dimensional voxel-based modeling

    CN107567642A

  • Numerical reactor monitoring method and equipment based on fine modeling and virtual reality

    CN117973029A