Numerical reactor neutron physical visualization system based on WebGL
By designing a neutron physical visual visualization system based on the WebGL -based numerical reactor, it solves the problems of high rendering pressure, limited visual effects, poor user experience, and insufficient cross -platform compatibility in existing technologies. Cross -platform collaboration.
Patent Information
- Application Number
- CN202411269895.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-09-11
AI Technical Summary
The existing numerical reactor neutron physics visualization software has problems such as high rendering pressure, limited visualization effect, poor user experience and insufficient cross-platform compatibility, which cannot meet the needs of modern scientific research and engineering applications.
A numerical reactor neutron physics visualization system based on WebGL is designed, including a model building module, a model analysis and processing module, a rendering buffer building module, a rendering module and a UI operation module. It realizes cross-platform real-time rendering and optimizes rendering through WebGL technology. process to reduce delays and lags.
The efficient three -dimensional number reactor model construction and cross -platform real -time rendering have been achieved, reducing the rendering pressure, improving the visual effects and user experience, and improving the cross -platform collaboration efficiency.
Smart Images

Figure CN119359898A_ABST
Abstract
Description
Technical Field
[0001] The 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 visualization of the physical fields of numerical reactors is a key tool that can help researchers better understand and analyze the physical processes inside the reactor. However, there are currently no software tools on the market specifically for the visualization of neutron physics in numerical reactors. Researchers and engineers usually rely on some general post-processing software for visualization, but these software are not designed for the complex structure of numerical reactors, so there are obvious limitations in practical applications.
[0003] First, the model of a numerical reactor is usually composed of tens of thousands of core blocks. Due to its functional limitations, existing general post-processing software can only render each core block as an independent rendering model. This means that a large number of triangular facets need to be processed when performing visualization, which puts a huge pressure on the rendering capabilities of the software. When performing real-time interactive operations such as rotation, scaling, translation, or data filtering, significant delays and freezes usually occur.
[0004] Secondly, existing general post-processing software also has limitations in visualization effects. In order to handle large amounts of data, these software often need to make trade-offs in rendering details. For example, in order to maintain a relatively smooth operating experience, they may reduce the application of advanced visual effects such as lighting, shadows, and transparency. Although this trade-off can reduce rendering pressure, it also leads to limited expressiveness when displaying complex numerical reactor neutron physics data, and cannot fully display the details and complexity of the physical field. This limitation may affect researchers' intuitive understanding and in-depth analysis of the data.
[0005] In addition, existing general-purpose software also has certain obstacles in user experience. The operation interface is complex and the process is not intuitive enough. Users need to spend a lot of time to learn and adapt, which increases the threshold for using the tool. This limits its wide application and popularity for users who need to get started and operate quickly.
[0006] Finally, these general softwares are not satisfactory in terms of cross-platform compatibility. Most softwares can only run on specific operating systems (such as Windows or Linux), which limits their application in multi-operating system and multi-device environments. This limitation particularly affects teams and projects that require remote collaboration and data sharing, reducing efficiency in multi-user and cross-platform collaboration.
[0007] In summary, the existing numerical reactor neutron physics visualization methods cannot meet the diverse needs of modern scientific research and engineering applications due to functional limitations, high rendering pressure, limited visualization effects, poor user experience, and insufficient cross-platform compatibility. These shortcomings indicate that it is very necessary to develop a more efficient and flexible visualization system. Summary of the invention
[0008] In order to solve the problems of high rendering pressure, poor visual effects and insufficient cross-platform compatibility in the process of numerical reactor neutron physics visualization, 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 comprises: 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 building module is configured to build 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 mesh model and load it into the memory, wherein 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, wherein the rendering data set includes a face vertex set, a face normal set, a face color set, a face 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 splitting operations at different angles and degrees.
[0015] Optionally, the calculation data includes layer height data, flux data, burnup data and power data of the numerical reactor.
[0016] Optionally, the layer height data, flux data, burnup data and power data all come from a calculation result file of a numerical reactor.
[0017] Optionally, the three-dimensional mesh model includes: a vertex set, a voxel mesh 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 geometric structure of the three-dimensional numerical reactor, each voxel grid is a hexahedral unit, defined by eight vertex indices, and the vertex index points to the corresponding position 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, wherein the physical field data includes flux data, fuel consumption data and power data, and the voxel colors are mapped to RGB channel values according to the physical field data.
[0019] Optionally, the model building module includes a data reading interface and a model building interface, the data reading interface is used to read calculation data files of different numerical reactors, and the model building interface is used to build 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 mesh model file and a functional module for constructing a data structure; the voxel unit set is used to store the voxel mesh in the three-dimensional mesh model, and the voxel face set is used to store the vertex index of each face in the voxel mesh.
[0021] Optionally, the rendering buffer construction process includes:
[0022] Clear all render buffer collections;
[0023] The voxel face set is traversed, and 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 the two triangular faces are added to the face vertex set, face normal set, face color set, and face vertex index set, respectively; according to the specific position of the current face, it is determined whether to generate corresponding wireframe information, and it is added to the wireframe vertex set, wireframe color set, and wireframe transparency set.
[0024] Optionally, the rendering buffer construction process ensures that only visible surfaces of visible meshes are rendered, avoiding unnecessary redundant rendering, thereby significantly improving 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 a WebGL environment, and adds a rendering environment to achieve three-dimensional graphics rendering through a graphics processor.
[0026] Optionally, the model building module and the model analysis and processing module are implemented by C++ code and compiled into asm.js code through Emscripten, which not only retains the high execution efficiency of C++ but also achieves cross-platform compatibility on the Web side.
[0027] Optionally, the segmentation operation of the UI operation module is implemented by hiding some voxel units.
[0028] Optionally, the division of the UI operation module at different angles includes division in the horizontal direction and division from an outer ring to an inner ring, and different degrees of division represent the number of hidden voxel units.
[0029] The present invention provides a method for visualizing numerical reactor neutron physics, the method being implemented based on the system as described in any one of the above items, comprising:
[0030] Step 1: Obtain the calculation data of numerical reactor neutron physics and construct a three-dimensional grid model;
[0031] Step 2: construct a data structure based on the three-dimensional mesh model and load it into the memory, wherein 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, wherein the rendering data set includes a face vertex set, a face normal set, a face color set, a face vertex index set, a wireframe vertex set, a wireframe color set, and a wireframe transparency set;
[0033] Step 4: Rendering the rendering data set using WebGL technology;
[0034] Step 5: Use UI technology to implement segmentation operations at different angles and degrees.
[0035] The present invention provides a numerical reactor neutron physics visualization device, comprising a memory and a processor;
[0036] The memory is used to store computer programs;
[0037] The processor is used to implement the numerical reactor neutron physics visualization method as described above when executing the computer program.
[0038] The present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the numerical reactor neutron physics visualization method as described above is implemented.
[0039] The beneficial effects of the present invention are:
[0040] The numerical reactor neutron physics visualization system constructed by the present invention through the design and cooperation of the model construction module, the model analysis and processing module, the rendering buffer construction module, the rendering module and the UI operation module can efficiently construct a three-dimensional numerical reactor model, and realize cross-platform real-time rendering through the WebGL technology, with low rendering pressure, effectively alleviating delays and jams, making visual operations smoother, and excelling in cross-platform compatibility, thereby improving the efficiency of multi-user and cross-platform collaboration.
[0041] The visualization system of the present invention supports multi-angle and multi-level segmentation operations, allowing users to flexibly view and analyze the physical field distribution inside the numerical reactor; in addition, the system does not require high-performance hardware equipment and can run on various common devices, greatly improving user experience and application scope; compared with the existing visualization solutions using general post-processing software, the present invention effectively improves the visual effects 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 briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 It is a schematic diagram of the structure of a numerical reactor neutron physics visualization system based on WebGL in an embodiment 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 results in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying 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] A model building module is configured to build a three-dimensional mesh model based on calculation data of numerical reactor neutron physics;
[0049] A model analysis and processing module is configured to construct a data structure based on the three-dimensional mesh model and load it into the memory, wherein the data structure includes: a vertex data set, a voxel unit set, a voxel face set and a voxel data set;
[0050] A 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 including a face vertex set, a face normal set, a face color set, a face vertex index set, a wireframe vertex set, a wireframe color set, and a wireframe transparency set;
[0051] A rendering module is configured to render the rendering data set using WebGL technology;
[0052] The UI operation module is configured to implement segmentation operations at different angles and degrees.
[0053] Embodiment 2:
[0054] This embodiment provides a numerical reactor neutron physics visualization system based on WebGL, see 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 building module is used to build a three-dimensional mesh model based on the calculation data of numerical reactor neutron physics.
[0056] Specifically, the calculation data include the layer height data, flux data, burnup data and power data of the numerical reactor, all of which are derived from the calculation result file of the numerical reactor.
[0057] Specifically, the model building module reads these calculation result files through the data reading interface, and converts the data into a three-dimensional mesh model through the model building interface.
[0058] Specifically, the three-dimensional mesh model includes a vertex set, a voxel mesh set, and a voxel data set.
[0059] Specifically, the vertex set is used to define the position of voxels 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 hexahedral unit defined by eight vertex indices, and the vertex index points to the corresponding position 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, fuel consumption 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 mesh model and load it into the 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; and the voxel face set is used to store the vertex index 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 render buffer building block is used to analyze the visibility of surface data and create a rendering data set based on the visibility.
[0066] Specifically, first clear all rendering buffer collections; then traverse the voxel face collection FaceArray to detect the visibility of each face Face. If the current face Face is a boundary face or the voxel unit where it is located is not marked as hidden, then decompose the face into two triangular face patches Triangle, and add the six vertices of the two triangular face patches and their index Index, voxel color Color and other information to the face vertex collection SurfaceVerticeArray, the face normal collection SurfaceNoramlArray, the face color collection SurfaceColorArray and the face vertex index collection 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 collection WireframeVerticeArray, the wireframe color collection WireframeColorArray and the wireframe transparency collection WireframeAlphaArray, see Table 2 Rendering buffer data collection.
[0067] Table 2: Render buffer data set
[0068] gather Element Type Remark SurfaceVerticeArray Vector3f Patch Vertex SurfaceNoramlArray Vector3f Patch Normal SurfaceColorArray Vector3f Patch color, normalized RGB components SurfaceIndexArray Int Patch Vertex Index WireframeVerticeArray Vector3f Wireframe Vertices WireframeColorArray Vector3f Wireframe Color WireframeAlphaArray Float Wireframe transparency between 0-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 rendering data sets into data structures such as patches and materials in the WebGL environment, and add rendering environments 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 segmentation operations at different angles and degrees.
[0072] Specifically, the splitting operation is achieved by hiding some voxel cells, especially the surface voxel cells can be hidden to display the internal structure; it supports horizontal splitting and splitting from the outer ring to the inner ring. Users can perform real-time operations on the model through the UI interface, so as to flexibly adjust the viewing angle and splitting depth.
[0073] Specifically, in actual use, the user first imports the calculation result file of the numerical reactor through the data reading interface, and the model building interface then converts this data into a three-dimensional mesh model suitable for visualization. Then, the model analysis and processing module optimizes and simplifies the model data as needed, deletes redundant data and organizes the structure, making the model more efficient when rendering.
[0074] The rendering buffer building module analyzes the optimized model data, separates the parts that need to be displayed and stores them in the corresponding rendering collection, ensuring the best rendering effect on different devices and platforms.
[0075] Finally, through the efficient graphics rendering capabilities of WebGL, the rendering module presents the 3D visualization results of the numerical reactor in real time in the browser. Users can perform various operations through the UI operation module, such as rotation, scaling, and segmentation, to further analyze various aspects of the model.
[0076] The present invention can effectively realize the three-dimensional visualization of numerical reactor neutron physics and can be applied to the fields of engineering design and education and teaching. The feasibility and practicality of the proposed method are also 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 1027 core blocks, the total number of voxels is 75,998, and the number of grids is 227,994.
[0078] Figure 2 The three-dimensional visualization results of flux on the web are shown.
[0079] The numerical reactor neutron physics visualization system constructed in this embodiment through the design and coordination of the model construction module, the model analysis and processing module, the rendering buffer construction module, the rendering module and the UI operation module can efficiently construct a three-dimensional numerical reactor model, and realize cross-platform real-time rendering through WebGL technology, with low rendering pressure, effectively alleviating delays and freezes, making visual operations smoother, and excelling in cross-platform compatibility, thereby improving the efficiency of multi-user and cross-platform collaboration.
[0080] The visualization system of this embodiment supports multi-angle and multi-level segmentation operations, allowing users to flexibly view and analyze the physical field distribution inside the numerical reactor; in addition, the system does not require high-performance hardware equipment and can run on various common devices, greatly improving user experience and application scope; compared with the existing visualization solutions using general post-processing software, the present invention effectively improves the visual effects and cross-platform compatibility.
[0081] Some steps in the embodiments of the present invention may be implemented using software, and the corresponding software program may be stored in a readable storage medium, such as a CD or a hard disk.
[0082] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should 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 building module is configured to build a three-dimensional grid model according to 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 mesh model and load it into the memory, wherein the data structure includes: a vertex data set, a voxel unit set, a voxel face set and a voxel data set; 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, wherein the rendering data set includes a face vertex set, a face normal set, a face color set, a face 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 splitting operations at different angles and degrees.
2. The numerical reactor neutron physics visualization system according to claim 1, characterized in that: The calculation data includes 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 voxels 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 index points to the corresponding position 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, wherein the physical field data includes flux data, fuel consumption data and power data, and the voxel colors are mapped to RGB channel values according to the physical field data.
4. The numerical reactor neutron physics visualization system according to claim 1, characterized in that: The rendering buffer construction process includes: Clear all render buffer collections; The voxel face set is traversed, and 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 the two triangular faces are added to the face vertex set, face normal set, face color set, and face vertex index set, respectively; according to the specific position of the current face, it is determined whether to generate corresponding wireframe information, and it is added to the wireframe vertex set, wireframe color set, and wireframe transparency set.
5. The numerical reactor neutron physics visualization system according to claim 1, characterized in that: The rendering module adopts a WebGL-compatible three-dimensional engine library to convert the rendering data set into a data structure in a WebGL environment, and adds a rendering environment to realize three-dimensional graphics rendering through a graphics processor.
6. The numerical reactor neutron physics visualization system according to claim 1, characterized in that: The subdivision operation of the UI operation module is achieved by hiding some voxel units.
7. The numerical reactor neutron physics visualization system according to claim 1, characterized in that: The division of the UI operation module at different angles includes division in the horizontal direction and division from an outer ring to an inner ring. Different degrees of division represent the number of hidden voxel units.
8. 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 to 7, and includes: Step 1: Obtain the calculation data of numerical reactor neutron physics and construct a three-dimensional grid model; Step 2: construct a data structure based on the three-dimensional mesh model and load it into the memory, wherein the data structure includes: a vertex data set, a voxel unit set, a voxel face set and a voxel data set; Step 3: traverse the voxel face set, analyze the visibility of each face data, and create a rendering data set according to the visibility, wherein the rendering data set includes a face vertex set, a face normal set, a face color set, a face vertex index set, a wireframe vertex set, a wireframe color set, and a wireframe transparency set; Step 4: Rendering the rendering data set using WebGL technology; Step 5: Use UI technology to implement segmentation operations at different angles and degrees.
9. A numerical reactor neutron physics visualization device, characterized in that: including memory and 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 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the numerical reactor neutron physics visualization method according to claim 8 is implemented.
Citation Information
Patent Citations
Method for quickly generating nuclear radiation shield calculation grids based on deep stripping
CN104573279A
System, method and device for three-dimensional voxel-based modeling
CN107567642A
Three-dimensional CSG visualization method, system and device based on ray casting and medium
CN117593450A
Numerical reactor monitoring method and equipment based on fine modeling and virtual reality
CN117973029A
3D analytics actionable solution support system and apparatus
US20170109422A1