원시데이터 수집 시스템
선정목록으로

Anisotropic power diagrams for polycrystal modelling: Efficient generation of curved grains via optimal transport

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (10) 아라미드(21) 에폭시수지

기본 정보

저자
  1. Maciej Buze — Maxwell Institute for Mathematical Sciences and Department of Mathematics, Heriot-Watt University, Edinburgh, EH14 4AS, United Kingdom
  2. Jean Feydy — HeKA team, INRIA Paris, INSERM, Université Paris-Cité, 2-10 rue d’Oradour-sur-Glane, Paris, France|||HeKA team, INRIA Paris, INSERM, Université Paris-Cité, 2-10 rue d'Oradour-sur-Glane, Paris, France
  3. Steven Roper — School of Mathematics and Statistics, University of Glasgow, University Avenue, Glasgow G12 8QQ, United Kingdom
  4. Karo Sedighiani — Tata Steel Research & Development, PO Box 10000, IJmuiden, 1970 CA, The Netherlands
  5. David P. Bourne — Maxwell Institute for Mathematical Sciences and Department of Mathematics, Heriot-Watt University, Edinburgh, EH14 4AS, United Kingdom
DOI
10.1016/j.commatsci.2024.113317
저널
Computational Materials Science
발행년도
2024
발행기관
Elsevier BV
피인용수
5
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.commatsci.2024.113317
토픽
Composite Material Mechanics
OpenAlex ID
W4402079768

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
polycrystal modelling, microstructure, anisotropic power diagrams, computational homogenisation, RVE
판단 근거
이 논문은 금속 및 다결정 재료의 미세구조(microstructure)를 수학적으로 모델링하고 시뮬레이션하는 알고리즘을 다룹니다. 이는 코오롱인더스트리의 엔지니어링 플라스틱(23)이나 아라미드(10) 등 고분자/복합소재의 기계적 물성 및 미세구조 분석을 위한 RVE(대표체적요소) 생성 기술에 간접적으로 응용될 수 있습니다.
R&D 활용 포인트
고분자 컴파운드나 고강도 섬유의 미세구조 시뮬레이션 및 기계적 물성 예측을 위한 가상 모델링(RVE 생성) 기술로 활용 가능합니다.
평가 입력
본문 90,057자 중 30,032자 발췌

초록

The microstructure of metals and foams can be effectively modelled with anisotropic power diagrams (APDs), which provide control over the shape of individual grains. One major obstacle to the wider adoption of APDs is the computational cost that is associated with their generation. We propose a novel approach to generate APDs with prescribed statistical properties, including fine control over the size of individual grains. To this end, we rely on fast optimal transport algorithms that stream well on Graphics Processing Units (GPU) and handle non-uniform, anisotropic distance functions. This allows us to find large APDs that best fit experimental data and generate synthetic high-resolution microstructures in (tens of) seconds. This unlocks their use for computational homogenisation, which is especially relevant to machine learning methods that require the generation of large collections of representative microstructures as training data. The paper is accompanied by a Python library, PyAPD, which is freely available at: www.github.com/mbuze/PyAPD.

본문 90,057자

본문 펼치기
ANISOTROPIC POWER DIAGRAMS FOR POLYCRYSTAL MODELLING: EFFICIENT GENERATION OF CURVED GRAINS VIA OPTIMAL TRANSPORT M. BUZE <sup>1</sup>, J. FEYDY <sup>2</sup>, S.M. ROPER <sup>3</sup>, K. SEDIGHIANI <sup>4</sup>, AND D.P. BOURNE <sup>1</sup> Abstract. The microstructure of metals and foams can be effectively modelled with anisotropic power diagrams (APDs), which provide control over the shape of individual grains. One major obstacle to the wider adoption of APDs is the computational cost that is associated with their generation. We propose a novel approach to generate APDs with prescribed statistical properties, including fine control over the size of individual grains. To this end, we rely on fast optimal transport algorithms that stream well on Graphics Processing Units (GPU) and handle non-uniform, anisotropic distance functions. This allows us to find large APDs that best fit experimental data and generate synthetic high-resolution microstructures in (tens of) seconds. This unlocks their use for computational homogenisation, which is especially relevant to machine learning methods that require the generation of large collections of representative microstructures as training data. The paper is accompanied by a Python library, PyAPD, which is freely available at: `www.github.com/mbuze/PyAPD` . 1. Introduction Understanding the deformation behaviour of polycrystalline materials is crucial for numerous industrial applications [1, 2]. These materials, composed of multiple grains with distinct crystallographic orientations, exhibit intricate microstructures that significantly influence their macroscopic mechanical properties. Moreover, the characterisation of localised deformations and microstructures formed during the deformation of polycrystalline materials is vital in developing a thorough physical understanding of the underlying mechanisms behind localisation phenomena such as local stress fields [3, 4], fracture and damage initiation [5–8], shear banding [9–13], and recrystallization nucleation [14–17]. Computational methods, particularly the finite element method (FEM) [18–21] and Fast Fourier Transform (FFT) [5, 22–24], have emerged as powerful tools for simulating the mechanical behaviour of virtual polycrystals [13, 25–27]. The accuracy and the amount of detail that can be observed using these simulations strongly depends on the generated RVEs [13, 28–30]. A low-resolution simulation with simple cubic crystals is sufficient to predict macro-scale (global) data such as global 1Maxwell Institute for Mathematical Sciences and Department of Mathematics, Heriot-Watt University, Edinburgh, EH14 4AS, United Kingdom 2 HeKA team, INRIA Paris, INSERM, Universit´e Paris-Cit´e, 2-10 rue d’Oradour-sur Glane, Paris, France 3 School of Mathematics and Statistics, University of Glasgow, University Avenue, Glasgow G12 8QQ, United Kingdom 4 Tata Steel, R&D, IJmuiden, Netherlands _E-mail_ _addresses_ : `m.buze@hw.ac.uk,d.bourne@hw.ac.uk,` `jean.feydy@inria.fr,` `steven.roper@glasgow.ac.uk,` `karo.sedighiani@tatasteeleurope.com` . _Date_ : May 22, 2024. 1 2 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS (a) (b) (c) Figure 1. (A): We model grains in polycrystalline metals as anisotropic power cells, with desired centroid positions, volumes and shapes specified by ellipsoids. Accommodating these constraints in a 2D or 3D spatial domain is a difficult space-filling problem. (B): We use a semi-discrete optimal transport solver to find a tessellation of the spatial domain that satisfies these constraints approximately. Using a pixel grid that is fine enough, we can enforce an arbitrary tolerance on the volumes. Unlike previous approaches, our method can handle both isotropic cells (blue and green) and elongated crystals (red, grey). (C): Our method streams well on Graphics Processing Units (GPUs), allowing us to generate synthetic high-resolution 3D microstructures in seconds. crystallographic texture [31] or stress-strain response [28]. However, a representative polycrystal morphology becomes essential to achieve a more detailed description of meso-scale deformation localisation effects [13, 28, 30]. In addition, recent studies have emphasised the need for larger virtual polycrystals with more representative grain morphologies, considering inherent variability in both grain size and shape [13, 25, 29, 32]. Therefore, constructing representative volume elements (RVEs) is essential in analysing the macroscopic and microscopic behaviour of polycrystalline materials [28, 33]. Combining such representative computational microstructure with a proper materials model, such as the crystal plasticity model [5], enables micro-scale analysis of many localised phenomena [13, 16]. Ensuring the accuracy of these analyses depends not only on having an appropriate constitutive law but also on careful reconstruction of the polycrystal’s geometric features [32, 34]. Experimental efforts have contributed significantly to understanding real polycrystal morphologies, offering valuable insights into the size, morphology, and orientations of the crystals [35–38]. Nevertheless, creating representative microstructures with a large number of grains and authentic morphology still remains challenging. One of the standard approaches to modelling polycrystalline materials in computational materials science is to represent them as a power diagram (also known as a Voronoi-Laguerre diagram) [39–41], with each cell of the diagram corresponding to a distinct grain. Power diagrams, whose modern theory can be traced back to the 1980s [42, 43], have found diverse applications, not just in microstructure modelling, but also in spatial analysis [44, 45], mesh generation [46], and in machine learning [47]. Finding a power diagram with cells of prescribed volumes is in fact equivalent to solving an optimal transport problem where the target measure is a sum of Dirac masses. This goes back at least as far as [48]. For modern presentations in the ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS 3 computational geometry literature see [49], [50, Chapter 6], in the optimal transport literature see [51], [52, Section 4], and in the microstructure modelling literature see [53, 54]. This link ensures that power diagram-based approaches to modelling polycrystalline materials can generate large and complex microstructures in a matter of seconds, while requiring a relatively small number of parameters. A drawback of this approach is the idealised nature of the grains it produces - they are convex and have flat boundaries. Moreover, any spatial anisotropy they possess is solely determined by the relative location of the seed points of neighbouring grains and not by the preferred growth directions of each grain or by the rolling direction during processing. An emerging approach to modelling polycrystals which addresses some of the limitations of power diagrams is to model them as anisotropic power diagrams (APDs) instead, as pioneered by [55]. In particular, APD-based modelling guarantees control over the anisotropy of individual grains and curved boundaries between neighbouring grains, with several such promising approaches explored in recent years by various authors [55–63]. One obstacle to the wider adoption of APDs as a practical tool for modelling the microstructure of metals is the computational cost of generating them. Known optimal-transport-based efficient methods for generating power diagrams with grains of given volumes [51–53] do not translate to the anisotropic setup, and known techniques for generating APDs are drastically slower - while the usual runtime to generate a large power diagram with grains of given volumes is (tens of) seconds [53, 64], for APDs it ranges from (tens of) minutes to (tens of) hours. This high computational cost associated with generating APDs poses a significant limitation to creating realistic microstructures with numerous grains and authentic morphology. This limitation is particularly pronounced in fields such as machine learning and data science, where generating a substantial number of representative microstructures is essential for a comprehensive study. In this paper we develop a novel fast approach for generating APDs with prescribed statistical properties, in which we combine semi-discrete optimal transport techniques with modern GPU-oriented computational tools, originally developed for the Sinkhorn algorithm [65–67]. Using a single standard scientific-computing-oriented GPU, we achieve a three orders of magnitude speed-up versus a baseline CPU-only implementation, which ensures a near instantaneous computation of a generic large APD. As a result, we are able to: _•_ Fit an APD to a real EBSD measurement, provided by Tata Steel specifically for this publication, consisting of 4587 grains in 2D, with high variation in spatial anisotropy and grain volume, in _under_ _one_ _minute_ . _•_ Generate a realistic synthetic microstructure that is statistically equivalent to the EBSD measurement with 4587 grains in _about_ _four_ _minutes_ . _•_ Create an APD mimicking an EBSD scan of a bidirectionally 3D-printed stainless steel with long and thin grains in _about_ _3_ _seconds_ . 2. Methods 2.1. Modelling polycrystalline materials with anisotropic power diagrams. Let Ω _⊂_ R <sup>_D_</sup> represent a bounded region occupied by a polycrystalline material. While our method applies to arbitrary nonconvex geometries, for simplicity we present it for the case when Ωis a rectangular domain (a rectangle if _D_ = 2 or a cuboid if _D_ = 3). For _U_ _⊂_ Ω, _|U_ _|_ denotes the area of _U_ if _D_ = 2 or the volume of _U_ if _D_ = 3. 4 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS A matrix A _∈_ R <sup>_D×D_</sup> is symmetric positive definite if it satisfies A <sup>_T_</sup> = A and _x ·_ A _x >_ 0 _∀_ _x ∈_ R <sup>_D_</sup> _,_ _x̸_ = 0 _._ We refer to such matrices as _anisotropy_ _<u>matrices</u>_ and denote the weighted norm they _√_ induce on R <sup>_D_</sup> by _| · |_ A, that is _|x|_ A := _x ·_ A _x_ . Let _X_ = ( _xi_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>be</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>distinct</sup> <sup>_seed_</sup> <sup>_points_</sup> <sup>in</sup> <sup>Ω,</sup> <sup>_W_</sup> <sup>= (</sup> <sup>_wi_</sup> <sup>)</sup> _i_ <sup>_N_</sup> =1 <sup>_∈_</sup> <sup>R</sup> <sup>_N_</sup> <sup>be</sup> a set of _weights_, and Λ = ( A _i_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>(R</sup> <sup>_D×D_</sup> <sup>)</sup> <sup>_N_</sup> <sup>be</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>anisotropy</sup> <sup>matrices.</sup> <sup>The</sup> _√_ on R <sup>_D_</sup> by _| · |_ A, that is _|x|_ A := _x ·_ A _x_ . Let _X_ = ( _xi_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>be</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>distinct</sup> <sup>_seed_</sup> <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>be</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>distinct</sup> <sup>_seed_</sup> <sup>_points_</sup> <sup>in</sup> <sup>Ω,</sup> <sup>_W_</sup> <sup>= (</sup> <sup>_wi_</sup> <sup>)</sup> _i_ <sup>_N_</sup> a set of _weights_, and Λ = ( A _i_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>(R</sup> <sup>_D×D_</sup> <sup>)</sup> <sup>_N_</sup> <sup>be</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>anisotropy</sup> <sup>matrices.</sup> <sup>The</sup> Anisotropic Power Diagram (APD) [55] given by the data ( _X, W,_ Λ) is the tessellation _{Li}_ <sup>_N_</sup> _i_ =1 <sup>of</sup> <sup>Ωdefined</sup> <sup>by</sup> <sup>_N_</sup> _i_ =1 <sup>of</sup> <sup>Ωdefined</sup> <sup>by</sup> <sup>2</sup> A _j_ <sup>_−_</sup> <sup>_wj_</sup> <sup>_∀_</sup> <sup>_j_</sup> <sup>_∈{_</sup> <sup>1</sup> <sup>_, . . ., N_</sup> <sup>_}_</sup> _._ (2.1) _Li_ := - _x ∈_ Ω _|_ _|x −_ _xi|_ <sup>2</sup> <sup>2</sup> A _i_ <sup>_−_</sup> <sup>_wi_</sup> <sup>_≤|x −_</sup> <sup>_xj|_</sup> <sup>2</sup> A Notable special cases of APDs occur when, for each _i_, we have (i) A _i_ = Id and _wi_ = 0, which results in a Voronoi diagram, (ii) A _i_ = Id, which results in a power diagram, (iii) _wi_ = 0, which results in an anisotropic Voronoi diagram, (iv) _wi_ = 0 and A _i_ = _ci_ Id, _ci_ _∈_ R, which results in a M¨obius diagram. The theory of these diagrams is presented in [68]. Let _V_ := ( _vi_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>R</sup> + <sup>_N_</sup> <sup>be</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>target</sup> <sup>volumes</sup> <sup>(if</sup> <sup>_D_</sup> <sup>=</sup> <sup>3)</sup> <sup>or</sup> <sup>target</sup> <sup>areas</sup> <sup>(if</sup> _D_ = 2), satisfying Let _V_ := ( _vi_ ) <sup>_N_</sup> _i_ <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>R</sup> + <sup>_N_</sup> _vi_ _>_ 0 _,_ _N_ _i_ =1 _vi_ = _|_ Ω _|._ In this paper we use the term _single_ _phase_ to refer to APDs with grains of equal volume, i.e., _vi_ = <sup>_<u>|</u>_</sup> _N_ <sup><u>Ω</u></sup> <sup>_<u>|</u>_</sup> <sup>for</sup> <sup>each</sup> <sup>_i_</sup> <sup>,</sup> <sup>which</sup> <sup>represent</sup> <sup>idealised</sup> <sup>monodisperse</sup> <sup>microstruc-</sup> tures, where are all the grains have essentially the same size. We use the term _multi_ _phase_ to refer to polydisperse microstructures. We call an APD generated by ( _X, W,_ Λ) _optimal_ _with_ _respect_ _to_ _V_ if _|Li|_ = _vi_ for all _i ∈{_ 1 _, . . ., N_ _}_ . We note that an anisotropy matrix A _i_ can carry volume information. Suppose we are given an APD in which each cell is non-empty. Fix _i_ _∈{_ 1 _, . . ., N_ _}_ and suppose we replace A _i_ by _c_ A _i_ for some constant _c_ _>_ 0, while keeping _X_ and _W_ fixed, and keeping A _j_ fixed for all _j̸_ = _i_ . Simple calculations reveal that as we increase _c_, the volume of _Li_ decreases and, for _c_ large enough, the cell will have zero volume. Similarly, if _wi_ _>_ _wj_ for all _j̸_ = _i_, by sending _c_ _→_ 0, we find that _|Li|_ _→|_ Ω _|_ . At the same time, for any choice of the constant _c_, the ratio of eigenvalues of _c_ A _i_ (and hence the target shape of _Li_ ) remains unchanged. To avoid such issues, we suggest normalising the anisotropy matrices so that det A _i_ = 1 for all _i_, which can be done while respecting the associated aspect ratios, as we will shortly explain. To illustrate the geometric role that anisotropy matrices play, we note that a twodimensional anisotropy matrix A can be uniquely determined by three parameters ( _a, b, θ_ ), where, in analogy with defining an ellipse, _a >_ 0 is the major axis, _b ∈_ (0 _, a_ ] is the minor axis, and _θ_ _∈_ [0 _, π_ ) is the orientation angle. To be precise, - _a_ <sup>_−_</sup> <sup>2</sup> 0 0 _b_ <sup>_−_</sup> <sup>2</sup> _._ (2.2) A ( _a, b, θ_ ) = VDV <sup>_−_</sup> <sup>1</sup> _,_ where V = �cos _θ_ _−_ sin _θ_ _,_ D = sin _θ_ cos _θ_ Note that _|x|_ _A_ = 1 is the equation of the ellipse with major axis _a_, minor axis _b_ and orientation angle _θ_ . Given an anisotropy matrix A ( _a, b, θ_ ), its normalised <u>counterpart</u> A <sup>ˆ</sup> (ˆ _a,_ <sup>ˆ</sup> _b, θ_ ), satisfying det A <sup>ˆ</sup> = 1, is determined by (ˆ _a,_ <sup>ˆ</sup> _b, θ_ ), where ˆ _a_ = ~~�~~ _a/b_, <sup>ˆ</sup> _b_ = 1 _/a_ ˆ. The anisotropy ratio _a/b_ is preserved by the normalisation: _a/_ ˆ <sup>ˆ</sup> _b_ = _a/b_ . A similar comment applies in ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS 5 3D with ellipsoids, which are generated by six parameters ( _a, b, c, θ, ϕ, γ_ ), the major, middle and minor axes and the Euler angles. 2.2. Finding optimal APDs. Given a set of seed points _X_ = ( _x_ 1 _, . . ., xN_ ), a set of anisotropy matrices Λ = ( A 1 _, . . .,_ A _N_ ), and a set of target volumes _V_ = ( _v_ 1 _, . . ., vN_ ), the problem of finding weights _W_ such that the APD generated by ( _X, W,_ Λ) is optimal with respect to _V_, i.e., that _|Li|_ = _vi_ for all _i_, is a _semi-discrete_ _optimal_ _transport_ _problem_ ; see for example [52, Section 4] or [69, Chapter 5]. In particular, it can be solved by maximising the continuously differentiable, concave function _Li_ <sup>2</sup> A _i_ <sup>_dx_</sup> _,_ (2.3) _g_ ( _W_ ) := _N_ _i_ =1 ( _vi −|Li|_ ) _wi_ + _|x −_ _xi|_ <sup>2</sup> where the cells _Li_ are computed from the weights _w_ 1 _, . . ., wN_ as in (2.1). We observe that _g_ is concave and its gradient is ( _∇g_ ( _W_ )) _i_ = _vi −|Li|._ (2.4) Thus _W_ maximises _g_ if and only if the APD generated by ( _X, W,_ Λ) is optimal with respect to _V_ . This is well-known in the optimal transport literature (see for example [52] and [69]). In the isotropic case, when A _i_ = Id for all _i_, this was first applied in the context of microstructure modelling in [53] and then subsequently in papers including [64] and [54]. In practice, _∇g_ ( _W_ ) = 0 is solved up to relative error tolerance _<u>|</u>_ <u>(</u> _<u>∇g</u>_ <u>(</u> _<u>W</u>_ <u>))</u> _<u>i|</u>_ _vi_ = - _|Li| −_ _vi_ _vi_ _≤_ _ε,_ (2.5) where, e.g., setting _ε_ = 0 _._ 01 corresponds to allowing grain size deviation of up to 1%. Similarly, the integral in (2.3) and the area/volume _|Li|_ in (2.3) and (2.4) are in practice approximated with sums over a discretisation of the domain Ωby pixels/voxels. We will now describe a fast implementation of algorithms for computing APDs via (2.1) and for finding optimal APDs with respect to prescribed volumes, namely finding _W_ _∈_ argmax _g._ 2.3. Implementation. Given a domain Ω _⊂_ R <sup>_D_</sup>, we let _P_ ( _y, s_ ) denote the pixel/voxel centred at _y_ _∈_ Ωwith side lengths _s ∈_ R <sup>_D_</sup> + <sup>,</sup> <sup>that</sup> <sup>is,</sup> - _−_ 2 <sup><u>1</u></sup> <sup>_,_</sup> <sup><u>1</u></sup> 2 - _D_ <sup>�</sup> _,_ _P_ ( _y, s_ ) := _y_ + diag( _s_ ) _t_ _|_ _t ∈_ where diag( _s_ ) denotes the _D_ -by- _D_ diagonal matrix with _s_ on the diagonal. The area/volume of the pixel _P_ ( _y, s_ ) is _|P_ ( _y, s_ ) _|_ = _s_ 1 _s_ 2 _· · · sD_ = det (diag( _s_ )). We call a collection of pixels/voxels generated by ( _Y, s_ ) := _{_ ( _yj, s_ ) _}_ <sup>_J_</sup> _j_ =1 <sup>,</sup> <sup>_J_</sup> <sup>_∈_</sup> <sup>N,</sup> <sup>a</sup> <sup>_discretisation_</sup> of Ω, if _J_ _j_ =1 _|P_ ( _yj, s_ ) _|_ ����� _≤_ _δ,_ _P_ ( _yj, s_ ) _∩_ _P_ ( _yk, s_ ) = _∅_ for all _j̸_ = _k,_ and ����� _|_ Ω _| −_ where _δ_ _≥_ 0 is a tolerance parameter. Square pixels/cubic voxels are obtained by setting _s_ = _M_ <sup><u>1</u></sup> <sup>1</sup> <sup>_D,_</sup> 1 _D_ = (1 _, . . .,_ 1) _∈_ R <sup>_D_</sup> _,_ (2.6) 6 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS where _M_ _∈_ N+ is the resolution parameter. In particular, if Ω= [0 _,_ 1] <sup>_D_</sup> and _ε_ = 0, the discretised domain is then the regular grid of _J_ = _M_ <sup>_D_</sup> pixels/voxels, where _|P_ _|_ := _|P_ ( _yj, s_ ) _|_ = _J_ <sup>_−_</sup> <sup>1</sup> = _M_ <sup>_−D_</sup> is the area/volume of the pixel/voxel. Algorithm 1 is a standard method for numerically computing APDs. The novelty of our work is an efficient GPU implementation of this algorithm, as described below in Section 2.3.2. <u>Algorithm</u> <u>1</u> <u>Pixel</u> <u>method</u> <u>for</u> <u>computing</u> <u>an</u> <u>APD</u> Input: _D_ _∈{_ 2 _,_ 3 _}_ (the dimension), Ω _⊂_ R <sup>_D_</sup> (the domain), _N_ _∈_ N (the number of grains), _X_ = ( _xi_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>(seed</sup> <sup>points),</sup> <sup>Λ = (</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ =1 <sup>(anisotropy</sup> <sup>matrices),</sup> <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>(seed</sup> <sup>points),</sup> <sup>Λ = (</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ grains), _X_ = ( _xi_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>(seed</sup> <sup>points),</sup> <sup>Λ = (</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ =1 <sup>(anisotropy</sup> <sup>matrices),</sup> _W_ = ( _wi_ ) <sup>_N_</sup> _i_ =1 <sup>(weights),</sup> <sup>_J_</sup> <sup>_∈_</sup> <sup>N</sup> <sup>(number</sup> <sup>of</sup> <sup>pixels/voxels),</sup> <sup>(</sup> <sup>_Y, s_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>(R</sup> <sup>_D_</sup> <sup>)</sup> <sup>_J_</sup> <sup>_×_</sup> <sup>(</sup> _W_ = ( _wi_ ) <sup>_N_</sup> _i_ =1 <sup>(weights),</sup> <sup>_J_</sup> <sup>_∈_</sup> <sup>N</sup> <sup>(number</sup> <sup>of</sup> <sup>pixels/voxels),</sup> <sup>(</sup> <sup>_Y, s_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>(R</sup> <sup>_D_</sup> <sup>)</sup> <sup>_J_</sup> <sup>_×_</sup> <sup>(R</sup> <sup>_D_</sup> <sup>)</sup> (discretised domain / collection of pixels/voxels). Output: An assignment vector _H_ _∈_ N <sup>_J_</sup>, where the _j_ th pixel is assigned to the grain _Hj_ _∈{_ 1 _, . . ., N_ _}_ . Procedure: 1: Compute the cost matrix C _∈_ R <sup>_N_</sup> <sup>_×J_</sup>, where C _ij_ := _|yj_ _−_ _xi|_ <sup>2</sup> _Ai_ <sup>_−_</sup> <sup>_wi_</sup> <sup>.</sup> 2: Set _Hj_ _∈_ arg min _i∈{_ 1 _,...N_ _}_ C _ij_ . Next we describe how optimal APDs with cells of given areas/volumes can be generated by combining semi-discrete optimal transport theory with the pixel method. Consider a domain Ω _⊂_ R <sup>_D_</sup> and its discretisation ( _Y, s_ ) = _{_ ( _yj, s_ ) _}_ <sup>_J_</sup> _j_ =1 <sup>,</sup> <sup>as</sup> <sup>well</sup> <sup>as</sup> <sup>the</sup> Consider a domain Ω _⊂_ R <sup>_D_</sup> and its discretisation ( _Y, s_ ) = _{_ ( _yj, s_ ) _}_ <sup>_J_</sup> _j_ =1 <sup>,</sup> <sup>as</sup> <sup>well</sup> <sup>as</sup> <sup>the</sup> set of seed points _X_ = ( _xi_ ) <sup>_N_</sup> _i_ =1 <sup>,</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>anisotropy</sup> <sup>matrices</sup> <sup>Λ</sup> <sup>=</sup> <sup>(</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ =1 <sup>,</sup> <sup>and</sup> <sup>a</sup> <sup>set</sup> <sup>_N_</sup> _i_ =1 <sup>,</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>anisotropy</sup> <sup>matrices</sup> <sup>Λ</sup> <sup>=</sup> <sup>(</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ set of seed points _X_ = ( _xi_ ) <sup>_N_</sup> _i_ =1 <sup>,</sup> <sup>a</sup> <sup>set</sup> <sup>of</sup> <sup>anisotropy</sup> <sup>matrices</sup> <sup>Λ</sup> <sup>=</sup> <sup>(</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ =1 <sup>,</sup> <sup>and</sup> <sup>a</sup> <sup>set</sup> of target areas/volumes _V_ = ( _vi_ ) <sup>_N_</sup> _i_ =1 <sup>.</sup> <sup>Using</sup> <sup>the</sup> <sup>regular</sup> <sup>discretisation</sup> <sup>from</sup> <sup>(2.6),</sup> <sup>we</sup> of target areas/volumes _V_ = ( _vi_ ) <sup>_N_</sup> _i_ =1 <sup>.</sup> <sup>Using</sup> <sup>the</sup> <sup>regular</sup> <sup>discretisation</sup> <sup>from</sup> <sup>(2.6),</sup> <sup>we</sup> approximate the dual objective functional _g_ from (2.3) with the discretised function _g_ ˜ : R <sup>_N_</sup> _→_ R defined by     _j∈{_ 1 _,...,J}_ _Hj_ = _i_   (2.7)  <sup>_,_</sup> _wi_ + _g_ ˜( _W_ ) := _N_ _i_ =1 _vi −_ _|P_ _|_ _j∈{_ 1 _,...,J}_ _Hj_ = _i_ _|P_ _| |yj_ _−_ _xi|_ <sup>2</sup> A _i_ where _Hj_ was defined in Algorithm 1. The gradient of _g_ can be approximated by ( _∇g_ ( _W_ )) _i_ _≈_ _vi −_ _j∈{_ 1 _,...,J}_ _Hj_ = _i_ _|P_ _|._ (2.8) Note that this is not precisely the gradient of ˜ _g_, which is not differentiable everywhere since _Hj_ is a piecewise constant function of _W_ . We can find an optimal APD with grains of areas/volumes _vi_ by maximising the discretised objective function _g_ ˜, as described in Algorithm 2. In Section 2.3.2 we describe an efficient GPU implementation of this algorithm. ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS 7 <u>Algorithm</u> <u>2</u> <u>Generating</u> <u>an</u> <u>optimal</u> <u>APD</u> <u>using</u> <u>optimal</u> <u>transport</u> <u>theory</u> Input: _D_ _∈{_ 2 _,_ 3 _}_ (the dimension), Ω _⊂_ R <sup>_D_</sup> (the domain), _N_ _∈_ N (the number of grains), _X_ = ( _xi_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>(seed</sup> <sup>points),</sup> <sup>Λ = (</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ =1 <sup>(anisotropy</sup> <sup>matrices),</sup> <sup>_J_</sup> <sup>_∈_</sup> <sup>N</sup> <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>(seed</sup> <sup>points),</sup> <sup>Λ = (</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ grains), _X_ = ( _xi_ ) <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>(seed</sup> <sup>points),</sup> <sup>Λ = (</sup> <sup>A</sup> <sup>_i_</sup> <sup>)</sup> <sup>_N_</sup> _i_ =1 <sup>(anisotropy</sup> <sup>matrices),</sup> <sup>_J_</sup> <sup>_∈_</sup> <sup>N</sup> (initial number of pixels/voxels), _V_ = ( _vi_ ) <sup>_N_</sup> _i_ = <sup>(target</sup> <sup>volumes),</sup> <sup>_ε >_</sup> <sup>0</sup> <sup>(relative</sup> (initial number of pixels/voxels), _V_ = ( _vi_ ) <sup>_N_</sup> _i_ = <sup>(target</sup> <sup>volumes),</sup> <sup>_ε >_</sup> <sup>0</sup> <sup>(relative</sup> tolerance). Output: The generators ( _X, W,_ Λ) of an APD optimal with respect to _V_, up to a relative error tolerance �� _|Li| −_ _vi_ �� _≤_ _εvi_ . relative error tolerance �� _|Li| −_ _vi_ �� _≤_ _εvi_ . Procedure: 1: Generate a discretisation ( _Y, s_ ) of Ωwith _J_ pixels/voxels. 2: Set the initial guess _W_ 0 to _W_ 0 = (0 _, . . .,_ 0) _∈_ R <sup>_N_</sup> . 3: Use a numerical optimisation method, such as the classic L-BFGS method [70], to find _W_ that maximises the function _g_ ˜ defined in (2.7), starting from the initial guess _W_ 0. Terminate when _|vi −_ _mi|P_ _| | < εvi_ for all _i ∈{_ 1 _, . . ., N_ _}_, where _mi_ is the number of pixels/voxels in cell _i_, _mi_ = # _{j_ _∈{_ 1 _, . . ., J} | Hj_ = _i}_ . 4: If it is not possible to hit the desired tolerance _ε_, then increase _J_ and restart. For simplicity, we have presented the algorithms for discretisations of Ωby regular rectangular grids. In principle, however, any tessellation of Ωcould be used. For example, given a triangulation of Ω _⊂_ R <sup>2</sup> by _J_ triangles, the corresponding objective function _g_ ˜ in Algorithm 2 is     _j∈{_ 1 _,...,J}_ _Hj_ = _i_     <sup>_,_</sup> _wi_ + _g_ ˜( _W_ ) := _N_ _i_ =1 _vi −_ _|Pj|_ _j∈{_ 1 _,...,J}_ _Hj_ = _i_ _|Pj| |yj_ _−_ _xi|_ <sup>2</sup> A _i_ where _yj_ is the centroid of triangle _j_ and _|Pj|_ is its area. Using such Finite Element Method-friendly triangulations might prove useful when using our method side by side with crystal plasticity simulations. To generate realistic artificial microstructures, we will also employ a generalised version of Lloyd’s algorithm [71], which was introduced for the isotropic case A _i_ = Id for all _i_ in [53, Algorithm 2] in the setting of microstructure modelling. The purpose of the generalised Lloyd’s algorithm, stated in Algorithm 3, is to generate more realistic, ‘regular’ microstuctures, where the cells tend to be simply-connected, which need not be the case for APDs in general (APD cells can be disconnected and have holes). Unlike Algorithm 2, Algorithm 3 does not require seeds _X_ as an input. 8 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS <u>Algorithm</u> <u>3</u> <u>Generalised</u> <u>Lloyd’s</u> <u>algorithm</u> Input: _D_ _∈{_ 2 _,_ 3 _}_ (the dimension), Ω _⊂_ R <sup>_D_</sup> (the domain), _N_ _∈_ N (the number of grains), Λ = ( A _i_ ) <sup>_N_</sup> _i_ =1 <sup>(anisotropy</sup> <sup>matrices),</sup> <sup>_J_</sup> <sup>_∈_</sup> <sup>N</sup> <sup>(initial</sup> <sup>number</sup> <sup>of</sup> <sup>pixels/voxels),</sup> grains), Λ = ( A _i_ ) <sup>_N_</sup> _i_ =1 <sup>(anisotropy</sup> <sup>matrices),</sup> <sup>_J_</sup> <sup>_∈_</sup> <sup>N</sup> <sup>(initial</sup> <sup>number</sup> <sup>of</sup> <sup>pixels/voxels),</sup> _V_ = ( _vi_ ) <sup>_N_</sup> _i_ = <sup>(target</sup> <sup>volumes),</sup> <sup>_ε >_</sup> <sup>0</sup> <sup>(relative</sup> <sup>tolerance)</sup> <sup>and</sup> <sup>_K_</sup> <sup>_∈_</sup> <sup>N</sup> <sup>(number</sup> <sup>of</sup> _V_ = ( _vi_ ) <sup>_N_</sup> _i_ = <sup>(target</sup> <sup>volumes),</sup> <sup>_ε >_</sup> <sup>0</sup> <sup>(relative</sup> <sup>tolerance)</sup> <sup>and</sup> <sup>_K_</sup> <sup>_∈_</sup> <sup>N</sup> <sup>(number</sup> <sup>of</sup> regularisation steps). Output: The generators ( _X, W,_ Λ) of an APD optimal with respect to _V_, up to a relative error tolerance �� _|Li| −_ _vi_ �� _≤_ _εvi_ . �� _|Li| −_ _vi_ �� _≤_ _εvi_ . 1: Pick or randomly select _N_ initial seed points _X_ <sup>0</sup> = ( _x_ <sup>0</sup> _i_ <sup>)</sup> <sup>_N_</sup> _i_ 2: Set the initial guess _W_ 0 <sup>0</sup> <sup>to</sup> <sup>_W_</sup> <sup>0</sup> 0 <sup>= (0</sup> <sup>_, . . .,_</sup> <sup>0)</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_N_</sup> <sup>.</sup> 3: for _k_ = 0 _,_ 1 _, . . ., K −_ 1 do 4: Use Algorithm 2 with initial guess _W_ 0 <sup>_k_</sup> to <sup>_N_</sup> _i_ =1 <sup>_∈_</sup> <sup>Ω</sup> <sup>_N_</sup> <sup>.</sup> Use Algorithm 2 with initial guess _W_ 0 <sup>_k_</sup> to find an APD generated by ( _X_ <sup>_k_</sup> _, W_ <sup>_k_</sup> _,_ Λ) that is optimal with respect to _V_ . 5: Using the discretisation ( _Y, S_ ) generated by Algorithm 2, set _x_ <sup>_k_</sup> _i_ <sup>+1</sup> to be the discrete centroid of the _i_ th grain: <u>1</u> _x_ <sup>_k_</sup> _i_ <sup>+1</sup> = <u>�</u> _j∈{_ 1 _,...,J}_ _Hj_ = _i_ _|P_ _|_ - _|P_ _|yj,_ _j∈{_ 1 _,...,J}_ _Hj_ = _i_ thus obtaining _X_ <sup>_k_</sup> <sup>+1</sup> . 6: Set _W_ 0 <sup>_k_</sup> <sup>+1</sup> = _W_ <sup>_k_</sup> . 7: end for 8: Use Algorithm 2 with initial guess _W_ 0 <sup>_K_</sup> <sup>to find an APD generated by (</sup> <sup>_X_</sup> <sup>_K, W K,_</sup> <sup>Λ)</sup> that is optimal with respect to _V_ . Set _X_ = _X_ <sup>_K_</sup>, _W_ = _W_ <sup>_K_</sup> . 2.3.1. _Choosing_ _the_ _discretisation_ _resolution._ For a discretisation with square pixels/cubic voxels of area/volume _|P_ _|_ = _|_ Ω _|M_ <sup>_−D_</sup>, to reach the desired tolerance _ε >_ 0 in Algorithm 2, it is usually necessary that _|P_ _|_ _<_ _εvi_ for all _i_ = 1 _, . . ., N_ since this is the relative error of misassigning a single pixel/voxel to cell _i_ . For example, if _vi_ = <sup>_<u>|</u>_</sup> _N_ <sup><u>Ω</u></sup> <sup>_<u>|</u>_</sup> <sup>for</sup> <sup>all</sup> <sup>_i_</sup> <sup>(single-phase</sup> <sup>material),</sup> <sup>the</sup> <sup>theoretical</sup> <sup>lower</sup> <sup>bound</sup> <sup>_|P_</sup> <sup>_| < εvi_</sup> <sup>gives</sup> �1 _/D_ _._ (2.9) _<u>|</u>_ <u>Ω</u> _<u>|</u>_ _⇐⇒_ _M_ _>_ _M_ <sup>_D_</sup> <sup>_<_</sup> <sup>_<u>ε</u>_</sup> _N_ <sup>_<u>|</u>_</sup> <sup><u>Ω</u></sup> <sup>_<u>|</u>_</sup> - _<u>N</u>_ _ε_ In Table 1 we display the values of _M_ given by the lower bound (2.9) for various values of _N_ and _D_ for _ε_ = 0 _._ 01. _M_ _N_ 25 50 100 250 500 1000 2500 5000 10000 _<u>D</u>_ 2 50 71 100 158 224 316 500 707 1000 <u>3</u> <u>14</u> <u>17</u> <u>22</u> <u>29</u> <u>37</u> <u>46</u> <u>63</u> <u>79</u> <u>100</u> Table 1. The theoretical lower bound (2.9) on _M_, the pixel sampling resolution along the axes of the domain Ω= [0 _,_ 1] <sup>_D_</sup>, when targeting a relative volume accuracy of _ε_ = 0 _._ 01 = 1% (in a single phase material), for different choices of the number of seed points _N_ and the dimension _D_ of the domain. In practice, for most problems, choosing _M_ equal to two times the value given by the lower bound (2.9) is sufficient (see equation (2.10)). ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS 9 This may not always be sufficient, however, since changing the weights of an APD typically reassigns several pixels at the same time, and so in practice the resolution parameter _M_ is always choosen to be the smallest integer such that _<u>|</u>_ <u>Ω</u> _<u>|</u>_ _vi,_ (2.10) _M_ <sup>_D_</sup> <sup>_<_</sup> 2 <sup>_<u>εD</u>_</sup> <sup>min</sup> _i_ 2.3.2. _GPU_ _acceleration_ _and_ _kernel_ _operations._ The theoretical cost of Algorithm 1 in Section 2.3 is _O_ ( _NJ_ ), where _N_ is the number of seed points and _J_ is the number of pixels/voxels that we use to discretise the domain. For a discretisation by regular rectangular grids given by (2.6), _J_ = _M_ <sup>_D_</sup> and if _M_ satisfies (2.10), then we obtain the quadratic scaling _O_ ( _NJ_ ) = _O_ ( _N_ <sup>2</sup> ) for Algorithm 1 (and Algorithm 2 scales at least quadratically), with typically a very large prefactor. As a result, for typical values of _N_ of interest, a standard implementation of such algorithms will result in runtimes ranging from minutes to hours. In order to prevent this computation from becoming a numerical bottleneck, we turn to GPU computing. In particular, we employ the GPU acceleration architecture provided by the machine-learning library PyTorch [72] and rely on its in-house L-BFGS solver for Algorithm 2, packaged as a general minimisation tool via the PyTorch Minimize library [73]. Notably, we rely on the very fast automatic differentiation available in PyTorch to quickly compute machine-precision accurate derivatives of _g_ ˜ from (2.7). This works remarkably well and is in fact quicker than providing the gradients by hand using the formula in (2.8), even though _g_ ˜ is not everywhere differentiable - this is, however, in agreement with recent literature on this topic [74]. To avoid memory overflows when assembling the cost matrix C _∈_ R <sup>_N_</sup> <sup>_×J_</sup> in Algorithm 1, we employ the kernel operations library PyKeOps, an extension for PyTorch that provides efficient support for distance-like matrices [67]. As detailed in [65, 66, 75], turning to a PyKeOps backend brings the memory footprint of optimal transport solvers from _O_ ( _NJ_ ) to _O_ ( _N_ + _J_ ) and provides a _×_ 10 to _×_ 100 speed-up versus baseline PyTorch implementations. As will be presented in various examples, this cut down the typical runtime of our method to (tens of) seconds, making it a feasible tool for generating large samples of realistic random volume elements. We publish our code as a Python repository PyAPD [76]. 3. Numerical results Due to its speed, our implementation of the algorithms allows us to tackle several applications that, up to now, would have been considered prohibitively expensive. In what follows, we present a comprehensive list of examples showcasing the speed and the versatility of our method. With regards to speed, in Section 3.2 we present runtime tests for computing APDs for given inputs ( _X,_ Λ _, W_ ), as well as for generating optimal APDs with cells of prescribed volumes. This is followed by examples based on Electron Backscatter Diffraction (EBSD) measurements provided by Tata Steel. First, in Section 3.3, we fit optimal APDs to the EBSD data. Then, in Section 3.4, we demonstrate how to generate realistic, synthetic microstructures by sampling from a joint probability distribution of grain volumes, aspect ratios and orientations, which is obtained as a fitted kernel density estimator [77] of the EBSD data. Finally, in Section 3.5, we give an example of how to generate a complex microstructure representing a 3D-printed stainless steel. 10 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS We refer to our Python repository, PyAPD [76], where readers can find Jupyter notebooks detailing each of the examples presented. 3.1. Hardware. The speed of the method relies heavily on the GPU at our disposal. The relevant baseline against which GPUs should be compared are floating-point operations per second (FLOPS). See Table 2. GPU type Float32 FLOPS Float64 FLOPS NVIDIA A100 19.49 TFLOPS 9.746 TFLOPS NVIDIA Tesla T4 8.141 TFLOPS 0.254 TFLOPS NVIDIA GeForce RTX 4090 82.58 TFLOPS 1.29 TFLOPS AMD Radeon RX 7600 21.75 TFLOPS 0.679 TFLOPS Table 2. Comparison of FLOPS performance of various popular GPUs. A100 and Tesla T4 are professional GPUs geared towards scientific computing and machine learning, whereas the other two are commercially available and video-gaming oriented. As of October 2023, GeForce RTX 4090 is the most powerful gaming-oriented GPU available and AMD Radeon RX 7600 is a popular affordable mid-range GPU. Note the drastic decrease in performance between single precision (Float32) and double precision (Float64) arithmetic (between 30 _×_ and 65 _×_ decrease) in all cases except for A100 ( _∼_ 2 _×_ decrease). Note that 1 TFLOP denotes 10 <sup>12</sup> (1 trillion) floating point operations per second. We perform our numerical experiments on a single A100 GPU, available through the NERSC high-performance computing cluster Perlmutter (see Acknowledgements), but readers are invited to test it for themselves using a T4 Tesla GPU offered free of charge by Google Colab [78] in a notebook we provide, see [76]. 3.2. Runtime tests. We will present the following two sets of runtime tests. (a) Use of Algorithm 1 to compute an APD, i.e., the tessellation _{Li}_ <sup>_N_</sup> _i_ =1 <sup>from</sup> (2.1), for a fixed triple ( _X, W,_ Λ). (b) Use of Algorithm 2 to find optimal APDs with cells of prescribed volumes, to generate artificial single- and multi-phase microstructures in 2D and 3D. The common setup is as follows. We consider the box Ω= [0 _,_ 1] <sup>_D_</sup>, _D_ = 2 _,_ 3, with _N_ grains. If _D_ = 2, we take _N_ _∈{_ 25 _,_ 50 _,_ 100 _,_ 250 _,_ 500 _,_ 1000 _,_ 2500 _,_ 5000 _}._ (3.1) If _D_ = 3, we take _N_ _∈{_ 50 _,_ 100 _,_ 250 _,_ 500 _,_ 1000 _,_ 2500 _,_ 5000 _,_ 10000 _}._ (3.2) In each case the seed points _X_ = _{xi}_ <sup>_N_</sup> _i_ =1 <sup>are</sup> <sup>drawn</sup> <sup>randomly</sup> <sup>from</sup> <sup>the</sup> <sup>uniform</sup> distribution on [0 _,_ 1] <sup>_D_</sup>, but, in the runtime test (b), to increase numerical stability, the sampling is sequential and any new sampled point _x ∈_ Ωis accepted only if it is not too close to some previously sampled seed point _xi_, namely, if _|x−xi| > CN_ <sup>_−_</sup> <sup>1</sup> <sup>_/D_</sup>, where _C_ = 102 <sup>.</sup> <sup>This</sup> <sup>is</sup> <sup>motivated</sup> <sup>by</sup> <sup>the</sup> <sup>fact</sup> <sup>that</sup> <sup>on</sup> <sup>a</sup> <sup>regular</sup> <sup>grid</sup> <sup>containing</sup> <sup>_N_</sup> points, the seeds would be distance _N_ <sup>_−_</sup> <sup>1</sup> <sup>_/D_</sup> apart. Setting _C_ = <u>2</u> 10 <sup>ensures</sup> <sup>that</sup> <sup>it</sup> is a very mild constraint and in fact only a small fraction of the sampled points get rejected. On average, in 2D about 7% of proposed seed points get rejected, whereas ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS 11 in 3D it goes down to only about 2%. At the same time, we avoid situations where two seed points are almost exactly on top of each other. In our tests, we saw that this issue led to unusually long runtimes for some random runs, especially for large multi-phase problems with small anisotropy. Note that the sampling is done using the random number generator from the machine-learning library PyTorch and, even with the exclusion, it is almost instantaneous. We sample normalised anisotropy matrices A <sup>ˆ</sup> _i_ satisfying the constraint det A <sup>ˆ</sup> i = 1 for all _i_ . In 2D this is achieved by sampling _a_ ˆ _∼_ Uniform(1 _−_ _α,_ 1) _,_ _θ_ _∼_ Uniform(0 _, π_ ) _,_ where _α ∈_ [0 _,_ 1) is the anisotropy threshold parameter. Then we define a normalised anisotropy matrix A <sup>ˆ</sup> = A <sup>ˆ</sup> (1 _/a,_ ˆ ˆ _a, θ_ ), as descried above, where 1 _/a_ ˆ and ˆ _a_ are the major and minor axes, and _θ_ is the rotation angle. Note that setting _α_ = 0 corresponds to the fully isotropic case ( _Ai_ = Id for all _i_ ), whereas setting _α_ close to 1 means we accept any level of anisotropy. Similarly, in 3D the determinant constraint is achieved by assembling the matrices from collections (ˆ _a,_ <sup>ˆ</sup> _b,_ 1 _/_ (ˆ _a_ <sup>ˆ</sup> _b_ ) _, θ, ϕ, γ_ ), where _,_ _θ, ϕ, γ_ _∼_ Uniform(0 _,_ 2 _π_ ) _._ _a_ ˆ _∼_ Uniform(1 _−_ _α,_ 1) _,_ ˆ _b ∼_ Uniform - <u>1</u> 1 _−_ _α,_ 1 _−_ _α_ Here _a,_ ˆ <sup>ˆ</sup> _b,_ 1 _/_ (ˆ _a_ <sup>ˆ</sup> _b_ ) are the axes and _θ, ϕ, γ_ are rotation angles and again _α_ _∈_ [0 _,_ 1) is the anisotropy threshold parameter, with _α_ = 0 again corresponding to the isotropic case. In both the 2D and 3D examples, we always report runtimes for three choices of the anisotropy threshold parameter, namely _α_ = 0 _,_ 0 _._ 3 _,_ 0 _._ 7. In runtime test (b) we set the relative error tolerance of the areas/volumes of the grains to be 1%, meaning that _ε_ = 0 _._ 01 (see equation (2.5)). We discretise Ωwith _M_ <sup>_D_</sup> square pixels/cubic voxels (see (2.6)). The resolution parameter _M_ is chosen as discussed in Section 2.3.1. This choice ensures that the area/volume of each pixel/voxel is less than _ε_ times the area/volume of the smallest grain, and thus depends on whether the APD is single-phase or multi-phase. In the single-phase examples the areas/volumes _V_ = ( _vi_ ) <sup>_N_</sup> _i_ =1 <sup>of</sup> <sup>grains</sup> <sup>are</sup> <sup>equal,</sup> _vi_ = _|_ Ω _|/N_ = 1 _/N_ for all _i_ . In this case, when _D_ = 3 and _N_ = 10 _,_ 000, setting the inverse pixel length parameter to _M_ = 200 (which results in _M_ <sup>_D_</sup> = 8 _,_ 000 _,_ 000 voxels) lets us achieve the 1% tolerance reliably. In the multi-phase examples the areas/volumes are drawn from a lognormal distribution with shape parameter _σ_ = 1 _._ 0 and location parameter _µ_ = 0 _._ 5 and subsequently normalised so that the total sum of the areas/volumes is _|_ Ω _|_ = 1. It follows from (2.10) that for multi-phase problems, the value of _M_ has to be increased to reflect the size of the smallest grain. Single precision arithmetic is employed for runtime test (a) (computing fixed APDs via Algorithm 1) and double precision arithmetic is used for runtime test (b) (finding optimal APDs via Algorithm 2). The switch to double precision is necessary to avoid precision loss and to achieve the desired error tolerance _ε_ . To avoid random effects, in all runtime tests we report the mean runtime and the full range of observed runtimes over ten random runs. The results are presented in Figure 2 and Figure 3. Notably, with our implementation we are able to maintain a near 100% GPU usage throughout. Hence, if these tests were run on different GPUs, the relative timing difference would closely follow the relative differences in performance reported in Table 2. It is also for this reason 12 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS (b) 3D = 0.0 = 0.3 = 0.7 <u>10</u> <sup>~~2~~</sup> <u>10</u> <sup>~~3~~</sup> <u>10</u> <sup>~~4~~</sup> Number of grains, N 10 <sup>1</sup> 10 <sup>0</sup> 10 1 10 2 10 3 (a) 2D = 0.0 = 0.3 = 0.7 <u>10</u> <sup>~~2~~</sup> <u>10</u> <sup>~~3~~</sup> Number of grains, N 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 1 10 2 10 3 Figure 2. Runtime test (a). We use Algorithm 1 to compute APDs in 2D (A) and 3D (B), with weights _W_ set to zero and seeds _X_ and anisotropy matrices Λ sampled randomly as described at the start of Section 3.2. The runtimes are averaged over 10 random runs. The computation was performed on a single A100 GPU with single precision (solid lines) and compared with a reference run on a CPU (dashed lines). The GPU computation was about 1000-times faster than the CPU computation. By checking against the same computation in double precision, we have verified that even for the largest problems employing single precision arithmetic to compute an APD does not lead to precision loss and the miss-assignment of pixels is minuscule. Note that the runtimes are essentially independent of the anisotropy parameter _α_ . that our implementation is so fast. To make this point clear, for runtime test (a) we also report runtimes in a CPU-only setup, performed on the AMD EPYC 7713 CPU, again provided by NERSC. The algorithm runs about 1000 times faster on the GPU than on the CPU. From Figure 2 we see that we can generate APDs with 5000 grains in 2D in the order of 10 <sup>_−_</sup> <sup>2</sup> seconds, and 10 _,_ 000 grains in 3D in the order of 10 <sup>_−_</sup> <sup>1</sup> seconds. From Figure 3 we observe that we can generate multi-phase, anisotropic ( _α_ _>_ 0), optimal APDs (with grains of prescribed volumes) with 5000 grains in 2D in about 1 minute or less, and 10 _,_ 000 grains in 3D in the order of 10 <sup>2</sup> seconds. The runtime for multiphase APDs is longer than that for single-phase APDs, as expected. Surprisingly, the runtime _decreases_ as the anisotropy parameter _α_ _increases_ . In other words, it is slower to compute isotropic power diagrams than anisotropic diagrams using our method. This is not a problem, however, since for isotropic power diagrams (where the cells are much simpler, namely convex polytopes with flat boundaries) there are much faster algorithms and implementations, such as [51, 53, 64]. For example, a 3D multi-phase, optimal _isotropic_ power diagram with 10 _,_ 000 grains of prescribed volumes can be computed in less than 20 seconds on a standard CPU laptop [54, 79], and even faster implementations exist, such as [80] and [81]. However, these methods do not apply to _anisotropic_ power diagrams, for which there is currently no faster alternative to our library PyAPD [76], as far as we are aware. 3.3. Fitting APDs to EBSD measurements. In the following example, we work with an experimentally measured microstructure obtained using the EBSD technique ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS 13 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 1 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 1 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 1 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 1 <u>2D, single-phase</u> = 0.0 = 0.3 = 0.7 <u>10</u> <sup>~~2~~</sup> <u>10</u> <sup>~~3~~</sup> Number of grains, N <u>2D, multi-phase</u> = 0.0 = 0.3 = 0.7 <u>10</u> <sup>~~2~~</sup> <u>10</u> <sup>~~3~~</sup> Number of grains, N <u>3D, single-phase</u> = 0.0 = 0.3 = 0.7 <u>10</u> <sup>~~2~~</sup> <u>10</u> <sup>~~3~~</sup> <u>10</u> <sup>~~4~~</sup> Number of grains, N <u>3D, multi-phase</u> = 0.0 = 0.3 = 0.7 <u>10</u> <sup>~~2~~</sup> <u>10</u> <sup>~~3~~</sup> <u>10</u> <sup>~~4~~</sup> Number of grains, N Figure 3. Runtime test (b). We use Algorithm 2 to find optimal APDs with cells of prescribed volumes on a single A100 GPU with double precision, in 2D (top two rows) and 3D (bottom two rows), single phase (1st and 3rd rows) and multi phase (2nd and 4th rows), as described in Section 3.2. On the right we plot optimal APDs when _N_ = 5000 (in 2D) and _N_ = 10 _,_ 000 (in 3D) with anisotropy parameter _α_ = 0 _._ 7, with colours, in the absence of crystallographic data, assigned randomly. The runtimes are averaged over 10 random runs. The areas/volumes of the grains are accurate to 1%. 14 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS specifically for this study. The initial microstructure and crystallographic texture of the material were measured across the thickness (ND - normal direction) perpendicular to the rolling direction (RD). We performed the EBSD measurements on an area located at the mid-thickness of the rolling plane (ND-RD plane). The EBSD scan area is 901 _._ 5 µm _×_ 999 _._ 52 µm, and it was measured with a step size of 1.0 and 0.85 µm in the rolling and normal directions, respectively. This results in 1,039,754 pixels (901 _×_ 1154). Standard metallographic techniques were used to prepare the specimen for characterisation. Analysis of the EBSD data was performed using the TSL OIM software. The material used in the present study is a low carbon steel. Following a standard postprocessing procedure done in the MTEX toolbox [82], we obtain a grain file of _N_ = 4587 grains containing information about the areas of the grains _V_ = ( _vi_ ) <sup>_N_</sup> _i_ =1 <sup>;</sup> <sup>the</sup> <sup>locations</sup> <sup>of</sup> <sup>the</sup> <sup>centroids</sup> <sup>of</sup> <sup>the</sup> <sup>grains</sup> <sup>(</sup> <sup>_ci_</sup> <sup>)</sup> <sup>_N_</sup> _i_ =1 <sup>;</sup> <sup>the</sup> <sup>major</sup> <sup>_N_</sup> _i_ =1 <sup>;</sup> <sup>the</sup> <sup>locations</sup> <sup>of</sup> <sup>the</sup> <sup>centroids</sup> <sup>of</sup> <sup>the</sup> <sup>grains</sup> <sup>(</sup> <sup>_ci_</sup> <sup>)</sup> <sup>_N_</sup> _i_ the grains _V_ = ( _vi_ ) <sup>_N_</sup> _i_ =1 <sup>;</sup> <sup>the</sup> <sup>locations</sup> <sup>of</sup> <sup>the</sup> <sup>centroids</sup> <sup>of</sup> <sup>the</sup> <sup>grains</sup> <sup>(</sup> <sup>_ci_</sup> <sup>)</sup> <sup>_N_</sup> _i_ =1 <sup>;</sup> <sup>the</sup> <sup>major</sup> and minor axes and orientations of the ellipses best describing the anisotropy of the grains, thus giving rise to a set of anisotropy matrices Λ = ( A _i_ ) <sup>_N_</sup> _i_ =1 <sup>.</sup> <sup>We</sup> <sup>note</sup> <sup>here</sup> grains, thus giving rise to a set of anisotropy matrices Λ = ( A _i_ ) <sup>_N_</sup> _i_ =1 <sup>.</sup> <sup>We</sup> <sup>note</sup> <sup>here</sup> that the ratio of areas <sup><u>max</u></sup> min _i_ <sup>_<u>i</u>_</sup> _v_ <sup>_<u>v</u>_</sup> _i_ <sup>_<u>i</u>_</sup> <sup>_>_</sup> <sup>188,</sup> <sup>which</sup> <sup>makes</sup> <sup>reaching</sup> <sup>our</sup> <sup>target</sup> <sup>accuracy</sup> <sup>for</sup> the smallest grains particularly challenging. The original EBSD file, the script for postprocessing in MTEX and the resulting grain file are available through the library PyAPD [76]. We fit an optimal APD to the grain file data as follows. We take the seeds _xi_ of the APD to be the centroids returned by MTEX, _xi_ = _ci_ for all _i_ . Similarly, we take the anisotropy matrices A _i_ of the APD to be those returned by MTEX. The weights _wi_ are found using Algorithm 2, to ensure that the APD cells _Li_ have areas _vi_ (given by MTEX) up to the relative error tolerance _ε_ = 0 _._ 01. The inverse pixel length parameter _M_ is chosen according to (2.10). The results are presented in Figure 4. The optimal APD that we obtain is 89.53% accurate, in the sense that this is the proportion of pixels that are assigned to the correct grain, while achieving a 1% deviation in terms of the areas of the grains. For reference, the heuristic guess [59] achieves 89.83% pixel-level accuracy, but the relative error of the areas is 380%. This is also the reason why the heuristic guess is not always a great initial guess for Algorithm 2 - most of the computation time is spent getting the areas of the small grains right. The proportion of the pixels that are correctly assigned could be increased by optimising the choice of _xi_ and A _i_, rather than taking them directly from the data, as in for example [61], where accuracies of 93-96% are reported (for a different data set), but this comes at a greater computational cost. 3.4. Generating realistic synthetic microstructures. We now turn our attention to generating artificial microstructures that are statistically equivalent to the EBSD data from Section 3.3 with respect to the joint distribution of the aspect ratios _ai/bi_, orientations _θi_, and areas _vi_ of the grains. To estimate the joint distribution of the grains in the grain file data, we use the multivariate variant of kernel density estimation implemented in OpenTurns [83]. The fit and the scatter matrix plot in Figure 4 both reveal the statistical dependence between the grain properties. In particular, we observe that high anisotropy is mostly observed for grains with small area/volume. Following the fitting, we sample ( _vi, ai/bi, θi_ ) from the resulting joint distribution and use these to construct the anisotropy matrices A _i_ = A (ˆ _ai,_ <sup>ˆ</sup> _bi, θi_ ); see equation (2.2). Then we employ Algorithm 3 to obtain an optimal APD with grains of volume _vi_ . The reason for using Algorithm 3 is to generate more ‘regular’ APDs; the algorithm has the effect of significantly reducing the number of disconnected grains ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS 15 (a) (b) (c) (d) Figure 4. Fitting an optimal APD to EBSD data (see Section 3.3). (A): The original EBSD scan. The grains are coloured according to their crystallographic orientation. To be precise, this is the IPF color map parallel to the loading (vertical) direction for the original EBSD data. (B): The corresponding IPF color map for the optimal APD. The relative error tolerance is _ε_ = 0 _._ 01 = 1%, and the APD took 50 _._ 5 s to generate. (C): A scatter matrix plot of the statistical grain level data from the postprocessed EBSD data. _Ellipse_ _aspect_ _ratio_ refers to _a/b_ and _ellipse_ _angle_ refers to _θ_ in equation (2.2). (D): The postprocessed data illustrated in the form of centroids (red dots) and ellipses. and non-simply connected grains, or eliminating them altogether. (Note that Algorithm 3 does not require any input for the seeds _xi_ .) To assess whether the artificial sample is statistically equivalent to the real EBSD data, we perform the two-sample Kolmogorov-Smirnov test for marginal distributions using OpenTurns [83]. The results are presented in Figure 5. 3.5. Modelling challenging geometries. In our final example, inspired by [84, Section 3.3], to showcase the versatility of the method with respect to the grain geometries that it can produce, we create a highly-anisotropic APD imitating a 16 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS (a) ~~(b)~~ Figure 5. Generating an artificial microstructure (see Section 3.4). (A): A scatter matrix plot of the artificially generated data, sampled from a distribution fitted to the EBSD data in Figure 4, with colours representing density (high in bright colours, low in dark). (B): The resulting optimal APD (with tolerance _ε_ = 0 _._ 02 = 2%) was obtained with Algorithm 3 with 5 iterations of Lloyd’s algorithm and the initial seed points _X_ <sup>0</sup> drawn randomly from the uniform distribution on Ω. This took 266 s to generate. In the absence of crystallographic input, the colours are assigned randomly. To compare the artificial sample with the real EBSD data, we have run the two-sample Kolmogorov-Smirnov test for marginal distributions. The returned _p_ -values of 0 _._ 973 (grain areas), 0 _._ 968 (ellipse aspect ratios) and 0 _._ 706 (ellipse angles) show a high degree of statistical equivalence. 3D-printed stainless steel. This additively-manufactured material from [85] is a bidirectionally-printed single-track thickness 316L stainless steel wall, built by directed energy deposition. The results are presented in Figure 6. 4. Discussion In this section we will discuss how our methods compare and fit in with the existing body of literature and provide an outlook about future work. Several interesting APD-based approaches to the modelling of microstructure in metals have been introduced and explored in recent years. Starting with [55], and more recently in [61], the authors propose various techniques for converting an EBSD data grain map, which assigns each pixel to a grain, into an APD in such a way that the number of misassigned pixels is minimised. The control over the area/volume of the APD grains is introduced via approximate _weight-constraints_, and the resulting optimisation problem is a linear programming problem. Still in the realm of trying to fit an APD directly to pixel-level data, authors in [57] propose a fast stochastic optimisation-based alternative to the linear programming approaches introduced in [55]. Yet another approach to direct fitting is the so-called _gradient_ _descent-based_ ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS 17 (a) (b) Figure 6. (A): The IPF color map parallel to the building direction for the EBSD scan of a bidirectionally-printed single-track thickness 316L stainless steel wall, with the inset zooming in on 5 phases. This figure is taken directly from [85]. (B): An example APD imitating such a 5-phase geometry. It is generated by supplying anisotropy matrices corresponding to thin ellipses tilted at prescribed angles, and centroids and volumes ensuring that the ellipses fill the space well. We also add several random small grains and run a few iterations Lloyds algorithm (see Algorithm 3). The overall runtime to generate it was 3 s. _tessellation_ _fitting_ introduced in [86] in the broader context of generating realistic artificial Li-ion electrode particle architectures, and extended to APDs in [60]. All of the methods mentioned so far focus on minimising the number of misassigned pixels. In the example presented in Section 3.3 we present an alternative approach of first post-processing the EBSD pixel data to obtain a grain file, followed by employing Algorithm 2 to minimise the area/volume error. It does not explicitly focus on the pixel-level mismatch, but nonetheless seems to yield a similar (but slightly lower) level of accuracy. On the other hand, we benefit from the precise fitting of the volumes, and also, thanks to the GPU-friendly implementation, from a much decreased runtime. At the same time, any other approach in the literature where APDs need to be computed may benefit from our GPU-friendly-implementation of Algorithm 1, which computes APDs three orders of magnitude faster than a baseline CPU implementation, as we report in Figure 2. Another set of methods in literature for fitting APDs to EBSD data uses a heuristic guess for ( _X, W,_ Λ) and avoids solving an optimisation problem altogether; see [59, 62]. This carries next to no computational cost and gives a similar (but slightly lower) pixel misassigment error. However, as we have reported in Section 3.3, the heuristic guess for _W_ from [59] appears to struggle to get the volumes of the grains right. On the other hand, using this heuristic as an initial guess seem to reliably improve the runtime of Algorithm 2 when employed to fit an optimal APD to real EBSD data. We also wish to mention the work [87], in which the authors considered a grain growth model using anisotropic Voronoi diagrams (weights _wi_ all equal to zero). In light of the recent work on grain growth models using APDs in [62], it would be interesting to see how our optimal APDs can be used to infer quantities such as the growth velocity of each nucleated grain. An area in which we think our method is useful is the reliable generation of samples of realistic synthetic microstructures with prescribed statistical properties, such as grain sizes and anisotropy. Existing approaches, such as Dream3D [88], Neper 18 ANISOTROPIC POWER DIAGRAMS AND POLYCRYSTALS [18] and Kanapy [89] use (isotropic) power-diagram-based algorithms. Since in any power diagram the spatial anisotropy of grains is determined primarily by the relative location of seed points of neighbouring grains many iterations of an optimisation algorithm may be needed to produce a power diagram with a desired distribution of anisotropy. In the case of Neper, it is reported in [41] that it took about 4.8 hours to generate a sample with _N_ = 10 _,_ 000 grains in 3D with prescribed anisotropy of grains. Based on the timings reported in Figure 3, our method is expected to do so in about 5-10 minutes. (Note, however, that the runtimes in [41] were produced using CPU hardware from six years ago, so this is not an entirely fair comparison.) An alternative approach is to employ deep-learning tools (GANs) to generate artificial microstructures, as done in [90] and in DRAGen [91]. We further note that there is interest in this task in biology [92]. Moving forward, we would like to accelerate our methods further by employing adaptable pixel/voxel sizes. We believe that tools for identifying pixels/voxels at the boundary of a grain developed in [58] will prove useful in this regard. There are some similar ideas in the optimal transport community too [93]. We expect the idea of coresets developed in [61] to be similarly helpful in addressing this challenge. Our library already allows users to manually supply a non-uniform discretisation of the domain Ω, but it is key for such a procedure to be automated. A local refinement of the discretisation can be implemented in a GPU-friendly way by employing the idea of masking. As demonstrated in Section 3.4, our method exhibits remarkable time efficiency in generating realistic RVEs with a large number of grains and authentic morphology. This capability opens the door to systematically generating a large number of carefully designed RVEs, particularly required for machine learning and data science applications. The demand for creating a substantial quantity of representative microstructures is fundamental for conducting comprehensive studies in these fields. Given the speed of our method and recent work on employing machine-learning tools to learn the evolution of a two-phase microstructure [94], we plan to study the evolution of a microstructure in steel under deformation, as done recently in [13]. The evolution of the microstructure could be modelled as a time evolution of an optimal APD, generated by ( _X_ <sup>_t_</sup> _, W_ <sup>_t_</sup> _,_ Λ <sup>_t_</sup> ) and the set of target volumes ( _V_ <sup>_t_</sup> ), where _t_ denotes time. Finally, apart from the applications in microstructure modelling, we mention that it would be easy to modify our library PyAPD [76] to solve quite general semidiscrete optimal transport problems with non-quadratic costs, which might be beneficial to the optimal transport community. Currently our code is limited to the anisotropic transport cost _c_ ( _y, xi_ ) = _|y −_ _xi|_ <sup>2</sup> A _i_ <sup>,</sup> <sup>but</sup> <sup>it</sup> <sup>could</sup> <sup>be</sup> <sup>modified</sup> <sup>to</sup> <sup>work</sup> <sup>for</sup> any cost that can be represented in PyKeOps [67] as a LazyTensor. Acknowledgements DB and MB would like to acknowledge the support of the Engineering and Physical Sciences Research Council in the UK, as part of the grant EP/V00204X/1 Mathematical Theory of Polycrystalline Materials. Part of this research was performed while MB was a visiting fellow at the Institute for Pure and Applied Mathematics (IPAM), as part of the long program _New Mathematics for the Exascale:_ _Applications_ _to_ _Materials_ _Science_ . IPAM is supported by the U.S. National Science Foundation (Grant No. DMS-1925919). As a result, this research used resources of the National Energy Research Scientific Computing Center (NERSC), a U.S. Department REFERENCES 19 of Energy Office of Science User Facility located at Lawrence Berkeley National Laboratory, operated under Contract No. DE-AC02-05CH11231 using NERSC award DDR-ERCAP0025579. References [1] D. Raabe et al. “Current challenges and opportunities in microstructure-related properties of advanced high-strength steels”. In: _Metallurgical_ _and_ _Materials_ _Transactions_ _A_ 51 (2020), pp. 5517–5586. doi: `[10.1007/s11661-020-05947-](https://doi.org/10.1007/s11661-020-05947-2)` `[2](https://doi.org/10.1007/s11661-020-05947-2)` . [2] F. Roters et al. “DAMASK–The D¨usseldorf Advanced Material Simulation Kit for modeling multi-physics crystal plasticity, thermal, and damage phenomena from the single crystal up to the component scale”. In: _Computational Materials_ _Science_ 158 (2019), pp. 420–478. doi: `[10.1016/j.commatsci.2018.04.030](https://doi.org/10.1016/j.commatsci.2018.04.030)` . [3] J. R. Mianroodi, N. H. Siboni, and D. Raabe. “Teaching solid mechanics to artificial intelligence—a fast solver for heterogeneous materials”. In: _Npj_ _Com-_ _putational_ _Materials_ 7.1 (2021), p. 99. doi: `[10.1038/s41524-021-00571-z](https://doi.org/10.1038/s41524-021-00571-z)` . [4] M. S. Khorrami et al. “An artificial neural network for surrogate modeling of stress fields in viscoplastic polycrystalline materials”. In: _npj_ _Computational_ _Materials_ 9.1 (2023), p. 37. doi: `[10.1038/s41524-023-00991-z](https://doi.org/10.1038/s41524-023-00991-z)` . [5] F. Roters et al. “Overview of constitutive laws, kinematics, homogenization and multiscale methods in crystal plasticity finite-element modeling: Theory, experiments, applications”. In: _Acta materialia_ 58.4 (2010), pp. 1152–1211. doi: `[10.1016/j.actamat.2009.10.058](https://doi.org/10.1016/j.actamat.2009.10.058)` . [6] M. Dao and M. Li. “A micromechanics study on strain-localization-induced fracture initiation in bending using crystal plasticity models”. In: _Philosophical_ _Magazine_ _A_ 81.8 (2001), pp. 1997–2020. doi: `[10.1080/01418610108216649](https://doi.org/10.1080/01418610108216649)` . [7] C. C. Tasan et al. “Strain localization and damage in dual phase steels investigated by coupled in-situ deformation experiments and crystal plasticity simulations”. In: _International_ _Journal_ _of_ _Plasticity_ 63 (2014), pp. 198–210. doi: `[10.1016/j.ijplas.2014.06.004](https://doi.org/10.1016/j.ijplas.2014.06.004)` . [8] M. Diehl et al. “Coupled crystal plasticity–phase field fracture simulation study on damage evolution around a void: pore shape versus crystallographic orientation”. In: _Jom_ 69 (2017), pp. 872–878. doi: `[10.1007/s11837-017-2308-8](https://doi.org/10.1007/s11837-017-2308-8)` . [9] M. Kasemer and P. Dawson. “A finite element methodology to incorporate kinematic activation of discrete deformation twins in a crystal plasticity framework”. In: _Computer Methods in Applied Mechanics and Engineering_ 358 (2020), p. 112653. doi: `[10.1016/j.cma.2019.112653](https://doi.org/10.1016/j.cma.2019.112653)` . [10] N. Jia et al. “Non-crystallographic shear banding in crystal plasticity FEM simulations: Example of texture evolution in _α_ -brass”. In: _Acta_ _Materialia_ 60.3 (2012), pp. 1099–1115. doi: `[10.1016/j.actamat.2011.10.047](https://doi.org/10.1016/j.actamat.2011.10.047)` . [11] A. K. Kanjarla, P. Van Houtte, and L. Delannay. “Assessment of plastic heterogeneity in grain interaction models using crystal plasticity finite element method”. In: _International_ _Journal_ _of_ _Plasticity_ 26.8 (2010), pp. 1220–1233. doi: `[10.1016/j.ijplas.2009.05.005](https://doi.org/10.1016/j.ijplas.2009.05.005)` . [12] K. Sedighiani et al. “Large-deformation crystal plasticity simulation of microstructure and microtexture evolution through adaptive remeshing”. In: _In-_ _ternational_ _Journal_ _of_ _Plasticity_ 146 (2021), p. 103078. doi: `[10 . 1016 / j .](https://doi.org/10.1016/j.ijplas.2021.103078)` `[ijplas.2021.103078](https://doi.org/10.1016/j.ijplas.2021.103078)` . 20 REFERENCES [13] K. Sedighiani et al. “Crystal plasticity simulation of in-grain microstructural evolution during large deformation of IF-steel”. In: _Acta_ _Materialia_ 237 (2022), p. 118167. doi: `[10.1016/j.actamat.2022.118167](https://doi.org/10.1016/j.actamat.2022.118167)` . [14] D.-K. Kim et al. “Mesoscopic coupled modeling of texture formation during recrystallization considering stored energy decomposition”. In: _Computational_ _Materials_ _Science_ 129 (2017), pp. 55–65. doi: `[10.1016/j.commatsci.2016.](https://doi.org/10.1016/j.commatsci.2016.11.048)` `[11.048](https://doi.org/10.1016/j.commatsci.2016.11.048)` . [15] K. Traka et al. “Topological aspects responsible for recrystallization evolution in an IF-steel sheet–Investigation with cellular-automaton simulations”. In: _Computational_ _Materials_ _Science_ 198 (2021), p. 110643. doi: `[10.1016/j.](https://doi.org/10.1016/j.commatsci.2021.110643)` `[commatsci.2021.110643](https://doi.org/10.1016/j.commatsci.2021.110643)` . [16] V. Shah et al. “Coupling crystal plasticity and cellular automaton models to study meta-dynamic recrystallization during hot rolling at high strain rates”. In: _Materials_ _Science_ _and_ _Engineering:_ _A_ 849 (2022), p. 143471. doi: `[10.1016/](https://doi.org/10.1016/j.msea.2022.143471)` `[j.msea.2022.143471](https://doi.org/10.1016/j.msea.2022.143471)` . [17] L. Chen et al. “An integrated fast Fourier transform-based phase-field and crystal plasticity approach to model recrystallization of three dimensional polycrystals”. In: _Computer Methods in Applied Mechanics and Engineering_ 285 (2015), pp. 829–848. doi: `[10.1016/j.cma.2014.12.007](https://doi.org/10.1016/j.cma.2014.12.007)` . [18] R. Quey, P. Dawson, and F. Barbe. “Large-scale 3D random polycrystals for the finite element method: Generation, meshing and remeshing”. In: _Com-_ _puter_ _Methods_ _in_ _Applied_ _Mechanics_ _and_ _Engineering_ 200.17–20 (Apr. 2011), pp. 1729–1745. issn: 0045-7825. doi: `[10.1016/j.cma.2011.01.002](https://doi.org/10.1016/j.cma.2011.01.002)` . [19] M. Sachtleber, Z. Zhao, and D. Raabe. “Experimental investigation of plastic grain interaction”. In: _Materials_ _Science_ _and_ _Engineering:_ _A_ 336.1–2 (Oct. 2002), pp. 81–87. issn: 0921-5093. doi: `[10.1016/s0921-5093(01)01974-8](https://doi.org/10.1016/s0921-5093%0x2801%0x2901974-8)` . [20] D. Raabe et al. “Grain-scale micromechanics of polycrystal surfaces during plastic straining”. In: _Acta_ _Materialia_ 51.6 (Apr. 2003), pp. 1539–1560. issn: 1359-6454. doi: `[10.1016/s1359-6454(02)00557-8](https://doi.org/10.1016/s1359-6454%0x2802%0x2900557-8)` . [21] T. Bieler et al. “The role of heterogeneous deformation on damage nucleation at grain boundaries in single phase metals”. In: _International_ _Journal_ _of_ _Plasticity_ 25.9 (Sept. 2009), pp. 1655–1683. issn: 0749-6419. doi: `[10.1016/j.ijplas.](https://doi.org/10.1016/j.ijplas.2008.09.002)` `[2008.09.002](https://doi.org/10.1016/j.ijplas.2008.09.002)` . [22] K. Sedighiani et al. “An efficient and robust approach to determine material parameters of crystal plasticity constitutive laws from macro-scale stress–strain curves”. In: _International Journal of Plasticity_ 134 (Nov. 2020), p. 102779. issn: 0749-6419. doi: `[10.1016/j.ijplas.2020.102779](https://doi.org/10.1016/j.ijplas.2020.102779)` . [23] K. Sedighiani et al. “Determination and analysis of the constitutive parameters of temperature-dependent dislocation-density-based crystal plasticity models”. In: _Mechanics_ _of_ _Materials_ 164 (Jan. 2022), p. 104117. issn: 0167-6636. doi: `[10.1016/j.mechmat.2021.104117](https://doi.org/10.1016/j.mechmat.2021.104117)` . [24] P. Eisenlohr et al. “A spectral method solution to crystal elasto-viscoplasticity at finite strains”. In: _International_ _Journal_ _of_ _Plasticity_ 46 (July 2013), pp. 37– 53. issn: 0749-6419. doi: `[10.1016/j.ijplas.2012.09.012](https://doi.org/10.1016/j.ijplas.2012.09.012)` . [25] D. S. Bulgarevich et al. “Crystal plasticity simulations with representative volume element of as-build laser powder bed fusion materials”. In: _Scientific_ _Re-_ _ports_ 13.1 (Nov. 2023). issn: 2045-2322. doi: `[10.1038/s41598-023-47651-2](https://doi.org/10.1038/s41598-023-47651-2)` . [26] P. Shanthraj et al. “Numerically robust spectral methods for crystal plasticity simulations of heterogeneous materials”. In: _International_ _Journal_ _of_ _Plasticity_ REFERENCES 21 66 (Mar. 2015), pp. 31–45. issn: 0749-6419. doi: `[10.1016/j.ijplas.2014.](https://doi.org/10.1016/j.ijplas.2014.02.006)` `[02.006](https://doi.org/10.1016/j.ijplas.2014.02.006)` . [27] H. Zhang et al. “A virtual laboratory using high resolution crystal plasticity simulations to determine the initial yield surface for sheet metal forming operations”. In: _International_ _Journal_ _of_ _Plasticity_ 80 (May 2016), pp. 111–138. issn: 0749-6419. doi: `[10.1016/j.ijplas.2016.01.002](https://doi.org/10.1016/j.ijplas.2016.01.002)` . [28] O. Diard et al. “Evaluation of finite element based analysis of 3D multicrystalline aggregates plasticity”. In: _International_ _Journal_ _of_ _Plasticity_ 21.4 (Apr. 2005), pp. 691–722. issn: 0749-6419. doi: `[10.1016/j.ijplas.2004.05.017](https://doi.org/10.1016/j.ijplas.2004.05.017)` . [29] H. Lim et al. “Investigating mesh sensitivity and polycrystalline RVEs in crystal plasticity finite element simulations”. In: _International Journal of Plasticity_ 121 (Oct. 2019), pp. 101–115. issn: 0749-6419. doi: `[10.1016/j.ijplas.2019.06.](https://doi.org/10.1016/j.ijplas.2019.06.001)` `[001](https://doi.org/10.1016/j.ijplas.2019.06.001)` . [30] H. Ritz and P. R. Dawson. “Sensitivity to grain discretization of the simulated crystal stress distributions in FCC polycrystals”. In: _Modelling_ _and_ _Simulation_ _in_ _Materials_ _Science_ _and_ _Engineering_ 17.1 (Nov. 2008), p. 015001. issn: 1361651X. doi: `[10.1088/0965-0393/17/1/015001](https://doi.org/10.1088/0965-0393/17/1/015001)` . [31] G. Sarma and P. Dawson. “Effects of interactions among crystals on the inhomogeneous deformations of polycrystals”. In: _Acta_ _Materialia_ 44.5 (May 1996), pp. 1937–1953. issn: 1359-6454. doi: `[10.1016/1359-6454(95)00309-6](https://doi.org/10.1016/1359-6454%0x2895%0x2900309-6)` . [32] T. Vermeij et al. “A quasi-2D integrated experimental–numerical approach to high-fidelity mechanical analysis of metallic microstructures”. In: _Acta_ _Mate-_ _rialia_ 264 (Jan. 2024), p. 119551. issn: 1359-6454. doi: `[10.1016/j.actamat.](https://doi.org/10.1016/j.actamat.2023.119551)` `[2023.119551](https://doi.org/10.1016/j.actamat.2023.119551)` . [33] F. Barbe et al. “Three-dimensional characterization of strain localization bands in high-resolution elastoplastic polycrystals”. In: _Mechanics_ _Research_ _Commu-_ _nications_ 36.7 (Oct. 2009), pp. 762–768. issn: 0093-6413. doi: `[10.1016/j.](https://doi.org/10.1016/j.mechrescom.2009.06.002)` `[mechrescom.2009.06.002](https://doi.org/10.1016/j.mechrescom.2009.06.002)` . [34] L. Liu et al. “An integrated experimental-numerical study of martensite/ferrite interface damage initiation in dual-phase steels”. In: _Scripta_ _Materialia_ 239 (Jan. 2024), p. 115798. issn: 1359-6462. doi: `[10.1016/j.scriptamat.2023.](https://doi.org/10.1016/j.scriptamat.2023.115798)` `[115798](https://doi.org/10.1016/j.scriptamat.2023.115798)` . [35] Z. Sun et al. “A large-volume 3D EBSD study on additively manufactured 316L stainless steel”. In: _Scripta_ _Materialia_ 238 (Jan. 2024), p. 115723. issn: 1359-6462. doi: `[10.1016/j.scriptamat.2023.115723](https://doi.org/10.1016/j.scriptamat.2023.115723)` . [36] H. Pirgazi, S. Ghodrat, and L. A. Kestens. “Three-dimensional EBSD characterization of thermo-mechanical fatigue crack morphology in compacted graphite iron”. In: _Materials_ _Characterization_ 90 (Apr. 2014), pp. 13–20. issn: 10445803. doi: `[10.1016/j.matchar.2014.01.015](https://doi.org/10.1016/j.matchar.2014.01.015)` . [37] M. Ghoncheh et al. “On the solidification characteristics, deformation, and functionally graded interfaces in additively manufactured hybrid aluminum alloys”. In: _International_ _Journal_ _of_ _Plasticity_ 133 (Oct. 2020), p. 102840. issn: 0749-6419. doi: `[10.1016/j.ijplas.2020.102840](https://doi.org/10.1016/j.ijplas.2020.102840)` . [38] M. Godec et al. “Quantitative multiscale correlative microstructure analysis of additive manufacturing of stainless steel 316L processed by selective laser melting”. In: _Materials Characterization_ 160 (Feb. 2020), p. 110074. issn: 10445803. doi: `[10.1016/j.matchar.2019.110074](https://doi.org/10.1016/j.matchar.2019.110074)` . 22 REFERENCES [39] Z. Fan et al. “Simulation of polycrystalline structure with Voronoi diagram in Laguerre geometry based on random closed packing of spheres”. In: _Computa-_ _tional Materials Science_ 29.3 (2004), pp. 301–308. doi: `[10.1016/j.commatsci.](https://doi.org/10.1016/j.commatsci.2003.10.006)` `[2003.10.006](https://doi.org/10.1016/j.commatsci.2003.10.006)` . [40] A. Lyckegaard et al. “On the use of Laguerre tessellations for representations of 3D grain structures”. In: _Advanced_ _Engineering_ _Materials_ 13.3 (2011), pp. 165– 170. doi: `[10.1002/adem.201000258](https://doi.org/10.1002/adem.201000258)` . [41] R. Quey and L. Renversade. “Optimal polyhedral description of 3D polycrystals: Method and application to statistical and synchrotron X-ray diffraction data”. In: _Computer_ _Methods_ _in_ _Applied_ _Mechanics_ _and_ _Engineering_ 330 (2018), pp. 308–333. doi: `[10.1016/j.cma.2017.10.029](https://doi.org/10.1016/j.cma.2017.10.029)` . [42] H. Imai, M. Iri, and K. Murota. “Voronoi diagram in the Laguerre geometry and its applications”. In: _SIAM_ _Journal_ _on_ _Computing_ 14.1 (1985), pp. 93–105. doi: `[10.1137/0214006](https://doi.org/10.1137/0214006)` . [43] F. Aurenhammer. “Power diagrams: properties, algorithms and applications”. In: _SIAM Journal on Computing_ 16.1 (1987), pp. 78–96. doi: `[10.1137/0216006](https://doi.org/10.1137/0216006)` . [44] P. Dong. “Generating and updating multiplicatively weighted Voronoi diagrams for point, line and polygon features in GIS”. In: _Computers_ _&_ _Geosciences_ 34.4 (2008), pp. 411–421. doi: `[10.1016/j.cageo.2007.04.005](https://doi.org/10.1016/j.cageo.2007.04.005)` . [45] B. She et al. “Weighted network Voronoi Diagrams for local spatial analysis”. In: _Computers,_ _Environment_ _and_ _Urban_ _Systems_ 52 (2015), pp. 70–80. doi: `[10.1016/j.compenvurbsys.2015.03.005](https://doi.org/10.1016/j.compenvurbsys.2015.03.005)` . [46] F. d. Goes et al. “Weighted triangulations for geometry processing”. In: _ACM_ _Transactions on Graphics (TOG)_ 33.3 (2014), pp. 1–13. doi: `[10.1145/2602143](https://doi.org/10.1145/2602143)` . [47] R. Balestriero et al. “The geometry of deep networks: Power diagram subdivision”. In: _Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_ 32 (2019). [48] F. Aurenhammer, F. Hoffmann, and B. Aronov. “Minkowski-type theorems and least-squares clustering”. In: _Algorithmica_ 20 (1998), pp. 61–76. doi: `[10.1007/](https://doi.org/10.1007/PL00009187)` `[PL00009187](https://doi.org/10.1007/PL00009187)` . [49] Z. Qu et al. “The power particle-in-cell method”. In: _ACM_ _Transactions_ _on_ _Graphics_ 41.4 (2022). doi: `[10.1145/3528223.3530066](https://doi.org/10.1145/3528223.3530066)` . [50] F. Aurenhammer, R. Klein, and D.-T. Lee. _Voronoi_ _Diagrams_ _and_ _Delaunay_ _Triangulations_ . World Scientific, 2013. doi: `[10.1142/8685](https://doi.org/10.1142/8685)` . [51] J. Kitagawa, Q. M´erigot, and B. Thibert. “Convergence of a Newton algorithm for semi-discrete optimal transport”. In: _Journal_ _of_ _the_ _European_ _Mathematical_ _Society_ 21.9 (2019), pp. 2603–2651. doi: `[10.4171/JEMS/889](https://doi.org/10.4171/JEMS/889)` . [52] Q. M´erigot and B. Thibert. “Optimal transport: discretization and algorithms”. In: _Geometric_ _Partial_ _Differential_ _Equations_ _-_ _Part_ _II_ . Ed. by A. Bonito and R. H. Nochetto. Vol. 22. Handbook of Numerical Analysis. 2021, pp. 133–212. doi: `[10.1016/bs.hna.2020.10.001](https://doi.org/10.1016/bs.hna.2020.10.001)` . [53] D. P. Bourne et al. “Laguerre tessellations and polycrystalline microstructures: a fast algorithm for generating grains of given volumes”. In: _Philosophical_ _Mag-_ _azine_ 100.21 (2020), pp. 2677–2707. doi: `[10.1080/14786435.2020.1790053](https://doi.org/10.1080/14786435.2020.1790053)` . [54] D. P. Bourne, M. Pearce, and S. M. Roper. “Geometric modelling of polycrystalline materials: Laguerre tessellations and periodic semi-discrete optimal transport”. In: _Mechanics_ _Research_ _Communications_ 127 (2023), p. 104023. doi: `[10.1016/j.mechrescom.2022.104023](https://doi.org/10.1016/j.mechrescom.2022.104023)` . [55] A. Alpers et al. “Generalized balanced power diagrams for 3D representations of polycrystals”. In: _Philosophical_ _Magazine_ 95.9 (2015), pp. 1016–1028. doi: `[10.1080/14786435.2015.1015469](https://doi.org/10.1080/14786435.2015.1015469)` . REFERENCES 23 [56] H. Altendorf et al. “3D reconstruction of a multiscale microstructure by anisotropic tessellation models”. In: _Image_ _Analysis_ _and_ _Stereology_ 33.2 (2014), pp. 121– 130. doi: `[10.5566/ias.v33.p121-130](https://doi.org/10.5566/ias.v33.p121-130)` . [57] O. Sediv`y <sup>ˇ</sup> et al. “3D reconstruction of grains in polycrystalline materials using a tessellation model with curved grain boundaries”. In: _Philosophical_ _Magazine_ 96.18 (2016), pp. 1926–1949. doi: `[10.1080/14786435.2016.1183829](https://doi.org/10.1080/14786435.2016.1183829)` . [58] O. Sediv`y <sup>ˇ</sup> et al. “Data-driven selection of tessellation models describing polycrystalline microstructures”. In: _Journal of Statistical Physics_ 172 (2018), pp. 1223– 1246. doi: `[10.1007/s10955-018-2096-8](https://doi.org/10.1007/s10955-018-2096-8)` . [59] K. Teferra and D. J. Rowenhorst. “Direct parameter estimation for generalised balanced power diagrams”. In: _Philosophical_ _Magazine_ _Letters_ 98.2 (2018), pp. 79–87. doi: `[10.1080/09500839.2018.1472399](https://doi.org/10.1080/09500839.2018.1472399)` . [60] L. Petrich et al. “Efficient Fitting of 3D Tessellations to Curved Polycrystalline Grain Boundaries”. In: _Frontiers_ _in_ _Materials_ 8 (2021). issn: 2296-8016. doi: `[10.3389/fmats.2021.760602](https://doi.org/10.3389/fmats.2021.760602)` . [61] A. Alpers et al. “Turning Grain Maps into Diagrams”. In: _SIAM_ _Journal_ _on_ _Imaging_ _Sciences_ 16.1 (2023), pp. 223–249. doi: `[10.1137/22M1491988](https://doi.org/10.1137/22M1491988)` . [62] A. Alpers et al. “Dynamic grain models via fast heuristics for diagram representations”. In: _Philosophical_ _Magazine_ 103.10 (2023), pp. 948–968. doi: `[10.](https://doi.org/10.1080/14786435.2023.2180679)` `[1080/14786435.2023.2180679](https://doi.org/10.1080/14786435.2023.2180679)` . [63] C. Jung and C. Redenbach. “An analytical representation of the 2D generalized balanced power diagram”. In: _Computational_ _Geometry_ 121 (2024), p. 102101. doi: `[10.1016/j.comgeo.2024.102101](https://doi.org/10.1016/j.comgeo.2024.102101)` . [64] J. Kuhn et al. “Fast methods for computing centroidal Laguerre tessellations for prescribed volume fractions with applications to microstructure generation of polycrystalline materials”. In: _Computer_ _Methods_ _in_ _Applied_ _Mechanics_ _and_ _Engineering_ 369 (2020), p. 113175. doi: `[10.1016/j.cma.2020.113175](https://doi.org/10.1016/j.cma.2020.113175)` . [65] J. Feydy. “Geometric data analysis, beyond convolutions”. PhD thesis. Universit´e Paris-Saclay, Applied Mathematics, 2020. [66] J. Feydy et al. “Fast geometric learning with symbolic matrices”. In: _Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_ 33 (2020), pp. 14448–14462. [67] B. Charlier et al. “Kernel Operations on the GPU, with Autodiff, without Memory Overflows”. In: _Journal_ _of_ _Machine_ _Learning_ _Research_ 22.74 (2021), pp. 1–6. url: `[http://jmlr.org/papers/v22/20-275.html](http://jmlr.org/papers/v22/20-275.html)` . [68] J.-D. Boissonnat, C. Wormser, and M. Yvinec. “Curved Voronoi diagrams”. In: _Effective_ _Computational_ _Geometry_ _for_ _Curves_ _and_ _Surfaces_ . Springer, 2006, pp. 67–116. doi: `[10.1007/978-3-540-33259-6_2](https://doi.org/10.1007/978-3-540-33259-6_2)` . [69] G. Peyr´e and M. Cuturi. “Computational Optimal Transport”. In: _Foundations_ _and_ _Trends_ _in_ _Machine_ _Learning_ 11.5-6 (2019), pp. 355–607. doi: `[10.1561/](https://doi.org/10.1561/2200000073)` `[2200000073](https://doi.org/10.1561/2200000073)` . [70] D. C. Liu and J. Nocedal. “On the limited memory BFGS method for large scale optimization”. In: _Mathematical_ _programming_ 45.1-3 (1989), pp. 503–528. doi: `[10.1007/BF01589116](https://doi.org/10.1007/BF01589116)` . [71] Q. Du, V. Faber, and M. Gunzburger. “Centroidal Voronoi Tessellations: Applications and Algorithms”. In: _SIAM_ _Review_ 41.4 (1999), pp. 637–676. doi: `[10.1137/S0036144599352836](https://doi.org/10.1137/S0036144599352836)` . [72] A. Paszke et al. “Pytorch: An imperative style, high-performance deep learning library”. In: _Advances_ _in_ _neural_ _information_ _processing_ _systems_ 32 (2019). [73] R. Feinman. _Pytorch-minimize:_ _a_ _library_ _for_ _numerical_ _optimization_ _with_ _auto-_ _grad_ . 2021. url: `[https://github.com/rfeinman/pytorch-minimize](https://github.com/rfeinman/pytorch-minimize)` . 24 REFERENCES [74] W. Lee et al. “On correctness of automatic differentiation for non-differentiable functions”. In: _Advances_ _in_ _Neural_ _Information_ _Processing_ _Systems_ 33 (2020), pp. 6719–6730. [75] J. Feydy et al. “Interpolating between optimal transport and MMD using Sinkhorn divergences”. In: _The_ _22nd_ _International_ _Conference_ _on_ _Artificial_ _In-_ _telligence_ _and_ _Statistics_ . PMLR. 2019, pp. 2681–2690. [76] _PyAPD: A Python library for computing anisotropic power diagrams using GPU_ _acceleration_ . 2023. url: `[https://github.com/mbuze/PyAPD](https://github.com/mbuze/PyAPD)` . [77] B. W. Silverman. _Density estimation for statistics and data analysis_ . Routledge, 2018. doi: `[10.1201/9781315140919](https://doi.org/10.1201/9781315140919)` . [78] Google Research. _Google_ _Colab_ . url: `[https://colab.google/](https://colab.google/)` . [79] _LPM: Laguerre-Polycrystalline-Microstructures: MATLAB functions for gener-_ _ating_ _3D_ _synthetic_ _polycrystalline_ _microstructures_ _using_ _Laguerre_ _tessellations_ . 2022. url: `[https://github.com/DPBourne/Laguerre-Polycrystalline-](https://github.com/DPBourne/Laguerre-Polycrystalline-Microstructures)` `[Microstructures](https://github.com/DPBourne/Laguerre-Polycrystalline-Microstructures)` . [80] _pysdot:_ _Python_ _bindings_ _for_ _sdot_ _(semi-discret_ _optimal_ _transportation_ _tools)_ . 2024. url: `[https://github.com/sd-ot/pysdot](https://github.com/sd-ot/pysdot)` . [81] _geogram:_ _a_ _programming_ _library_ _with_ _geometric_ _algorithms_ . 2024. url: `[https:](https://github.com/BrunoLevy/geogram)` `[//github.com/BrunoLevy/geogram](https://github.com/BrunoLevy/geogram)` . [82] F. Bachmann, R. Hielscher, and H. Schaeben. “Grain detection from 2d and 3d EBSD data - Specification of the MTEX algorithm”. In: _Ultramicroscopy_ 111.12 (2011), pp. 1720–1733. doi: `[10.1016/j.ultramic.2011.08.002](https://doi.org/10.1016/j.ultramic.2011.08.002)` . [83] M. Baudin et al. “OpenTURNS: An Industrial Software for Uncertainty Quantification in Simulation”. In: _Handbook of Uncertainty Quantification_ . Ed. by R. Ghanem, D. Higdon, and H. Owhadi. Cham: Springer International Publishing, 2016, pp. 1–38. isbn: 978-3-319-11259-6. doi: `[10.1007/978-3-319-11259-](https://doi.org/10.1007/978-3-319-11259-6_64-1)` `[6_64-1](https://doi.org/10.1007/978-3-319-11259-6_64-1)` . [84] U. Khristenko et al. “Statistically equivalent surrogate material models: Impact of random imperfections on the elasto-plastic response”. In: _Computer_ _Methods_ _in_ _Applied_ _Mechanics_ _and_ _Engineering_ 402 (2022). A Special Issue in Honor of the Lifetime Achievements of J. Tinsley Oden, p. 115278. issn: 0045-7825. doi: `[10.1016/j.cma.2022.115278](https://doi.org/10.1016/j.cma.2022.115278)` . [85] Y. Balit, E. Charkaluk, and A. Constantinescu. “Digital image correlation for microstructural analysis of deformation pattern in additively manufactured 316L thin walls”. In: _Additive_ _Manufacturing_ 31 (2020), p. 100862. issn: 22148604. doi: `[10.1016/j.addma.2019.100862](https://doi.org/10.1016/j.addma.2019.100862)` . [86] O. Furat et al. “Artificial generation of representative single Li-ion electrode particle architectures from microscopy data”. In: _npj_ _Computational_ _Materials_ 7.1 (2021), p. 105. doi: `[10.1038/s41524-021-00567-9](https://doi.org/10.1038/s41524-021-00567-9)` . [87] T. van Nuland, J. van Dommelen, and M. Geers. “An anisotropic Voronoi algorithm for generating polycrystalline microstructures with preferred growth directions”. In: _Computational_ _Materials_ _Science_ 186 (2021), p. 109947. issn: 0927-0256. doi: `[10.1016/j.commatsci.2020.109947](https://doi.org/10.1016/j.commatsci.2020.109947)` . [88] M. A. Groeber and M. A. Jackson. “DREAM. 3D: a digital representation environment for the analysis of microstructure in 3D”. In: _Integrating_ _materials_ _and_ _manufacturing_ _innovation_ 3 (2014), pp. 56–72. doi: `[10.1186/2193-9772-](https://doi.org/10.1186/2193-9772-3-5)` `[3-5](https://doi.org/10.1186/2193-9772-3-5)` . [89] A. Biswas et al. “Kanapy: Synthetic polycrystalline microstructure generator with geometry and texture”. In: _Zenodo_ (2020). doi: `[10.5281/zenodo.](https://doi.org/10.5281/zenodo.3662366)` `[3662366](https://doi.org/10.5281/zenodo.3662366)` . url: `[https://doi.org/10.5281/zenodo.3662366](https://doi.org/10.5281/zenodo.3662366)` . REFERENCES 25 [90] S. Chun et al. “Deep learning for synthetic microstructure generation in a materials-by-design framework for heterogeneous energetic materials”. In: _Sci-_ _entific_ _reports_ 10.1 (2020), p. 13307. doi: `[10.1038/s41598-020-70149-0](https://doi.org/10.1038/s41598-020-70149-0)` . [91] M. Henrich et al. “DRAGen–A deep learning supported RVE generator framework for complex microstructure models”. In: _Heliyon_ 9.8 (2023). doi: `[10.](https://doi.org/10.1016/j.heliyon.2023.e19003)` `[1016/j.heliyon.2023.e19003](https://doi.org/10.1016/j.heliyon.2023.e19003)` . [92] A. Song. “Generation of tubular and membranous shape textures with curvature functionals”. In: _Journal_ _of_ _Mathematical_ _Imaging_ _and_ _Vision_ 64.1 (2022), pp. 17–40. doi: `[10.1007/s10851-021-01049-9](https://doi.org/10.1007/s10851-021-01049-9)` . [93] L. Dieci and J. D. Walsh III. “The boundary method for semi-discrete optimal transport partitions and Wasserstein distance computation”. In: _Jour-_ _nal_ _of_ _Computational_ _and_ _Applied_ _Mathematics_ 353 (2019), pp. 318–344. doi: `[10.1016/j.cam.2018.12.034](https://doi.org/10.1016/j.cam.2018.12.034)` . [94] V. Oommen et al. “Learning two-phase microstructure evolution using neural operators and autoencoder architectures”. In: _npj_ _Computational_ _Materials_ 8.1 (2022), p. 190. doi: `[10.1038/s41524-022-00876-7](https://doi.org/10.1038/s41524-022-00876-7)` .

섹션 본문 105문단 · 46,121자

(제목 없음)

1The microstructure of metals and foams can be effectively modelled with anisotropic power diagrams (APDs), which provide control over the shape of individual grains.One major obstacle to the wider adoption of APDs is the computational cost that is associated with their generation.We propose a novel approach to generate APDs with prescribed statistical properties, including fine control over the size of individual grains.To this end, we rely on fast optimal transport algorithms that stream well on Graphics Processing Units (GPU) and handle non-uniform, anisotropic distance functions.This allows us to find large APDs that best fit experimental data and generate synthetic high-resolution microstructures in (tens of) seconds.This unlocks their use for computational homogenisation, which is especially relevant to machine learning methods that require the generation of large collections of representative microstructures as training data.The paper is accompanied by a Python library, PyAPD, which is freely available at: www.github.com/mbuze/PyAPD.

Introduction

2Understanding the deformation behaviour of polycrystalline materials is crucial for numerous industrial applications [1,2].These materials, composed of multiple grains with distinct crystallographic orientations, exhibit intricate microstructures that significantly influence their macroscopic mechanical properties.Moreover, the characterisation of localised deformations and microstructures formed during the deformation of polycrystalline materials is vital in developing a thorough physical understanding of the underlying mechanisms behind localisation phenomena such as local stress fields [3,4], fracture and damage initiation [5][6][7][8], shear banding [9][10][11][12][13], and recrystallization nucleation [14][15][16][17].

3Computational methods, particularly the finite element method (FEM) [18][19][20][21] and Fast Fourier Transform (FFT) [5,[22][23][24], have emerged as powerful tools for simulating the mechanical behaviour of virtual polycrystals [13,[25][26][27].The accuracy and the amount of detail that can be observed using these simulations strongly depends on the generated RVEs [13,[28][29][30].A low-resolution simulation with simple cubic crystals is sufficient to predict macro-scale (global) data such as global We use a semi-discrete optimal transport solver to find a tessellation of the spatial domain that satisfies these constraints approximately.Using a pixel grid that is fine enough, we can enforce an arbitrary tolerance on the volumes.Unlike previous approaches, our method can handle both isotropic cells (blue and green) and elongated crystals (red, grey).(C): Our method streams well on Graphics Processing Units (GPUs), allowing us to generate synthetic high-resolution 3D microstructures in seconds.

4crystallographic texture [31] or stress-strain response [28].However, a representative polycrystal morphology becomes essential to achieve a more detailed description of meso-scale deformation localisation effects [13,28,30].In addition, recent studies have emphasised the need for larger virtual polycrystals with more representative grain morphologies, considering inherent variability in both grain size and shape [13,25,29,32].Therefore, constructing representative volume elements (RVEs) is essential in analysing the macroscopic and microscopic behaviour of polycrystalline materials [28,33].Combining such representative computational microstructure with a proper materials model, such as the crystal plasticity model [5], enables micro-scale analysis of many localised phenomena [13,16].

5Ensuring the accuracy of these analyses depends not only on having an appropriate constitutive law but also on careful reconstruction of the polycrystal's geometric features [32,34].Experimental efforts have contributed significantly to understanding real polycrystal morphologies, offering valuable insights into the size, morphology, and orientations of the crystals [35][36][37][38].Nevertheless, creating representative microstructures with a large number of grains and authentic morphology still remains challenging.

6One of the standard approaches to modelling polycrystalline materials in computational materials science is to represent them as a power diagram (also known as a Voronoi-Laguerre diagram) [39][40][41], with each cell of the diagram corresponding to a distinct grain.Power diagrams, whose modern theory can be traced back to the 1980s [42,43], have found diverse applications, not just in microstructure modelling, but also in spatial analysis [44,45], mesh generation [46], and in machine learning [47].Finding a power diagram with cells of prescribed volumes is in fact equivalent to solving an optimal transport problem where the target measure is a sum of Dirac masses.This goes back at least as far as [48].For modern presentations in the computational geometry literature see [49], [50,Chapter 6], in the optimal transport literature see [51], [52,Section 4], and in the microstructure modelling literature see [53,54].This link ensures that power diagram-based approaches to modelling polycrystalline materials can generate large and complex microstructures in a matter of seconds, while requiring a relatively small number of parameters.

7A drawback of this approach is the idealised nature of the grains it produces -they are convex and have flat boundaries.Moreover, any spatial anisotropy they possess is solely determined by the relative location of the seed points of neighbouring grains and not by the preferred growth directions of each grain or by the rolling direction during processing.

8An emerging approach to modelling polycrystals which addresses some of the limitations of power diagrams is to model them as anisotropic power diagrams (APDs) instead, as pioneered by [55].In particular, APD-based modelling guarantees control over the anisotropy of individual grains and curved boundaries between neighbouring grains, with several such promising approaches explored in recent years by various authors [55][56][57][58][59][60][61][62][63].One obstacle to the wider adoption of APDs as a practical tool for modelling the microstructure of metals is the computational cost of generating them.Known optimal-transport-based efficient methods for generating power diagrams with grains of given volumes [51][52][53] do not translate to the anisotropic setup, and known techniques for generating APDs are drastically slower -while the usual runtime to generate a large power diagram with grains of given volumes is (tens of) seconds [53,64], for APDs it ranges from (tens of) minutes to (tens of) hours.This high computational cost associated with generating APDs poses a significant limitation to creating realistic microstructures with numerous grains and authentic morphology.This limitation is particularly pronounced in fields such as machine learning and data science, where generating a substantial number of representative microstructures is essential for a comprehensive study.

9In this paper we develop a novel fast approach for generating APDs with prescribed statistical properties, in which we combine semi-discrete optimal transport techniques with modern GPU-oriented computational tools, originally developed for the Sinkhorn algorithm [65][66][67].Using a single standard scientific-computing-oriented GPU, we achieve a three orders of magnitude speed-up versus a baseline CPU-only implementation, which ensures a near instantaneous computation of a generic large APD.As a result, we are able to:

10• Fit an APD to a real EBSD measurement, provided by Tata Steel specifically for this publication, consisting of 4587 grains in 2D, with high variation in spatial anisotropy and grain volume, in under one minute.• Generate a realistic synthetic microstructure that is statistically equivalent to the EBSD measurement with 4587 grains in about four minutes.• Create an APD mimicking an EBSD scan of a bidirectionally 3D-printed stainless steel with long and thin grains in about 3 seconds.

2.1.

11Modelling polycrystalline materials with anisotropic power diagrams.

12Let Ω ⊂ R D represent a bounded region occupied by a polycrystalline material.While our method applies to arbitrary nonconvex geometries, for simplicity we present it for the case when Ω is a rectangular domain (a rectangle if D = 2 or a cuboid if

13We refer to such matrices as anisotropy matrices and denote the weighted norm they induce on

14i=1 ∈ Ω N be a set of distinct seed points in Ω, W = (w i ) N i=1 ∈ R N be a set of weights, and Λ = (A i ) N i=1 ∈ (R D×D ) N be a set of anisotropy matrices.The Anisotropic Power Diagram (APD) [55] given by the data (X, W, Λ) is the tessellation {L i } N i=1 of Ω defined by

15Notable special cases of APDs occur when, for each i, we have (i) A i = Id and w i = 0, which results in a Voronoi diagram, (ii) A i = Id, which results in a power diagram, (iii) w i = 0, which results in an anisotropic Voronoi diagram, (iv) w i = 0 and A i = c i Id, c i ∈ R, which results in a Möbius diagram.The theory of these diagrams is presented in [68].

16In this paper we use the term single phase to refer to APDs with grains of equal volume, i.e., v i = |Ω| N for each i, which represent idealised monodisperse microstructures, where are all the grains have essentially the same size.We use the term multi phase to refer to polydisperse microstructures.

17We call an APD generated by (X, W, Λ) optimal with respect to V if |L i | = v i for all i ∈ {1, . . ., N }.

18We note that an anisotropy matrix A i can carry volume information.Suppose we are given an APD in which each cell is non-empty.Fix i ∈ {1, . . ., N } and suppose we replace A i by cA i for some constant c > 0, while keeping X and W fixed, and keeping A j fixed for all j ̸ = i.Simple calculations reveal that as we increase c, the volume of L i decreases and, for c large enough, the cell will have zero volume.Similarly, if w i > w j for all j ̸ = i, by sending c → 0, we find that |L i | → |Ω|.At the same time, for any choice of the constant c, the ratio of eigenvalues of cA i (and hence the target shape of L i ) remains unchanged.To avoid such issues, we suggest normalising the anisotropy matrices so that det A i = 1 for all i, which can be done while respecting the associated aspect ratios, as we will shortly explain.

19To illustrate the geometric role that anisotropy matrices play, we note that a twodimensional anisotropy matrix A can be uniquely determined by three parameters (a, b, θ), where, in analogy with defining an ellipse, a > 0 is the major axis, b ∈ (0, a] is the minor axis, and θ ∈ [0, π) is the orientation angle.To be precise,

20Note that |x| A = 1 is the equation of the ellipse with major axis a, minor axis b and orientation angle θ.

21Given an anisotropy matrix A(a, b, θ), its normalised counterpart Â(â, b, θ), satisfying det  = 1, is determined by (â, b, θ), where â = a/b, b = 1/â.The anisotropy ratio a/b is preserved by the normalisation: â/ b = a/b.A similar comment applies in 3D with ellipsoids, which are generated by six parameters (a, b, c, θ, ϕ, γ), the major, middle and minor axes and the Euler angles.

222.2.Finding optimal APDs.Given a set of seed points X = (x 1 , . . ., x N ), a set of anisotropy matrices Λ = (A 1 , . . ., A N ), and a set of target volumes V = (v 1 , . . ., v N ), the problem of finding weights W such that the APD generated by (X, W, Λ) is optimal with respect to V , i.e., that |L i | = v i for all i, is a semi-discrete optimal transport problem; see for example [52,Section 4] or [69,Chapter 5].In particular, it can be solved by maximising the continuously differentiable, concave function

23where the cells L i are computed from the weights w 1 , . . ., w N as in (2.1).We observe that g is concave and its gradient is

24Thus W maximises g if and only if the APD generated by (X, W, Λ) is optimal with respect to V .This is well-known in the optimal transport literature (see for example [52] and [69]).In the isotropic case, when A i = Id for all i, this was first applied in the context of microstructure modelling in [53] and then subsequently in papers including [64] and [54].

25In practice, ∇g(W ) = 0 is solved up to relative error tolerance

26where, e.g., setting ε = 0.01 corresponds to allowing grain size deviation of up to 1%.Similarly, the integral in (2.3) and the area/volume |L i | in (2.3) and (2.4) are in practice approximated with sums over a discretisation of the domain Ω by pixels/voxels.

27We will now describe a fast implementation of algorithms for computing APDs via (2.1) and for finding optimal APDs with respect to prescribed volumes, namely finding W ∈ argmax g.

2.3.

28Implementation.Given a domain Ω ⊂ R D , we let P (y, s) denote the pixel/voxel centred at y ∈ Ω with side lengths s ∈ R D + , that is,

29where diag(s) denotes the D-by-D diagonal matrix with s on the diagonal.The area/volume of the pixel

30We call a collection of pixels/voxels generated by (Y, s)

31where δ ≥ 0 is a tolerance parameter.Square pixels/cubic voxels are obtained by setting

32where M ∈ N + is the resolution parameter.In particular, if Ω = [0, 1] D and ε = 0, the discretised domain is then the regular grid of J = M D pixels/voxels, where

33Algorithm 1 is a standard method for numerically computing APDs.The novelty of our work is an efficient GPU implementation of this algorithm, as described below in Section 2.3.2.

domain / collection of pixels/voxels).

34Output: An assignment vector H ∈ N J , where the jth pixel is assigned to the grain H j ∈ {1, . . ., N }.Procedure:

35Next we describe how optimal APDs with cells of given areas/volumes can be generated by combining semi-discrete optimal transport theory with the pixel method.Consider a domain Ω ⊂ R D and its discretisation (Y, s) = {(y j , s)} J j=1 , as well as the set of seed points X = (x i ) N i=1 , a set of anisotropy matrices Λ = (A i ) N i=1 , and a set of target areas/volumes V = (v i ) N i=1 .Using the regular discretisation from (2.6), we approximate the dual objective functional g from (2.3) with the discretised function g : R N → R defined by

36where H j was defined in Algorithm 1.The gradient of g can be approximated by

37Note that this is not precisely the gradient of g, which is not differentiable everywhere since H j is a piecewise constant function of W .

38We can find an optimal APD with grains of areas/volumes v i by maximising the discretised objective function g, as described in Algorithm 2. In Section 2.3.2 we describe an efficient GPU implementation of this algorithm.

39Algorithm 2 Generating an optimal APD using optimal transport theory

40i= (target volumes), ε > 0 (relative tolerance).Output: The generators (X, W, Λ) of an APD optimal with respect to V , up to a relative error tolerance |L i | − v i ≤ εv i .Procedure:

411: Generate a discretisation (Y, s) of Ω with J pixels/voxels.2: Set the initial guess W 0 to W 0 = (0, . . ., 0) ∈ R N .3: Use a numerical optimisation method, such as the classic L-BFGS method [70],

42to find W that maximises the function g defined in (2.7), starting from the initial guess W 0 .Terminate when

43, where m i is the number of pixels/voxels in cell i, m i = #{j ∈ {1, . . ., J} | H j = i}.4: If it is not possible to hit the desired tolerance ε, then increase J and restart.

44For simplicity, we have presented the algorithms for discretisations of Ω by regular rectangular grids.In principle, however, any tessellation of Ω could be used.For example, given a triangulation of Ω ⊂ R 2 by J triangles, the corresponding objective function g in Algorithm 2 is

45where y j is the centroid of triangle j and |P j | is its area.Using such Finite Element Method-friendly triangulations might prove useful when using our method side by side with crystal plasticity simulations.

46To generate realistic artificial microstructures, we will also employ a generalised version of Lloyd's algorithm [71], which was introduced for the isotropic case A i = Id for all i in [53, Algorithm 2] in the setting of microstructure modelling.The purpose of the generalised Lloyd's algorithm, stated in Algorithm 3, is to generate more realistic, 'regular' microstuctures, where the cells tend to be simply-connected, which need not be the case for APDs in general (APD cells can be disconnected and have holes).Unlike Algorithm 2, Algorithm 3 does not require seeds X as an input.

Algorithm 3 Generalised Lloyd's algorithm

47Input: D ∈ {2, 3} (the dimension), Ω ⊂ R D (the domain), N ∈ N (the number of grains), Λ = (A i ) N i=1 (anisotropy matrices), J ∈ N (initial number of pixels/voxels), V = (v i ) N i= (target volumes), ε > 0 (relative tolerance) and K ∈ N (number of regularisation steps).Output: The generators (X, W, Λ) of an APD optimal with respect to V , up to a relative error tolerance

48Use Algorithm 2 with initial guess W k 0 to find an APD generated by (X k , W k , Λ) that is optimal with respect to V .

5:

49Using the discretisation (Y, S) generated by Algorithm 2, set x k+1 i to be the discrete centroid of the ith grain:

50thus obtaining X k+1 .

6:

51Set W k+1 0 = W k .7: end for 8: Use Algorithm 2 with initial guess W K 0 to find an APD generated by (X K , W K , Λ) that is optimal with respect to V .Set X = X K , W = W K .

2.3.1.

52Choosing the discretisation resolution.For a discretisation with square pixels/cubic voxels of area/volume |P | = |Ω|M −D , to reach the desired tolerance ε > 0 in Algorithm 2, it is usually necessary that |P | < εv i for all i = 1, . . ., N since this is the relative error of misassigning a single pixel/voxel to cell i.For example, if

53N for all i (single-phase material), the theoretical lower bound |P | < εv i gives

54In Table 1 we display the values of M given by the lower bound (2.9) for various values of N and D for ε = 0.01.Table 1.The theoretical lower bound (2.9) on M , the pixel sampling resolution along the axes of the domain Ω = [0, 1] D , when targeting a relative volume accuracy of ε = 0.01 = 1% (in a single phase material), for different choices of the number of seed points N and the dimension D of the domain.In practice, for most problems, choosing M equal to two times the value given by the lower bound (2.9) is sufficient (see equation (2.10)).

55This may not always be sufficient, however, since changing the weights of an APD typically reassigns several pixels at the same time, and so in practice the resolution parameter M is always choosen to be the smallest integer such that In order to prevent this computation from becoming a numerical bottleneck, we turn to GPU computing.In particular, we employ the GPU acceleration architecture provided by the machine-learning library PyTorch [72] and rely on its in-house L-BFGS solver for Algorithm 2, packaged as a general minimisation tool via the PyTorch Minimize library [73].Notably, we rely on the very fast automatic differentiation available in PyTorch to quickly compute machine-precision accurate derivatives of g from (2.7).This works remarkably well and is in fact quicker than providing the gradients by hand using the formula in (2.8), even though g is not everywhere differentiable -this is, however, in agreement with recent literature on this topic [74].

56To avoid memory overflows when assembling the cost matrix C ∈ R N ×J in Algorithm 1, we employ the kernel operations library PyKeOps, an extension for Py-Torch that provides efficient support for distance-like matrices [67].As detailed in [65,66,75], turning to a PyKeOps backend brings the memory footprint of optimal transport solvers from O(N J) to O(N + J) and provides a ×10 to ×100 speed-up versus baseline PyTorch implementations.

57As will be presented in various examples, this cut down the typical runtime of our method to (tens of) seconds, making it a feasible tool for generating large samples of realistic random volume elements.We publish our code as a Python repository PyAPD [76].

Numerical results

58Due to its speed, our implementation of the algorithms allows us to tackle several applications that, up to now, would have been considered prohibitively expensive.In what follows, we present a comprehensive list of examples showcasing the speed and the versatility of our method.With regards to speed, in Section 3.2 we present runtime tests for computing APDs for given inputs (X, Λ, W ), as well as for generating optimal APDs with cells of prescribed volumes.This is followed by examples based on Electron Backscatter Diffraction (EBSD) measurements provided by Tata Steel.First, in Section 3.3, we fit optimal APDs to the EBSD data.Then, in Section 3.4, we demonstrate how to generate realistic, synthetic microstructures by sampling from a joint probability distribution of grain volumes, aspect ratios and orientations, which is obtained as a fitted kernel density estimator [77] of the EBSD data.Finally, in Section 3.5, we give an example of how to generate a complex microstructure representing a 3D-printed stainless steel.

59We refer to our Python repository, PyAPD [76], where readers can find Jupyter notebooks detailing each of the examples presented.

3.1.

60Hardware.The speed of the method relies heavily on the GPU at our disposal.The relevant baseline against which GPUs should be compared are floating-point operations per second (FLOPS).See Table 2.

GPU type

61Float32 Note the drastic decrease in performance between single precision (Float32) and double precision (Float64) arithmetic (between 30× and 65× decrease) in all cases except for A100 (∼ 2× decrease).Note that 1 TFLOP denotes 10 12 (1 trillion) floating point operations per second.

62We perform our numerical experiments on a single A100 GPU, available through the NERSC high-performance computing cluster Perlmutter (see Acknowledgements), but readers are invited to test it for themselves using a T4 Tesla GPU offered free of charge by Google Colab [78] in a notebook we provide, see [76].

633.2.Runtime tests.We will present the following two sets of runtime tests.

64(a) Use of Algorithm 1 to compute an APD, i.e., the tessellation {L i } N i=1 from (2.1), for a fixed triple (X, W, Λ).(b) Use of Algorithm 2 to find optimal APDs with cells of prescribed volumes, to generate artificial single-and multi-phase microstructures in 2D and 3D.The common setup is as follows.We consider the box Ω = [0, 1] D , D = 2, 3, with N grains.If D = 2, we take N ∈ {25, 50, 100, 250, 500, 1000, 2500, 5000}.In each case the seed points X = {x i } N i=1 are drawn randomly from the uniform distribution on [0, 1] D , but, in the runtime test (b), to increase numerical stability, the sampling is sequential and any new sampled point x ∈ Ω is accepted only if it is not too close to some previously sampled seed point

65. This is motivated by the fact that on a regular grid containing N points, the seeds would be distance N −1/D apart.Setting C = 2 10 ensures that it is a very mild constraint and in fact only a small fraction of the sampled points get rejected.On average, in 2D about 7% of proposed seed points get rejected, whereas in 3D it goes down to only about 2%.At the same time, we avoid situations where two seed points are almost exactly on top of each other.In our tests, we saw that this issue led to unusually long runtimes for some random runs, especially for large multi-phase problems with small anisotropy.Note that the sampling is done using the random number generator from the machine-learning library PyTorch and, even with the exclusion, it is almost instantaneous.

66We sample normalised anisotropy matrices Âi satisfying the constraint det Âi = 1 for all i.In 2D this is achieved by sampling â ∼ Uniform(1 − α, 1), θ ∼ Uniform(0, π), where α ∈ [0, 1) is the anisotropy threshold parameter.Then we define a normalised anisotropy matrix  = Â(1/â, â, θ), as descried above, where 1/â and â are the major and minor axes, and θ is the rotation angle.Note that setting α = 0 corresponds to the fully isotropic case (A i = Id for all i), whereas setting α close to 1 means we accept any level of anisotropy.

67Similarly, in 3D the determinant constraint is achieved by assembling the matrices from collections (â, b, 1/(â b), θ, ϕ, γ), where

68Here â, b, 1/(â b) are the axes and θ, ϕ, γ are rotation angles and again α ∈ [0, 1) is the anisotropy threshold parameter, with α = 0 again corresponding to the isotropic case.

69In both the 2D and 3D examples, we always report runtimes for three choices of the anisotropy threshold parameter, namely α = 0, 0.3, 0.7.

70In runtime test (b) we set the relative error tolerance of the areas/volumes of the grains to be 1%, meaning that ε = 0.01 (see equation (2.5)).We discretise Ω with M D square pixels/cubic voxels (see (2.6)).The resolution parameter M is chosen as discussed in Section 2.3.1.This choice ensures that the area/volume of each pixel/voxel is less than ε times the area/volume of the smallest grain, and thus depends on whether the APD is single-phase or multi-phase.

71In the single-phase examples the areas/volumes V = (v i ) N i=1 of grains are equal, v i = |Ω|/N = 1/N for all i.In this case, when D = 3 and N = 10, 000, setting the inverse pixel length parameter to M = 200 (which results in M D = 8, 000, 000 voxels) lets us achieve the 1% tolerance reliably.

72In the multi-phase examples the areas/volumes are drawn from a lognormal distribution with shape parameter σ = 1.0 and location parameter µ = 0.5 and subsequently normalised so that the total sum of the areas/volumes is |Ω| = 1.It follows from (2.10) that for multi-phase problems, the value of M has to be increased to reflect the size of the smallest grain.

73Single precision arithmetic is employed for runtime test (a) (computing fixed APDs via Algorithm 1) and double precision arithmetic is used for runtime test (b) (finding optimal APDs via Algorithm 2).The switch to double precision is necessary to avoid precision loss and to achieve the desired error tolerance ε.

74To avoid random effects, in all runtime tests we report the mean runtime and the full range of observed runtimes over ten random runs.

75The results are presented in Figure 2 and Figure 3. Notably, with our implementation we are able to maintain a near 100% GPU usage throughout.Hence, if these tests were run on different GPUs, the relative timing difference would closely follow the relative differences in performance reported in Table 2.It is also for this reason .Runtime test (a).We use Algorithm 1 to compute APDs in 2D (A) and 3D (B), with weights W set to zero and seeds X and anisotropy matrices Λ sampled randomly as described at the start of Section 3.2.The runtimes are averaged over 10 random runs.The computation was performed a single A100 GPU with single precision (solid lines) and compared with a reference run on a CPU (dashed lines).The GPU computation was about 1000-times faster than the CPU computation.By checking against the same computation in double precision, we have verified that even for the largest problems employing single precision arithmetic to compute an APD does not lead to precision loss and the miss-assignment of pixels is minuscule.Note that the runtimes are essentially independent of the anisotropy parameter α. that our implementation is so fast.To make this point clear, for runtime test (a) we also report runtimes in a CPU-only setup, performed on the AMD EPYC 7713 CPU, again provided by NERSC.The algorithm runs about 1000 times faster on the GPU than on the CPU.

76From Figure 2 we see that we can generate APDs with 5000 grains in 2D in the order of 10 −2 seconds, and 10, 000 grains in 3D in the order of 10 −1 seconds.From Figure 3 we observe that we can generate multi-phase, anisotropic (α > 0), optimal APDs (with grains of prescribed volumes) with 5000 grains in 2D in about 1 minute or less, and 10, 000 grains in 3D in the order of 10 2 seconds.The runtime for multiphase APDs is longer than that for single-phase APDs, as expected.Surprisingly, the runtime decreases as the anisotropy parameter α increases.In other words, it is slower to compute isotropic power diagrams than anisotropic diagrams using our method.This is not a problem, however, since for isotropic power diagrams (where the cells are much simpler, namely convex polytopes with flat boundaries) there are much faster algorithms and implementations, such as [51,53,64].For example, a 3D multi-phase, optimal isotropic power diagram with 10, 000 grains of prescribed volumes can be computed in less than 20 seconds on a standard CPU laptop [54,79], and even faster implementations exist, such as [80] and [81].However, these methods do not apply to anisotropic power diagrams, for which there is currently no faster alternative to our library PyAPD [76], as far as we are aware.

3.3.

77Fitting APDs to EBSD measurements.In the following example, we work with an experimentally measured microstructure obtained using the EBSD technique .We use Algorithm 2 to find optimal APDs with cells of prescribed volumes on a single A100 GPU with double precision, in 2D (top two rows) and 3D (bottom two rows), single phase (1st and 3rd rows) and multi phase (2nd and 4th rows), as described in Section 3.2.On the right we plot optimal APDs when N = 5000 (in 2D) and N = 10, 000 (in 3D) with anisotropy parameter α = 0.7, with colours, in the absence of crystallographic data, assigned randomly.The runtimes are averaged over 10 random runs.The areas/volumes of the grains are accurate to 1%.

78specifically for this study.The initial microstructure and crystallographic texture of the material were measured across the thickness (ND -normal direction) perpendicular to the rolling direction (RD).We performed the EBSD measurements on an area located at the mid-thickness of the rolling plane (ND-RD plane).The EBSD scan area is 901.5 µm × 999.52 µm, and it was measured with a step size of 1.0 and 0.85 µm in the rolling and normal directions, respectively.This results in 1,039,754 pixels (901 × 1154).Standard metallographic techniques were used to prepare the specimen for characterisation.Analysis of the EBSD data was performed using the TSL OIM software.The material used in the present study is a low carbon steel.Following a standard postprocessing procedure done in the MTEX toolbox [82], we obtain a grain file of N = 4587 grains containing information about the areas of the grains V = (v i ) N i=1 ; the locations of the centroids of the grains (c i ) N i=1 ; the major and minor axes and orientations of the ellipses best describing the anisotropy of the grains, thus giving rise to a set of anisotropy matrices Λ = (A i ) N i=1 .We note here that the ratio of areas max i v i min i v i > 188, which makes reaching our target accuracy for the smallest grains particularly challenging.The original EBSD file, the script for postprocessing in MTEX and the resulting grain file are available through the library PyAPD [76].

79We fit an optimal APD to the grain file data as follows.We take the seeds x i of the APD to be the centroids returned by MTEX, x i = c i for all i.Similarly, we take the anisotropy matrices A i of the APD to be those returned by MTEX.The weights w i are found using Algorithm 2, to ensure that the APD cells L i have areas v i (given by MTEX) up to the relative error tolerance ε = 0.01.The inverse pixel length parameter M is chosen according to (2.10).

80The results are presented in Figure 4.The optimal APD that we obtain is 89.53% accurate, in the sense that this is the proportion of pixels that are assigned to the correct grain, while achieving a 1% deviation in terms of the areas of the grains.For reference, the heuristic guess [59] achieves 89.83% pixel-level accuracy, but the relative error of the areas is 380%.This is also the reason why the heuristic guess is not always a great initial guess for Algorithm 2 -most of the computation time is spent getting the areas of the small grains right.The proportion of the pixels that are correctly assigned could be increased by optimising the choice of x i and A i , rather than taking them directly from the data, as in for example [61], where accuracies of 93-96% are reported (for a different data set), but this comes at a greater computational cost.

3.4.

81Generating realistic synthetic microstructures.We now turn our attention to generating artificial microstructures that are statistically equivalent to the EBSD data from Section 3.3 with respect to the joint distribution of the aspect ratios a i /b i , orientations θ i , and areas v i of the grains.

82To estimate the joint distribution of the grains in the grain file data, we use the multivariate variant of kernel density estimation implemented in OpenTurns [83].The fit and the scatter matrix plot in Figure 4 both reveal the statistical dependence between the grain properties.In particular, we observe that high anisotropy is mostly observed for grains with small area/volume.

83Following the fitting, we sample (v i , a i /b i , θ i ) from the resulting joint distribution and use these to construct the anisotropy matrices A i = A(â i , bi , θ i ); see equation (2.2).Then we employ Algorithm 3 to obtain an optimal APD with grains of volume v i .The reason for using Algorithm 3 is to generate more 'regular' APDs; the algorithm has the effect of significantly reducing the number of disconnected grains and non-simply connected grains, or eliminating them altogether.(Note that Algorithm 3 does not require any input for the seeds x i .)To assess whether the artificial sample is statistically equivalent to the real EBSD data, we perform the two-sample Kolmogorov-Smirnov test for marginal distributions using OpenTurns [83].The results are presented in Figure 5.

843.5.Modelling challenging geometries.In our final example, inspired by [84,Section 3.3], to showcase the versatility of the method with respect to the grain geometries that it can produce, we create a highly-anisotropic APD imitating a 3D-printed stainless steel.This additively-manufactured material from [85] is a bidirectionally-printed single-track thickness 316L stainless steel wall, built by directed energy deposition.The results are presented in Figure 6.

Discussion

85In this section we will discuss how our methods compare and fit in with the existing body of literature and provide an outlook about future work.

86Several interesting APD-based approaches to the modelling of microstructure in metals have been introduced and explored in recent years.Starting with [55], and more recently in [61], the authors propose various techniques for converting an EBSD data grain map, which assigns each pixel to a grain, into an APD in such a way that the number of misassigned pixels is minimised.The control over the area/volume of the APD grains is introduced via approximate weight-constraints, and the resulting optimisation problem is a linear programming problem.Still in the realm of trying to fit an APD directly to pixel-level data, authors in [57] propose a fast stochastic optimisation-based alternative to the linear programming approaches introduced in [55].Yet another approach to direct fitting is the so-called gradient descent-based The IPF color map parallel to the building direction for the EBSD scan of a bidirectionally-printed single-track thickness 316L stainless steel wall, with the inset zooming in on 5 phases.This figure is taken directly from [85].(B): An example APD imitating such a 5-phase geometry.It is generated by supplying anisotropy matrices corresponding to thin ellipses tilted at prescribed angles, and centroids and volumes ensuring that the ellipses fill the space well.We also add several random small grains and run a few iterations Lloyds algorithm (see Algorithm 3).The overall runtime to generate it was 3 s.

87tessellation fitting introduced in [86] in the broader context of generating realistic artificial Li-ion electrode particle architectures, and extended to APDs in [60].

88All of the methods mentioned so far focus on minimising the number of misassigned pixels.In the example presented in Section 3.3 we present an alternative approach of first post-processing the EBSD pixel data to obtain a grain file, followed by employing Algorithm 2 to minimise the area/volume error.It does not explicitly focus on the pixel-level mismatch, but nonetheless seems to yield a similar (but slightly lower) level of accuracy.On the other hand, we benefit from the precise fitting of the volumes, and also, thanks to the GPU-friendly implementation, from a much decreased runtime.At the same time, any other approach in the literature where APDs need to be computed may benefit from our GPU-friendly-implementation of Algorithm 1, which computes APDs three orders of magnitude faster than a baseline CPU implementation, as we report in Figure 2.

89Another set of methods in literature for fitting APDs to EBSD data uses a heuristic guess for (X, W, Λ) and avoids solving an optimisation problem altogether; see [59,62].This carries next to no computational cost and gives a similar (but slightly lower) pixel misassigment error.However, as we have reported in Section 3.3, the heuristic guess for W from [59] appears to struggle to get the volumes of the grains right.On the other hand, using this heuristic as an initial guess seem to reliably improve the runtime of Algorithm 2 when employed to fit an optimal APD to real EBSD data.

90We also wish to mention the work [87], in which the authors considered a grain growth model using anisotropic Voronoi diagrams (weights w i all equal to zero).In light of the recent work on grain growth models using APDs in [62], it would be interesting to see how our optimal APDs can be used to infer quantities such as the growth velocity of each nucleated grain.

91An area in which we think our method is useful is the reliable generation of samples of realistic synthetic microstructures with prescribed statistical properties, such as grain sizes and anisotropy.Existing approaches, such as Dream3D [88], Neper [18] and Kanapy [89] use (isotropic) power-diagram-based algorithms.Since in any power diagram the spatial anisotropy of grains is determined primarily by the relative location of seed points of neighbouring grains many iterations of an optimisation algorithm may be needed to produce a power diagram with a desired distribution of anisotropy.In the case of Neper, it is reported in [41] that it took about 4.8 hours to generate a sample with N = 10, 000 grains in 3D with prescribed anisotropy of grains.Based on the timings reported in Figure 3, our method is expected to do so in about 5-10 minutes.(Note, however, that the runtimes in [41] were produced using CPU hardware from six years ago, so this is not an entirely fair comparison.)An alternative approach is to employ deep-learning tools (GANs) to generate artificial microstructures, as done in [90] and in DRAGen [91].We further note that there is interest in this task in biology [92].

92Moving forward, we would like to accelerate our methods further by employing adaptable pixel/voxel sizes.We believe that tools for identifying pixels/voxels at the boundary of a grain developed in [58] will prove useful in this regard.There are some similar ideas in the optimal transport community too [93].We expect the idea of coresets developed in [61] to be similarly helpful in addressing this challenge.Our library already allows users to manually supply a non-uniform discretisation of the domain Ω, but it is key for such a procedure to be automated.A local refinement of the discretisation can be implemented in a GPU-friendly way by employing the idea of masking.

93As demonstrated in Section 3.4, our method exhibits remarkable time efficiency in generating realistic RVEs with a large number of grains and authentic morphology.This capability opens the door to systematically generating a large number of carefully designed RVEs, particularly required for machine learning and data science applications.The demand for creating a substantial quantity of representative microstructures is fundamental for conducting comprehensive studies in these fields.

94Given the speed of our method and recent work on employing machine-learning tools to learn the evolution of a two-phase microstructure [94], we plan to study the evolution of a microstructure in steel under deformation, as done recently in [13].The evolution of the microstructure could be modelled as a time evolution of an optimal APD, generated by (X t , W t , Λ t ) and the set of target volumes (V t ), where t denotes time.

95Finally, apart from the applications in microstructure modelling, we mention that it would be easy to modify our library PyAPD [76] to solve quite general semidiscrete optimal transport problems with non-quadratic costs, which might be beneficial to the optimal transport community.Currently our code is limited to the anisotropic transport cost c(y, x i ) = |y − x i | 2

96A i , but it could be modified to work for any cost that can be represented in PyKeOps [67] as a LazyTensor.

97of Energy Office of Science User Facility located at Lawrence Berkeley National Laboratory, operated under Contract No. DE-AC02-05CH11231 using NERSC award DDR-ERCAP0025579.

Figure 1 .

98Figure 1.(A):We model grains in polycrystalline metals as anisotropic power cells, with desired centroid positions, volumes and shapes specified by ellipsoids.Accommodating these constraints in a 2D or 3D spatial domain is a difficult space-filling problem.(B): We use a semi-discrete optimal transport solver to find a tessellation of the spatial domain that satisfies these constraints approximately.Using a pixel grid that is fine enough, we can enforce an arbitrary tolerance on the volumes.Unlike previous approaches, our method can handle both isotropic cells (blue and green) and elongated crystals (red, grey).(C): Our method streams well on Graphics Processing Units (GPUs), allowing us to generate synthetic high-resolution 3D microstructures in seconds.

Figure 2

99Figure2.Runtime test (a).We use Algorithm 1 to compute APDs in 2D (A) and 3D (B), with weights W set to zero and seeds X and anisotropy matrices Λ sampled randomly as described at the start of Section 3.2.The runtimes are averaged over 10 random runs.The computation was performed a single A100 GPU with single precision (solid lines) and compared with a reference run on a CPU (dashed lines).The GPU computation was about 1000-times faster than the CPU computation.By checking against the same computation in double precision, we have verified that even for the largest problems employing single precision arithmetic to compute an APD does not lead to precision loss and the miss-assignment of pixels is minuscule.Note that the runtimes are essentially independent of the anisotropy parameter α.

Figure 3 .

100Figure 3. Runtime test (b).We use Algorithm 2 to find optimal APDs with cells of prescribed volumes on a single A100 GPU with double precision, in 2D (top two rows) and 3D (bottom two rows), single phase (1st and 3rd rows) and multi phase (2nd and 4th rows), as described in Section 3.2.On the right we plot optimal APDs when N = 5000 (in 2D) and N = 10, 000 (in 3D) with anisotropy parameter α = 0.7, with colours, in the absence of crystallographic data, assigned randomly.The runtimes are averaged over 10 random runs.The areas/volumes of the grains are accurate to 1%.

Figure 4 .

101Figure 4. Fitting an optimal APD to EBSD data (see Section 3.3).(A): The original EBSD scan.The grains are coloured according to their crystallographic orientation.To be precise, this is the IPF color map parallel to the loading (vertical) direction for the original EBSD data.(B): The corresponding IPF color map for the optimal APD.The relative error tolerance is ε = 0.01 = 1%, and the APD took 50.5 s to generate.(C): A scatter matrix plot of the statistical grain level data from the postprocessed EBSD data.Ellipse aspect ratio refers to a/b and ellipse angle refers to θ in equation (2.2). (D): The postprocessed data illustrated in the form of centroids (red dots) and ellipses.

Figure 5 .

102Figure 5. Generating an artificial microstructure (see Section 3.4).(A):A scatter matrix plot of the artificially generated data, sampled from a distribution fitted to the EBSD data in Figure4, with colours representing density (high in bright colours, low in dark).(B): The resulting optimal APD (with tolerance ε = 0.02 = 2%) was obtained with Algorithm 3 with 5 iterations of Lloyd's algorithm and the initial seed points X 0 drawn randomly from the uniform distribution on Ω.This took 266 s to generate.In the absence of crystallographic input, the colours are assigned randomly.To compare the artificial sample with the real EBSD data, we have run the two-sample Kolmogorov-Smirnov test for marginal distributions.The returned p-values of 0.973 (grain areas), 0.968 (ellipse aspect ratios) and 0.706 (ellipse angles) show a high degree of statistical equivalence.

Figure 6 .

103Figure 6.(A):The IPF color map parallel to the building direction for the EBSD scan of a bidirectionally-printed single-track thickness 316L stainless steel wall, with the inset zooming in on 5 phases.This figure is taken directly from[85].(B): An example APD imitating such a 5-phase geometry.It is generated by supplying anisotropy matrices corresponding to thin ellipses tilted at prescribed angles, and centroids and volumes ensuring that the ellipses fill the space well.We also add several random small grains and run a few iterations Lloyds algorithm (see Algorithm 3).The overall runtime to generate it was 3 s.

104.10) 2.3.2.GPU acceleration and kernel operations.The theoretical cost of Algorithm 1 in Section 2.3 is O(N J), where N is the number of seed points and J is the number of pixels/voxels that we use to discretise the domain.For a discretisation by regular rectangular grids given by (2.6), J = M D and if M satisfies (2.10), then we obtain the quadratic scaling O(N J) = O(N 2 ) for Algorithm 1 (and Algorithm 2 scales at least quadratically), with typically a very large prefactor.As a result, for typical values of N of interest, a standard implementation of such algorithms will result in runtimes ranging from minutes to hours.

Table 2 .

105Comparison of FLOPS performance of various popular GPUs.A100 and Tesla T4 are professional GPUs geared towards scientific computing and machine learning, whereas the other two are commercially available and video-gaming oriented.As of October 2023, GeForce RTX 4090 is the most powerful gaming-oriented GPU available and AMD Radeon RX 7600 is a popular affordable mid-range GPU.

참고문헌 93건

  1. Evaluation of finite element based analysis of 3D multicrystalline aggregates plasticity International Journal of Plasticity · Elsevier BV · 2004 10.1016/j.ijplas.2004.05.017
  2. Effective Computational Geometry for Curves and Surfaces Springer eBooks · Springer Nature · 2006 10.1007/978-3-540-33259-6
  3. A spectral method solution to crystal elasto-viscoplasticity at finite strains International Journal of Plasticity · Elsevier BV · 2012 10.1016/j.ijplas.2012.09.012
  4. An integrated fast Fourier transform-based phase-field and crystal plasticity approach to model recrystallization of three dimensional polycrystals Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2014 10.1016/j.cma.2014.12.007
  5. On the Use of Laguerre Tessellations for Representations of 3D Grain Structures Advanced Engineering Materials · Wiley · 2010 10.1002/adem.201000258
  6. Voronoi Diagram in the Laguerre Geometry and Its Applications SIAM Journal on Computing · Society for Industrial and Applied Mathematics · 1985 10.1137/0214006
  7. Numerically robust spectral methods for crystal plasticity simulations of heterogeneous materials International Journal of Plasticity · Elsevier BV · 2014 10.1016/j.ijplas.2014.02.006
  8. Generalized balanced power diagrams for 3D representations of polycrystals The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2015 10.1080/14786435.2015.1015469
  9. 3D RECONSTRUCTION OF A MULTISCALE MICROSTRUCTURE BY ANISOTROPIC TESSELLATION MODELS Image Analysis & Stereology · Slovenian Society for Stereology and Quantitative Image Analysis · 2014 10.5566/ias.v33.p121-130
  10. Assessment of plastic heterogeneity in grain interaction models using crystal plasticity finite element method International Journal of Plasticity · Elsevier BV · 2009 10.1016/j.ijplas.2009.05.005
  11. Weighted network Voronoi Diagrams for local spatial analysis Computers Environment and Urban Systems · Elsevier BV · 2015 10.1016/j.compenvurbsys.2015.03.005
  12. Overview of constitutive laws, kinematics, homogenization and multiscale methods in crystal plasticity finite-element modeling: Theory, experiments, applications Acta Materialia · Elsevier BV · 2009 10.1016/j.actamat.2009.10.058
  13. The role of heterogeneous deformation on damage nucleation at grain boundaries in single phase metals International Journal of Plasticity · Elsevier BV · 2008 10.1016/j.ijplas.2008.09.002
  14. Weighted Triangulations for Geometry Processing ACM Transactions on Graphics · Association for Computing Machinery · 2014 10.1145/2602143
  15. Three-dimensional EBSD characterization of thermo-mechanical fatigue crack morphology in compacted graphite iron Materials Characterization · Elsevier BV · 2014 10.1016/j.matchar.2014.01.015
  16. Power Diagrams: Properties, Algorithms and Applications SIAM Journal on Computing · Society for Industrial and Applied Mathematics · 1987 10.1137/0216006
  17. Minkowski-Type Theorems and Least-Squares Clustering Algorithmica · Springer Science+Business Media · 1998 10.1007/pl00009187
  18. Effects of interactions among crystals on the inhomogeneous deformations of polycrystals Acta Materialia · Elsevier BV · 1996 10.1016/1359-6454(95)00309-6
  19. Large-scale 3D random polycrystals for the finite element method: Generation, meshing and remeshing Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2011 10.1016/j.cma.2011.01.002
  20. On the limited memory BFGS method for large scale optimization Mathematical Programming · Springer Science+Business Media · 1989 10.1007/bf01589116
  21. Centroidal Voronoi Tessellations: Applications and Algorithms SIAM Review · Society for Industrial and Applied Mathematics · 1999 10.1137/s0036144599352836
  22. Non-crystallographic shear banding in crystal plasticity FEM simulations: Example of texture evolution in α-brass Acta Materialia · Elsevier BV · 2011 10.1016/j.actamat.2011.10.047
  23. Three-dimensional characterization of strain localization bands in high-resolution elastoplastic polycrystals Mechanics Research Communications · Elsevier BV · 2009 10.1016/j.mechrescom.2009.06.002
  24. Sensitivity to grain discretization of the simulated crystal stress distributions in FCC polycrystals Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2008 10.1088/0965-0393/17/1/015001
  25. Experimental investigation of plastic grain interaction Materials Science and Engineering A · Elsevier BV · 2002 10.1016/s0921-5093(01)01974-8
  26. Generating and updating multiplicatively weighted Voronoi diagrams for point, line and polygon features in GIS Computers & Geosciences · Elsevier BV · 2007 10.1016/j.cageo.2007.04.005
  27. Grain-scale micromechanics of polycrystal surfaces during plastic straining Acta Materialia · Elsevier BV · 2003 10.1016/s1359-6454(02)00557-8
  28. Density Estimation for Statistics and Data Analysis 2018 10.1201/9781315140919
  29. Grain detection from 2d and 3d EBSD data—Specification of the MTEX algorithm Ultramicroscopy · Elsevier BV · 2011 10.1016/j.ultramic.2011.08.002
  30. DREAM.3D: A Digital Representation Environment for the Analysis of Microstructure in 3D Integrating materials and manufacturing innovation · Springer Nature · 2014 10.1186/2193-9772-3-5
  31. Simulation of polycrystalline structure with Voronoi diagram in Laguerre geometry based on random closed packing of spheres Computational Materials Science · Elsevier BV · 2003 10.1016/j.commatsci.2003.10.006
  32. Strain localization and damage in dual phase steels investigated by coupled in-situ deformation experiments and crystal plasticity simulations International Journal of Plasticity · Elsevier BV · 2014 10.1016/j.ijplas.2014.06.004
  33. A virtual laboratory using high resolution crystal plasticity simulations to determine the initial yield surface for sheet metal forming operations International Journal of Plasticity · Elsevier BV · 2016 10.1016/j.ijplas.2016.01.002
  34. 3D reconstruction of grains in polycrystalline materials using a tessellation model with curved grain boundaries The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2016 10.1080/14786435.2016.1183829
  35. Handbook of Uncertainty Quantification Springer eBooks · Springer Nature · 2016 10.1007/978-3-319-11259-6
  36. Mesoscopic coupled modeling of texture formation during recrystallization considering stored energy decomposition Computational Materials Science · Elsevier BV · 2016 10.1016/j.commatsci.2016.11.048
  37. Coupled Crystal Plasticity–Phase Field Fracture Simulation Study on Damage Evolution Around a Void: Pore Shape Versus Crystallographic Orientation JOM · Springer Science+Business Media · 2017 10.1007/s11837-017-2308-8
  38. The boundary method for semi-discrete optimal transport partitions and Wasserstein distance computation Journal of Computational and Applied Mathematics · Elsevier BV · 2018 10.1016/j.cam.2018.12.034
  39. Optimal polyhedral description of 3D polycrystals: Method and application to statistical and synchrotron X-ray diffraction data Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2017 10.1016/j.cma.2017.10.029
  40. Direct parameter estimation for generalised balanced power diagrams Philosophical Magazine Letters · Taylor & Francis · 2018 10.1080/09500839.2018.1472399
  41. Data-Driven Selection of Tessellation Models Describing Polycrystalline Microstructures Journal of Statistical Physics · Springer Science+Business Media · 2018 10.1007/s10955-018-2096-8
  42. Nearly uniform sampling of crystal orientations Journal of Applied Crystallography · Wiley · 2018 10.1107/s1600576718009019
  43. DAMASK – The Düsseldorf Advanced Material Simulation Kit for modeling multi-physics crystal plasticity, thermal, and damage phenomena from the single crystal up to the component scale Computational Materials Science · Elsevier BV · 2018 10.1016/j.commatsci.2018.04.030
  44. Investigating mesh sensitivity and polycrystalline RVEs in crystal plasticity finite element simulations International Journal of Plasticity · Elsevier BV · 2019 10.1016/j.ijplas.2019.06.001
  45. Convergence of a Newton algorithm for semi-discrete optimal transport Journal of the European Mathematical Society · European Mathematical Society · 2019 10.4171/jems/889
  46. A finite element methodology to incorporate kinematic activation of discrete deformation twins in a crystal plasticity framework Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2019 10.1016/j.cma.2019.112653
  47. Digital image correlation for microstructural analysis of deformation pattern in additively manufactured 316L thin walls Additive manufacturing · Elsevier BV · 2019 10.1016/j.addma.2019.100862
  48. Laguerre tessellations and polycrystalline microstructures: a fast algorithm for generating grains of given volumes The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2020 10.1080/14786435.2020.1790053
  49. Quantitative multiscale correlative microstructure analysis of additive manufacturing of stainless steel 316L processed by selective laser melting Materials Characterization · Elsevier BV · 2019 10.1016/j.matchar.2019.110074
  50. Optimal transport: discretization and algorithms Handbook of numerical analysis · Elsevier BV · 2020 10.1016/bs.hna.2020.10.001
  51. Deep learning for synthetic microstructure generation in a materials-by-design framework for heterogeneous energetic materials Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-70149-0
  52. Kernel Operations on the GPU, with Autodiff, without Memory Overflows arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.11127
  53. Fast methods for computing centroidal Laguerre tessellations for prescribed volume fractions with applications to microstructure generation of polycrystalline materials Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.113175
  54. An efficient and robust approach to determine material parameters of crystal plasticity constitutive laws from macro-scale stress–strain curves International Journal of Plasticity · Elsevier BV · 2020 10.1016/j.ijplas.2020.102779
  55. Deep learning for synthetic microstructure generation in a materials-by-design framework for heterogeneous energetic materials Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-70149-0
  56. On the solidification characteristics, deformation, and functionally graded interfaces in additively manufactured hybrid aluminum alloys International Journal of Plasticity · Elsevier BV · 2020 10.1016/j.ijplas.2020.102840
  57. An anisotropic Voronoi algorithm for generating polycrystalline microstructures with preferred growth directions Computational Materials Science · Elsevier BV · 2020 10.1016/j.commatsci.2020.109947
  58. Current Challenges and Opportunities in Microstructure-Related Properties of Advanced High-Strength Steels Metallurgical and Materials Transactions A · Springer Science+Business Media · 2020 10.1007/s11661-020-05947-2
  59. Generalized balanced power diagrams for 3D representations of polycrystals The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2015 10.1080/14786435.2015.1015469
  60. Fast geometric learning with symbolic matrices HAL (Le Centre pour la Communication Scientifique Directe) · Centre National de la Recherche Scientifique · 2020
  61. A review of nonlinear FFT-based computational homogenization methods Acta Mechanica · Springer Science+Business Media · 2021 10.1007/s00707-021-02962-1
  62. Topological aspects responsible for recrystallization evolution in an IF-steel sheet – Investigation with cellular-automaton simulations Computational Materials Science · Elsevier BV · 2021 10.1016/j.commatsci.2021.110643
  63. Teaching solid mechanics to artificial intelligence—a fast solver for heterogeneous materials npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00571-z
  64. Artificial generation of representative single Li-ion electrode particle architectures from microscopy data npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00567-9
  65. Large-deformation crystal plasticity simulation of microstructure and microtexture evolution through adaptive remeshing International Journal of Plasticity · Elsevier BV · 2021 10.1016/j.ijplas.2021.103078
  66. Generation of Tubular and Membranous Shape Textures with Curvature Functionals Journal of Mathematical Imaging and Vision · Springer Science+Business Media · 2021 10.1007/s10851-021-01049-9
  67. Kanapy: Synthetic polycrystalline microstructure generator with geometry and texture 2020 10.5281/zenodo.3662366
  68. Determination and analysis of the constitutive parameters of temperature-dependent dislocation-density-based crystal plasticity models Mechanics of Materials · Elsevier BV · 2021 10.1016/j.mechmat.2021.104117
  69. Efficient Fitting of 3D Tessellations to Curved Polycrystalline Grain Boundaries Frontiers in Materials · Frontiers Media · 2021 10.3389/fmats.2021.760602
  70. Computational Optimal Transport: With Applications to Data Science Foundations and Trends® in Machine Learning · Now Publishers · 2019 10.1561/2200000073
  71. On Correctness of Automatic Differentiation for Non-Differentiable\n Functions arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2006.06903
  72. A micromechanics study on strain-localization-induced fracture initiation in bending using crystal plasticity models Philosophical Magazine A · Taylor & Francis · 2001 10.1080/01418610108216649
  73. Geometric Partial Differential Equations - Part II Handbook of numerical analysis · Elsevier BV · 2021 10.1016/s1570-8659(21)x0002-6
  74. Coupling crystal plasticity and cellular automaton models to study meta-dynamic recrystallization during hot rolling at high strain rates Materials Science and Engineering A · Elsevier BV · 2022 10.1016/j.msea.2022.143471
  75. Generating polycrystalline microstructures with prescribed tensorial texture coefficients Computational Mechanics · Springer Science+Business Media · 2022 10.1007/s00466-022-02186-7
  76. Statistically equivalent surrogate material models: Impact of random imperfections on the elasto-plastic response Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2022 10.1016/j.cma.2022.115278
  77. Crystal plasticity simulation of in-grain microstructural evolution during large deformation of IF-steel Acta Materialia · Elsevier BV · 2022 10.1016/j.actamat.2022.118167
  78. The power particle-in-cell method ACM Transactions on Graphics · Association for Computing Machinery · 2022 10.1145/3528223.3530066
  79. The Geometry of Deep Networks: Power Diagram Subdivision arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.08443
  80. Learning two-phase microstructure evolution using neural operators and autoencoder architectures npj Computational Materials · Nature Portfolio · 2022 10.1038/s41524-022-00876-7
  81. PyTorch: An Imperative Style, High-Performance Deep Learning Library arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1912.01703
  82. Voronoi Diagrams and Delaunay Triangulations WORLD SCIENTIFIC eBooks · World Scientific · 2012 10.1142/8685
  83. Geometric modelling of polycrystalline materials: Laguerre tessellations and periodic semi-discrete optimal transport Mechanics Research Communications · Elsevier BV · 2022 10.1016/j.mechrescom.2022.104023
  84. Turning Grain Maps into Diagrams SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2023 10.1137/22m1491988
  85. Dynamic grain models via fast heuristics for diagram representations The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2023 10.1080/14786435.2023.2180679
  86. An artificial neural network for surrogate modeling of stress fields in viscoplastic polycrystalline materials npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-00991-z
  87. DRAGen – A deep learning supported RVE generator framework for complex microstructure models Heliyon · Elsevier BV · 2023 10.1016/j.heliyon.2023.e19003
  88. A large-volume 3D EBSD study on additively manufactured 316L stainless steel Scripta Materialia · Elsevier BV · 2023 10.1016/j.scriptamat.2023.115723
  89. An integrated experimental-numerical study of martensite/ferrite interface damage initiation in dual-phase steels Scripta Materialia · Elsevier BV · 2023 10.1016/j.scriptamat.2023.115798
  90. Crystal plasticity simulations with representative volume element of as-build laser powder bed fusion materials Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-47651-2
  91. A quasi-2D integrated experimental–numerical approach to high-fidelity mechanical analysis of metallic microstructures Acta Materialia · Elsevier BV · 2023 10.1016/j.actamat.2023.119551
  92. Geometric data analysis, beyond convolutions theses.fr (ABES) · 2020
  93. An analytical representation of the 2d generalized balanced power diagram Computational Geometry · Elsevier BV · 2024 10.1016/j.comgeo.2024.102101