Representation of few-group homogenized cross section by multi-variate polynomial regression
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.1051/epjconf/202430202002
- 저널
- EPJ Web of Conferences
- 발행년도
- 2024
- 발행기관
- EDP Sciences
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1051/epjconf/202430202002
- 토픽
- Composite Material Mechanics
- OpenAlex ID
- W4403435841
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 16,225자
본문 펼치기
섹션 본문 28문단 · 15,460자
(제목 없음)
1In this paper, a representation of few-group homogenized cross section by multi-variate polynomial regression is presented.The method is applied on the few-group assembly homogenized cross sections of the assembly 22UA from the benchmark X2VVER[1], generated by the lattice transport code APOLLO3 ® [2], and conducted over a Cartesian grid of parametric state-points.The regression model[3,4]allow to input a significantly larger number of points for training compared to the number of monomials, thus yielding higher accuracy than polynomial interpolation without being affected by the choice of points in the training set.Additionally, it can reduce data preparation time because the size of the training set can be smaller than the number of points in the complete Cartesian grid, while still providing a good approximation.Furthermore, its evaluation algorithm can be adapted for GPU utilization, similar to polynomial interpolation with the Newton method[5].
Introduction
2The standard calculation scheme employed in industrial study of design and safety of reactor cores composes of two steps: lattice calculation and core calculation.In the first step, fine resolution in both spatial and energetic mesh of the neutron transport equation over a fuel assembly is performed to construct a library of few-group homogenized cross sections σ( p) for each isotope, reaction, homogenization zone and energy group at all tabulated points p in multi-dimensional state parameter space.Each dimension of the parameter space represents a physical factor affecting reactivity of the reactor, such as temperature, burn up, or boron concentration.As a result, the function of few-group homogenized cross section σ( p) is considered as a multi-dimensional positive function defined over a subspace of R d (where d is the number of physical parameters).During the second step, the cross sections at any specific point p in the parameter space demanded by the reactor core calculation subroutines are reconstructed through interpolation on the tabulated dataset obtained from lattice calculation step.
3Currently, there are two widely used interpolation methods: multi-linear interpolation [6] calculating the approximation of the cross sections by linear interpolation over a Cartesian set of points, and polynomial interpolation evaluating the cross sections by representing them as linear combination of polynomials.Although the linear interpolation method gives accurate result, it requires a lot of points in the dataset, and the binary search algorithm for detecting the range of interpolation becomes inefficient when transported to GPUs because of serialization of execution of branches [7,8].The latter, polynomial interpolation, requires less memory and can be efficiently parallelized on GPUs [5], but its accuracy strongly depends on the set of points chosen to interpolate.In order to compensate the problem caused by the choice of interpolate set, we propose a representation of few-group homogenized cross sections by multi-variate polynomial regression.Unlike multi-variate polynomial interpolation which requires the reconstructing function to evaluate exactly at all points in the provided input set, polynomial regression solves for the coefficients of multi-variate monomials that minimizes the mean square error between the dataset and the evaluated value.The flexibility of the regression model allows to input a lot of points to train the model than the number of monomial coefficients in the model, thus increases the accuracy of the model over the reconstructed dataset without using high order polynomials, which cause strong oscillations [9,10] in the reconstructing function.Furthermore, once the coefficients of are calculated, the Horner scheme algorithm [11], which is also the algorithm evaluating Newton interpolation, can be employed to evaluate the cross sections.This implies that the speed of evaluating the regression model is as fast as the interpolation by Newton method, and the algorithm can also be transported to GPU to accelerate the evaluation of the cross sections.
4This paper is organized as follow: theory and algorithm for calculating the coefficients and evaluating the regression model are described in Section 2, dataset and numerical results are presented in Section 3, and conclusion in Section 4.
Algorithm
5Let n = (n 0 , . . ., n d−1 ) ⊺ , with n k ∈ N * the number of monomial terms per dimension (k is the dimension index).Let i = (i 0 , . . ., i d−1 ) ⊺ , with i k ∈ [[0, n k − 1]] the multi-dimensional index vector, and i ∈ [[0, d k=0 n i − 1]] the flattened index corresponding to i. Polynomial regression model approximates few-group homogenized cross section σ( p) as a linear combination of multi-variate monomials m i ( p):
6Let p j the coordinates of each point in training dataset ( j is the index of each point).Let V = v ji = m i (p j ) the matrix for regression, s the vector storing the dataset (s j = σ( p j )) and c the vector storing the coefficients of the regression model (c i = c i ).The mean square error between the reconstruction and the provided dataset can be calculated as:
7Since the minima of the loss function has a gradient of zero, the values of coefficients minimizing the loss function L can be obtained by solving the equation of vanishing gradient:
8In this study, the calculation of the coefficient vector c is achieved by the subroutine dgelsd in LAPACK library [12].
9The cross sections can be reconstructed by the multi-variate Horner scheme [11] described in Algorithm 1.
Algorithm 1 Evaluation of polynomial regression (parallelizable on each point)
10procedure eval(coefficients c, point p) Let u = 0 a local memory of size d storing evaluated value per dimension.
11Although the calculation of the coefficients by regression model consumes significantly more time and memory compared to interpolation with the Newton method, evaluation time is shorter due to the elimination of one subtraction operation [5].Since the coefficients only need to be calculated once, while the evaluation is called thousands of times during the core calculation step, regression proves to be more efficient than interpolation with Newton method.Furthermore, similar to interpolation by Newton method, parallel computational power of GPU can be exploited to enhance the efficiency of the regression model, thus further reducing evaluation time.
Dataset
12The dataset of few-group homogenized cross sections is prepared by the lattice transport code APOLLO3 ® to test the polynomial regression method.Neutron transport equation is solved on one sixth of the 22UA assembly (see Figure 1) originated from the benchmark X2 VVER-1000 [1].Cross sections of heavy nuclides are self-shielded by the fine structure method, while the neutron flux is solved by the method of characteristics.The solved flux and the cross sections are then homogenized across the entire calculation zone into two energy groups: thermal (≤ 0.625 eV) and fast.
13Table 1 describes the Cartesian grid employed to generate the dataset.The dataset is constructed considering five state parameters: burnup (exposure time), boron concentration (the amount of boric acid dissolved in water), fuel temperature, moderator temperature, and the concentrations of Xe135 and I135 relative to their equilibrium values at the beginning of the fuel cycle.The water pressure is held constant at 157 bar, and the moderator density is calculated based on temperature and pressure using the IAPWS package 1 .The depletion calculation utilizes the same burnup mesh as that used in the dataset.Values of parameters other than burnup and xenon-iodine concentration at which the depletion calculation is performed are labelled as "nominal" in Table 1.Burnup (in MWd/t) 0.00, 9.375, 18.75, 37.50, 75.00, 112.50, 150.00, 237.50, 325.00, 412.50, 500.00,625.00, 750.00, 875.00, 1000.00,44 steps of 250.00 between 1000.00 and 12000.00,6 steps of 500.00 between 12000.00 and 15000.00, 5 steps of 1000.00 between 15000.00 and 20000.00, 25 steps of 2000.00 between 20000.00 and 70000.00Boron conc.(in ppm) 0.00, 300.00, 600.00 (nominal), 900.00, 1200.00,1500.00,1800.00Fuel temp.(in K) 500.00,560.00, 600.00, 700.00, 800.00, 900.00 (nominal), 1000.00,1100.00,1200.00Water temp.(in K) 300.00, 400.00 500.00,560.00 (nominal), 600.00
14Xenon conc.(in %) 10%, 40%, 90%, 100% The cross section dataset includes only the cross sections of four significant heavy actinides (U235, U238, Pu239, and Pu242) and three commonly utilized reactions in core calculations (Absorption, Diffusion, and NuFission).In total, there are 4 × 3 × 2 = 24 types of cross sections, which correspond to 24 regression models.
15As the magnitudes of the columns of the matrix V are different, rounding error occurring in the resolution of the coefficients c can result in considerable inaccuracy, especially for coefficients of monomials with high order.To avoid this problem, coordinates of each point in the grid must be pre-processed before constructing the matrix V.For each state parameter, the pre-processing function f (x) (where x represent the numerical value of the state parameter presented in Table 1) is:
Error of regression model in function of number of coefficients
16In this section, errors between the reconstruction by polynomial regression and the training dataset by APOLLO3 ® at different values of n (number of monomial terms per dimension) are studied.Table 2 Figure 2 shows the mean square relative error and maximum relative error for each isotope, reaction and energy group between the evaluation by polynomial regression at different values of n (as represented by the number of coefficients on the horizontal axis) and the dataset prepared by APOLLO3 ® .
17For isotopes U235, U238 and the thermal group of Pu239 and Pu242, a regression model with only 180 coefficients prove sufficient to reconstruct the dataset with a maximum relative error of approximately 1%.Compared to 119700 points in the tabulated dataset, this model yields a compression rate of 374.06.Concerning the fast group of Pu isotopes, the number of coefficients required to reduce the maximum relative error under 0.5% is 512 for Pu239, and up to 640 for Pu242.Beyond 640 coefficients, which equivalent to a compression rate of 187.03, both the maximum relative error and mean square relative error begin to stabilize, and high-order monomials added to the model will not result in significant improvement in the accuracy anymore.This phenomenon probably arises due to three factors : the imperfect representation by polynomials of the dataset on the burnup dimension, and the rounding error occurring in both the coefficient calculation step and the evaluation step.
18As the number of coefficients in the regression model increases, the regression model approaches the characteristics of an interpolation.As a result, the error between the evaluated cross-section and the training dataset diminishes.When the maximum monomial order per dimension equals the number of values of points in that dimension, the regression model essentially becomes an interpolation, and the error between the evaluated cross-section and the dataset approaches zero.However, interpolation with high-order polynomials can lead to the Runge phenomenon [9], causing the interpolating function to oscillate with high magnitude in the region between the points of the training set and fail to predict the cross sections
Error of regression model trained on a subset of data
19In this section, we investigate the error of evaluated values by regression model trained on a subset of the full Cartesian grid.Since the algorithm for calculating coefficients in a regres-sion model doesn't necessitate the training set points to form a Cartesian or sparse grid [6], points in the Cartesian grid can be randomly partitioned into two subsets: one subset consists of randomly selected points for training the model, while the remaining points serve as validation points along with the training set.By using a reduced number of points for training, the size of the matrix V is decreased, consequently reducing the training time.The regression model consisting of 640 coefficients (see Table 2) are used in this study.Relative mean square error and relative maximum error of each isotope, reaction and energy group are plotted against the ratio of the number of points in the training set to the total number of points in the complete Cartesian grid in Figure 3.
20Relative mean square error stabilizes with just 30% of the complete grid's points in the training set, whereas relative maximum square error necessitates up to 60%.In the context of reactor analysis, instead of conducting lattice calculations at all points in the complete Cartesian grid, this result suggests that approximately 70% of calculations are required to train the model with less than 0.5% error, leading to a potential of 30% reduction in the preparation time for few-group homogenized cross sections data.
Parallel evaluation of regression model on GPU
21In this section, evaluation time of regression model on both CPU and GPU are compared against each other.Since the cross sections can be reconstructed by the multi-variate Horner scheme algorithm, the evaluation step can be transported to GPU similar to the interpolation with Newton method.The test utilizes the polynomial model with 640 coefficients (see Table 2) for each of the 24 cross-section types per isotope, reaction, and energy group.These models are evaluated on 9600 randomly generated points in the state parameter space (see Table 1), making a total of 230400 evaluations.Numerical results are obtained on a AMD Ryzen 9 5900X 12-Core CPU (24 threads) and a GPU of model RTX 3070.Evaluation of each cross section type is executed independently by a CUDA thread-block.Figure 4 depicts the calculation of CPU (red line) and GPU (blue dots) at different sizes (number of CUDA threads) of each block.By using only 32 threads, the GPU surpasses the CPU in computational performance.In addition, the inverse law, where calculation time is inversely proportional to the number of threads, can be observed with an efficiency of approximately 80%.The decrease in efficiency is caused by the delay in launching the evaluation function on the GPU and the synchronization between the CPU and GPU.However, the parallel processing capability of the GPU still proves effective in evaluation of polynomial regression.
22with less than 0.5% error using only 640 coefficients (the worse case occurs in the reconstruction of the fast group of isotope Pu242), yielding a compression rate of approximately 187.Furthermore, incomplete data can be used to train the regression model : 70% of points in the full Cartesian grid is already adequate to train the regression model, allowing for a saving of up to 30% of time in the lattice calculation step.In addition, massive parallel computational power of GPU can be harnessed to efficiently evaluate the regression model for core calculation demands.
Figure 1 .
23Figure 1.22UA assembly
Figure 2 .
24Figure 2. Relative mean square error and relative maximum error between the evaluation by regression model and dataset at different numbers of coefficients
Figure 3 .
25Figure 3. Relative mean square error and relative maximum error between the evaluation by regression model and dataset at different numbers of points in the training set
Figure 4 .
26Figure 4. Comparison of evaluation time on CPU and GPU
Table 1 .
27Cartesian grid constructing the dataset
Table 2 .
28details the values of n utilized in this study.The training set of the model composes of all points in the Cartesian grid described in Table 1, and errors are also measured on the training set.n ⊺ = (n Br , n Bu , n T f , n T m , n Xe ) Values of maximum order per dimension n
참고문헌 9건
- A Simple Regularization of the Polynomial Interpolation for the Resolution of the Runge Phenomenon Journal of Scientific Computing · Springer Science+Business Media · 2010 10.1007/s10915-010-9397-7
- The Runge phenomenon and spatially variable shape parameters in RBF interpolation Computers & Mathematics with Applications · Elsevier BV · 2007 10.1016/j.camwa.2007.01.028
- On the Multivariate Horner Scheme SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2000 10.1137/s0036142997324150
- Benchmarking a reduced multivariate polynomial pattern classifier IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2004 10.1109/tpami.2004.3
- Reducing branch divergence in GPU programs 2011 10.1145/1964179.1964184
- X2 VVER-1000 benchmark revision: Fresh HZP core state and the reference Monte Carlo solution Annals of Nuclear Energy · Elsevier BV · 2020 10.1016/j.anucene.2020.107558
- LAPACK Users' Guide 1999 10.1137/1.9780898719604
- Optimization Techniques for GPU Programming ACM Computing Surveys · Association for Computing Machinery · 2022 10.1145/3570638
- APOLLO3®: Overview of the New Code Capabilities for Reactor Physics Analysis Nuclear Science and Engineering · Taylor & Francis · 2024 10.1080/00295639.2024.2334992