Space grid mapping method and device suitable for reactor core
Through the multi-level grid strategy and volume weight weighting method, the problems of low grid mapping efficiency and reduced accuracy in core physical-thermal coupled calculation are solved, and efficient and accurate grid mapping is achieved, ensuring the conservation of parameters.
Patent Information
- Application Number
- CN202311871634.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, the grid mapping efficiency of core physical-thermal coupled computing is low and the accuracy is reduced, making it difficult to meet the needs of refined models.
Using a multi-level grid strategy, by constructing the correspondence between the second-level grid and the first-level target and source grid, quickly search for the high-level coarse grid and determine the intersection volume of the low-level fine grid. Parameter mapping is achieved by combining volume weight weight weighting to ensure the conservation of parameters before and after the mapping.
This greatly reduces the order of searches, improves the efficiency and accuracy of spatial grid mapping between cores, and ensures the accuracy of mapping results and the conservation of parameters.
Smart Images

Figure CN120236032A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of nuclear reactors, and particularly relates to a spatial grid mapping method and device applicable to a reactor core. Background Art
[0002] In light water reactors such as pressurized water reactors and boiling water reactors, due to the strong feedback phenomenon between core physics and thermal-hydraulics, the impact brought by physical-thermal-hydraulic feedback must be considered in core design and safety analysis. Currently, in software for core nuclear design and thermal-hydraulic analysis, core physics calculations have evolved from fine-mesh differences to coarse-mesh nodalizations, and core thermal-hydraulic calculations have evolved from single-channel models to sub-channel models. With the rapid development of computer technology, core physics and thermal-hydraulics have further evolved towards refined models, and the coupled calculations between core physics and thermal-hydraulics are fully considered.
[0003] Due to the differences in the objects simulated and the calculation methods adopted in core physics and thermal-hydraulic calculations, the grids established by these two specialties also differ. In relatively coarse component-level or nodal-level coupled calculations, a unified modeling method can still be adopted to make the calculation grids of core physics and thermal-hydraulics correspond one by one. However, in fine coupled calculations or if non-one-to-one grid modeling is adopted, the grid mapping between core physics and thermal-hydraulics must be considered.
[0004] Spatial mapping methods are widely used in the field of geographic information science for terrain surface interpolation, such as Kriging interpolation method, inverse distance weighting interpolation method, minimum curvature method, radial basis function method, etc. When these methods are directly applied to the physical-thermal-hydraulic coupling of a reactor core, the following two problems are likely to occur: 1) The accuracy of the calculation results after interpolation mapping decreases; 2) Some methods require a large amount of searching or large-scale linear matrix solving, resulting in very low mapping efficiency when the grids of physics and thermal-hydraulics are relatively fine and the scale of the physics and thermal-hydraulic grids is large. Therefore, it is necessary to fully consider the grid characteristics and accuracy requirements of core physics-thermal-hydraulic coupled calculations and adopt a suitable spatial mapping method to improve the mapping efficiency and accuracy. Summary of the Invention
[0005] The purpose of this application is to provide a spatial grid mapping method and device applicable to a reactor core, so as to solve the problems of low mapping efficiency and decreased accuracy in the prior art.
[0006] Technical solutions for achieving the purpose of this application:
[0007] In the first aspect of the embodiments of this application, a spatial grid mapping method applicable to a reactor core is provided. The method includes:
[0008] Obtain the first-level grids for professional calculations of the target field T and the source field S, to obtain the first-level target grids of the target field T and the first-level source grids of the source field S;
[0009] Based on the first-level target grids and the first-level source grids, construct the second-level grids, and establish the corresponding relationships between the second-level grids and the first-level target grids and the first-level source grids;
[0010] According to the second-level grids, determine the source grids that intersect with each target grid point in the first-level target grids in the first-level source grids, and obtain the volumes of intersection between each target grid and the corresponding source grid points;
[0011] According to the volumes of intersection with the corresponding source grid points, obtain the values mapped from the source field S to each target grid point in the target field T.
[0012] Optionally, after obtaining the values mapped from the source field S to each target grid point in the target field T according to the volumes of intersection with the corresponding source grid points, further include:
[0013] Obtain the sum T_sum of the values mapped from the source field S to all the target grid points in the target field T, and the sum S_sum of the values of all the source grid points in the source field S;
[0014] Based on the ratio of S_sum to T_sum, correct the values mapped from the source field S to each target grid point in the target field T.
[0015] Optionally, the step of determining the source grid points that intersect with each target grid point in the first-level target grids in the first-level source grids according to the second-level grids and obtaining the volumes of intersection between each target grid point and the corresponding source grid points specifically includes:
[0016] According to the corresponding relationship between the second-level grids and the first-level target grids, determine the secondary grid point P_C_2 in the second-level grids corresponding to the target grid point T_C_1;
[0017] According to the corresponding relationship between the second-level grids and the first-level source grids, determine the source grid point S_C_1 in the first-level source grids corresponding to the corresponding secondary grid point P_C_2;
[0018] Determine the grids that intersect with the target grid point T_C_1 from the corresponding source grid point S_C_1, and obtain the volume of intersection.
[0019] Optionally, obtaining the values mapped from the source field S to each target grid point in the target field T according to the volume intersected by the corresponding source grid points specifically includes:
[0020] Using volume fraction to weight the values of the source grid points in the first-level source grid that intersect with the target grid point T_C_1 to obtain the values mapped from the source field S to each target grid point in the target field T.
[0021] Optionally, the second-level grid is a grid block formed by including several first-level grids.
[0022] Optionally, the correspondence between the second-level grid and the first-level target grid and the first-level source grid specifically includes: the number of first-level grids included in the second-level grid, the coordinates of each first-level grid included, and the identifier of the second-level grid to which the first-level grid belongs.
[0023] The second aspect of the embodiments of the present application provides a spatial grid mapping device applicable to a reactor core, characterized in that the device includes:
[0024] A first acquisition module, configured to acquire the first-level grids for professional calculation of the target field T and the source field S, obtain the first-level target grids of the target field T, and the first-level source grids of the source field S;
[0025] A grid construction module, configured to construct a second-level grid based on the first-level target grid and the first-level source grid, and establish the correspondence between the second-level grid and the first-level target grid and the first-level source grid;
[0026] A first determination module, configured to determine the source grids that intersect with each target grid point in the first-level target grid in the first-level source grid according to the second-level grid, and obtain the volume of intersection between each target grid and the corresponding source grid point;
[0027] A second determination module, configured to obtain the values mapped from the source field S to each target grid point in the target field T according to the volume of intersection of the corresponding source grid points.
[0028] The third aspect of the embodiments of the present application provides an electronic device, characterized in that it includes a processor and a memory, and instructions are stored in the memory. When the processor executes the instructions, the processor executes any method provided in the first aspect of the embodiments of the present application.
[0029] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, characterized in that it is used to store a computer program, and the computer program includes a method for executing any method provided in the first aspect of the embodiments of the present application.
[0030] A computer program product is provided in the fifth aspect of the embodiments of the present application. It is characterized by including computer program code, which, when run on an electronic device, causes the electronic device to execute any one of the methods provided in the first aspect of the embodiments of the present application.
[0031] The beneficial technical effects of the present application are as follows:
[0032] A spatial grid mapping method and device applicable to a reactor core provided in the embodiments of the present application establish multiple levels of coarser grids through physical field fine grid reconstruction. First, the corresponding relationships of high-level coarse grids are quickly searched, and then the corresponding relationships of low-level fine grids are searched in the high-level coarse grids. Through this multi-level grid strategy, it is possible to avoid traversing all fine grids to find the grid point closest to the target field, greatly reducing the order of magnitude of the search times, thereby improving the establishment of the corresponding relationship between the fine grids of the target field and the source field, and realizing the mapping of parameters through methods such as volume weight weighting, and ensuring the conservation of parameters before and after mapping through overall conservation repair. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic flow chart of a spatial grid mapping method applicable to a reactor core provided in the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0034] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the embodiments described below are only a part of the embodiments of the present application, rather than all of them. Based on the embodiments recorded in the present application, all other embodiments obtained by those skilled in the art without creative efforts are within the scope of protection of the present application.
[0035] In order to meet the spatial mapping requirements for coupling calculations among multiple specialties of different reactors and improve the efficiency and accuracy of spatial grid mapping in coupling calculations, the embodiments of the present application are directed to the grid characteristics of reactor core physics, thermal hydraulics, and fuel calculations in a reactor core (that is, the reactor core is composed of components with basically the same geometric form through reasonable arrangement. When performing physics, thermal hydraulics, and fuel calculations, the grid division within the components is basically the same, and the grids of the entire reactor core are generated by repeated arrangement of the components. This patent mainly takes the physics and thermal hydraulics grids as examples for introduction), and proposes a spatial grid mapping method based on a two-level grid strategy. Based on the first-level fine grids of each specialty, a common second-level grid is reconstructed. Through the corresponding relationships between the first and second-level grids, the spatial mapping of the first-level grids of different specialties within the second-level grid can be quickly realized, improving the efficiency of spatial grid mapping among multiple specialties of the reactor core.
[0036] Based on the above, in order to clearly and detailedly illustrate the above advantages of the present application, the following will describe the specific embodiments of the present application with reference to the accompanying drawings.
[0037] See Figure 1 , which is a schematic flowchart of a spatial grid mapping method applicable to a reactor core provided by an embodiment of the present application.
[0038] A spatial grid mapping method applicable to a reactor core provided by an embodiment of the present application includes:
[0039] Step S101: Obtain the first-level grids for professional calculations of the target field T and the source field S, to obtain the first-level target grids of the target field T and the first-level source grids of the source field S.
[0040] In the embodiment of the present application, the first-level grids include the total number of grids and the vertex coordinates of each grid.
[0041] Step S102: Based on the first-level target grids and the first-level source grids, construct the second-level grids and establish the corresponding relationships between the second-level grids and the first-level target grids and the first-level source grids;
[0042] In the embodiment of the present application, the basic information of the second-level grids includes the total number of grids and the vertex coordinates of each grid.
[0043] In an example, the second-level grids are grid blocks formed by including several first-level grids. Based on this grid block, grid modeling for multiple specialties of the entire reactor core can be completed simultaneously. Generally, components or sub-components can be selected as the basic units of the second-level grids, and the second-level grids are shared by multiple professional fields.
[0044] In another example, the corresponding relationships between the second-level grids and the first-level target grids and the first-level source grids specifically include: the number of first-level grids included in the second-level grids, the coordinates of each first-level grid included, and the identifier of the second-level grid to which the first-level grid belongs.
[0045] Step S103: According to the second-level grids, determine the source grids that intersect with each target grid point in the first-level target grids in the first-level source grids, and obtain the volumes of the intersections of each target grid and the corresponding source grid points.
[0046] Step S104: According to the volumes of the intersections of the corresponding source grid points, obtain the values mapped from the source field S to each target grid point in the target field T.
[0047] In the embodiments of the present application, a multi-level coarser grid is established through physical field fine grid reconstruction. First, the corresponding relationship of the high-level coarse grid is quickly searched, and then the corresponding relationship of the low-level fine grid is searched in the high-level coarse grid. Through this multi-level grid strategy, it is possible to avoid traversing all the fine grids to find the grid point closest to the target field, greatly reducing the order of magnitude of the search times, thereby improving the establishment of the corresponding relationship between the fine grids of the target field and the source field.
[0048] During specific implementation, the target field and source field identifiers can be exchanged, and steps S103 and S104 can be repeated to achieve the spatial mapping of the target field data to the source field, which will not be elaborated here.
[0049] In some possible implementation manners of the embodiments of the present application, after step S104, it may further include:
[0050] Obtain the sum T_sum of the values mapped from the source field S for all target grid points in the target field T, and the sum S_sum of the values of all source grid points in the source field S;
[0051] Correct the values mapped from the source field S for each target grid point in the target field T based on the ratio of S_sum to T_sum.
[0052] In the embodiments of the present application, the mapping of parameters is achieved through methods such as volume weight weighting, and the conservation of parameters before and after mapping is ensured through the repair of overall conservation.
[0053] In some possible implementation manners of the embodiments of the present application, step S103 may specifically include:
[0054] According to the corresponding relationship between the second-level grid and the first-level target grid, determine the second-level grid point P_C_2 in the second-level grid corresponding to the target grid point T_C_1;
[0055] According to the corresponding relationship between the second-level grid and the first-level source grid, determine the source grid point S_C_1 in the first-level source grid corresponding to the corresponding second-level grid point P_C_2;
[0056] Determine the grid that intersects with the target grid point T_C_1 from the corresponding source grid point S_C_1 and obtain the intersecting volume.
[0057] Assume that the source field identifier is S, the target field identifier is T, the grid identifier is C, and the second-level shared grid identifier is P. For the first-level grid T_C_1 in the target field T, according to step S102, it is known that the corresponding second-level grid is P_C_2, and it is known the information of the first-level grid S_C_1 of the source field included in the second-level grid P_C_2, including the number of first-level grids included and the coordinates of each grid. Search for the grids that intersect with the first-level grid T_C_1 in the target field T among the first-level grids S_C_1 of the source field included in the second-level grid P_C_2, and calculate the intersecting volume.
[0058] In some possible implementation manners of the embodiments of the present application, step S104 may specifically include:
[0059] Adopt volume fraction weighting for the numerical values of the source grid points that intersect with the target grid point T_C_1 in the first-level source grid to obtain the numerical values mapped from the source field S to each target grid point in the target field T.
[0060] A spatial grid mapping method and device applicable to a reactor core provided by the embodiments of the present application establish multiple levels of coarser grids through physical field fine grid reconstruction. First, quickly search for the corresponding relationships of the high-level coarse grids, and then search for the corresponding relationships of the low-level fine grids in the high-level coarse grids. Through this multi-level grid strategy, it is possible to avoid traversing all the fine grids to find the grid point closest to the target field, greatly reducing the order of magnitude of the search times, thereby improving the establishment of the corresponding relationship between the fine grids of the target field and the source field, and realizing the mapping of parameters through methods such as volume weight weighting, and ensuring the conservation of parameters before and after mapping through overall conservation repair.
[0061] The following specifically describes a spatial grid mapping method applicable to a reactor core provided by the embodiments of the present application with a specific example.
[0062] A spatial grid mapping method applicable to a reactor core provided by the embodiments of the present application includes:
[0063] Step S1, obtain the first-level calculation grids for professional calculations such as reactor core physics and thermal engineering, including the total number of grids and the vertex coordinates of each grid.
[0064] Source field S: 30 grids and 31 points in the x direction, 30 grids and 31 points in the y direction, 30 grids and 31 points in the z direction;
[0065] Target field T: 60 grids and 61 points in the x direction, 6 grids and 7 points in the y direction, 10 grids and 11 points in the z direction.
[0066] Output the first-level grids of professional fields such as reactor core physics and thermal engineering in the following format (such as a two-dimensional plane, with the coordinate origin in the upper left corner and the bottom coordinate of the z direction being 0):
[0067] (1) Source field (physical field)
[0068] 1) Point information
[0069] Total number of points: 29791
[0070] Point label x - coordinate y - coordinate z - coordinate 1 0.0 0.0 0.0 2 1.0 0.0 0.0
[0073] …… 29791 30.0 30.0 30.0
[0075] 2) Mesh information
[0076] Total number of meshes: 27000
[0077] Mesh label Vertex 1 label Vertex 2 label Vertex 3 label …… Vertex N label
[0078] 1 32 33 1 2 993 994 962 963 (Point labels defined in a typical hexahedron mesh, where the vertex identifier is 1) 2 33 34 2 3 994 995 963 964
[0080] ……
[0081] 27000~
[0082] (2) Target field (thermal field)
[0083] Total number of points: 4697
[0084] Point label x - coordinate y - coordinate z - coordinate 1 0.0 0.0 0.0 2 0.5 0.0 0.0
[0087] …… 4697 30.0 30.0 30.0
[0089] 2) Mesh information
[0090] Total number of meshes: 3600
[0091] Mesh label Vertex 1 label Vertex 2 label Vertex 3 label …… Vertex N label 1 62 63 1 2 489 490 428 429 2 63 64 2 3 490 491 429 430
[0094] Step S2: Based on the first-level computational grid, select an appropriate reconstruction principle to construct the second-level grid and generate the basic information of the second-level grid, including the total number of grids and the vertex coordinates of each grid.
[0095] Select the component width dimension as the second-level grid. If the two-dimensional dimension of the component is 10 * 10, then the second-level grid includes 9 grids and 16 points. The two-dimensional point coordinates of the grid are as follows:
[0096] The first row: (0.0, 0.0), (10.0, 0.0), (20.0, 0.0), (30.0, 0.0)
[0097] The second row: (0.0, 10.0), (10.0, 10.0), (20.0, 10.0), (30.0, 10.0)
[0098] The third row: (0.0, 20.0), (10.0, 20.0), (20.0, 20.0), (30.0, 20.0)
[0099] The fourth row: (0.0, 30.0), (10.0, 30.0), (20.0, 30.0), (30.0, 30.0)
[0100] Step S3: Establish the correspondence between the second-level grid and the first-level grid, that is, ① the number of first-level grids included in the second-level grid and the coordinates of each included first-level grid, and ② the identifier of the second-level grid to which the first-level grid belongs.
[0101] For the source field S, each second-level grid includes 100 first-level grids. Traverse from the row and start numbering from 1, and record the correspondence between the number and the identifier of the grid itself. For example, there are 100 first-level grids in the first second-level grid. There are 10 first-level grids in the first row, numbered 1 - 10, and the corresponding grid identifiers are 1 - 10. There are 10 first-level grids in the second row, numbered 11 - 20, and the corresponding grid identifiers are 31 - 40. There are 10 first-level grids in the 10th row, numbered 91 - 100, and the corresponding grid identifiers are 271 - 280. Establish the correspondence between all second-level grids and first-level grids according to the above rules.
[0102] For the target field T, each second-level grid includes 40 first-level grids. Traverse from the row and start numbering from 1, and record the correspondence between the number and the identifier of the grid itself. For example, there are 40 first-level grids in the first second-level grid. There are 20 first-level grids in the first row, numbered 1 - 20, and the corresponding grid identifiers are 1 - 20. There are 20 first-level grids in the second row, numbered 21 - 40, and the corresponding grid identifiers are 61 - 80
[0103] Step S4: Based on the second-level grid strategy, implement the spatial mapping of the first-level grids between different physical fields.
[0104] Assume that the source field identifier is S, the target field identifier is T, the grid identifier is C, and the second-level shared grid identifier is P.
[0105] Step S41: For the first-level grid T_C_1 in the target field T, according to Step S3, the corresponding second-level grid P_C_2 can be known.
[0106] For the first grid T_C_1(1, 1, 1) in the first-level grid T_C_1 of the target field T, according to Step S3, it can be known that T_C_1(1, 1, 1) is located in the first grid P_C_2(1, 1, 1) of the second-level grid.
[0107] Step S42: According to Step S3, the information of the first-level grid S_C_1 of the source field included in the second-level grid P_C_2 can be known, including the number of the included first-level grids and the coordinates of each grid.
[0108] According to Step S3, it can be known that the second-level grid P_C_2 includes 100 grids in the first-level grid S_C_1 of the source field, numbered from 1 to 100, and marked as 1 to 10, 31 to 40, 61 to 70, 91 to 100,..., 271 to 280.
[0109] Step S43: Search for the grids that intersect with the first-level grid T_C_1 in the target field T among the first-level grids of the source field found in Step S42, and calculate the intersection volume.
[0110] Two traversal search methods can be adopted to find the grids that intersect with T_C_1(1, 1, 1) among the 100 first-level grids in S_C_1.
[0111] Method 1: Traverse by number, that is, from 1 to 100, and sequentially determine whether the 100 grids in S_C_1 included in P_C_2(1, 1, 1) intersect with T_C_1(1, 1, 1).
[0112] Method 2: Determine between which two grids in S_C_1 the faces of T_C_1(1, 1, 1) in the x direction and y direction are located, then the grids between these four grids all intersect with T_C_1(1, 1, 1).
[0113] Calculate the intersection volume, record the total number of grids in the 100 first-level grids in S_C_1 that intersect with T_C_1(1, 1, 1), number them starting from 1, and correspond the intersection volume of the grids with the numbers.
[0114] The S_C_1 grids intersecting with T_C_1(1,1,1) are (1,1,1), (1,2,1), (1,3,1), (1,4,1), (1,5,1). The intersecting volume is one-half of the volumes of the S_C_1 grids (1,1,1), (1,2,1), (1,3,1), (1,4,1), (1,5,1).
[0115] Step S44: Adopt volume fraction weighting to weight the numerical values of the first-level grids of the source field intersecting with the first-level grid T_C_1 in the target field T in step S43, and map this value to the first-level grid T_C_1 of the target field T.
[0116] Step S45: Repeat steps S41 - S44 until numerical values mapped from the source field are obtained for all grids in the target field.
[0117] Step S5: Repair the conservation of the grid mapping parameters in the target field T. Calculate the sum S_sum of the numerical values of all grids in the source field, calculate the sum T_sum of the numerical values of all grids in the target field T after mapping, calculate the ratio f = S_sum / T_sum, and multiply the numerical values of all grids in the target field T after mapping by the ratio f to obtain the new mapped numerical values of the grids in the target field.
[0118] Calculate the sum of the numerical values of all grids in the source field S:
[0119] S_sum = 30*(1 + 2 + 3……+ 30)*10*(1*1*10) = 1395000.
[0120] Calculate the sum of the numerical values of all grids in the target field T:
[0121] T_sum = 30*(3 + 8 + 13 + 18 + 23 + 28)*10*(1*5*10) = 1395000.
[0122] f = S_sum / T_sum = 1.0. Then, the numerical values of all grids in the target field T after mapping are all multiplied by 1 to obtain the corrected mapped numerical values.
[0123] Step S6: Exchange the identifiers of the target field and the source field, and repeat steps S4 and S5 to achieve spatial mapping of the target field data to the source field.
[0124] Based on a spatial grid mapping method applicable to the reactor core provided in the above embodiments, the embodiments of the present application also provide a spatial grid mapping device applicable to the reactor core.
[0125] A spatial grid mapping device applicable to the reactor core provided by the embodiments of the present application includes:
[0126] The first acquisition module is configured to acquire the first-level grids for professional calculations of the target field T and the source field S, obtain the first-level target grids of the target field T, and the first-level source grids of the source field S;
[0127] The grid construction module is configured to construct a second-level grid based on the first-level target grid and the first-level source grid, and establish a correspondence between the second-level grid and the first-level target grid and the first-level source grid;
[0128] The first determination module is configured to determine, according to the second-level grid, the source grids intersecting with each target grid point in the first-level target grid in the first-level source grid, and obtain the volume of intersection of each target grid and the corresponding source grid point;
[0129] The second determination module is configured to obtain the values mapped from the source field S to each target grid point in the target field T according to the volume of intersection of the corresponding source grid points.
[0130] In some possible implementation manners of the embodiments of the present application, the device may further include:
[0131] The second acquisition module is configured to acquire the sum T_sum of the values mapped from the source field S to all the target grid points in the target field T, and the sum S_sum of the values of all the source grid points in the source field S;
[0132] The value correction module is configured to correct the values mapped from the source field S to each target grid point in the target field T based on the ratio of S_sum to T_sum.
[0133] In some possible implementation manners of the embodiments of the present application, the first determination module is specifically configured to:
[0134] Determine the secondary grid point P_C_2 in the second-level grid corresponding to the target grid point T_C_1 according to the correspondence between the second-level grid and the first-level target grid;
[0135] Determine the source grid point S_C_1 corresponding to the corresponding secondary grid point P_C_2 in the first-level source grid according to the correspondence between the second-level grid and the first-level source grid;
[0136] Determine the grid intersecting with the target grid point T_C_1 from the corresponding source grid point S_C_1, and obtain the volume of intersection.
[0137] In some possible implementation manners of the embodiments of the present application, the second determination module is specifically configured to:
[0138] The numerical values of the source grid points intersecting with the target grid point T_C_1 in the first-level source grid are weighted by volume fraction to obtain the numerical values mapped from the source field S to each target grid point in the target field T.
[0139] In one example, the second-level grid is a grid block formed by a plurality of first-level grids.
[0140] In another example, the correspondence between the second-level grid and the first-level target grid and the first-level source grid specifically includes: the number of first-level grids included in the second-level grid, the coordinates of each first-level grid included, and the identifier of the second-level grid to which the first-level grid belongs.
[0141] Based on the spatial grid mapping method and device for a reactor core provided in the above embodiments, an electronic device is further provided in an embodiment of the present application, including a processor and a memory. Instructions are stored in the memory. When the processor executes the instructions, the processor executes any one of the spatial grid mapping methods for a reactor core provided in the above embodiments.
[0142] Based on the spatial grid mapping method and device for a reactor core provided in the above embodiments, a computer-readable storage medium is further provided in an embodiment of the present application, which is characterized in that it is used to store a computer program, and the computer program includes instructions for executing any one of the spatial grid mapping methods for a reactor core provided in the above embodiments.
[0143] Based on the spatial grid mapping method and device for a reactor core provided in the above embodiments, a computer program product is further provided in an embodiment of the present application, which is characterized in that it includes computer program code. When the computer program code is run on an electronic device, the electronic device executes any one of the spatial grid mapping methods for a reactor core provided in the above embodiments.
[0144] The present application has been described in detail above with reference to the accompanying drawings and embodiments. However, the present application is not limited to the above embodiments. Within the scope of knowledge possessed by those of ordinary skill in the art, various changes can be made without departing from the purpose of the present application. The content not described in detail in the present application can all adopt the prior art.
Claims
1. A spatial grid mapping method applicable to a reactor core, characterized in that, The method includes: Obtaining the first-level grids for professional calculation of the target field T and the source field S, to obtain the first-level target grids of the target field T and the first-level source grids of the source field S; Based on the first-level target grids and the first-level source grids, constructing a second-level grid and establishing the corresponding relationship between the second-level grid and the first-level target grids and the first-level source grids; According to the second-level grid, determining the source grids intersecting with each target grid point in the first-level target grids in the first-level source grids, and obtaining the volumes of intersection between each target grid and the corresponding source grid points; According to the volumes of intersection with the corresponding source grid points, obtaining the values mapped from the source field S to each target grid point in the target field T.
2. The spatial grid mapping method applicable to the reactor core according to claim 1, characterized in that After obtaining the values mapped from the source field S to each target grid point in the target field T according to the volumes of intersection with the corresponding source grid points, it further includes: Obtaining the sum T_sum of the values mapped from the source field S to all the target grid points in the target field T, and the sum S_sum of the values of all the source grid points in the source field S; Correcting the values mapped from the source field S to each target grid point in the target field T based on the ratio of S_sum to T_sum.
3. The spatial grid mapping method applicable to a reactor core according to claim 1, characterized in that The step of determining the source grid points intersecting with each target grid point in the first-level target grids in the first-level source grids according to the second-level grid, and obtaining the volumes of intersection between each target grid point and the corresponding source grid points specifically includes: Determining the secondary grid point P_C_2 in the second-level grid corresponding to the target grid point T_C_1 according to the corresponding relationship between the second-level grid and the first-level target grids; Determining the source grid point S_C_1 corresponding to the corresponding secondary grid point P_C_2 in the first-level source grids according to the corresponding relationship between the second-level grid and the first-level source grids; Determining the grids intersecting with the target grid point T_C_1 from the corresponding source grid point S_C_1 and obtaining the volume of intersection.
4. The spatial grid mapping method applicable to the reactor core according to claim 3, characterized in that, The step of obtaining the values mapped from the source field S to each target grid point in the target field T according to the volumes of intersection with the corresponding source grid points specifically includes: Using volume fraction to weight the values of the source grid points intersecting with the target grid point T_C_1 in the first-level source grids, to obtain the values mapped from the source field S to each target grid point in the target field T.
5. The spatial grid mapping method applicable to the reactor core according to any one of claims 1-4, characterized in that, The second-level grid is a grid block formed by including several first-level grids.
6. The spatial grid mapping method applicable to the reactor core according to any one of claims 1-4, characterized in that The corresponding relationship between the second-level grid and the first-level target grids and the first-level source grids specifically includes: the number of first-level grids included in the second-level grid, the coordinates of each included first-level grid, and the identifier of the second-level grid to which the first-level grid belongs.
7. A spatial grid mapping device applicable to a reactor core, characterized in that, The device includes: A first acquisition module, configured to obtain the first-level grids for professional calculation of the target field T and the source field S, to obtain the first-level target grids of the target field T and the first-level source grids of the source field S; A grid construction module, configured to construct a second-level grid based on the first-level target grid and the first-level source grid, and establish a correspondence between the second-level grid and the first-level target grid and the first-level source grid; A first determination module, configured to determine, according to the second-level grid, the source grids intersecting with each target grid point in the first-level target grid in the first-level source grid, and obtain the volume of intersection of each target grid and the corresponding source grid point; A second determination module, configured to obtain the numerical values mapped from the source field S to each target grid point in the target field T according to the volume of intersection of the corresponding source grid points; 8. An electronic device, characterized in that, Comprising a processor and a memory, wherein instructions are stored in the memory, and when the processor executes the instructions, the processor executes the method according to any one of claims 1-6; 9. A computer-readable storage medium, characterized in that, For storing a computer program, the computer program comprising for executing the method according to any one of claims 1-6; 10. A computer program product, characterized in that, Comprising computer program code, when the computer program code is run by an electronic device, causing the electronic device to execute the method according to any one of claims 1-6.