019 Investigation of Neutron-Irradiated Microstructure of Fe-Cr System: A GPU Accelerated Phase-field method Jeonghwan Lee, Kunok Chang * a Nuclear Engineering, Kyung Hee Univ., Republic of Korea * Corresponding author: kunok.chang@khu.ac.kr The molar free energy F(r, t) in Eq.(1) is given by 1. Introduction Eq. (2), The gradient coefficient ΞΊ is given by Ferritic martensitic steels are promising due to their low swelling rate under the fast neutron irradiation. 1 ΞΊ = 2 π πΊππ·π (4) 6 π 0 However, in the case of Fe-Cr steels, precipitation of Cr rich phase (Ξ±Ξ phase) near 475 Β° C is still pointed out as a where π 0 is the lattice parameter and π πΊππ·π is the weak point in the view point of structural integrity. [1][2] regular solution interaction parameter. therefore, understanding the spinodal decomposition The mobility M in the Cahn-Hilliard-Cook equation is behavior of the Fe-Cr system under the fast neutron assumed to be independent of the concentration field irradiation is important topic in studying the integrity of Therefore, rearranged Eq. (1) as structural materials. Herein, we analyze the spinodal decomposition ππ(π·) ππ(π ,π’) = β 2 [( πc ) β πβ 2 c(r, t)] (5) behavior under the fast neutron irradiation of the Fe-Cr ππ’ system using a graphics processing unit(GPU)- ππΊ(π ,π’) ππΜ(π,π’) = βπ 2 ( π β ππ 4 πΜ(k, t) (6) ) accelerated phase-field method. Since high energy ππ’ ππ particles produce a point defect, we quantify the where k = (π 1 , π 2 ) is the reciprocal vector in the microstructure evolution behavior of the Fe-Cr system 2 and πΜ(π, π’) under the fast neutron irradiation. 2 +π 2 Fourier space of magnitude k = βπ 1 In addition, we consider the different computational ππΊ(π ,π’) and ( ππ ) π are the Fourier transforms of c(r, t) and technique. Since the quantitative prediction of the real ππ(π·) material system is highly computationally expensive, we ( πc ) respectively. Then, we applied an explicit Euler have implement a parallel computing scheme based on Fourier spectral treatment to this equation, yielding the compute unified device architecture (CUDA) to improve computational efficiency [3], comparing it with π ππΜ π+1 (π,π’)βπΜ π (π,π’) = βπ 2 ( ππΊ(π ,π’) β ππ 4 πΜ(k, t) (7) ππ ) parallelized code using CUDA when solving the Cahn- βπ’ π Hilliard diffusion equation [4] using a semi-implicit so spectral method [5]. Although CUDA has previously been applied to the π πΜ π (π,π’)ββtπ 2 ( ππΊ(π ,π’) ) ππ phase-field method, it was used to create an explicit πΜ π+1 (π, π’) = π (8) 1+βtππ 4 solver [6], [7]. Herein, we instead use it to implement a semi-implicit spectral method and compare the 2.2 Modified CALPHAD-type free energy performance of OpenMP- and CUDA-accelerated code. Results will help to guide any researchers aiming to solve The molar chemical free energy f(c) in Eq. (2) is given the Cahn-Hilliard equation using fast Fourier transform. by[ μ£Όμ ] 2. CALPHAD-based phase-field methods 0 + cπ» π·π 0 + π πΊππ·π π(1 β π) f(c) = (1 β π)π» πΊπ + ππ[ππππ + (1 β π) ln(1 β π)] 2.1 Semi-implicit Fourier spectral method + π» π (J/mol) (9) We simulate the evolution of the Cr concentration 0 and π» π·π 0 are the molar Gibbs free energies where π» πΊπ field by solving the following Cahn-Hilliard equation [8]: for pure elemental Fe and Cr, respectively, π πΊππ·π is the interaction parameter between Fe and Cr, R (= 8.314J/ ππ(π ,π’) ππΊ(π ,π’) 2 β β [π(π , π’) β β ( = π ππ )] (1) mol β K) is the gas constant, T is the systemβs ab solute π ππ’ temperature, which is 563 K herein, and π» π is the molar 1 1 2 π(βπ) 2 ]}ππ F(r, t) = β« { π [π(π) + (2) π π Gibbs free energy of the magnetic ordering effect. These were calculated as follows: where c is the Cr concentration, ΞΊ is the gradient 0 = +1225.7 + 124.134 Γ T β 23.5143 Γ T Γ lnT π» πΊπ energy coefficient, F(r, t) and f(c) are the systemβs β 0.00439752 Γ π 2 β 5.89269 molar free energy and molar chemical free energy, Γ 10 β8 Γ π 3 + 77358.5 Γ π β1 respectively. f(c) is discussed in the following section.
Transactions of the Korean Nuclear Society Autumn Meeting Goyang, Korea, October 24-25, 2019 0 = β8856.94 + 157.48 Γ T β 26.908 Γ T Γ lnT π» π·π due to CUDA is most effective when solving the Cahn- + 0.00189435 Γ π 2 β 1.47721 Hilliard equation [9]. A semi-implicit Fourier spectral Γ 10 β6 Γ π 3 + 139250 Γ π β1 method, as described in the previous section, was π πΊππ·π = +20500 β 9.68π implemented by utilizing cuFFT for the CUDA code. For this benchmark, we conducted 2D spinodal π» π = ππππ(πΎ + 1) Ξ» (Ο), (J/mol) decomposition simulations that describe the microstructure evolution behavior of the Fe-Cr system Where πΎ is the atomic magnetic moment, calculated in under the fast neutron irradiation. We measured the time terms the Bohr magneton as taken to calculate 100,000 time steps using the Linux time command, which gives the real elapsed time. πΎ = 2.22(1 β π) β 0.008π β 0.85π(1 β π) . The function Ξ» (Ο) is expressed as the following polynomial: Ξ» (Ο) = β0.90530 Ο β1 + 1.0 β 0.153Ο 3 β 6.8 Γ 10 β3 Ο 9 β 1.53 Γ 10 β3 Ο 15 (Ο > 1) = β0.06417 Ο β5 β 2.037 Γ 10 β3 Ο β15 β 4.278 Γ 10 β4 Ο β25 (Ο < 1) Ο = π/π Where is critical magnetic ordering π temperature given by π = 1043(1 β π) β 311.5π + π(1 β π)[1650 π + 550(2π β 1)](ππ πΏ) Eq. (2) includes a magnetic ordering contribution to the free energy. Some previous studies have neglected Fig 2: Time consumption for the microstructural magnetic ordering effects. However, as shown in Fig. 1, the Fe- Cr systemβs free energy at 563 K varies evolution simulation with serial (i9-9900K 3.6 GHz CPU) and CUDA (1060, 2080ti and Tesla V100) substantially depending on whether or not magnetic ordering effects are included. We compared the efficiencies of the CUDA-based code on the same or a comparable computer, and the results obtained are shown in Fig. 2. We conducted these comparisons for seven different numbers of dimensions, namely 128, 256, 512, 1024, and 2048. Here, a dimensionality of 128 (say) means that the system cell size was 128βx Γ 128βy . Fig 1: Free energy curve for the Fe-Cr at 563 K with considering magnetic ordering effects. The equilibrium Cr concentration are π· π·π = 0.05 and π· π·π = 0.98 Fig 3: CUDA code efficiency compared to serial code To increase the computational efficiency, we used dimensionless values herein. Specifically, our As shown in Fig. 2 the computational cost of the simulations used the normalized values π β = π /π , β β = π/π(π /π) , π’ β = π’πΈ/π 2 , π β = π CUDA code better than serial code. Also, Fig 3, as the π ππ β π/πΈ , π β (π) = system size increases, the efficiency of the CUDA code π(π)/(3ππ β ) , and π β = π/ππ β π 2 with πΈ = 10 β24 π 2 /π‘ , increases up to 103 times. However, CUDA code is 2% π β = 900πΏ , and l = 2.856 β« , where is π 0 value in Eq. slow when system size is 64βx Γ 64βy . (6). We used π β = 2.4901 when considering magnetic ordering effects [9]. 2.4 Simulation results and analysis 2.3 Performance benchmark To improve the computational efficiency, we apply parallelization technique. In this study, CUDA was used
Recommend
More recommend