Mesh mapping analysis method and system for core MOC program and CFD program
Through the grid mapping analysis method of the MOC program and the CFD program, the refinement of the coupling calculation of neutron physics and thermal hydraulics in the nuclear reactor core has been achieved, solving the problem of difficulty in achieving fine grid calculation in the traditional method, improving the calculation accuracy and efficiency.
Patent Information
- Application Number
- CN202311853372.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Traditional nuclear reactor core neutronics physics and thermal-hydraulic coupling calculations are difficult to achieve fine-grid nuclear-thermal coupling calculations, and cannot obtain the internal power distribution and fine local thermal parameters of the fuel pellet.
The grid mapping analysis method of MOC program and CFD program is adopted, grid mapping and interpolation are performed through coupling middleware, and a two-way coupling parameter interpolation coefficient file is generated to realize efficient and fast mapping and coupling parameter calculation and transfer between MOC program and CFD program. Supports refined nuclear-thermal coupling calculations for three-dimensional reactor cores.
It realizes the refinement of the coupling calculation of three-dimensional core neutron physics and thermal hydraulics, solves the problems of small grid size and regular data mapping form in the traditional method, can obtain more refined power density and temperature distribution, and improves the efficiency of calculation. Precision and efficiency.
Smart Images

Figure CN117742969B
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of nuclear reactor neutron physics, thermal hydraulic calculation and coupling calculation of the two, and in particular to a core MOC program and a CFD program grid mapping analysis method and system. Background Art
[0002] The core of a nuclear reactor has the characteristics of strong coupling of multiple disciplines and multiple physical fields. In particular, the coupling calculation between neutron physics and thermal hydraulics is an indispensable part of the core design. Therefore, there has been a large amount of research on the core nuclear-thermal coupling calculation for a long time.
[0003] The power density distribution in the core is determined by the reaction cross section between neutrons and materials, which is affected by factors such as material temperature and material nuclide density. Material temperature and material nuclide density need to be obtained by core thermal hydraulic calculations. The heat source required for thermal hydraulic calculations is the power density distribution in the core. This iterative process mainly includes core neutron physics calculations, core thermal hydraulic calculations, and data mapping calculations between the two.
[0004] Traditional core neutron physics calculations use a two-step method, pre-fabricating a set of macroscopic cross-section libraries of various types of components for use in core interpolation calculations. This method can often only give the power distribution at the component level or the gate element level, and cannot obtain the power distribution inside the fuel core block; on the other hand, thermal hydraulic calculations also use a coarse-grid single-channel or multi-channel model, and the calculation results are relatively rough, and it is impossible to obtain fine local thermal parameters; therefore, the grid scale of traditional reactor core nuclear-thermal coupling calculations is very small, and the grid form required for data mapping is relatively regular, which cannot realize nuclear-thermal coupling calculations of fine core grids. Summary of the invention
[0005] The purpose of the present invention is to provide a mesh mapping analysis method and system for a core MOC program and a CFD program. The present invention can achieve efficient and rapid mapping and coupling parameter calculation and transfer between the computational grid of a three-dimensional core transport program based on the MOC method (hereinafter referred to as the MOC program) and the computational grid of a fluid-solid coupling program based on the CFD method (hereinafter referred to as the CFD program), thereby laying a foundation for refined nuclear-thermal coupling calculations of three-dimensional cores.
[0006] Among them: MOC, Method of Characteristics, characteristic line method; CFD, Computational Fluid Dynamics, computational fluid dynamics.
[0007] The present invention is achieved through the following technical solutions:
[0008] In a first aspect, the present invention provides a core MOC program and a CFD program mesh mapping analysis method, the method comprising:
[0009] Step A, the CFD program is run with a uniform heat source, fluid-solid coupling calculation is performed, and CFD program mesh files of the fluid and solid are generated;
[0010] Step B, based on the CFD program grid file and the original MOC program grid file, the coupling middleware performs grid mapping and interpolation to generate a bidirectional coupling parameter interpolation coefficient file and a new MOC program grid file; the bidirectional coupling parameter interpolation coefficient file includes a CFD to MOC interpolation coefficient file and a MOC to CFD interpolation coefficient file;
[0011] Step C, the MOC program reads the original material file and the original MOC program grid file, performs resonance and transport calculations, calculates the actual power density on each calculation grid, and generates a power file;
[0012] Step D, the coupling middleware reads the power file, and calls the MOC to CFD interpolation coefficient file, performs MOC to CFD coupling parameter interpolation calculation, calculates the power density on each calculation grid of the CFD program, and generates the power density distribution file required by the CFD program;
[0013] Step E, the CFD program reads the power density distribution file, performs flow-solid coupling iterative calculations, and generates a temperature distribution file and a material density distribution file of the CFD program grid;
[0014] Step F, the coupling middleware reads the temperature distribution file and material density distribution file of the CFD program grid, calls the CFD to MOC interpolation coefficient file, performs CFD to MOC coupling parameter interpolation calculation, calculates the temperature and nuclide density distribution on each grid of the MOC program, and generates a new material file required by the MOC program;
[0015] Step G, the MOC program reads the new material file and the new MOC program grid file, performs resonance and transport calculations, calculates the actual power density on each calculation grid, and generates a power file; repeats steps D to F until the actual power density converges or the number of iterations reaches a preset limit, then the coupling calculation is completed; otherwise, loop iterates steps D to G.
[0016] Further, step B comprises:
[0017] Step B1, the coupling middleware reads the MOC program grid file, and reassigns the grid number, material identifier, and temperature identifier of each grid of the MOC program to form a new MOC program grid file; and uses the arc surface grid segmentation method to segment the polyhedron containing the arc surface into a plurality of sub-polyhedrons along the circumferential direction, and uses a polyhedron containing only planes to approximate each sub-polyhedron;
[0018] Step B2, the coupling middleware uses the volume weight method to calculate and generate bidirectional coupling parameter interpolation coefficient files between the MOC program grid and the CFD program grid: CFD to MOC interpolation coefficient file, MOC to CFD interpolation coefficient file.
[0019] Furthermore, the sub-steps of step B1 are:
[0020] Step B11, the coupling middleware reads the original MOC program mesh file, renumbers the same type of components, and copies the mesh information, material identification, and temperature identification data, and then renumbers all MOC program meshes in sequence to form a new mesh number, so that each component has independent and complete mesh information, material identification, and temperature identification data;
[0021] Step B12, the coupling middleware identifies and numbers the MOC program grid attributes according to the new grid number, and the identification number includes a material identification number and a temperature identification number; the identification number is a suffix of the new grid number added on the basis of the original material identification and temperature identification, so that each MOC program grid has a uniquely identifiable material identification and temperature identification;
[0022] Step B13, the coupling middleware adopts the mesh segmentation method with arc surfaces to divide the polyhedron containing arc surfaces into several sub-polyhedrons along the circumferential direction, and uses a polyhedron containing only planes to approximate each sub-polyhedron, including: the coupling middleware performs segmentation processing on the edges containing arcs in the MOC program mesh, subdivides the arcs into several shorter line segments that can be approximated as straight lines, and thus approximates the polyhedral mesh containing arc surfaces with several polyhedral meshes containing only planes, and the number of approximated meshes can be controlled by configuring the arc angle in the input file.
[0023] Furthermore, the arc surface mesh segmentation method includes:
[0024] a. Traverse all vertices of a mesh in the MOC program to determine the circumferential angle range of the mesh;
[0025] b. Determine the number of sub-polyhedrons to be divided according to the maximum allowed circumferential angle given in the configuration input file;
[0026] c. Calculate the planes used to split the polyhedrons in turn according to the number of sub-polyhedrons, and calculate the intersection of the splitting plane and the MOC program grid to obtain the faces and vertices of the sub-polyhedrons, forming a new sub-polyhedron list;
[0027] d. Calculate the volume of each sub-polyhedron in step c, and take the sum of the multiple volumes as the volume of the segmented MOC program mesh.
[0028] Furthermore, the method for generating the CFD to MOC interpolation coefficient file is as follows:
[0029] The coupling middleware reads the CFD program grid file, maps it with the MOC program grid, and obtains the CFD program grid number contained in each MOC program grid;
[0030] Whether the two grids intersect is determined by calculating whether there is an intersection between the edge of the CFD program grid and the edge or face of the MOC program grid; if they intersect, the proportion of the volume of the intersecting part to the volume of the MOC program grid is given, and the proportion is used as the weight coefficient for parameter interpolation calculation of the CFD program grid to the MOC program grid; according to the above process, the weight coefficients of all intersecting CFD program grids are obtained;
[0031] Generate CFD to MOC interpolation coefficient file according to the CFD program grid numbers and corresponding weight coefficients corresponding to all MOC program grids;
[0032] The method for generating MOC to CFD interpolation coefficient files is as follows:
[0033] When the coupling middleware performs MOC program mapping and interpolation to CFD program grids, the MOC program grid number contained in each CFD program grid is obtained;
[0034] Whether the two grids intersect is determined by calculating whether the edge of the MOC program grid and the edge or face of the CFD program grid have intersection points; if they intersect, the proportion of the volume of the intersecting part to the volume of the CFD program grid is given, and the proportion is used as the weight coefficient for parameter interpolation calculation of the MOC program grid to the CFD program grid; according to the above process, the weight coefficients of all intersecting MOC program grids are obtained;
[0035] Generate MOC to CFD interpolation coefficient file based on MOC program grid numbers and weight coefficients corresponding to all CFD program grids.
[0036] Further, step C comprises:
[0037] The MOC program reads the original material file and the original MOC program grid file, performs resonance calculations to obtain the material macroscopic cross-section on each grid; then performs transport calculations to obtain the relative power density distribution on each grid;
[0038] According to the given total core power, the actual power density on each grid is calculated; and the actual power density and effective multiplication factor Keff are output to the power file.
[0039] Further, step E comprises:
[0040] Step E1, the CFD program reads the power density distribution file generated in step D, and uses the grid power density and the fluid-solid interface temperature distribution as the heat source and boundary conditions, respectively, to perform solid domain heat conduction calculations to obtain the temperature distribution on the solid domain grid and the heat flux density distribution on the fluid-solid interface;
[0041] Step E2, the CFD program uses the fluid-solid interface heat flux density and inlet temperature, outlet pressure and other parameters as boundary conditions to calculate the fluid domain grid, and obtain parameters such as material density distribution and temperature distribution on the fluid domain grid and a new fluid-solid interface temperature distribution;
[0042] Step E3: The CFD program uses the new fluid-solid interface temperature distribution as the boundary condition and the grid power density distribution as the heat source.
[0043] Repeat step E1;
[0044] Step E4: if the temperature on the solid domain grid and the fluid domain grid obtained in step E1 and step E2 converges to the preset limit, the temperature distribution file and material density distribution file of the CFD program grid are output; otherwise, repeat the iteration steps E1 to E3.
[0045] Furthermore, the coupling middleware records the information of the MOC program grid number index: axis normal direction, axis center coordinates, number of circumferential grids, axial grid thickness, number of axial grids, and radial radius list; thus, the MOC program grid number can be quickly located according to the center coordinates of the CFD program grid, avoiding the traversal of all MOC program grids.
[0046] Furthermore, the CFD program grid number contained in each MOC program grid is obtained, specifically:
[0047] Taking advantage of the fact that the volume of the MOC program grid is much larger than that of the CFD program grid, when calculating the mapping and interpolation coefficients of the MOC program to the CFD program, if the intersection volume of the CFD program grid and the MOC program grid is equal to the volume of the CFD program grid, there is no need to look for other MOC program grids that intersect with the CFD program grid; otherwise, calculate the grid cell corner point closest to the center of the CFD program grid, obtain the grid cell where the corner point is located (usually 4, 2 on the boundary), and obtain all MOC program grids in the grid cell that may intersect with the CFD program grid based on the coordinate range of the CFD program grid in height; traverse all MOC program grids that may intersect to determine whether they intersect with the CFD program grid.
[0048] In a second aspect, the present invention further provides a core MOC program and CFD program grid mapping analysis system, the system using the core MOC program and CFD program grid mapping analysis method; the system comprises:
[0049] CFD program grid file generation unit, used for CFD program to run with uniform heat source, perform fluid-solid coupling calculation, and generate CFD program grid files for fluid and solid;
[0050] A first coupling middleware calculation unit is used to perform mesh mapping and interpolation on the coupling middleware based on the CFD program mesh file and the original MOC program mesh file to generate a bidirectional coupling parameter interpolation coefficient file and a new MOC program mesh file; the bidirectional coupling parameter interpolation coefficient file includes a CFD to MOC interpolation coefficient file and a MOC to CFD interpolation coefficient file;
[0051] A first MOC program calculation unit is used for the MOC program to read the original material file and the original MOC program grid file, perform resonance and transport calculations, calculate the actual power density on each calculation grid, and generate a power file;
[0052] The second coupling middleware calculation unit is used for the coupling middleware to read the power file, call the MOC to CFD interpolation coefficient file, perform MOC to CFD coupling parameter interpolation calculation, calculate the power density on each calculation grid of the CFD program, and generate the power density distribution file required by the CFD program;
[0053] A CFD program calculation unit is used for the CFD program to read the power density distribution file, perform flow-solid coupling iterative calculations, and generate a temperature distribution file and a material density distribution file of the CFD program grid;
[0054] The third coupling middleware calculation unit is used for the coupling middleware to read the temperature distribution file and material density distribution file of the CFD program grid, call the CFD to MOC interpolation coefficient file, perform CFD to MOC coupling parameter interpolation calculation, calculate the temperature and nuclide density distribution on each grid of the MOC program, and generate a new material file required by the MOC program;
[0055] The second MOC program calculation unit is used for the MOC program to read the new material file and the new MOC program grid file, perform resonance and transport calculations, calculate the actual power density on each calculation grid, and generate a power file; repeatedly execute the process from the second coupling middleware calculation unit to the third coupling middleware calculation unit until the actual power density converges or the number of iterations reaches a preset limit, then the coupling calculation is completed; otherwise, the process from the second coupling middleware calculation unit to the second MOC program calculation unit is iterated cyclically.
[0056] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0057] 1. The present invention can realize efficient and rapid mapping and coupling parameter calculation and transfer between the computational grid of the three-dimensional core transport program based on the MOC method (hereinafter referred to as the MOC program) and the computational grid of the fluid-solid coupling program based on the CFD method (hereinafter referred to as the CFD program), laying the foundation for the refined nuclear-thermal coupling calculation of the three-dimensional core.
[0058] 2. The present invention adopts a piecewise approximation method to solve the grid mapping problem between a polyhedral grid with curved surfaces and a polyhedral grid with only flat surfaces, and the accuracy of the grid mapping can be controlled in the form of configuration parameters.
[0059] 3. The method of the present invention is independent of the neutron physics program and thermal hydraulic program that need to implement coupled calculations. Therefore, any program that meets the coupling middleware interface can implement coupled calculations through the method provided by the present invention.
[0060] 4. The present invention makes full use of the grid characteristics of the MOC program, and can efficiently realize the mapping and parameter interpolation calculation of the MOC program grid and the CFD program grid, providing a basis for the fine coupling calculation of the CFD-based fluid-solid coupling calculation program and the one-step-based core three-dimensional neutron transport program. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0062] Figure 1 This is a flow chart of the grid mapping analysis method of the core MOC program and the CFD program of the present invention;
[0063] Figure 2 This is a schematic diagram of the intersection of the polyhedrons of the coupling middleware of the present invention;
[0064] Figure 3 This is a schematic diagram of splitting a plane polyhedron into a curved surface polyhedron according to the present invention;
[0065] Figure 4 This is a schematic diagram of the calculation principle of the MOC program-CFD program coupling of the core of the present invention;
[0066] Figure 5 This is a structural block diagram of the core MOC program and CFD program grid mapping analysis system of the present invention. DETAILED DESCRIPTION
[0067] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0068] Traditional core neutron physics calculations use a two-step method, pre-fabricating a set of macroscopic cross-section libraries of various types of components for use in core interpolation calculations. This method can often only give the power distribution at the component level or the gate element level, and cannot obtain the power distribution inside the fuel core block; on the other hand, thermal hydraulic calculations also use a coarse-grid single-channel or multi-channel model, and the calculation results are relatively rough, and it is impossible to obtain fine local thermal parameters; therefore, the grid scale of traditional reactor core nuclear-thermal coupling calculations is very small, and the grid form required for data mapping is relatively regular, which cannot realize nuclear-thermal coupling calculations of fine core grids.
[0069] In recent years, the one-step method for directly carrying out core neutron physics calculations has begun to emerge, especially the development of full-core transport calculations based on the MOC method, which has promoted the refined calculation of core neutron physics. Correspondingly, the extensive research on full-core thermal-hydraulic calculation methods based on the CFD method can obtain local fluid-solid coupling refined thermal-hydraulic parameters.
[0070] In order to realize the coupling calculation of MOC program and CFD program, the present invention designs a core MOC program and CFD program mesh mapping analysis method and system. The present invention is a new core nuclear-thermal coupling calculation method. The key technology lies in the mesh mapping method and data transfer method, which realizes the efficient and fast mapping and coupling parameter calculation transfer between the three-dimensional core transport program calculation grid based on the MOC method and the fluid-solid coupling calculation program grid based on the CFD method.
[0071] The present invention uses a coupling middleware independent of the MOC program and the CFD program to realize the geometric mesh mapping and coupling parameter interpolation calculation of the two, and saves the coupling parameter interpolation coefficient in a binary format to a file, providing a basis for the coupling parameter interpolation transfer from the MOC program to the CFD program and the coupling parameter interpolation transfer from the CFD program to the MOC program during the coupling calculation process. Specifically, the coupling middleware reads the calculation grid of the three-dimensional core transport program based on MOC (hereinafter referred to as the MOC program) and the calculation grid of the fluid-solid coupling program based on CFD (hereinafter referred to as the CFD program), reassigns the grid number, material identification, and temperature identification of the MOC program grid to ensure that each grid has the above-mentioned independent and unique attributes; then the polyhedron containing the arc surface is divided into several sub-polyhedrons along the circumferential direction, where the number of divisions is controlled by the user inputting the maximum angle allowed, and a polyhedron containing only planes is used to approximate these sub-polyhedrons; finally, the volume weight method is used to calculate the bidirectional parameter interpolation coefficients between the two sets of grids, and they are saved in the binary interpolation coefficient file respectively, so as to be called by the coupling parameter interpolation calculation module in the downstream coupling calculation process.
[0072] Example 1
[0073] like Figure 1 As shown, the core MOC program and CFD program grid mapping analysis method of the present invention comprises:
[0074] Step A, the CFD program is run with a uniform heat source, fluid-solid coupling calculation is performed, and CFD program mesh files of the fluid and solid are generated;
[0075] Step B, based on the CFD program grid file and the original MOC program grid file, the coupling middleware performs grid mapping and interpolation to generate a bidirectional coupling parameter interpolation coefficient file and a new MOC program grid file; the bidirectional coupling parameter interpolation coefficient file includes a CFD to MOC interpolation coefficient file and a MOC to CFD interpolation coefficient file;
[0076] In this embodiment, step B includes:
[0077] Step B1, the coupling middleware reads the MOC program grid file, and reassigns the grid number, material identifier, and temperature identifier of each grid of the MOC program to form a new MOC program grid file; and uses the arc surface grid segmentation method to segment the polyhedron containing the arc surface into a plurality of sub-polyhedrons along the circumferential direction, and uses a polyhedron containing only planes to approximate each sub-polyhedron;
[0078] Step B2, the coupling middleware uses the volume weight method to calculate and generate bidirectional coupling parameter interpolation coefficient files between the MOC program grid and the CFD program grid: CFD to MOC interpolation coefficient file, MOC to CFD interpolation coefficient file.
[0079] Specifically, the sub-steps of step B1 are:
[0080] Step B11, the coupling middleware reads the original MOC program mesh file, renumbers the same type of components, and copies the mesh information, material identification, and temperature identification data, and then renumbers all MOC program meshes in sequence to form a new mesh number, so that each component has independent and complete mesh information, material identification, and temperature identification data;
[0081] Step B12, the coupling middleware identifies and numbers the MOC program grid attributes according to the new grid number, and the identification number includes a material identification number and a temperature identification number; the identification number is a suffix of the new grid number added on the basis of the original material identification and temperature identification, so that each MOC program grid has a uniquely identifiable material identification and temperature identification;
[0082] Step B13, the coupling middleware adopts the mesh segmentation method with arc surfaces to divide the polyhedron containing arc surfaces into several sub-polyhedrons along the circumferential direction, and uses a polyhedron containing only planes to approximate each sub-polyhedron, including: the coupling middleware performs segmentation processing on the edges containing arcs in the MOC program mesh, subdivides the arcs into several shorter line segments that can be approximated as straight lines, and thus approximates the polyhedral mesh containing arc surfaces with several polyhedral meshes containing only planes, and the number of approximated meshes can be controlled by configuring the arc angle in the input file.
[0083] like Figure 3 As shown, the arc surface mesh segmentation method in step B13 includes:
[0084] a. Traverse all vertices of a mesh in the MOC program to determine the circumferential angle range of the mesh;
[0085] b. Determine the number of sub-polyhedrons to be divided according to the maximum allowed circumferential angle given in the configuration input file;
[0086] c. Calculate the planes used to split the polyhedrons in turn according to the number of sub-polyhedrons, and calculate the intersection of the splitting plane and the MOC program grid to obtain the faces and vertices of the sub-polyhedrons, forming a new sub-polyhedron list;
[0087] d. Calculate the volume of each sub-polyhedron in step c, and take the sum of the multiple volumes as the volume of the segmented MOC program mesh.
[0088] Specifically, in step B2, the coupling middleware of the present invention expands the grid mapping of the MOC program grid and the CFD program grid containing only the plane, obtains the CFD program grid number contained in each MOC program grid, calculates the volume weight occupied by this part of the CFD program grid, and outputs the grid number and volume weight information to the CFD to MOC interpolation coefficient file; similarly, obtains the MOC program grid number contained in each CFD program grid and the volume weight occupied by this part of the MOC program grid, and outputs the grid number and volume weight information to the MOC to CFD interpolation coefficient file;
[0089] First, the method for generating the CFD to MOC interpolation coefficient file is:
[0090] The coupling middleware reads the CFD program grid file, maps it with the MOC program grid, and obtains the CFD program grid number contained in each MOC program grid;
[0091] The intersection of the two meshes is determined by calculating whether the edges of the CFD program mesh intersect with the edges or faces of the MOC program mesh (such as Figure 2 If they intersect, the proportion of the volume of the intersecting part to the volume of the MOC program grid is given, and the proportion is used as the weight coefficient for parameter interpolation calculation of the CFD program grid to the MOC program grid; according to the above process, the weight coefficients of all intersecting CFD program grids are obtained;
[0092] Generate CFD to MOC interpolation coefficient file according to the CFD program grid numbers and corresponding weight coefficients corresponding to all MOC program grids;
[0093] Second, the method for generating the MOC to CFD interpolation coefficient file is:
[0094] When the coupling middleware performs MOC program mapping and interpolation to CFD program grids, the MOC program grid number contained in each CFD program grid is obtained;
[0095] Whether the two grids intersect is determined by calculating whether the edge of the MOC program grid and the edge or face of the CFD program grid have intersection points; if they intersect, the proportion of the volume of the intersecting part to the volume of the CFD program grid is given, and the proportion is used as the weight coefficient for parameter interpolation calculation of the MOC program grid to the CFD program grid; according to the above process, the weight coefficients of all intersecting MOC program grids are obtained;
[0096] Generate MOC to CFD interpolation coefficient file based on MOC program grid numbers and weight coefficients corresponding to all CFD program grids.
[0097] Step C, the MOC program reads the original material file and the original MOC program grid file, performs resonance and transport calculations, calculates the actual power density on each calculation grid, and generates a power file;
[0098] Step C specifically includes:
[0099] Generate the original material file according to the initial given material density distribution and temperature distribution, the MOC program reads the original material file and the original MOC program grid file, performs resonance calculation to obtain the material macroscopic cross section on each grid; then performs transport calculation to obtain the relative power density distribution on each grid;
[0100] According to the given total core power, the actual power density on each grid is calculated; and the actual power density and effective multiplication factor Keff are output to the power file.
[0101] Step D, the coupling middleware reads the power file, and calls the MOC to CFD interpolation coefficient file, performs MOC to CFD coupling parameter interpolation calculation, calculates the power density on each calculation grid of the CFD program, and generates the power density distribution file required by the CFD program; the present invention only considers the fission power, so it is only necessary to calculate the power density on the solid domain grid of the CFD program, and the power density on the fluid domain grid is 0 by default;
[0102] Step E, the CFD program reads the power density distribution file, performs flow-solid coupling iterative calculations, and generates a temperature distribution file and a material density distribution file of the CFD program grid;
[0103] Step E specifically includes:
[0104] Step E1, the CFD program reads the power density distribution file generated in step D, and uses the grid power density and the fluid-solid interface temperature distribution as the heat source and boundary conditions, respectively, to perform solid domain heat conduction calculations to obtain the temperature distribution on the solid domain grid and the heat flux density distribution on the fluid-solid interface;
[0105] Step E2, the CFD program uses the fluid-solid interface heat flux density and inlet temperature, outlet pressure and other parameters as boundary conditions to calculate the fluid domain grid, and obtain parameters such as material density distribution and temperature distribution on the fluid domain grid and a new fluid-solid interface temperature distribution;
[0106] Step E3: The CFD program uses the new fluid-solid interface temperature distribution as the boundary condition and the grid power density distribution as the heat source.
[0107] Repeat step E1;
[0108] Step E4: If the temperatures on the solid domain grid and the fluid domain grid obtained in step E1 and step E2 converge to the preset limit, the temperature distribution file and material density distribution file of the CFD program grid are output, and the CFD program calculation process is exited; otherwise, repeat the iteration steps E1 to E3.
[0109] Step F, the coupling middleware reads the temperature distribution file and material density distribution file of the CFD program grid, calls the CFD to MOC interpolation coefficient file, performs CFD to MOC coupling parameter interpolation calculation, calculates the temperature and nuclide density distribution on each grid of the MOC program, and generates a new material file required by the MOC program;
[0110] Step G, the MOC program reads the new material file and the new MOC program grid file, performs resonance and transport calculations, calculates the actual power density on each calculation grid, and generates a power file; repeats steps D to F until the actual power density converges or the number of iterations reaches a preset limit, then the coupling calculation is completed; otherwise, loop iterates steps D to G.
[0111] As a further implementation, the coupling middleware records the information of the MOC program grid number index: axis normal direction, axis center coordinates, number of circumferential grids, axial grid thickness, number of axial grids, and radial radius list; thus, the MOC program grid number can be quickly located according to the center coordinates of the CFD program grid, avoiding the traversal of all MOC program grids.
[0112] As a further implementation, the CFD program grid number contained in each MOC program grid is obtained, specifically:
[0113] Taking advantage of the fact that the volume of the MOC program grid is much larger than that of the CFD program grid, when calculating the mapping and interpolation coefficients of the MOC program to the CFD program, if the intersection volume of the CFD program grid and the MOC program grid is equal to the volume of the CFD program grid, there is no need to look for other MOC program grids that intersect with the CFD program grid; otherwise, calculate the grid cell corner point closest to the center of the CFD program grid, obtain the grid cell where the corner point is located (usually 4, 2 on the boundary), and obtain all MOC program grids in the grid cell that may intersect with the CFD program grid based on the coordinate range of the CFD program grid in height; traverse all MOC program grids that may intersect to determine whether they intersect with the CFD program grid.
[0114] Figure 4 This is the schematic diagram of the calculation principle of the core MOC program-CFD program coupling.
[0115] The present invention has the following advantages:
[0116] 1. The present invention can realize efficient and rapid mapping and coupling parameter calculation and transfer between the computational grid of the three-dimensional core transport program based on the MOC method (hereinafter referred to as the MOC program) and the computational grid of the fluid-solid coupling program based on the CFD method (hereinafter referred to as the CFD program), laying the foundation for the refined nuclear-thermal coupling calculation of the three-dimensional core.
[0117] 2. The present invention adopts a piecewise approximation method to solve the grid mapping problem between a polyhedral grid with curved surfaces and a polyhedral grid with only flat surfaces, and the accuracy of the grid mapping can be controlled in the form of configuration parameters.
[0118] 3. The method of the present invention is independent of the neutron physics program and thermal hydraulic program that need to implement coupled calculations. Therefore, any program that meets the coupling middleware interface can implement coupled calculations through the method provided by the present invention.
[0119] 4. The present invention makes full use of the grid characteristics of the MOC program, and can efficiently realize the mapping and parameter interpolation calculation of the MOC program grid and the CFD program grid, providing a basis for the fine coupling calculation of the CFD-based fluid-solid coupling calculation program and the one-step-based core three-dimensional neutron transport program.
[0120] Example 2
[0121] like Figure 5 As shown, the difference between this embodiment and embodiment 1 is that this embodiment further provides a core MOC program and CFD program grid mapping analysis system, which uses the core MOC program and CFD program grid mapping analysis method of embodiment 1; the system includes:
[0122] CFD program grid file generation unit, used for CFD program to run with uniform heat source, perform fluid-solid coupling calculation, and generate CFD program grid files for fluid and solid;
[0123] The first coupling middleware calculation unit is used to perform mesh mapping and interpolation on the coupling middleware based on the CFD program mesh file and the original MOC program mesh file to generate a bidirectional coupling parameter interpolation coefficient file and a new MOC program mesh file; the bidirectional coupling parameter interpolation coefficient file includes a CFD to MOC interpolation coefficient file and a MOC to CFD interpolation coefficient file;
[0124] A first MOC program calculation unit is used for the MOC program to read the original material file and the original MOC program grid file, perform resonance and transport calculations, calculate the actual power density on each calculation grid, and generate a power file;
[0125] The second coupling middleware calculation unit is used for the coupling middleware to read the power file, call the MOC to CFD interpolation coefficient file, perform MOC to CFD coupling parameter interpolation calculation, calculate the power density on each calculation grid of the CFD program, and generate the power density distribution file required by the CFD program;
[0126] CFD program calculation unit, used for CFD program to read power density distribution file, perform flow-solid coupling iterative calculation, and generate temperature distribution file and material density distribution file of CFD program grid;
[0127] The third coupling middleware calculation unit is used for the coupling middleware to read the temperature distribution file and material density distribution file of the CFD program grid, call the CFD to MOC interpolation coefficient file, perform CFD to MOC coupling parameter interpolation calculation, calculate the temperature and nuclide density distribution on each grid of the MOC program, and generate a new material file required by the MOC program;
[0128] The second MOC program calculation unit is used for the MOC program to read new material files and new MOC program grid files, perform resonance and transport calculations, calculate the actual power density on each calculation grid, and generate a power file; repeatedly execute the process from the second coupling middleware calculation unit to the third coupling middleware calculation unit until the actual power density converges or the number of iterations reaches a preset limit, then the coupling calculation is completed; otherwise, the process from the second coupling middleware calculation unit to the second MOC program calculation unit is iterated cyclically.
[0129] Among them, the execution process of each unit can be executed according to the process steps of the core MOC program and CFD program grid mapping analysis method in Example 1, and will not be repeated one by one in this embodiment.
[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. The core MOC program and CFD program grid mapping analysis method is characterized by: The method includes: Step A, the CFD program is run with a uniform heat source, fluid-solid coupling calculation is performed, and CFD program mesh files of the fluid and solid are generated; Step B, based on the CFD program grid file and the original MOC program grid file, the coupling middleware performs grid mapping and interpolation to generate a bidirectional parameter interpolation coefficient file and a new MOC program grid file; the bidirectional parameter interpolation coefficient file includes a CFD to MOC interpolation coefficient file and a MOC to CFD interpolation coefficient file; Step C, the MOC program reads the original material file and the original MOC program grid file, performs resonance and transport calculations, calculates the actual power density on each calculation grid, and generates a power file; Step D, the coupling middleware reads the power file, and calls the MOC to CFD interpolation coefficient file, performs MOC to CFD coupling parameter interpolation calculation, calculates the power density on each calculation grid of the CFD program, and generates the power density distribution file required by the CFD program; Step E, the CFD program reads the power density distribution file, performs flow-solid coupling iterative calculations, and generates a temperature distribution file and a material density distribution file of the CFD program grid; Step F, the coupling middleware reads the temperature distribution file and material density distribution file of the CFD program grid, calls the CFD to MOC interpolation coefficient file, performs CFD to MOC coupling parameter interpolation calculation, calculates the temperature and nuclide density distribution on each grid of the MOC program, and generates a new material file required by the MOC program; Step G, the MOC program reads the new material file and the new MOC program grid file, performs resonance and transport calculations, calculates the actual power density on each calculation grid, and generates a power file; repeats steps D to F until the actual power density converges or the number of iterations reaches a preset limit, then the coupling calculation is completed; otherwise, iterates steps D to G in a loop; The method for generating the CFD to MOC interpolation coefficient file is: The coupling middleware reads the CFD program grid file, maps it with the MOC program grid, and obtains the CFD program grid number contained in each MOC program grid; Whether the two grids intersect is determined by calculating whether there are intersections between the edge of the CFD program grid and the edge or face of the MOC program grid; if they intersect, the proportion of the volume of the intersecting part to the volume of the MOC program grid is given, and the proportion is used as the weight coefficient for parameter interpolation calculation of the CFD program grid to the MOC program grid; and the weight coefficients of all intersecting CFD program grids are obtained; Generate CFD to MOC interpolation coefficient file according to the CFD program grid numbers and corresponding weight coefficients corresponding to all MOC program grids; The method for generating the MOC to CFD interpolation coefficient file is: When the coupling middleware performs MOC program mapping and interpolation to CFD program grids, the MOC program grid number contained in each CFD program grid is obtained; By calculating whether there are intersections between the edge of the MOC program mesh and the edge or face of the CFD program mesh, it is determined whether the two meshes intersect; if they intersect, the proportion of the volume of the intersecting part to the volume of the CFD program mesh is given, and the proportion is used as the weight coefficient for parameter interpolation calculation of the MOC program mesh to the CFD program mesh; and then the weight coefficients of all intersecting MOC program meshes are obtained; Generate MOC to CFD interpolation coefficient file according to the MOC program grid number and weight coefficient corresponding to all CFD program grids; The coupling middleware records the information of the MOC program grid number index: axis normal direction, axis center coordinates, circumferential grid number, axial grid thickness, axial grid number and radial radius list.
2. The core MOC program and CFD program grid mapping analysis method according to claim 1 is characterized in that: Step B includes: Step B1, the coupling middleware reads the MOC program grid file, and reassigns the grid number, material identifier, and temperature identifier of each grid of the MOC program to form a new MOC program grid file; and uses the arc surface grid segmentation method to segment the polyhedron containing the arc surface into a plurality of sub-polyhedrons along the circumferential direction, and uses a polyhedron containing only planes to approximate each sub-polyhedron; Step B2, the coupling middleware uses the volume weight method to calculate and generate bidirectional coupling parameter interpolation coefficient files between the MOC program grid and the CFD program grid: CFD to MOC interpolation coefficient file, MOC to CFD interpolation coefficient file.
3. The core MOC program and CFD program grid mapping analysis method according to claim 2 is characterized in that: The sub-steps of step B1 are: Step B11, the coupling middleware reads the original MOC program mesh file, renumbers the same type of components, and copies the mesh information, material identification, and temperature identification data, and then renumbers all MOC program meshes in sequence to form a new mesh number, so that each component has independent and complete mesh information, material identification, and temperature identification data; Step B12, the coupling middleware identifies and numbers the MOC program grid attributes according to the new grid number, and the identification number includes a material identification number and a temperature identification number; the identification number is a suffix of the new grid number added on the basis of the original material identification and temperature identification, so that each MOC program grid has a uniquely identifiable material identification and temperature identification; Step B13, the coupling middleware adopts the mesh segmentation method with arc surfaces to segment the polyhedron containing arc surfaces into several sub-polyhedrons along the circumferential direction, and uses a polyhedron containing only planes to approximate each sub-polyhedron, including: the coupling middleware performs segmentation processing on the edges containing arcs in the MOC program mesh, subdivides the arcs into several line segments that are approximately straight lines, and thus approximates the polyhedral mesh containing arc surfaces with several polyhedral meshes containing only planes, and the number of approximate meshes is controlled by configuring the arc angle in the input file.
4. The core MOC program and CFD program grid mapping analysis method according to claim 3 is characterized in that: The arc surface mesh segmentation method comprises: a. Traverse all vertices of a certain mesh of the MOC program to determine the circumferential angle range of the mesh; b. Determine the number of sub-polyhedrons to be divided according to the maximum allowed circumferential angle given in the configuration input file; c. Calculate the planes used to split the polyhedrons in turn according to the number of sub-polyhedrons, and calculate the intersection of the splitting planes and the MOC program grid to obtain the faces and vertices of the sub-polyhedrons, and form a new sub-polyhedron list; d. Calculate the volume of each sub-polyhedron in step c, and take the sum of the multiple volumes as the volume of the segmented MOC program grid.
5. The core MOC program and CFD program grid mapping analysis method according to claim 1 is characterized in that: Step C includes: The MOC program reads the original material file and the original MOC program grid file, performs a resonance calculation to obtain a macroscopic cross section of the material on each grid; then performs a transport calculation to obtain a relative power density distribution on each grid; According to the given total core power, the actual power density on each grid is calculated; and the actual power density and effective multiplication factor are output to the power file.
6. The core MOC program and CFD program grid mapping analysis method according to claim 1, characterized in that: Step E includes: Step E1, the CFD program reads the power density distribution file generated in step D, and uses the grid power density and the fluid-solid interface temperature distribution as the heat source and boundary conditions, respectively, to perform solid domain heat conduction calculations to obtain the temperature distribution on the solid domain grid and the heat flux density distribution on the fluid-solid interface; Step E2, the CFD program uses the fluid-solid interface heat flux density and inlet temperature and outlet pressure parameters as boundary conditions to calculate the fluid domain grid, and obtain the material density distribution, temperature distribution parameters and new fluid-solid interface temperature distribution on the fluid domain grid; Step E3, the CFD program uses the new fluid-solid interface temperature distribution as the boundary condition and the grid power density distribution as the heat source, and repeats step E1; Step E4: if the temperature on the solid domain grid and the fluid domain grid obtained in step E1 and step E2 converges to the preset limit, the temperature distribution file and material density distribution file of the CFD program grid are output; otherwise, repeat the iteration steps E1 to E3.
7. The core MOC program and CFD program grid mapping analysis method according to claim 1, characterized in that: Get the CFD program grid number contained in each MOC program grid, specifically: When calculating the mapping and interpolation coefficients of the MOC program to the CFD program, if the intersection volume of the CFD program grid and the MOC program grid is equal to the volume of the CFD program grid, there is no need to look for other MOC program grids that intersect with the CFD program grid; otherwise, calculate the grid cell corner point closest to the center of the CFD program grid, obtain the grid cell where the corner point is located, and obtain all MOC program grids in the grid cell that may intersect with the CFD program grid based on the coordinate range of the CFD program grid in height; traverse all MOC program grids that may intersect to determine whether they intersect with the CFD program grid.
8. The core MOC program and CFD program grid mapping analysis system is characterized by: The system uses the core MOC program and CFD program grid mapping analysis method as described in any one of claims 1 to 7; the system includes: CFD program grid file generation unit, used for CFD program to run with uniform heat source, perform fluid-solid coupling calculation, and generate CFD program grid files for fluid and solid; A first coupling middleware calculation unit is used to perform mesh mapping and interpolation on the coupling middleware based on the CFD program mesh file and the original MOC program mesh file to generate a bidirectional coupling parameter interpolation coefficient file and a new MOC program mesh file; the bidirectional coupling parameter interpolation coefficient file includes a CFD to MOC interpolation coefficient file and a MOC to CFD interpolation coefficient file; A first MOC program calculation unit is used for the MOC program to read the original material file and the original MOC program grid file, perform resonance and transport calculations, calculate the actual power density on each calculation grid, and generate a power file; The second coupling middleware calculation unit is used for the coupling middleware to read the power file, call the MOC to CFD interpolation coefficient file, perform MOC to CFD coupling parameter interpolation calculation, calculate the power density on each calculation grid of the CFD program, and generate the power density distribution file required by the CFD program; A CFD program calculation unit is used for the CFD program to read the power density distribution file, perform flow-solid coupling iterative calculations, and generate a temperature distribution file and a material density distribution file of the CFD program grid; The third coupling middleware calculation unit is used for the coupling middleware to read the temperature distribution file and material density distribution file of the CFD program grid, call the CFD to MOC interpolation coefficient file, perform CFD to MOC coupling parameter interpolation calculation, calculate the temperature and nuclide density distribution on each grid of the MOC program, and generate a new material file required by the MOC program; The second MOC program calculation unit is used for the MOC program to read the new material file and the new MOC program grid file, perform resonance and transport calculations, calculate the actual power density on each calculation grid, and generate a power file; repeatedly execute the process from the second coupling middleware calculation unit to the third coupling middleware calculation unit until the actual power density converges or the number of iterations reaches a preset limit, then the coupling calculation is completed; otherwise, the process from the second coupling middleware calculation unit to the second MOC program calculation unit is iterated cyclically; The method for generating the CFD to MOC interpolation coefficient file is: The coupling middleware reads the CFD program grid file, maps it with the MOC program grid, and obtains the CFD program grid number contained in each MOC program grid; Whether the two grids intersect is determined by calculating whether there are intersections between the edge of the CFD program grid and the edge or face of the MOC program grid; if they intersect, the proportion of the volume of the intersecting part to the volume of the MOC program grid is given, and the proportion is used as the weight coefficient for parameter interpolation calculation of the CFD program grid to the MOC program grid; and the weight coefficients of all intersecting CFD program grids are obtained; Generate CFD to MOC interpolation coefficient file according to the CFD program grid numbers and corresponding weight coefficients corresponding to all MOC program grids; The method for generating the MOC to CFD interpolation coefficient file is: When the coupling middleware performs MOC program mapping and interpolation to CFD program grids, the MOC program grid number contained in each CFD program grid is obtained; By calculating whether there are intersections between the edge of the MOC program mesh and the edge or face of the CFD program mesh, it is determined whether the two meshes intersect; if they intersect, the proportion of the volume of the intersecting part to the volume of the CFD program mesh is given, and the proportion is used as the weight coefficient for parameter interpolation calculation of the MOC program mesh to the CFD program mesh; and then the weight coefficients of all intersecting MOC program meshes are obtained; Generate MOC to CFD interpolation coefficient file according to the MOC program grid number and weight coefficient corresponding to all CFD program grids; The coupling middleware records the information of the MOC program grid number index: axis normal direction, axis center coordinates, circumferential grid number, axial grid thickness, axial grid number and radial radius list.
