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

Laguerre tessellations and polycrystalline microstructures: a fast algorithm for generating grains of given volumes

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

기본 정보

저자
  1. David P. Bourne — Department of Mathematics, Heriot-Watt University, Edinburgh Campus, Edinburgh, UK
  2. Piet Kok — Tata Steel Research and Development, IJmuiden, The Netherlands
  3. Steven Roper — School of Mathematics and Statistics, University of Glasgow, University Place, Glasgow, UK
  4. Wil Spanjer — Tata Steel Research and Development, IJmuiden, The Netherlands
DOI
10.1080/14786435.2020.1790053
저널
The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics
발행년도
2020
발행기관
Taylor & Francis
피인용수
9
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1080/14786435.2020.1790053
토픽
Composite Material Mechanics
OpenAlex ID
W2994629898

평가 내용

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

초록

We present a fast algorithm for generating Laguerre diagrams with cells of given volumes, which can be used for creating RVEs of polycrystalline materials for computational homogenisation, or for fitting Laguerre diagrams to EBSD or XRD measurements of metals. Given a list of desired cell volumes, we solve a convex optimisation problem to find a Laguerre diagram with cells of these volumes, up to any prescribed tolerance. The algorithm is built on tools from computational geometry and optimal transport theory which, as far as we are aware, have not been applied to microstructure modelling before. We illustrate the speed and accuracy of the algorithm by generating RVEs with user-defined volume distributions with up to 20,000 grains in 3D. We can achieve volume percentage errors of less than 1% in the order of minutes on a standard desktop PC. We also give examples of polydisperse microstructures with bands, clusters and size gradients, and of fitting a Laguerre diagram to 3D EBSD measurements of an IF steel.

본문 103,964자

본문 펼치기
## Laguerre tessellations and polycrystalline microstructures: A fast algorithm for generating grains of given volumes D.P. Bourne <sup>1</sup>, P.J.J. Kok <sup>2</sup>, S.M. Roper <sup>3</sup>, W.D.T. Spanjer <sup>2</sup> 1Department of Mathematics, Heriot-Watt University, Edinburgh Campus, Edinburgh, EH14 4AS, UK 2Tata Steel Research and Development, P.O. Box 10000, 1970 CA IJmuiden, The Netherlands 3School of Mathematics and Statistics, University of Glasgow, University Place, Glasgow, G12 8QQ, UK June 22, 2020 Abstract We present a fast algorithm for generating Laguerre diagrams with cells of given volumes, which can be used for creating RVEs of polycrystalline materials for computational homogenisation, or for fitting Laguerre diagrams to EBSD or XRD measurements of metals. Given a list of desired cell volumes, we solve a convex optimisation problem to find a Laguerre diagram with cells of these volumes, up to any prescribed tolerance. The algorithm is built on tools from computational geometry and optimal transport theory which, as far as we are aware, have not been applied to microstructure modelling before. We illustrate the speed and accuracy of the algorithm by generating RVEs with user-defined volume distributions with up to 20,000 grains in 3D. We can achieve volume percentage errors of less than 1% in the order of minutes on a standard desktop PC. We also give examples of polydisperse microstructures with bands, clusters and size gradients, and of fitting a Laguerre diagram to 3D EBSD measurements of an IF steel. Keywords: Laguerre diagrams; power diagrams; polycrystalline materials; grains; foams; volume distribution ### 1 Introduction 1.1 State of the art Voronoi diagrams and their generalizations are often used to represent the microstructure of polycrystalline metals and foams, e.g., [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], with individual Voronoi cells representing grains in metals and pores or bubbles in foams. They can be used to generate complex microstructures quickly using a relatively small number of parameters, and they are often used as representative volume elements (RVEs) for computational homogenisation, e.g., [15, 16, 17]. In this paper we focus on the class of weighted Voronoi diagrams known as _Laguerre_ _diagrams_ (or _power_ _diagrams_ or _radical_ _Voronoi_ _tessellations_ ), which provide a more accurate description of the geometry of polycrystalline materials than classical Voronoi diagrams [14, 8]. However, Laguerre diagrams share the limitation of Voronoi diagrams that there is not an explicit relation between their generators and their geometric properties, such as the volumes of their cells. Consequently an active area of research is to develop algorithms for generating Laguerre diagrams with prescribed geometric properties. One popular method for approximately controlling the grain size distribution of Laguerre diagrams is using random close packing of spheres and ellipsoids [4, 8, 10, 18]. This method is inexact, however, since it is impossible to tessellate Euclidean space with spheres or ellipsoids. Several authors have developed methods for fitting Laguerre diagrams to image data (EBSD, XRD) of polycrystals. Here geometric properties such as grain size, centroid location, and aspect 1 ratio are fitted by minimising a measure of the fitting error using deterministic and stochastic optimisation methods, e.g., [3, 9, 11, 19, 20]. While optimisation methods can give very accurate results, they can also be computationally expensive. Heuristic methods such as [13] trade off fidelity against speed. Recently several authors have generated RVEs with curved boundaries and non-convex cells grains using generalisations of Laguerre diagrams such as generalised balanced power diagrams [1, 12, 13, 21] and multilevel Voronoi diagrams [5, 17]. Complex geometries can also be created using the open-source software DREAM.3D [22] and Neper [23]. We will discuss some of these methods in more detail and compare them with ours in the Discussion section. 1.2 Goal of this paper The goal of this paper is to develop algorithms for creating Laguerre diagrams with user-defined cell size distributions. Our motivation comes from steel modelling. We wish to generate realistic RVEs of single- and multi-phase steels for computational homogenisation simulations. Unlike much of the literature on Laguerre modelling of polycrystals [1, 24, 12, 13], our primary aim is not to fit Laguerre diagrams to EBSD or XRD data, but rather to create a tool for generating a rich family of (possibly never-observed) microstructures, which can be combined with multiscale simulations to optimise grain geometries and lead to the development of new alloys. Having said that, our algorithms are also very well suited for generating Laguerre diagrams with texture intensities that match EBSD data, as we demonstrate in Example 5.3. With these applications to steel in mind, we often refer to Laguerre cells as grains, although our results can be applied more generally to other polycrystalline metals and to foams. 1.3 Contributions and outline of the paper In Section 2 we recall the definition and some important properties of Laguerre diagrams. In particular Property 2.3 forms the basis of our work. Section 3 includes our main result, Algorithm 2, for generating ‘regularised’ Laguerre diagrams with grains of prescribed volumes, up to any given tolerance. We also provide Algorithm 1 that can be used for fitting a Laguerre diagram to EBSD measurements of grain volumes and centroids (Example 5.3). We discuss practical issues about how the algorithms can be implemented in Section 4. Section 5 includes some large examples (10,000+ grains) and run time tests in 3D, including examples of RVEs of Interstitial Free (IF) steels. The theory underlying the algorithms presented in Section 2 uses results from computational geometry and _optimal transport theory_ [25, 26], a field of mathematics that has recently enormously grown in importance and found applications in a wide range of areas including data science, economics, image processing, partial differential equations and statistics. We believe however that this is its first application in the steel industry. ### 2 Laguerre diagrams 2.1 Notation and definitions Let Ω _⊂_ R <sup>_d_</sup> be the region occupied by a metal. We consider both the 2- and 3-dimensional cases ( _d_ = 2 and _d_ = 3). For simplicity we assume that Ωis a convex polygon if _d_ = 2 or a convex polyhedron if _d_ = 3. In principle the algorithms below can be used for non-convex regions with curved boundaries, but they become harder to implement. In all our examples below we take Ωto be a rectangular box. If _U_ is a subset of Ω, let _|U_ _|_ denote its area if _d_ = 2 or its volume if _d_ = 3. Definition 2.1 ([27, 28]) . Let _x_ 1 _, . . .,_ _x_ _n_ be distinct points in Ωand _w_ 1 _, . . ., wn_ be real numbers (not necessarily positive). The _Laguerre_ _diagram_ or _power_ _diagram_ generated by the weighted points ( _x_ 1 _, w_ 1) _, . . .,_ ( _x_ _n, wn_ ) is the tessellation _{Li}_ <sup>_n_</sup> _i_ =1 <sup>of</sup> <sup>Ωdefined</sup> <sup>by</sup> _Li_ = _x_ _∈_ Ω: _|_ _x_ _−_ _x_ _i|_ <sup>2</sup> _−_ _wi_ _≤|_ _x_ _−_ _x_ _j|_ <sup>2</sup> _−_ _wj_ _∀_ _j_ _∈{_ 1 _, . . ., n}_ - _._ (2.1) We refer to the sets _Li_ as _Laguerre_ _cells_ or _grains_ . 2 Laguerre diagrams have the following basic properties [27, 28]: _•_ Laguerre cells are convex polygons if _d_ = 2 or convex polyhedra if _d_ = 3. _•_ The Laguerre cells tessellate Ω, which means that <sup>�</sup> _i_ <sup>_n_</sup> =1 <sup>_Li_</sup> <sup>= Ωand cells can only intersect along</sup> their boundaries. _•_ If all the weights are equal, _w_ 1 = _w_ 2 = _. . ._ = _wn_, then the Laguerre diagram is simply a Voronoi diagram. _•_ Adding a constant to all the weights does not affect the Laguerre diagram, i.e., the weighted points _{_ ( _x_ _i, wi_ ) _}_ <sup>_n_</sup> _i_ =1 <sup>and</sup> <sup>_{_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i, wi_</sup> <sup>+</sup> <sup>_c_</sup> <sup>)</sup> <sup>_}n_</sup> _i_ =1 <sup>generate</sup> <sup>the</sup> <sup>same</sup> <sup>diagram</sup> <sup>for</sup> <sup>any</sup> <sup>_c ∈_</sup> <sup>R.</sup> _•_ A generator _x_ _i_ needs not belong to its Laguerre cell _Li_ . _•_ There can be empty Laguerre cells, _Lj_ = _∅_ for some _j_ . Now we recall two advanced properties of Laguerre diagrams, Properties 2.2 and 2.3. These are the key ingredients for generating RVEs with grains of given sizes (given areas if _d_ = 2 or given volumes if _d_ = 3). Property 2.2 states that there always exists a Laguerre diagram with grains of given sizes. Property 2.3 gives a constructive way of finding one. Property 2.2 ([27, p. 96, Corollary 6.1], [29]) . _Let_ _x_ 1 _, . . .,_ _x_ _n_ _be_ _distinct_ _points_ _in_ Ω _._ _Let_ _m_ 1 _, . . ., mn_ _be_ _positive_ _numbers_ _with_ <sup>�</sup> _i_ <sup>_n_</sup> =1 <sup>_mi_</sup> <sup>=</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|._</sup> <sup>_Then_</sup> <sup>_there_</sup> <sup>_exist_</sup> <sup>_weights_</sup> <sup>_w_</sup> <sup>1</sup> <sup>_, . . ., wn_</sup> <sup>_such_</sup> <sup>_n_</sup> _i_ =1 <sup>and</sup> <sup>_{_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i, wi_</sup> <sup>+</sup> <sup>_c_</sup> <sup>)</sup> <sup>_}n_</sup> _i_ <sup>_n_</sup> _i_ =1 <sup>generate</sup> <sup>the</sup> <sup>same</sup> <sup>diagram</sup> <sup>for</sup> <sup>any</sup> <sup>_c ∈_</sup> <sup>R.</sup> _m_ 1 _, . . ., mn_ _be_ _positive_ _numbers_ _with_ <sup>�</sup> _i_ <sup>_n_</sup> =1 <sup>_mi_</sup> <sup>=</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|._</sup> <sup>_Then_</sup> <sup>_there_</sup> <sup>_exist_</sup> <sup>_weights_</sup> <sup>_w_</sup> <sup>1</sup> <sup>_, . . ., wn_</sup> <sup>_such_</sup> _that the Laguerre diagram {Li}_ <sup>_N_</sup> _i_ =1 <sup>_generated by_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_, w_</sup> <sup>1)</sup> <sup>_, . . .,_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_n, wn_</sup> <sup>)</sup> <sup>_has cells of size m_</sup> <sup>1</sup> <sup>_, . . ., mn:_</sup> <sup>_N_</sup> _i_ =1 <sup>_generated by_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_, w_</sup> <sup>1)</sup> <sup>_, . . .,_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_n, wn_</sup> <sup>)</sup> <sup>_has cells of size m_</sup> <sup>1</sup> <sup>_, . . ., mn:_</sup> _|Li|_ = _mi_ _for_ _all_ _i ∈{_ 1 _, . . ., n}._ (2.2) The weights _wi_ in Property 2.2 can be computed using the following result: Property 2.3 ([27, pp. 98-100], [29], [30, Theorem 2]) . _Let_ _x_ 1 _, . . .,_ _x_ _n_ _be_ _distinct_ _points_ _in_ Ω _._ _Let_ _m_ 1 _, . . ., mn_ _be_ _positive_ _numbers_ _with_ <sup>�</sup> _i_ <sup>_n_</sup> =1 <sup>_mi_</sup> <sup>=</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|._</sup> <sup>_Define_</sup> <sup>_the_</sup> <sup>_function_</sup> <sup>_g_</sup> <sup>: R</sup> <sup>_n_</sup> <sup>_→_</sup> <sup>R</sup> <sup>_by_</sup> _n_ _i_ =1 _g_ ( _w_ 1 _, . . ., wn_ ) = _n_ �( _mi −|Li|_ ) _wi_ + _i_ =1 _Li_ _|_ _x_ _−_ _x_ _i|_ <sup>2</sup> d _x_ (2.3) _where_ _{Li}_ <sup>_N_</sup> _i_ =1 <sup>_is_</sup> <sup>_the_</sup> <sup>_Laguerre_</sup> <sup>_diagram_</sup> <sup>_generated_</sup> <sup>_by_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_, w_</sup> <sup>1)</sup> <sup>_, . . .,_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_n, wn_</sup> <sup>)</sup> <sup>_._</sup> <sup>_Then_</sup> _(i)_ _The_ _function_ _g_ _is_ _concave._ _(ii)_ _The_ _gradient_ _of_ _g_ _has_ _components_ _for_ _all_ _i ∈{_ 1 _, . . ., n}._ _<u>∂g</u>_ _∂wi_ = _mi −|Li|._ (2.4) _(iii)_ _If_ _w_ = ( _w_ 1 _, . . ., wn_ ) _is_ _a_ _critical_ _point_ _of_ _g,_ _i.e.,_ _if_ _∇g_ ( _w_ ) = 0 _,_ _then_ _the_ _Laguerre_ _diagram_ _{Li}_ <sup>_N_</sup> _i_ =1 <sup>_generated_</sup> <sup>_by_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_, w_</sup> <sup>1)</sup> <sup>_, . . .,_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_n, wn_</sup> <sup>)</sup> <sup>_has_</sup> <sup>_cells_</sup> <sup>_of_</sup> <sup>_size_</sup> <sup>_m_</sup> <sup>1</sup> <sup>_, . . ., mn:_</sup> _|Li|_ = _mi_ _for_ _all_ _i ∈{_ 1 _, . . ., n}._ (2.5) Property 2.3 forms the basis of Algorithms 1 and 2. It means that if we want to generate a Laguerre diagram with grains of given sizes, then we just need to find critical points of _g_ . Since _g_ is concave, this is equivalent to maximising _g_, or to minimising _−g_, which is a smooth, unconstrained, convex optimisation problem. Fast numerical methods are available for solving this [31]. 2.2 Controlling the spatial distribution of grains Property 2.3 not only allows one to control the size distribution of grains, it also gives some control over the spatial distribution. Given positive numbers _m_ 1 _, . . ., mn_ with <sup>�</sup> _i_ <sup>_n_</sup> =1 <sup>_mi_</sup> <sup>=</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|_</sup> <sup>,</sup> <sup>there</sup> <sup>are</sup> over the spatial distribution. Given positive numbers _m_ 1 _, . . ., mn_ with <sup>�</sup> _i_ <sup>_n_</sup> =1 <sup>_mi_</sup> <sup>=</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|_</sup> <sup>,</sup> <sup>there</sup> <sup>are</sup> infinitely many Laguerre diagrams _{Li}_ <sup>_n_</sup> _i_ =1 <sup>such</sup> <sup>that</sup> <sup>_|Li|_</sup> <sup>=</sup> <sup>_mi_</sup> <sup>for</sup> <sup>all</sup> <sup>_i ∈{_</sup> <sup>1</sup> <sup>_, . . ., n}_</sup> <sup>.</sup> <sup>This</sup> <sup>can</sup> <sup>be</sup> infinitely many Laguerre diagrams _{Li}_ <sup>_n_</sup> _i_ =1 <sup>such</sup> <sup>that</sup> <sup>_|Li|_</sup> <sup>=</sup> <sup>_mi_</sup> <sup>for</sup> <sup>all</sup> <sup>_i ∈{_</sup> <sup>1</sup> <sup>_, . . ., n}_</sup> <sup>.</sup> <sup>This</sup> <sup>can</sup> <sup>be</sup> seen from Property 2.3 _(iii)_ ; _any_ choice of distinct points _x_ 1 _, . . .,_ _x_ _n_ can give a Laguerre diagram with grains of size _m_ 1 _, . . ., mn_ . In Section 4.3.1 we will show how to choose _x_ 1 _, . . .,_ _x_ _n_ to control the spatial distribution of the grains. 3 2.3 Connection with optimal transport theory Properties 2.2 and 2.3 can also be stated in the language of semi-discrete optimal transport theory <sup>1</sup> ; see, e.g., [26, Sec. 6.4.2], [32], [30]. This connection provides a way of finding critical points of _g_ using fast modern methods from optimal transport theory [33, 32]. We discuss this connection further at the end of Section 3.2.3. ### 3 Main results 3.1 Statement of the algorithms For concreteness we state the algorithms in three dimensions, but they can also be used in two dimensions (by substituting _volume_ with _area_ and _polyhedron_ with _polygon_ wherever they appear in Algorithms 1 and 2). Our main result is Algorithm 2. First however we consider a simplified version, Algorithm 1, which will help us to understand the importance of the regularisation step in Algorithm 2. Algorithm 1 can also be used for data-driven modelling to fit a Laguerre diagram to EBSD or XRD measurements of grain volumes and centroids (see Example 5.3). Algorithm 1 is not new and goes back at least as far as [29]. Our role is simply to bring it to the attention of the microstructure modelling community. <u>Algorithm</u> <u>1</u> <u>Generate</u> <u>a</u> <u>Laguerre</u> <u>diagram</u> <u>with</u> <u>grains</u> <u>of</u> <u>given</u> <u>volumes</u> Input: A convex polyhedron Ωrepresenting a sample of metal, a list of volumes _m_ 1 _, . . ., mn_ such that _mi_ _>_ 0 and <sup>�</sup> _i_ <sup>_n_</sup> =1 <sup>_mi_</sup> <sup>=</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|_</sup> <sup>,</sup> <sup>and</sup> <sup>a</sup> <sup>relative</sup> <sup>error</sup> <sup>tolerance</sup> <sup>_ε_</sup> <sup>.</sup> Output: The generators ( _x_ 1 _, w_ 1) _, . . .,_ ( _x_ _n, wn_ ) of a Laguerre diagram _{Li}_ <sup>_n_</sup> _i_ Output: The generators ( _x_ 1 _, w_ 1) _, . . .,_ ( _x_ _n, wn_ ) of a Laguerre diagram _{Li}_ <sup>_n_</sup> _i_ =1 <sup>such</sup> <sup>that</sup> <sup>grain</sup> <sup>_Li_</sup> has volume _mi_ up to _ε_ relative error, i.e., <sup>_<u>||Li</u>_</sup> _m_ <sup>_<u>|−</u>_</sup> _i_ <sup>_<u>mi|</u>_</sup> _< ε_, for all _i ∈{_ 1 _, . . ., n}_ . Method: _Initialisation._ Choose or randomly select _n_ distinct points _x_ 1 _, . . .,_ _x_ _n_ in Ω. _Optimisation_ _step._ Use a numerical optimisation method to find _w_ = ( _w_ 1 _, . . ., wn_ ) that maximises the function _g_ defined in equation (2.3). Initialise the optimisation method using the initial guess _w_ init = 0 and terminate it using the stopping criterion _|∇g_ ( _w_ ) _| < ε_ min _j_ _mj_ . Example 3.1 (Example of Algorithm 1) . Figure 1 shows an example of Algorithm 1 implemented in MATLAB with _n_ = 50 grains in the square domain Ω= [0 _,_ 1] _×_ [0 _,_ 1]. _m_ <sup>_<u>|−</u>_</sup> _i_ <sup>_<u>mi|</u>_</sup> _< ε_, for all _i ∈{_ 1 _, . . ., n}_ . Figure 1: An example of Algorithm 1 with _n_ = 50 grains in the unit square Ω. There are 35 blue grains and 15 yellow grains. The blue grains have area _x_ and the yellow grains have area 10 _x_ to within 1% error, where _x_ = 1 _/_ 185. The black dots are the locations of the generators _{_ _x_ _i}_ <sup>50</sup> _i_ =1 <sup>.</sup> <sup>Notice</sup> <sup>that</sup> <sup>not</sup> <sup>every</sup> <sup>grain</sup> <sup>contains</sup> <sup>its</sup> <sup>own</sup> <sup>generator.</sup> 1Technical remark: It can be shown that evaluating the optimal transport (Wasserstein) distance _W_ 2( _L_ <sup>_d_</sup> ⌞Ω _,_ <sup>�</sup> _i_ <sup>_miδx_</sup> _i_ <sup>) between the Lebesgue measure and a discrete measure generates a partition of Ωinto Laguerre</sup> cells of size _m_ 1 _, . . ., mn_ . 4 The grains have target areas _mi_ = _x_ for _i_ _∈{_ 1 _, . . .,_ 35 _}_ and _mi_ = 10 _x_ for _i_ _∈{_ 36 _, . . .,_ 50 _}_, where _x_ = 1 _/_ 185 so that the total area of all the grains equals the area of Ω. The actual areas of the grains returned by Algorithm 1 are correct to within 1% error ( _ε_ = 0 _._ 01). The initialisation step of Algorithm 1 was performed using the MATLAB function _rand_ to select _x_ 1 _, . . .,_ _x_ 50 (pseudo)randomly from a uniform distribution. While the grains have the correct areas to within 1%, the microstructure is somewhat irregular and unrealistic, with some highly elongated grains. This leads us to Algorithm 2, which produces more regular microstructures; compare Figures 1 and 2(i). <u>Algorithm</u> <u>2</u> <u>Generate</u> <u>a</u> <u>regularised</u> <u>Laguerre</u> <u>diagram</u> <u>with</u> <u>grains</u> <u>of</u> <u>given</u> <u>volumes</u> Input: A convex polyhedron Ωrepresenting a sample of metal, a list of volumes _m_ 1 _, . . ., mn_ such that _mi_ _>_ 0 and <sup>�</sup> _i_ <sup>_n_</sup> =1 <sup>_mi_</sup> <sup>=</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|_</sup> <sup>,</sup> <sup>a</sup> <sup>relative</sup> <sup>error</sup> <sup>tolerance</sup> <sup>_ε_</sup> <sup>,</sup> <sup>and</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>regularisation</sup> steps _K_ . Output: The generators ( _x_ 1 _, w_ 1) _, . . .,_ ( _x_ _n, wn_ ) of a regularised Laguerre diagram _{Li}_ <sup>_n_</sup> _i_ Output: The generators ( _x_ 1 _, w_ 1) _, . . .,_ ( _x_ _n, wn_ ) of a regularised Laguerre diagram _{Li}_ <sup>_n_</sup> _i_ =1 <sup>such</sup> that grain _Li_ has volume _mi_ up to _ε_ relative error, i.e., <sup>_<u>||Li</u>_</sup> _m_ <sup>_<u>|−</u>_</sup> _i_ <sup>_<u>mi|</u>_</sup> _< ε_, for all _i ∈{_ 1 _, . . ., n}_ . _m_ <sup>_<u>|−</u>_</sup> _i_ <sup>_<u>mi|</u>_</sup> _< ε_, for all _i ∈{_ 1 _, . . ., n}_ . Method: _Initialisation._ Choose or randomly select _n_ distinct points _x_ <sup>(0)</sup> 1 _Initialisation._ Choose or randomly select _n_ distinct points _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> in Ω. Initialise the weights to be zero: _w_ <sup>(0)</sup> = - _w_ 1 <sup>(0)</sup> <sup>_, . . ., w_</sup> _n_ <sup>(0)</sup> - = 0 . - _w_ 1 <sup>(0)</sup> 1 <sup>(0)</sup> <sup>_, . . ., w_</sup> _n_ <sup>(0)</sup> to be zero: _w_ <sup>(0)</sup> = - _w_ 1 <sup>(0)</sup> <sup>_, . . ., w_</sup> _n_ <sup>(0)</sup> - = 0 . _Iteration._ For _k_ = 1 _, . . ., K_ do: 1. _Regularisation_ _step._ For _i ∈{_ 1 _, . . ., n}_, define _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> to be the centroid of _L_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> : <u>1</u> _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> := <u>�</u> _L_ ( _ik−_ 1) <u>1</u> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> := <u>�</u> _L_ ( _ik−_ 1) <u>�</u> _L_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> _x_ d _x_ (3.1) - _n_ _i_ =1 <sup>is</sup> <sup>the</sup> <sup>Laguerre</sup> <sup>diagram</sup> <sup>obtained</sup> <sup>in</sup> <sup>the</sup> <sup>previous</sup> <sup>iteration,</sup> <sup>which</sup> <sup>is</sup> where - _L_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> 1 <sup>(</sup> <sup>_k−_</sup> <sup>1)</sup> - _, . . .,_ _n_ - _x_ <sup>(</sup> _n_ <sup>_k−_</sup> <sup>1)</sup> <sup>(</sup> _n_ <sup>_k−_</sup> <sup>1)</sup> _, wn_ <sup>(</sup> <sup>_k−_</sup> <sup>1)</sup> generated by - _x_ <sup>(</sup> 1 <sup>_k−_</sup> <sup>1)</sup> <sup>(</sup> 1 <sup>_k−_</sup> <sup>1)</sup> _, w_ 1 <sup>(</sup> <sup>_k−_</sup> <sup>1)</sup> �. 2. _Optimisation_ _step._ Use a numerical optimisation method to find _w_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> = - _w_ 1 <sup>(</sup> <sup>_k_</sup> <sup>)</sup> that maximises the concave function 1 <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_, . . ., w_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _n_ _gk_ ( _w_ 1 _, . . ., wn_ ) = _i_ =1 ��2 d _x_ (3.2) �� _Li_ ��� _wi_ + _Li_ �� _x_ _−_ _x_ ( _ik_ ) - _mi −_ _n_ _i_ =1 <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> <sup>_, w_</sup> _n_ where - _Li_ - _ni_ =1 <sup>is</sup> <sup>the</sup> <sup>Laguerre</sup> <sup>diagram</sup> <sup>generated</sup> <sup>by</sup> - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, w_</sup> <sup>1</sup> - _, . . .,_ - _x_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> <sup>_, w_</sup> _n_ �. Initialise the optimisation method using the initial guess _w_ init = _w_ <sup>(</sup> <sup>_k−_</sup> <sup>1)</sup> and terminate it using the stopping criterion �� _∇gk_ - _w_ <sup>(</sup> <sup>_k_</sup> <sup>)���</sup> _< ε_ min _j mj_ . - _n_ _i_ =1 <sup>is</sup> <sup>the</sup> <sup>Laguerre</sup> <sup>diagram</sup> <sup>generated</sup> <sup>by</sup> - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, w_</sup> <sup>1</sup> - _, . . .,_ - _x_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> where - _Li_ �� _∇gk_ - _w_ <sup>(</sup> <sup>_k_</sup> <sup>)���</sup> _< ε_ min _j mj_ . _i_ _Return._ Output the generators - - _n_ ( _x_ _i, wi_ ) _<u>i</u>_ <u>=1</u> <sup>=</sup> �� _x_ <sup>(</sup> _i_ <sup>_K_</sup> <sup>)</sup> <sup>(</sup> _i_ <sup>_K_</sup> <sup>)</sup> _, wi_ <sup>(</sup> <sup>_K_</sup> <sup>)</sup> �� _n_ _<u>i</u>_ <u>=1</u> <sup>.</sup> Example 3.2 (Example of Algorithm 2) . Figure 2 shows an example of Algorithm 2, using _K_ = 100 iterations, implemented in MATLAB with _n_ = 50 grains in the square domain Ω= [0 _,_ 1] _×_ [0 _,_ 1]. The grains have target areas _mi_ = _x_ for _i ∈{_ 1 _, . . .,_ 35 _}_ and _mi_ = 10 _x_ for _i ∈{_ 36 _, . . .,_ 50 _}_, where _x_ = 1 _/_ 185 so that the total area of all the grains equals the area of Ω. The actual areas of the grains returned by Algorithm 2 are correct to within 1% error ( _ε_ = 0 _._ 01). For the initialisation step we used exactly the same points _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> that were used for the initialisation step in Example 3.1. Observe from Figure 2 how the Laguerre diagram becomes more regular as the number of iterations _k_ increases, and how it appears to be converging. The diagram already looks quite regular after just 4 or 5 iterations and the user may be happy to take far fewer than _K_ = 100 iterations. We discuss how to choose _K_ in the following section. 5 (a) Iteration _k_ = 1. (b) Iteration _k_ = 2. (c) Iteration _k_ = 3. (d) Iteration _k_ = 4. (e) Iteration _k_ = 5. (f) Iteration _k_ = 10. (g) Iteration _k_ = 25. (h) Iteration _k_ = 50. (i) Iteration _k_ = 100. Figure 2: An example of _K_ = 100 iterations of Algorithm 2 with _n_ = 50 grains in the unit square Ω. There are 35 blue grains and 15 yellow grains. The blue grains have area _x_ and the yellow grains have area 10 _x_ to within 1% error, where _x_ = 1 _/_ 185. The black dots are the locations of the generators _{_ _x_ _i}_ <sup>50</sup> _i_ =1 <sup>.</sup> <sup>In</sup> <sup>Figure</sup> <sup>(i)</sup> <sup>the</sup> <sup>generators</sup> _x_ _i_ are located at the centroids of their cells _Li_ to within a distance of 0 _._ 002. 3.1.1 Periodic Laguerre diagrams Algorithms 1 and 2 can be modified to create _periodic_ Laguerre diagrams for use as RVEs for computational homogenisation (RVEs are usually taken to be periodic to avoid artificial boundary effects). To create periodic diagrams in a rectangular box Ωof side lengths _l_ 1 _, l_ 2 _, l_ 3, modify Algorithms 1 and 2 as follows. Define the periodic distance between _x, y_ _∈_ Ωby _|x −_ _y|_ per = min _{|x −_ _y_ + ( _il_ 1 _, jl_ 2 _, kl_ 3) _|_ : _i, j, k_ _∈_ Z _}._ (3.3) In Algorithms 1 and 2 replace the Laguerre cells _Li_ by periodic Laguerre cells _L_ <sup>˜</sup> _i_, which are defined by _L_ ˜ _i_ = <sup>2</sup> per <sup>_−_</sup> <sup>_wi_</sup> <sup>_≤|_</sup> <sup>_x_</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>_j|_</sup> <sup>2</sup> - _x_ _∈_ Ω: _|_ _x_ _−_ _x_ _i|_ <sup>2</sup> <sup>2</sup> per <sup>_−_</sup> <sup>_wj_</sup> <sup>_∀_</sup> <sup>_j_</sup> <sup>_∈{_</sup> <sup>1</sup> <sup>_, . . ., n}_</sup> - _._ (3.4) 6 In Algorithm 1 replace _g_ by _g_ per( _w_ 1 _, . . ., wn_ ) = _n_ �( _mi −|L_ <sup>˜</sup> _i|_ ) _wi_ + _n_ _i_ =1 _L_ ˜ _i_ _|_ _x_ _−_ _x_ _i|_ <sup>2</sup> per <sup>d</sup> <sup>_x_</sup> <sup>_._</sup> (3.5) _i_ =1 Replace _gk_ in Algorithm 2 is an analogous way. 3.2 Properties of the algorithms 3.2.1 Convergence of Algorithm 2: centroidal Laguerre diagrams In Appendix A we prove that, under a generic assumption, Algorithm 2 converges as _K_ _→∞_ . This means that the generator locations _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> settle down with increasing iterations, like we see in Figure _i_ = _x_ _i_ for all _i_ _∈{_ 1 _, . . ., n}_ . 2. To be more precise, there exist _x_ 1 _, . . .,_ _x_ _n_ such that lim _k→∞_ _x_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> By taking the limit _k_ _→∞_ in equation (3.1), we see that <u>1</u> _x_ _i_ = _|Li|_ _Li_ _x_ d _x_ _._ (3.6) Therefore the generator _x_ _i_ is the centroid of its own Laguerre cell _Li_ for all _i_ . Such a Laguerre diagram is known as a _centroidal_ _Laguerre_ _diagram_ or a _centroidal_ _power_ _diagram_, a term introduced in [34]; see also [35, 36]. Centroidal Laguerre diagrams tend to be more regular than non-centroidal Laguerre diagrams, as illustrated by Figure 2(i) (centroidal) and Figure 1 (non-centroidal). 3.2.2 Connection with Lloyd’s algorithm If we omit the optimisation step in Algorithm 2 and set the weights to be zero for all iterations, _w_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> = 0 for all _k_, then we obtain the well-known _Lloyd’s_ _algorithm_ for computing _centroidal_ _Voronoi_ _tessellations_ (Voronoi diagrams where each generator is the centroid of its own Voronoi cell) [37]. Therefore Algorithm 2 can be interpreted as a _generalised_ _Lloyd_ _algorithm_ _with_ _capacity_ _constraints_ where cell _Li_ is constrained to have volume _mi_ . An alternative method for generating centroidal Laguerre diagrams with capacity constraints is given in [36, Sec. 4]. 3.2.3 Energy-decreasing property of Algorithm 2 Algorithm 2 can also be interpreted as an energy-decreasing optimisation method. Given _m_ 1 _, . . ., mn_ with <sup>�</sup> _i_ <sup>_mi_</sup> <sup>=</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|_</sup> <sup>,</sup> <sup>define</sup> _E_ ( _x_ 1 _, . . .,_ _x_ _n_ ) = min - _n_ _i_ =1 _Ui_ _|_ _x_ _−_ _x_ _i|_ <sup>2</sup> d _x_ : _{Ui}_ <sup>_n_</sup> _i_ =1 <sup>is</sup> <sup>a</sup> <sup>partition</sup> <sup>of</sup> <sup>_|_</sup> <sup>Ω</sup> <sup>_|,_</sup> <sup>_|Ui|_</sup> <sup>=</sup> <sup>_mi_</sup> _._ (3.7) Here the minimum is taken over all possible partitions of Ω, not just Laguerre diagrams. This is an example of an _optimal_ _transport_ _problem_ . For example, in two dimensions _E_ could represent the minimum (squared) cost of transporting the recyclable waste generated by a population uniformly distributed over a country Ωto recycling centres located at _{_ _x_ _i}_ <sup>_n_</sup> _i_ =1 <sup>with</sup> <sup>capacities</sup> <sup>_{mi}_</sup> _i_ <sup>_n_</sup> =1 <sup>.</sup> <sup>It</sup> <sup>_n_</sup> _i_ =1 <sup>with</sup> <sup>capacities</sup> <sup>_{mi}_</sup> _i_ <sup>_n_</sup> distributed over a country Ωto recycling centres located at _{_ _x_ _i}_ <sup>_n_</sup> _i_ =1 <sup>with</sup> <sup>capacities</sup> <sup>_{mi}_</sup> _i_ <sup>_n_</sup> =1 <sup>.</sup> <sup>It</sup> can be shown [27, Sec. 6.4.1] that _E_ ( _x_ 1 _, . . .,_ _x_ _n_ ) = _n_ _i_ =1 _Li_ _|_ _x_ _−_ _x_ _i|_ <sup>2</sup> d _x_ (3.8) where _{Li}_ <sup>_n_</sup> _i_ <sup>_n_</sup> _i_ =1 <sup>is</sup> <sup>the</sup> <sup>Laguerre</sup> <sup>diagram</sup> <sup>with</sup> <sup>generators</sup> <sup>_{_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i, wi_</sup> <sup>)</sup> <sup>_}_</sup> _i_ <sup>_n_</sup> where _{Li}_ <sup>_n_</sup> _i_ =1 <sup>is</sup> <sup>the</sup> <sup>Laguerre</sup> <sup>diagram</sup> <sup>with</sup> <sup>generators</sup> <sup>_{_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_i, wi_</sup> <sup>)</sup> <sup>_}_</sup> _i_ <sup>_n_</sup> =1 <sup>,</sup> <sup>where</sup> <sup>(</sup> <sup>_w_</sup> <sup>1</sup> <sup>_, . . ., wn_</sup> <sup>)</sup> <sup>is</sup> <sup>a</sup> maximum point of _g_ (defined in (2.3)). In other words, _{Li}_ <sup>_n_</sup> _i_ =1 <sup>is</sup> <sup>the</sup> <sup>solution</sup> <sup>of</sup> <sup>the</sup> <sup>optimal</sup> maximum point of _g_ (defined in (2.3)). In other words, _{Li}_ <sup>_n_</sup> _i_ =1 <sup>is</sup> <sup>the</sup> <sup>solution</sup> <sup>of</sup> <sup>the</sup> <sup>optimal</sup> transport problem and all the recyclable waste generated in region _Li_ should be sent to the recycling centre _x_ _i_ . 7 We could further ask what are the best locations of the recycling centres by considering the optimisation problem _x_ 1min _,...,_ _x_ _n_ <sup>_E_</sup> <sup>(</sup> <sup>_x_</sup> <sup>1</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>_n_</sup> <sup>)</sup> <sup>_._</sup> (3.9) This is known as the _optimal location problem_ in the economics literature [38] and the _quantization_ _problem_ in the discrete geometry [39], electrical engineering [40] and probability literature [41]. It can be shown that _<u>∂E</u>_ ( _x_ 1 _, . . .,_ _x_ _n_ ) = 2 ( _x_ _i −_ _x_ ) d _x_ _._ (3.10) _∂_ _x_ _i_ _Li_ See for example [36]. Therefore _∇E_ ( _x_ 1 _, . . .,_ _x_ _n_ ) = 0 if and only if _{_ _x_ _i}_ <sup>_n_</sup> _i_ =1 <sup>generate</sup> <sup>a</sup> <sup>centroidal</sup> Laguerre diagram. ( _x_ 1 _, . . .,_ _x_ _n_ ) = 2 ( _x_ _i −_ _x_ ) d _x_ _._ (3.10) _Li_ See for example [36]. Therefore _∇E_ ( _x_ 1 _, . . .,_ _x_ _n_ ) = 0 if and only if _{_ _x_ _i}_ <sup>_n_</sup> _i_ Thanks to its regularisation step, Algorithm 2 is energy-decreasing in the sense that _n_ - _._ (3.11) - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> _E_ - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>+1)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>+1)</sup> _, . . .,_ _x_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>+1)</sup> - _≤_ _E_ Moreover, under the generic assumption (A.5), the sequence ( _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> Moreover, under the generic assumption (A.5), the sequence ( _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - converges to a critical point of _E_ (to a local minimum point or saddle point). In other words, it converges to a centroidal Laguerre diagram. We prove these statements in Appendix A. In general, Algorithm 2 does not converge to a _global_ minimum point of _E_ since _E_ is highly non-convex with many critical points; Figure 4 illustrates four different (approximate) critical points of _E_, corresponding to different choices of ( _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)).</sup> choices of ( _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)).</sup> An alternative method for finding local minima of _E_ is given in [36, Sec. 4] where, instead of updating _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> using our regularisation step, they update it using a quasi-Newton (L-BFGS) optimisation step applied to _E_ . ### 4 Implementation In this section we discuss different options for implementing Algorithms 1 and 2, which we did using MATLAB and Voro++ [42]. 4.1 Computing Laguerre diagrams One of the main expenses of Algorithms 1 and 2 is the computation of Laguerre diagrams. This happens whenever the objective function _g_ or _gk_ is evaluated, which could happen many times within a single optimisation step. A Laguerre diagram of _n_ generators can be computed in _O_ ( _n_ log _n_ ) flops in 2D and _O_ ( _n_ <sup>2</sup> ) flops in 3D [27, p. 85]. (Note that these are _worst-case_ optimal run times and in practice the complexity may be better, as we observed in Example 5.1. For example, the complexity can be better if each cell has only _O_ ( _n_ ) faces instead of the worst-case _O_ ( _n_ <sup>2</sup> ) [27, Theorem 6.1].) In applications _n_ could be 10 _,_ 000 or more, and hundreds or thousands of Laguerre diagrams could be computed in a single run of either algorithm. Therefore it is important to use efficient software. For our 2D computations we used the MATLAB function _power_ _bounded_ from the MATLAB File Exchange [43], which implements Aurenhammer’s lifting method [44] and crops the diagram to a rectangular box Ω. The function _power_ _bounded_ is limited to 2D, and so for our 3D computations we used (a slightly modified version of) the C++ library Voro++ [42] combined with a MEX file so that we could run Voro++ via MATLAB. In 3D we also tried the MATLAB function _powerDiagramWrapper_ from the MATLAB File Exchange [45], combined with our own code to crop the diagram to a cuboid Ω, but we found Voro++ to be faster. Another advantage of Voro++ is that it can create periodic Laguerre diagrams. We also used Tata Steel’s own in-house Laguerre diagram code to visualise Laguerre diagrams in 2D and 3D. 8 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>1</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 0 20 40 60 80 100 Iteration _k_ Figure 3: The relative run times for each optimisation step of Algorithm 2. In this example, the parameters are the same as those in Example 3.2, except that the number of grains is _n_ = 500. The relative proportion of small and large grains is the same as in Example 3.2 and the ratio of the size of the largest grain to the size of the smallest grain is 10. The initial seed locations are randomly distributed in the unit square. The _y_ -axis displays _tk/t_ 1, where _tk_ is the run time for the optimisation step of iteration _k_ . After 12 iterations the time per iteration falls to below one-tenth the time of the first iteration, and after 18 iterations it falls to below one-twentieth. This is because the initial guess for the weights in the inner iteration is taken from the output of the previous outer iteration, and the quality of this guess improves as the number of iterations increases. 4.2 Optimisation methods The other main expense of Algorithms 1 and 2 is the optimisation step. For each algorithm this is a smooth, unconstrained, concave maximisation problem and so is very tractable. We used the MATLAB function _fminunc_ to minimise _−g_ and _−gk_ (and hence maximise _g_ and _gk_ ), which uses the BFGS quasi-Newton method by default [31]. This requires an initial guess _w_ init for the minimum point. 4.2.1 Choice of the initial guess For Algorithm 1 we recommend the initial guess _w_ init = 0 . For data fitting (like Example 5.3, where the seeds _x_ _i_ are taken from EBSD measurements), if the target grains are relatively spherical, then a better choice may be ( _w_ init) _i_ = _mi/π_ in 2D or ( _w_ init) _i_ = (3 _mi/_ (4 _π_ )) <sup>2</sup> <sup>_/_</sup> <sup>3</sup> in 3D. In other words, ( _w_ init) _i_ = _ri_ <sup>2</sup> <sup>where</sup> <sup>_ri_</sup> <sup>is</sup> <sup>the</sup> <sup>radius</sup> <sup>of</sup> <sup>a</sup> <sup>ball</sup> <sup>of</sup> <sup>area</sup> <sup>_mi_</sup> <sup>in</sup> <sup>2D</sup> <sup>or</sup> <sup>volume</sup> <sup>_mi_</sup> <sup>in</sup> <sup>3D.</sup> <sup>This</sup> <sup>is</sup> motivated by sphere-packing methods [4, 8, 10, 18]. For Algorithm 2 the initial guess should depend on the iteration _k_ . For the first iteration _k_ = 1 we recommend _w_ init = 0 . For iterations _k_ _≥_ 2 we recommend _w_ init = _w_ <sup>(</sup> <sup>_k−_</sup> <sup>1)</sup>, the solution of the optimisation step from the previous iteration. As the number of iterations increases and the points _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> converge, the initial guess _w_ init = _w_ <sup>(</sup> <sup>_k−_</sup> <sup>1)</sup> becomes better and better and consequently the optimisation step becomes quicker and quicker. This is illustrated in Figure 3, which shows the relative run time of each iteration for an example in which the relative sizes and relative proportions of small and large grains are the same as in Example 3.2 but the number of grains is _n_ = 500. We see that the total runtime of the algorithm is not proportional to the number of iterations _K_ ; most of the expense is in the first few iterations. Note that for the first iteration, _k_ = 1, the initial guess _w_ init = 0 does not incorporate any 9 information about the locations _x_ <sup>(0)</sup> _i_ <sup>.</sup> <sup>It</sup> <sup>is</sup> <sup>possible</sup> <sup>to</sup> <sup>improve</sup> <sup>the</sup> <sup>speed</sup> <sup>of</sup> <sup>the</sup> <sup>first</sup> <sup>iteration</sup> <sup>by</sup> using a more sophisticated choice of _w_ init, e.g., using the _multilevel_ _methods_ of M´erigot [30] and L´evy [32], which generate a good initial guess _w_ init by solving a sequence of smaller optimisation problems with fewer grains. (For example, you can obtain a good initial guess _w_ init for _n_ grains by first solving a coarser problem with _n/_ 2 grains; you can obtain a good initial guess for _n/_ 2 grains by first solving a coarser problem with _n/_ 4 grains, etc.) We found that M´erigot’s multilevel method [30] in 2D could halve the run time of iteration _k_ = 1 when there are _n_ = 10 _,_ 000 grains. It is reported that L´evy’s multilevel program GEOGRAM can handle one million grains in 3D [32, Table 4]. It is also possible to obtain a better initial guess _w_ init for iterations _k_ _≥_ 2 as follows. The Lloyd step (3.1) of Algorithm 2 could be replaced with a _damped_ _Lloyd_ _step_ of the form <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> := (1 _−_ _λ_ ) _x_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> <u>�</u> _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <u>1</u> <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> + _λ_ <u>�</u> _L_ ( _ik−_ 1) _L_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> _x_ d _x_ (4.1) where _λ_ is a damping parameter between 0 and 1. The choice _λ_ = 1 corresponds to the Lloyd step (3.1). The closer _λ_ is to 0, the closer _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> is to _x_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup>, and so the better the associated initial guess _w_ init = _w_ <sup>(</sup> <sup>_k−_</sup> <sup>1)</sup> . Therefore the optimisation step is faster for smaller _λ_ . On the other hand, the regularisation step has less effect for smaller _λ_, and it is necessary to increase the number of iterations _K_ to achieve the same amount of regularisation. For our purposes the full Lloyd step _λ_ = 1 was sufficiently fast and so we did not try to optimise the choice of _λ_ . 4.2.2 Choice of the tolerance For simplicity we chose the tolerance _ε_ of the optimisation step of Algorithm 2 to be fixed at each iteration _k_ (recall that the optimisation step terminates when �� _∇gk_ - _w_ <sup>(</sup> <sup>_k_</sup> <sup>)���</sup> _<_ _ε_ min _j mj_ ). The algorithm could be sped up, however, by taking _ε_ = _εk_ to depend on _k_ . In order for Algorithm 2 to produce a Laguerre diagram with grains of given volumes up to a relative error of _ε_, we only need the tolerance to be _ε_ _at_ _the_ _final_ _iteration_, _εK_ = _ε_ . For previous iterations we could use a cruder tolerance: _ε_ = _εK_ _<_ _εK−_ 1 _<_ _· · ·_ _<_ _ε_ 2 _<_ _ε_ 1. It is tempting to think that the larger the tolerance, the faster the optimisation step. On the other hand, if _εk−_ 1 is larger than _εk_, then the initial guess _w_ init = _w_ <sup>(</sup> <sup>_k−_</sup> <sup>1)</sup> at iteration _k_ may be worse, and the optimisation step at iteration _k_ may be slower. So the tolerances _εk_ must be chosen carefully. The choice of fixed tolerance _εk_ = _ε_ for all _k_ is a simple, reliable option, which is why we used it. 4.2.3 Choice of the optimisation algorithm The speed of the optimisation step depends of course not only on the choice of the initial guess _w_ init and the tolerance _ε_, but also on the choice of the optimisation algorithm. For example, instead of using a quasi-Newton method like we did, one could use Newton’s method. Newton’s method tends to converge faster than quasi-Newton methods (quadratically rather than superlinearly), although it is harder to implement since it requires the second derivative of _g_ (whereas quasiNewton methods only require the first derivative) [31]. It can be shown (see, e.g., [35]) that (4.2) _−_ _<u>aik</u>_ if _i_ = _j,_ 2 _|_ _x_ _i −_ _x_ _k|_ _<u>∂</u>_ <sup>2</sup> _<u>g</u>_ _∂wi∂wj_ = _−_ <sup>_<u>∂|Li|</u>_</sup> _∂wj_  _k∈Ni_ =   _<u>aij</u>_ if _j_ _∈_ _Ni,_ 2 _|_ _x_ _i −_ _x_ _j|_ 0 otherwise _,_ where _aij_ is the area of the face between cell _i_ and cell _j_ and _Ni_ is the index set of the neighbours of cell _i_ (that is _j_ _∈_ _Ni_ if and only if cell _j_ and cell _i_ share a face). The pseudo-inverse of this 10 Hessian matrix is used in a damped Newton method in [33, Algorithm 1], where fractions of a full Newton step are used in order to control the error reduction and the minimum volume of a cell (to stop cells disappearing). The authors prove that their damped Newton method converges globally with order 1 and locally with order 2 [33, Theorem 1.5]. 4.3 Initialisation: Effect on the spatial distribution In this section we discuss the initialisation step of Algorithms 1 and 2. 4.3.1 Initialisation of the seeds The locations of the generators _x_ 1 _, . . .,_ _x_ _n_ at the termination of Algorithm 2 is a strong function of the initial choice _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0).</sup> <sup>This</sup> <sup>simple</sup> <sup>observation</sup> <sup>gives</sup> <sup>us</sup> <sup>a</sup> <sup>great</sup> <sup>deal</sup> <sup>of</sup> <sup>control</sup> <sup>over</sup> of the initial choice _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0).</sup> <sup>This</sup> <sup>simple</sup> <sup>observation</sup> <sup>gives</sup> <sup>us</sup> <sup>a</sup> <sup>great</sup> <sup>deal</sup> <sup>of</sup> <sup>control</sup> <sup>over</sup> the spatial distribution of the different sized grains. Examples of Algorithm 2 with different initial distributions of the generators _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> are shown in Figure 4. In these examples initial distributions of the generators _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> are shown in Figure 4. In these examples Ω= [0 _,_ 3] _×_ [0 _,_ 2] and there are _n_ = 1000 grains. There are _n_ 1 = 800 grains of size _x_ and _n_ 2 = 200 grains of size 20 _x_ . The tolerance is _ε_ = 0 _._ 01 and the number of iterations of Algorithm 2 is _K_ = 20. The figure shows the output of Algorithm 2. The final spatial distribution of grains has some features in common with the spatial distribution of the initial generator locations. A further example of controlling the spatial distribution of grains can be seen in Figure 5. In this example _n_ = 1000 grains have areas drawn from a random distribution such that the ratio of the largest to the smallest grain size is at most 100. The Laguerre diagram in Figure 5(a) has the property that the grain sizes tend to increase from left to right. A variety of spatial distributions of grain sizes can be simulated by first distributing the seed locations appropriately. Figure 5(b) shows how a more complicated distribution can be produced. 4.3.2 Initialisation of the weights The choice of _w_ <sup>(0)</sup> in the initialisation step of Algorithm 2 is also important. One should choose _w_ 1 <sup>(0)</sup> <sup>_, . . ., w_</sup> _n_ <sup>(0)</sup> so that the Laguerre diagram generated by - _x_ <sup>(0)</sup> 1 <sup>_, w_</sup> 1 <sup>(0)</sup> - _, . . .,_ - _x_ <sup>(0)</sup> _n_ <sup>_, w_</sup> _n_ <sup>(0)</sup> - has no empty 1 <sup>(0)</sup> <sup>_, . . ., w_</sup> _n_ <sup>(0)</sup> so that the Laguerre diagram generated by - _x_ <sup>(0)</sup> 1 <sup>(0)</sup> 1 <sup>_, w_</sup> 1 <sup>(0)</sup> - _, . . .,_ - _x_ <sup>(0)</sup> _n_ <sup>(0)</sup> _n_ <sup>_, w_</sup> _n_ <sup>(0)</sup> _n_ _w_ 1 <sup>(0)</sup> <sup>_, . . ., w_</sup> _n_ <sup>(0)</sup> so that the Laguerre diagram generated by - _x_ <sup>(0)</sup> 1 <sup>_, w_</sup> 1 <sup>(0)</sup> - _, . . .,_ - _x_ <sup>(0)</sup> _n_ <sup>_, w_</sup> _n_ <sup>(0)</sup> - has no empty Laguerre cells. If there are empty cells then the regularisation step is not defined (there is division by zero in equation (3.1) if _L_ <sup>(0)</sup> _i_ is empty). A good choice is _w_ <sup>(0)</sup> = 0 since then the Laguerre by zero in equation (3.1) if _L_ <sup>(0)</sup> _i_ is empty). A good choice is _w_ <sup>(0)</sup> = 0 since then the Laguerre diagram generated by ( _x_ <sup>(0)</sup> 1 <sup>_, w_</sup> 1 <sup>(0))</sup> <sup>_, . . .,_</sup> <sup>(</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> <sup>_, w_</sup> _n_ <sup>(0)) is a Voronoi diagram and so has no empty cells,</sup> whatever the choice of _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0).</sup> <sup>(0)</sup> 1 <sup>_, w_</sup> 1 <sup>(0))</sup> <sup>_, . . .,_</sup> <sup>(</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> <sup>_, w_</sup> _n_ <sup>(0)</sup> <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0).</sup> 4.4 Stopping criteria In Algorithm 2 the user must specify the number of regularisation steps _K_ . As we discussed in Section 3.1, for large values of _K_ the Laguerre diagram resulting from Algorithm 2 is a approximately a _centroidal_ _Laguerre_ _diagram_, which means that each seed _x_ <sup>(</sup> _i_ <sup>_K_</sup> <sup>)</sup> is approximately the centre of mass of its Laguerre cell _L_ <sup>(</sup> _i_ <sup>_K_</sup> <sup>)</sup> . Centroidal Laguerre diagrams tend to have very regular shaped cells, e.g., in 2D if the grains all have the same target areas, _mi_ = 1 _/n_, and if _n_ and _K_ are large, then the Laguerre diagram looks locally like a regular hexagonal tiling. Indeed for steel microstructures we found that if _K_ is too large, then Algorithm 2 tends to produce grains that are too ‘round’ compared to EBSD measurements of grain aspect ratios. Instead of fixing the number of steps _K_ in advance, the user could terminate the algorithm whenever some measure of the maximum grain aspect ratio falls below a critical threshold. For example, the aspect ratio of a grain can be measured using the ratio of its largest and smallest principal moments of inertia, or using the ratio of the radii of circumscribed and inscribed balls, or using its sphericity [46], which is the ratio of the surface area of the volume-equivalent sphere to the surface area of the grain. The user may also want to terminate the algorithm if the distance _|_ _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _−_ _x_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> _|_ moved by the seeds from one iteration to the next falls below some threshold. The Laguerre diagram _{L_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _}_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _−_ _x_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> The user may also want to terminate the algorithm if the distance _|_ _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _}_ 11 (a) Random. (b) Banded. (c) Clustered. (d) Mixed banded and random. Figure 4: Examples of more advanced microstructures: Coupling of size and spatial distributions with Algorithm 2. This figure shows the output of Algorithm 2 after _K_ = 20 iterations with different initial distributions for the seed locations. In all cases there are _n_ = 1000 grains with _n_ 1 = 800 grains of size _x_ (in dark blue) and _n_ 2 = 200 grains of size 20 _x_ (in yellow). a Random distribution of initial locations. Here the initial generator locations of the large and small grains are uniformly distributed over Ω. b Banded distribution of initial locations. Here the different sized grains have initial generator locations that lie inside bands within Ω. The sizes of the bands have been chosen so that there are approximately equal numbers of small grains within each blue band and approximately equal numbers of large grains within each yellow band. c Clustered distribution of initial locations. Here the smaller grains have initial generator locations that lie inside non-overlapping discs. d A mixed distribution: the initial generators are such that the larger grains are arranged in bands and the smaller grains are a combination of the banded and random distributions. 12 (a) Increasing gradient of grain size. (b) Varying gradient of grain size. Figure 5: Experiments to demonstrate a gradient in the distribution of grain sizes. Here _n_ = 1000 grains have areas drawn from a uniform distribution such that the ratio of the largest to the smallest grain size is at most 100. The domain is Ω= [0 _,_ 3] _×_ [0 _,_ 2]. The results are shown after _K_ = 20 iterations and the grains are coloured according to their area. a The initial seed locations _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> are distributed such that the _x_ -coordinate increases with grain size. b The initial seed locations are distributed such that the larger grains are found in the middle of Ω. tends to evolve slowly with _k_ when _k_ is large, as illustrated in Figure 2, and the evolution can slow down dramatically when there is a T1 topological transition (to borrow a term from foam dynamics). This topological transition involves a change of cell neighbour relations; in 2D this is via coalescence of two triple junctions of cell boundaries. So in general there is little to be gained from performing a large number of regularisation steps, especially since our aim is not to produce a centroidal Laguerre diagram, but rather to produce a physically realistic microstructure. (If on the other hand the user’s aim is to produce centroidal Laguerre diagrams, then it would be better to use the quasi-Newton method of [36], which converges superlinearly as opposed to the linear convergence of Lloyd’s algorithm.) ### 5 Examples This section includes some large examples in 3D to illustrate the capabilities of our algorithms. Example 5.1 (Run time tests) . Figure 6 gives some run times of Algorithm 2 for creating monodisperse and polydisperse periodic Laguerre diagrams in 3D. Here Algorithm 2 has been used to create _n/_ 2 grains of volume _x_ and _n/_ 2 grains of volume _rx_, for _r_ = 1 and _r_ = 5, in a cube of side length 100 with error tolerance _ε_ = 0 _._ 01. We see that the run time grows roughly quadratically in the range _n_ = 2000 to _n_ = 5000, for both the monodisperse (single phase) case _r_ = 1 and the polydisperse (dual phase) case _r_ = 5. This could be expected since the cost of each iteration of the BFGS method used by _fminunc_ is _O_ ( _n_ <sup>2</sup> ) (a matrix-vector multiplication). Also the worst-case optimal time it takes to compute a Laguerre diagram of _n_ cells is _O_ ( _n_ <sup>2</sup> ) in 3D, although we found that in these examples the cost of computing the Laguerre diagrams was sub-quadratic (but super-linear); see also the discussion in Section 4.1. For _n >_ 5000 the run time grows a little faster than _O_ ( _n_ <sup>2</sup> ). Observe also from Figure 6 that it is about 50% more expensive to compute dual phase RVEs ( _r_ = 5) than single phase RVEs ( _r_ = 1). Example 5.2 (Generating a periodic RVE of an IF steel) . Figure 7 shows an example of a periodic Laguerre diagram created using Algorithm 2. The target volumes _mi_ are taken from a 3D EBSD measurement of an IF (interstitial free) steel (EN 10130 grade DC06). There are _n_ = 9211 grains in a box of dimensions 670 _µm ×_ 80 _µm ×_ 480 _µm_ . We took the initial seed locations _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> to be the centres of mass of the grains from the EBSD data, and performed _K_ = 10 regularisation steps with a tolerance of 0 _._ 5% ( _ε_ = 0 _._ 005). The grains in Figure 7 are coloured according to their 13 _<u>n</u>_ <u>run</u> <u>time</u> <u>(s)</u> _r_ = 1 _r_ = 5 1000 1.96 2.86 2000 5.26 8.41 3000 11.41 17.62 5000 31.53 46.84 7500 75.86 110.09 10000 147.15 206.71 15000 356.41 525.33 <u>20000</u> <u>689.98</u> <u>989.42</u> 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>3</sup> 10 <sup>4</sup> Figure 6: Run times in seconds of Algorithm 2 for creating monodisperse (single phase) and polydisperse (dual phase) periodic RVEs in 3D. There are _n/_ 2 grains of volume _x_ and _n/_ 2 grains of volume _rx_ in a cube of side length 100 with at most 1% error ( _ε_ = 0 _._ 01) in the volumes of the grains ( _r_ = 1 corresponds to a single phase material, _r_ = 5 corresponds to a dual phase material, _x_ is chosen such that the total volume of the grains equals the volume of the box). We used _K_ = 5 regularisation steps, and the initial seed locations _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> were chosen randomly from a uniform distribution. The simulations were performed on an Intel Xeon E5-1620V3 (3.5GHz, 4 cores, 8 threads). The graph on the right has a log-log scale. The black dotted line is the graph of the function _cn_ <sup>2</sup>, where _c_ is a constant. It is included to illustrate how the run times grow with _n_ . lattice orientations by mapping the three Euler angles linearly to RGB values. The orientations were taken from the EBSD data. Figure 8 shows that the volumes of all the grains are correct to within 0 _._ 5%, and most volumes are correct to within 0 _._ 05%. Example 5.3 (Fitting a Laguerre diagram to EBSD measurements) . The main aim of this paper is to create Laguerre diagrams with given volume distributions for use in computational homogenisation simulations. We briefly mention, however, how Algorithm 1 can be used to fit a Laguerre diagram to EBSD data of grain volumes and centroids. Figure 9 is an example of a non-periodic Laguerre diagram fitted to a 3D EBSD measurement of an IF steel (EN 10130 grade DC06) with _n_ = 9211 grains in a box of dimensions 670 _µm ×_ 80 _µm ×_ 480 _µm_ (this is the same EBSD data used in the previous example). In the initialisation step of Algorithm 1 we took _x_ 1 _, . . .,_ _x_ _n_ to be the centroids of the grains from the EBSD data. The target volumes _mi_ were also taken from the EBSD data. We used a tolerance of 1% ( _ε_ = 0 _._ 01). As in the previous example, the grains in Figure 9 are coloured according to their lattice orientation. Observe that Figure 9 is less regular than Figure 7, which is because Algorithm 1 is missing the regularisation steps of Algorithm 2. Figure 10 shows that the volumes of all the grains are correct to within 0 _._ 56%, and most volumes are correct to within 0 _._ 1%. Figure 11 shows the complementary cumulative number distribution of the relative errors of the centroids. The relative error for grain _i_ is defined by _<u>|</u>_ _<u>x</u>_ _<u>i −</u>_ _<u>c</u>_ _<u>i|</u>_ _ri_ (5.1) where _x_ _i_ is the centroid of grain _i_ from the EBSD data, _c_ _i_ is the centroid of the Laguerre cell _Li_, and _ri_ is the radius of a sphere of volume _mi_, where _mi_ is the target volume of grain _i_ . This definition of relative error was proposed by [9]. As expected, the centroid errors are higher than the volume errors since Algorithm 1 does not directly try to fit the centroids. To be precise, the optimisation step of Algorithm 1 only minimises the fitting error of the volumes; the centroid 14 Figure 7: A periodic RVE of an IF steel with _n_ = 9211 grains, generated using Algorithm 2 (see Example 5.2). The grains are coloured according to their lattice orientations. 10 <sup>4</sup> 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 Figure 8: The complementary cumulative number distribution of the percentage error of the volumes of the grains for Example 5.2. For a percentage error _x_ we plot the number of grains that have volume percentage error at least _x_ . Most of the grain volumes have percentage error less than 0 _._ 05%, which is an order of magnitude below the tolerance of 0 _._ 5% ( _ε_ = 0 _._ 005). In this example, the maximum percentage error is 0 _._ 30%. 15 fitting error is not minimised (the centroids do not appear in the objective function _g_ ). However, the centroid measurements are used in the initialisation step of Algorithm 1. The relative error of 79% of the grain centroids is less than 1 and the relative error of 93% of the grain centroids is less than 2. The run time for this example was 376 seconds on an Intel Xeon E5-1620V3 (3.5GHz, 4 cores, 8 threads) with the initial guess ( _w_ init) _i_ = (3 _mi/_ (4 _π_ )) <sup>2</sup> <sup>_/_</sup> <sup>3</sup>, which was inspired by sphere-packing methods [4, 8, 10, 18]. Figure 9: A non-periodic Laguerre diagram fitted to 3D EBSD data of an IF steel using Algorithm 1 (see Example 5.3). The grains are coloured according to their lattice orientations. The volume distribution has a fitting error of less than 1%. The texture intensity inherits the same fitting error. 10 <sup>4</sup> 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 0 0.1 0.2 0.3 0.4 0.5 0.6 Figure 10: The complementary cumulative number distribution of the percentage error of the volumes of the grains for Example 5.3. For a percentage error _x_ we plot the number of grains with volume percentage error at least _x_ . The largest percentage error is 0 _._ 56% and the second largest is 0 _._ 43%. All the other percentage errors are below 0 _._ 34%. 16 10 <sup>4</sup> 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 0 1 2 3 4 5 6 7 8 9 10 11 12 Figure 11: The complementary cumulative number distribution of the relative error of the centroids of the grains for Example 5.3. For a relative error _x_ we plot the number of grains with centroid relative error at least _x_ . The maximum relative error is 11.16%, which is worse than the result given in [9, Fig. 9], although for most of the grains the relative errors are comparable: 7278 of the 9211 grains have relative error less than 1, and 8596 of the 9211 grains have relative error less than 2. Example 5.4 (Generating a dual phase RVE with a banded microstructure) . Figure 12 shows an example of a periodic, dual phase Laguerre diagram with a band of small grains in the centre, generated using Algorithm 2. There are _n_ = 10 _,_ 000 grains: 8000 grains of volume _x_ and 2000 grains of volume 20 _x_ (where _x_ was chosen so that the total volume of the grains equals the volume of the box). We used _K_ = 20 regularisation steps and a volume tolerance of 1%. The grains are coloured according to their volume. In order to obtain the banded structure, we placed the initial seeds _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> at random within bands of the correct volume. We see from Figure 12 that these bands were largely preserved by the regularisation steps. Figure 12: A periodic RVE of a dual phase material with a banded microstructure (see Example 5.4). Example 5.5 (Generating an RVE with a log-normal distribution of grain volumes) . Figure 13 shows an example of a periodic Laguerre diagram generated by Algorithm 2, in which the grains have volumes that are log-normally distributed. There are _n_ = 10 _,_ 000 grains. We used _K_ = 5 17 regularisation steps and a volume tolerance of 1%. The grains are coloured by their volume, using a log scale. We placed the initial seeds _x_ <sup>(0)</sup> 1 <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(0)</sup> at random. The target volumes were generated by drawing 10 _,_ 000 samples _ri_ from a log-normal distribution with mean 1 and standard derivation 0 _._ 35 (these correspond to the log-normal parameters _σ_ = (log(1+0 _._ 35 <sup>2</sup> )) <sup>1</sup> <sup>_/_</sup> <sup>2</sup> = 0 _._ 34 and _µ_ = _−σ_ <sup>2</sup> _/_ 2). The target volumes were defined by _mi_ = _<u>ri</u>_ <sup>3</sup> _<u>i</u>_ _L_ 1 _L_ 2 _L_ 3 _j_ <u>�</u> _<u>n</u>_ _j_ =1 <sup>_r_</sup> _j_ <sup>3</sup> _,_ (5.2) where the _Li_ are the side-lengths of the domain Ω= [0 _, L_ 1] _×_ [0 _, L_ 2] _×_ [0 _, L_ 3]. For large _n_ these target volumes are approximately log-normally distributed with coefficient of variation (the ratio of standard variation to mean) of <u>1</u> 3 ~~�~~ exp (9 _σ_ <sup>2</sup> ) _−_ 1 _._ (5.3) The algorithm took 669 seconds using the same machine as above. Observe from Example 5.1 that Algorithm 2 took only 147 seconds to produce a monodisperse RVE and 207 seconds to produce a dual phase RVE with the same number of grains ( _n_ = 10 _,_ 000) and the same number of regularisation steps ( _K_ = 5). Therefore the run time of Algorithm 2 increases as the RVE becomes more polydisperse. Figure 13: An RVE in which the grain volumes have approximately log-normal distribution (see Example 5.5). There are _n_ = 10 _,_ 000 grains in the cubic cell. The coefficient of variation of the volumes (the ratio of the standard deviation to the mean) is 1 _._ 4. Cross-sections of the cell are also shown, showing the distribution of sizes throughout the cell. ### 6 Discussion The advantages of our method are _•_ it is fast; _•_ it can create Laguerre diagrams with grains of _exact_ volumes, in principle of any desired tolerance up to machine precision; _•_ it gives some control over the spatial distribution of the grains; _•_ it can create periodic and non-periodic Laguerre diagrams. 18 The disadvantages of our method are _•_ it provides no direct control over the centroids of the grains or their morphology, e.g., their aspect ratio; _•_ it is currently limited to Laguerre diagrams and so the grains cannot have curved boundaries or be non-convex. We now discuss these advantages and disadvantages in more detail, give evidence in support of our claims, and compare our method with others in the literature. 6.1 Controlling grain volumes: Speed and accuracy Figure 6 shows that we can create Laguerre diagrams in 3D with up to 20,000 grains in around 10 minutes on a standard desktop PC (without using parallel computation), where the volumes of the grains are correct to within 1%. For 10,000 grains we require as little as 2.5 minutes (see Figure 6), although the time depends on the regularity of the microstructure and whether the material in monodisperse or polydisperse; in Example 5.3 it took 6.25 minutes for 9211 grains and in Example 5.5 it took about 11 minutes for 10,000 grains. In our implementation of Algorithm 2 we simply used MATLAB’s all-purpose _fminunc_ optimisation algorithm. With modern, customised optimal transport optimisation algorithms such as [33, 32] it should be possible to use our method to generate Laguerre diagrams with given volume distributions with 100,000 grains in a few minutes [32, Table 3] or even one million grains in less than an hour [32, Table 4]. We now compare this with the speed of other algorithms. It is difficult to make a direct comparison in some cases since different methods fit different geometric properties. In [9] a stochastic optimisation method (the cross-entropy method) is used to solve a non-convex optimisation problem to fit a Laguerre diagram to 3D XRD measurements of grain volumes _and_ _centroids_ . The authors report simulation times (performed using parallel computation) of 19.2 hours for 1439 grains and 122.3 hours for 8063 grains. Note that it is hard to compare their run times with ours since they are also fitting centroids; their method does not try to fit the volumes exactly like we do, but rather obtain a good fit for both volumes and centroids, and their method can produce empty Laguerre cells (grains with volume zero). While the main focus of our paper is to fit volumes only, we gave an example of fitting volumes and centroids in Example 5.3, where we fit a Laguerre diagram to 3D EBSD measurements of an IF steel with 9211 grains. The run time is 6.25 minutes and the volumes are correct to within 0 _._ 56%. The centroid errors of most of the grains are comparable to those given in [9, Fig. 9], although overall our method does worse than [9] at centroid fitting, as expected. Sphere-packing methods are popular for fitting Laguerre diagrams to volume distributions [4, 8, 10, 18]. For _n_ non-overlapping spheres _S_ 1 _, . . ., Sn_ with centres _x_ 1 _, . . .,_ _x_ _n_ and radii _r_ 1 _, . . ., rn_, the Laguerre diagram with seeds _x_ _i_ and weights _wi_ = _ri_ <sup>2</sup> <sup>has the property that cell</sup> <sup>_Li_</sup> <sup>contains sphere</sup> _Si_ . Therefore the volume of _Li_ is at least the volume of _Si_ . The idea of sphere-packing methods is that if the spheres are close-packed, then the volumes of the Laguerre cells are approximately equal to the volumes of the solid spheres. The disadvantage of this method is that it is inexact and computationally expensive since the sphere-packing problem is NP hard [47]. Nevertheless, this method provided us with inspiration for a good initial guess for the optimisation simulation in Example 5.3 (see also Section 4.2.1). In [1] a method is proposed for fitting grain measurements with _generalised_ _balanced_ _power_ _diagrams_ (GBPDs), which are a generalization of Laguerre diagrams. GBPDs are generated by triples ( _x_ _i, wi, Ai_ ) of seeds _x_ _i_, weights _wi_, and positive definite matrices _Ai_ ; the matrices _Ai_ give some control over the aspect ratio of the generalised Laguerre cells; the case _Ai_ = _I_ for all _i_ corresponds to a standard Laguerre diagram. The advantage of GBPDs is that they give a high degree of control over the morphology of the grains [1, Figs. 1-6]. The disadvantage is that they are hard to compute. In [1] the authors approximate GBPDs by voxels, and they fit discretised GBPDs to grain measurements by solving a high-dimensional linear programming problem, where 19 the number of unknowns equals the number of grains multiplied by the number of voxels. It is reported that to fit a discretised GBPD to 109 grains in 3D took around 6 hours on a standard laptop (this involved solving a linear programming problem with over 77 million variables and 78 million constraints) [1, Sec. 5.3]. Again, it is not possible to make a direct comparison of these run times with the ones presented here since grain volumes and morphology are fitted in [1], not only grain volumes like here. A heuristic method for approximately fitting GBPDs to measurements of grain volumes, centroids and aspect ratios was proposed in [13]. Their method entirely avoids solving an optimisation problem; it includes explicit formulas for the generators ( _x_ _i, wi, Ai_ ) in terms of the data. It is reported in [13] that the method is comparable in accuracy with the optimisation methods of [1, 11, 21] but takes a small fraction of the computation time. No run times or volume errors are reported in [13] precluding a more precise comparison with our method. Like the sphere-packing method, this heuristic method could be used for generating good initial guesses for optimisation methods. 6.2 Controlling grain geometry The main goal of our method is to fit grain volumes quickly and accurately. Unlike other methods [1, 9, 21, 24, 12, 11, 13] it is not specifically designed for fitting grain morphology. We now discuss to what extent we can control the geometry of Laguerre diagrams. Our method gives some control over the spatial distribution of the grains, as shown in Figures 4, 5 and 12, where we create microstructures with bands, clusters, and size gradients. Several authors use grain centroids as a measure of fitting-error when fitting Laguerre diagrams to data measurements, e.g., [9, 13]. We show how we can approximately fit grain centroids to 3D EBSD data in Example 5.3, although the accuracy is much lower than the volume accuracy. In its current form, our method gives no direct control over the aspect ratio of the grains. Like the sphere-packing method, Algorithm 2 tends to produce grains that are too round compared to grains typically seen in metals; see Section 4.4. Nevertheless there are several ways how our method could be generalised to give more control over the morphology of the grains. For example, by combining our method with _multilevel Voronoi_ _diagrams_ [5, 17] we could maintain control over the volume of the grains while producing more realistic RVEs with non-convex and elongated grains. The idea would be to first use Algorithm 2 to create a Laguerre diagram with _N_ ‘micro-grains’ of equal volume for large _N_ . Then we would glue together the micro-grains into non-convex ‘macro-grains’. By choosing which micro-grains to glue, we would control the volume and the morphology of the macro-grains. (The multilevel Voronoi method glues together two micro-grains if their generators lie in the same Voronoi cell of a ‘coarser’ Voronoi diagram with fewer generators.) In principle our algorithms can also be generalised very easily to produce GBPDs with grains of given volumes (up to any desired tolerance) by modifying the objective functions _g_ and _gk_ in Algorithms 1 and 2 (simply replace the Laguerre cells _Li_ with generalised Laguerre cells, and replace the isotropic distances _|_ _x_ _−_ _x_ _i|_ with anisotropic distances _|_ _x_ _−_ _x_ _i|Ai_ ). This would again allow us to control both the volumes and the aspect ratio of the grains. In practice, however, it is expensive to compute GBPDs to high accuracy; discretizing them with voxels greatly increases the cost of the algorithm. Without developing new computational geometry algorithms for the efficient computation of GBPDs, this limits the method to a small number of grains or greatly increases the run time (cf. the run time of 6 hours for 109 grains in 3D in [1]). Since our method is currently limited to Laguerre diagrams, the grains cannot have curved boundaries or be non-convex. Curved grain boundaries can be created using additively-weighted Voronoi diagrams (Apollonius diagrams) [27], anisotropic diagrams [2], or GBPDs [1, 21, 12, 13], although these are all more costly to compute than Laguerre diagrams. Algorithms 1 and 2 can also be modified to produce Apollonius diagrams with grains of given volumes (in the definition of the objective functions _g_ and _gk_ simply replace the Laguerre cells _Li_ with Apollonius cells, and replace the squared distances _|_ _x_ _−_ _x_ _i|_ <sup>2</sup> with non-squared distances _|_ _x_ _−_ _x_ _i|_ ) but again the 20 implementation cost is an obstacle at the present time. We plan to explore this and the above generalizations in a future paper. ### 7 Conclusions In this paper we introduced a fast optimisation method for generating Laguerre diagrams with user-defined grain size distributions. The volumes of the grains can be controlled exactly (to within any given tolerance). We produced industrially-relevant examples of RVEs with up to 20,000 grains with only 1% volume error in the order of minutes on a standard desktop PC. We also demonstrated how the spatial and texture distribution of the grains can be partially controlled. Our algorithms can create both non-periodic Laguerre diagrams (for data fitting) and periodic Laguerre diagrams (for generating RVEs of polycrystalline metals or solid foams for computational homogenisation). ### Acknowledgments The authors would like to thank Carola Celada-Casero for useful discussions. DPB would like to thank the EPSRC for financial support via the grant EP/R013527/1, EP/R013527/2 Designer Microstructure via Optimal Transport Theory. Some of the work of DPB was carried out at Durham University. The work on generating 3D EBSD data has received funding from the European Union’s Horizon 2020 research and innovation programme _Euratom_ _research_ _and_ _training_ _programme_ _2014-2018_ under grant agreement No 709418 MuSTMeF. ### A Proof that Algorithm 2 is energy-decreasing and conver- gent Throughout this section we assume that Ω _⊂_ R <sup>_d_</sup> is compact. First we prove that Algorithm 2 is energy-decreasing, equation (3.11). Recall that if _U_ is a compact subset of R <sup>_d_</sup> with centroid _c_ ( _U_ ), then _U_ _U_ _|_ _x_ _−_ _c_ ( _U_ ) _|_ <sup>2</sup> _d_ _x_ _._ (A.1) min _z_ _∈_ R <sup>_d_</sup> _|_ _x_ _−_ _z_ _|_ <sup>2</sup> _d_ _x_ = This follows from the fact that the function _z_ _�→_ _U_ <sup>_|_</sup> <sup>_x_</sup> <sup>_−_</sup> <sup>_z_</sup> <sup>_|_</sup> <sup>2</sup> <sup>_d_</sup> <sup>_x_</sup> <sup>is</sup> <sup>strictly</sup> <sup>convex</sup> <sup>with</sup> <sup>unique</sup> critical point _c_ ( _U_ ). By equation (3.8) and by the way �� _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _, wi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> �� _ni_ =1 <sup>is</sup> <sup>constructed</sup> <sup>using</sup> Algorithm 2, _i_ critical point _c_ ( _U_ ). By equation (3.8) and by the way �� _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _, wi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> �� _x_ _−_ _x_ ( _ik_ ) _E_ ( _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>)) =</sup> _n_ ��2 d _x_ (A.2) _i_ =1 _L_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> �� _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _, wi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _i_ where - _L_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> - _L_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> - _n_ _i_ =1 <sup>is</sup> <sup>the</sup> <sup>Laguerre</sup> <sup>diagram</sup> <sup>with</sup> <sup>generators</sup> �� _n_ _i_ =1 <sup>.</sup> <sup>Therefore</sup> �� _x_ _−_ _c_ - _L_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> �� _x_ _−_ _c_ - _L_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> _E_ ( _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>))</sup> (A.1) _≥_ (A.1) _L_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> ���2 d _x_ �� _x_ _−_ _x_ ( _ik_ +1) = _n_ _i_ =1 _n_ _i_ =1 _L_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> ��2 d _x_ (regularisation step of Alg. 2) (3.7) <sup>(</sup> 1 <sup>_k_</sup> <sup>+1)</sup> _, . . .,_ _x_ <sup>(</sup> _n_ <sup>_k_</sup> <sup>+1)</sup> _≥_ _E_ ( _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>+1)</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>+1)</sup> ) _._ (A.3) This proves (3.11). The inequalities above are strict unless _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> This proves (3.11). The inequalities above are strict unless _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> = _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>+1)</sup> for all _i_, which means that - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> - is a fixed point of Algorithm 2. - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> - is a fixed point of Algorithm 2. <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> = _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>+1)</sup> 21 Next we prove a _weak_ _global_ _convergence_ result of the form [48, Theorem 3.8], where convergence of the classical Lloyd algorithm was proved. Weak global convergence means that _∇E_ - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> - _→_ 0 as _k_ _→∞_ and that any convergent subsequence of - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> converges to a critical point of _E_, namely to a centroidal Laguerre diagram. This convergence is called _weak_ because it does not guarantee convergence of the whole sequence - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> - _→_ 0 as _k_ _→∞_ and that any convergent subsequence of - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>)</sup> - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> (different subsequences could converge to different critical points). <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> is the centroid of the convex set _L_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup>, By construction _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> By construction _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> is the centroid of the convex set _L_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup>, which has volume _mi_ . Therefore by [48, Lemma 3.2] the distance between _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> and _∂L_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> has a lower bound of _Cm_ <sup>2</sup> _i_ <sup>_/_</sup> <sup>diam(Ω)2</sup> <sup>_d−_</sup> <sup>1</sup> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> and _∂L_ <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> and _x_ <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> <sup>(</sup> _i_ <sup>_k−_</sup> <sup>1)</sup> has a lower bound of _Cm_ <sup>2</sup> _i_ where _C_ = 1 _/_ 1024. Therefore the closest that two generators _x_ <sup>(</sup> _i_ <sup>_k_</sup> <sup>)</sup> <sup>(</sup> _j_ <sup>_k_</sup> <sup>)</sup> can be is 2 _Cm_ <sup>2</sup> _/_ diam(Ω) <sup>2</sup> <sup>_d−_</sup> <sup>1</sup> <sup>2</sup> _i_ <sup>_/_</sup> <sup>diam(Ω)2</sup> <sup>_d−_</sup> <sup>1</sup> where _m_ = min _i mi_ . Note that this bound is independent of the iteration number _k_ . Therefore the iterates ( _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> <sup>(</sup> _n_ <sup>_k_</sup> <sup>))</sup> <sup>lie</sup> <sup>in</sup> <sup>the</sup> <sup>compact</sup> <sup>set</sup> _{_ ( _x_ 1 _, . . .,_ _x_ _n_ ) _∈_ Ω <sup>_n_</sup> : _|_ _x_ _i −_ _x_ _j| ≥_ 2 _Cm_ <sup>2</sup> _/_ diam(Ω) <sup>2</sup> <sup>_d−_</sup> <sup>1</sup> _∀_ _i, j}._ (A.4) Owing to this compactness and the energy-decreasing property of Algorithm 2, we have weak global convergence of - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> �; see the Global Convergence Theorem in [49, p. 206] or [35, - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> global convergence of - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> �; see the Global Convergence Theorem in [49, p. 206] or [35, proof of Theorem 3.3]. Finally we prove a _strong_ _convergence_ result, namely that the whole sequence - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> produced by Algorithm 2 converges to a critical point of _E_ . We are only able to prove this, however, under the following generic assumption: There are only finitely many centroidal Laguerre diagrams with the same energy _E_ . More precisely we assume that, for all _M_ _>_ 0, # _{_ ( _x_ 1 _, . . .,_ _x_ _n_ ) _∈_ Ω <sup>_n_</sup> : _∇E_ ( _x_ 1 _, . . .,_ _x_ _n_ ) = 0 _,_ _E_ ( _x_ 1 _, . . .,_ _x_ _n_ ) = _M_ _} < ∞._ (A.5) This assumption is expected to hold for ‘generic’ domains Ωand masses _m_ 1 _, . . ., mn_ [50, p. 107], [35, Remark 3.4], however there are examples where it fails. For example, if Ωis a disc, _n_ = 2 and _m_ 1 = _m_ 2, then there are infinitely many critical points of _E_ with the same energy by the rotational symmetry of Ω. Note that if _E_ satisfies the generic condition of being a Morse function (having no degenerate critical points), then its critical points are isolated. Since they lie in the compact set (A.4) there are only finitely many of them, and so assumption (A.5) is satisfied. The Monotone Convergence Theorem implies that the whole sequence _E_ - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - con verges (because Algorithm 2 is energy-decreasing and _E_ is bounded below by zero). In addition _E_ is continuous, and so every accumulation point of - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - has the same energy _E_ . More The Monotone Convergence Theorem implies that the whole sequence _E_ - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> is continuous, and so every accumulation point of - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - has the same energy _E_ . More over, by the global weak convergence result above, every accumulation point is a critical point of _E_ . Therefore assumption (A.5) ensures there are only finitely many accumulation points. We now complete the proof following the idea from [50, proof of Theorem 2.5]. Assume for contradiction that the sequence _X_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> := - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - does not converge. Since it only has - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> contradiction that the sequence _X_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> := - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - does not converge. Since it only has finitely many accumulation points, there exist distinct accumulation points _Y_ := ( _y_ 1 _, . . .,_ _y_ _n_ ), _Z_ := ( _z_ 1 _, . . .,_ _z_ _n_ ) and distinct subsequences _X_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> := - _x_ 1 <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> _, . . .,_ _x_ _n_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> �, _X_ <sup>(</sup> <sup>_kl_</sup> <sup>)</sup> := - _x_ <sup>(</sup> 1 <sup>_kl_</sup> <sup>)</sup> _, . . .,_ _x_ _n_ <sup>(</sup> <sup>_kl_</sup> <sup>)</sup> such that _X_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> _→_ _Y_, _X_ <sup>(</sup> <sup>_kl_</sup> <sup>)</sup> _→_ _Z_, and _kl_ = _kj_ + 1, i.e., the sequence _X_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ‘jumps’ between the two subsequences infinitely many times. (Note that such subsequences may not exist if there are infinitely many accumulation points.) Let _δ_ = _|_ _Y_ _−_ _Z_ _|_ _>_ 0 and let _T_ : Ω <sup>_n_</sup> _→_ Ω <sup>_n_</sup> denote the continuous map that sends ( _x_ 1 _, . . .,_ _x_ _n_ ) to ( _c_ ( _L_ 1) _, . . .,_ _c_ ( _Ln_ )), where _{Li}_ is the Laguerre diagram with seeds ( _x_ 1 _, . . .,_ _x_ _n_ ) and cells of volume _m_ 1 _, . . ., mn_ . In other words, _X_ <sup>(</sup> <sup>_k_</sup> <sup>+1)</sup> = _T_ ( _X_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ). Moreover, _T_ ( _Y_ ) = _Y_ and _T_ ( _Z_ ) = _Z_ . Then <sup>(</sup> 1 <sup>_kl_</sup> <sup>)</sup> _, . . .,_ _x_ _n_ <sup>(</sup> <sup>_kl_</sup> <sup>)</sup> - _x_ 1 <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> 1 <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> _, . . .,_ _x_ _n_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> _n_ �, _X_ <sup>(</sup> <sup>_kl_</sup> <sup>)</sup> := _n_ - _x_ <sup>(</sup> 1 <sup>_kl_</sup> <sup>)</sup> _δ_ = _|_ _Y_ _−_ _Z_ _|_ _≤|_ _Y_ _−_ _X_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> _|_ + _|_ _X_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> _−_ _X_ <sup>(</sup> <sup>_kl_</sup> <sup>)</sup> _|_ + _|_ _X_ <sup>(</sup> <sup>_kl_</sup> <sup>)</sup> _−_ _Z_ _|_ = _|_ _Y_ _−_ _X_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> _|_ + _|_ _X_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> _−_ _T_ ( _X_ <sup>(</sup> <sup>_kj_</sup> <sup>)</sup> ) _|_ + _|_ _X_ <sup>(</sup> <sup>_kl_</sup> <sup>)</sup> _−_ _Z_ _|._ (A.6) By taking _j, l_ _→∞_ in the right-hand side, and using the continuity of _T_, we find that _δ_ = 0, which is a contradiction. Therefore the whole sequence - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - converges to a critical - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> which is a contradiction. Therefore the whole sequence - _x_ <sup>(</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>_, . . .,_</sup> <sup>_x_</sup> _n_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - converges to a critical point of _E_ . Moreover, this critical point must a local minimum point or a saddle point of _E_ by the energy-decreasing property. This completes the proof. 22 ### References [1] A. Alpers, A. Brieden, P. Gritzmann, A. Lyckegaard, and H.F. Poulsen, _Generalized_ _balanced_ _power_ _diagrams_ _for_ _3D_ _representations_ _of_ _polycrystals_, Philosophical Magazine 95 (2015), pp. 1016–1028, Available at `[https://doi.org/10.1080/14786435.2015.1015469](https://doi.org/10.1080/14786435.2015.1015469)` . [2] H. Altendorf, F. Latourte, D. Jeulin, M. Faessel, and L. Saintoyant, _3D_ _reconstruction_ _of_ _a_ _multiscale_ _microstructure_ _by_ _anisotropic_ _tessellation_ _models_, Image Analysis & Stereology 33 (2014), pp. 121–130, Available at `[https://www.ias-iss.org/ojs/IAS/article/view/1090](https://www.ias-iss.org/ojs/IAS/article/view/1090)` . [3] J. Barker, G. Bollerhey, and J. Hamaekers, _A_ _multilevel_ _approach_ _to_ _the_ _evolutionary_ _gener-_ _ation_ _of_ _polycrystalline_ _structures_, Computational Materials Science 114 (2016), pp. 54–63, Available at `[http://www.sciencedirect.com/science/article/pii/S0927025615007259](http://www.sciencedirect.com/science/article/pii/S0927025615007259)` . [4] D. Depriester and R. Kubler, _Radical_ _Voronoi_ _tessellation_ _from_ _random_ _pack_ _of_ _polydisperse_ _spheres:_ _Prediction_ _of_ _the_ _cells’_ _size_ _distribution_, Computer-Aided Design 107 (2019), pp. 37–49, Available at `[https://doi.org/10.1016/j.cad.2018.09.001](https://doi.org/10.1016/j.cad.2018.09.001)` . [5] P.J.J. Kok and F.N.M. Korver, _Modelling_ _of_ _complex_ _microstructures_ _in_ _multi_ _phase_ _steels:_ _geometric_ _considerations_ _for_ _building_ _an_ _RVE_, in _Proceedings_ _of_ _the_ _X_ _International_ _Confer-_ _ence_ _on_ _Computational_ _Plasticity_ . 2009. [6] A. Liebscher, _Laguerre_ _approximation_ _of_ _random_ _foams_, Philosophical Magazine 95 (2015), pp. 2777–2792, Available at `[https://doi.org/10.1080/14786435.2015.1078511](https://doi.org/10.1080/14786435.2015.1078511)` . [7] A. Leonardi, P. Scardi, and M. Leoni, _Realistic_ _nano-polycrystalline_ _microstructures:_ _beyond_ _the_ _classical_ _Voronoi_ _tessellation_, Philosophical Magazine 92 (2012), pp. 986–1005, Available at `[https://doi.org/10.1080/14786435.2011.637984](https://doi.org/10.1080/14786435.2011.637984)` . [8] A. Lyckegaard, E.M. Lauridsen, W. Ludwig, R.W. Fonda, and H.F. Poulsen, _On_ _the_ _use_ _of_ _Laguerre_ _tessellations_ _for_ _representations_ _of_ _3d_ _grain_ _structures_, Advanced Engineering Materials 13 (2011), pp. 165–170, Available at `[https://onlinelibrary.wiley.com/doi/](https://onlinelibrary.wiley.com/doi/abs/10.1002/adem.201000258)` `[abs/10.1002/adem.201000258](https://onlinelibrary.wiley.com/doi/abs/10.1002/adem.201000258)` . [9] L. Petrich, J. Stanˇek, M. Wang, D. Westhoff, L. Heller, P. Sittner, <sup>ˇ</sup> C.E. Krill III, V. Beneˇs, and V. Schmidt, _Reconstruction_ _of_ _grains_ _in_ _polycrystalline_ _materials_ _from_ _incomplete_ _data_ _using_ _Laguerre_ _tessellations_, Microscopy and Microanalysis 25 (2019), pp. 743–752, Available at `[https://doi.org/10.1017/S1431927619000485](https://doi.org/10.1017/S1431927619000485)` . [10] I. P´erez, M. Muniz de Farias, M. Castro, R. Rosell´o, C. Recarey Morfa, L. Medina, and E. O˜nate, _Modeling_ _polycrystalline_ _materials_ _with_ _elongated_ _grains_, International Journal for Numerical Methods in Engineering 118 (2019), pp. 121–131, Available at `[https:](https://onlinelibrary.wiley.com/doi/abs/10.1002/nme.6004)` `[//onlinelibrary.wiley.com/doi/abs/10.1002/nme.6004](https://onlinelibrary.wiley.com/doi/abs/10.1002/nme.6004)` . [11] A. Spettl, T. Brereton, Q. Duan, T. Werz, C.E. Krill III, D.P. Kroese, and V. Schmidt, _Fitting_ _Laguerre_ _tessellation_ _approximations_ _to_ _tomographic_ _image_ _data_, Philosophical Magazine 96 (2016), pp. 166–189, Available at `[https://doi.org/10.1080/14786435.2015.1125540](https://doi.org/10.1080/14786435.2015.1125540)` . [12] O. Sediv´y, <sup>ˇ</sup> D. Westhoff, J. Kopeˇcek, C.E. Krill III, and V. Schmidt, _Data-driven_ _selection_ _of_ _tessellation_ _models_ _describing_ _polycrystalline_ _microstructures_, Journal of Statistical Physics 172 (2018), pp. 1223–1246, Available at `[https://doi.org/10.1007/s10955-018-2096-8](https://doi.org/10.1007/s10955-018-2096-8)` . [13] K. Teferra and D.J. Rowenhorst, _Direct_ _parameter_ _estimation_ _for_ _generalised_ _balanced_ _power_ _diagrams_, Philosophical Magazine Letters 98 (2018), pp. 79–87, Available at `[https://doi.](https://doi.org/10.1080/09500839.2018.1472399)` `[org/10.1080/09500839.2018.1472399](https://doi.org/10.1080/09500839.2018.1472399)` . [14] Y. Wu, J. Cao, and Z. Fan, _Chord length distribution of Voronoi diagram in Laguerre geometry_ _with_ _lognormal-like_ _volume_ _distribution_, Materials Characterization 55 (2005), pp. 332–339, Available at `[http://www.sciencedirect.com/science/article/pii/S1044580305001695](http://www.sciencedirect.com/science/article/pii/S1044580305001695)` . 23 [15] J. Alsayednoor, P. Harrison, and Z. Guo, _Large_ _strain_ _compressive_ _response_ _of_ _2-D_ _peri-_ _odic_ _representative_ _volume_ _element_ _for_ _random_ _foam_ _microstructures_, Mechanics of Materials 66 (2013), pp. 7–20, Available at `[http://www.sciencedirect.com/science/article/pii/](http://www.sciencedirect.com/science/article/pii/S016766361300118X)` `[S016766361300118X](http://www.sciencedirect.com/science/article/pii/S016766361300118X)` . [16] S. Ghosh and D. Dimiduk, _Computational Methods for Microstructure-Property Relationships_, Springer, 2011. [17] S. Yadegari, S. Turteltaub, A.S.J. Suiker, and P.J.J. Kok, _Analysis_ _of_ _banded_ _microstructures_ _in_ _multiphase_ _steels_ _assisted_ _by_ _transformation-induced_ _plasticity_, Computational Materials Science 84 (2014), pp. 339–349, Available at `[http://www.sciencedirect.com/science/](http://www.sciencedirect.com/science/article/pii/S0927025613007519)` `[article/pii/S0927025613007519](http://www.sciencedirect.com/science/article/pii/S0927025613007519)` . [18] Y. Wu, W. Zhou, B. Wang, and F. Yang, _Modeling_ _and_ _characterization_ _of_ _two-phase_ _composites_ _by_ _Voronoi_ _diagram_ _in_ _the_ _Laguerre_ _geometry_ _based_ _on_ _random_ _close_ _packing_ _of_ _spheres_, Computational Materials Science 47 (2010), pp. 951–961, Available at `[http:](http://www.sciencedirect.com/science/article/pii/S092702560900439X)` `[//www.sciencedirect.com/science/article/pii/S092702560900439X](http://www.sciencedirect.com/science/article/pii/S092702560900439X)` . [19] Q. Duan, D. Kroese, T. Brereton, A. Spettl, and V. Schmidt, _Inverting Laguerre tessellations_, The Computer Journal 57 (2014), pp. 1431–1440. [20] K. Teferra and L. Graham-Brady, _Tessellation_ _growth_ _models_ _for_ _polycrystalline_ _microstruc-_ _tures_, Computational Materials Science 102 (2015), pp. 57–67, Available at `[https://doi.](https://doi.org/10.1016/j.commatsci.2015.02.006)` `[org/10.1016/j.commatsci.2015.02.006](https://doi.org/10.1016/j.commatsci.2015.02.006)` . [21] O. Sediv´y, <sup>ˇ</sup> T. Brereton, D. Westhoff, L. Pol´ıvka, V. Beneˇs, V. Schmidt, and A. J¨ager, _3D_ _reconstruction_ _of_ _grains_ _in_ _polycrystalline_ _materials_ _using_ _a_ _tessellation_ _model_ _with_ _curved_ _grain_ _boundaries_, Philosophical Magazine 96 (2016), pp. 1926–1949, Available at `[https:](https://doi.org/10.1080/14786435.2016.1183829)` `[//doi.org/10.1080/14786435.2016.1183829](https://doi.org/10.1080/14786435.2016.1183829)` . [22] M. Groeber and M. Jackson, _DREAM.3D:_ _A_ _digital_ _representation_ _environment_ _for_ _the_ _analysis_ _of_ _microstructure_ _in_ _3D_, Integrating Materials 3 (2014), pp. 56–72, Available at `[https://doi.org/10.1186/2193-9772-3-5](https://doi.org/10.1186/2193-9772-3-5)` . [23] R. Quey and L. Renversade, _Optimal_ _polyhedral_ _description_ _of_ _3d_ _polycrystals:_ _Method_ _and_ _application_ _to_ _statistical_ _and_ _synchrotron_ _x-ray_ _diffraction_ _data_, Computer Methods in Applied Mechanics and Engineering 330 (2018), pp. 308–333, Available at `[http://www.](http://www.sciencedirect.com/science/article/pii/S0045782517307028)` `[sciencedirect.com/science/article/pii/S0045782517307028](http://www.sciencedirect.com/science/article/pii/S0045782517307028)` . [24] O. Sediv´y, J. Dake, C.E. Krill III, V. Schmidt, and A. J¨ager, <sup>ˇ</sup> _Description of the 3D morphology_ _of grain boundaries in aluminum alloys using tessellation models generated by ellipsoids_, Image Analysis & Stereology 36 (2017), pp. 5–13, Available at `[https://www.ias-iss.org/ojs/](https://www.ias-iss.org/ojs/IAS/article/view/1656)` `[IAS/article/view/1656](https://www.ias-iss.org/ojs/IAS/article/view/1656)` . [25] B. L´evy and E.L. Schwindt, _Notions_ _of_ _optimal_ _transport_ _theory_ _and_ _how_ _to_ _implement_ _them_ _on_ _a_ _computer_, Computers & Graphics 72 (2018), pp. 135–148, Available at `[http://www.](http://www.sciencedirect.com/science/article/pii/S0097849318300098)` `[sciencedirect.com/science/article/pii/S0097849318300098](http://www.sciencedirect.com/science/article/pii/S0097849318300098)` . [26] F. Santambrogio, _Optimal_ _transport_ _for_ _applied_ _mathematicians_, Birkh¨auser/Springer, 2015, Available at `[https://doi.org/10.1007/978-3-319-20828-2](https://doi.org/10.1007/978-3-319-20828-2)` . [27] F. Aurenhammer, R. Klein, and D.-T. Lee, _Voronoi_ _diagrams_ _and_ _Delaunay_ _triangulations_, World Scientific, 2013, Available at `[https://doi.org/10.1142/8685](https://doi.org/10.1142/8685)` . [28] A. Okabe, B. Boots, K. Sugihara, and S.N. Chiu, _Spatial_ _tessellations:_ _Concepts_ _and_ _appli-_ _cations_ _of_ _Voronoi_ _diagrams_, 2nd ed., Wiley, 2000, Available at `[https://doi.org/10.1002/](https://doi.org/10.1002/9780470317013)` `[9780470317013](https://doi.org/10.1002/9780470317013)` . 24 [29] F. Aurenhammer, F. Hoffmann, and B. Aronov, _Minkowski-type_ _theorems_ _and_ _least-squares_ _clustering_, Algorithmica 20 (1998), pp. 61–76, Available at `[https://doi.org/10.1007/](https://doi.org/10.1007/PL00009187)` `[PL00009187](https://doi.org/10.1007/PL00009187)` . [30] Q. M´erigot, _A_ _multiscale_ _approach_ _to_ _optimal_ _transport_, Computer Graphics Forum 30 (2011), pp. 1583–1592, Available at `[https://onlinelibrary.wiley.com/doi/abs/10.](https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1467-8659.2011.02032.x)` `[1111/j.1467-8659.2011.02032.x](https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1467-8659.2011.02032.x)` . [31] S. Boyd and L. Vandenberghe, _Convex optimization_, Cambridge University Press, 2004, Avail able at `[https://doi.org/10.1017/CBO9780511804441](https://doi.org/10.1017/CBO9780511804441)` . [32] B. L´evy, _A_ _numerical_ _algorithm_ _for_ _L_ 2 _semi-discrete_ _optimal_ _transport_ _in_ _3D_, ESAIM. Mathematical Modelling and Numerical Analysis 49 (2015), pp. 1693–1715, Available at `[https://doi.org/10.1051/m2an/2015055](https://doi.org/10.1051/m2an/2015055)` . [33] J. Kitagawa, Q. M´erigot, and B. Thibert, _Convergence_ _of_ _a_ _Newton_ _algorithm_ _for_ _semi-_ _discrete_ _optimal_ _transport_, Journal of the European Mathematical Society (JEMS) 21 (2019), pp. 2603–2651, Available at `[https://doi.org/10.4171/JEMS/889](https://doi.org/10.4171/JEMS/889)` . [34] A. Brieden and P. Gritzmann, _On_ _optimal_ _weighted_ _balanced_ _clusterings:_ _Gravity_ _bodies_ _and_ _power_ _diagrams_, SIAM Journal on Discrete Mathematics 26 (2012), pp. 415–434, Available at `[https://doi.org/10.1137/110832707](https://doi.org/10.1137/110832707)` . [35] D.P. Bourne and S.M. Roper, _Centroidal_ _power_ _diagrams,_ _Lloyd’s_ _algorithm,_ _and_ _applications_ _to_ _optimal_ _location_ _problems_, SIAM Journal on Numerical Analysis 53 (2015), pp. 2545–2569, Available at `[https://doi.org/10.1137/141000993](https://doi.org/10.1137/141000993)` . [36] S.-Q. Xin, B. L´evy, Z. Chen, L. Chu, Y. Yu, C. Tu, and W. Wang, _Centroidal_ _power_ _diagrams_ _with_ _capacity_ _constraints:_ _Computation,_ _applications,_ _and_ _extension_, ACM Transactions on Graphics 35 (2016), pp. 244:1–244:12, Available at `[http://doi.acm.org/10.1145/2980179.](http://doi.acm.org/10.1145/2980179.2982428)` `[2982428](http://doi.acm.org/10.1145/2980179.2982428)` . [37] Q. Du, V. Faber, and M. Gunzburger, _Centroidal_ _Voronoi_ _tessellations:_ _applications_ _and_ _algorithms_, SIAM Review 41 (1999), pp. 637–676, Available at `[https://doi.org/10.1137/](https://doi.org/10.1137/S0036144599352836)` `[S0036144599352836](https://doi.org/10.1137/S0036144599352836)` . [38] B. Bollob´as and N. Stern, _The optimal structure of market areas_, Journal of Economic Theory 4 (1972), pp. 174–179, Available at `[https://doi.org/10.1016/0022-0531(72)90147-0](https://doi.org/10.1016/0022-0531%0x2872%0x2990147-0)` . [39] P.M. Gruber, _Optimum_ _quantization_ _and_ _its_ _applications_, Advances in Mathematics 186 (2004), pp. 456–497, Available at `[https://doi.org/10.1016/j.aim.2003.07.017](https://doi.org/10.1016/j.aim.2003.07.017)` . [40] R.M. Gray and D.L. Neuhoff, _Quantization_, Institute of Electrical and Electronics Engineers. Transactions on Information Theory 44 (1998), pp. 2325–2383, Available at `[https://doi.](https://doi.org/10.1109/18.720541)` `[org/10.1109/18.720541](https://doi.org/10.1109/18.720541)`, information theory: 1948–1998. [41] S. Graf and H. Luschgy, _Foundations_ _of_ _quantization_ _for_ _probability_ _distributions_, Vol. 1730, Springer, 2000, Available at `[https://doi.org/10.1007/BFb0103945](https://doi.org/10.1007/BFb0103945)` . [42] C.H. Rycroft, _VORO++:_ _A_ _three-dimensional_ _Voronoi_ _cell_ _library_ _in_ _C++_, Chaos: An Interdisciplinary Journal of Nonlinear Science 19 (2009), p. 041111, Available at `[https:](https://doi.org/10.1063/1.3215722)` `[//doi.org/10.1063/1.3215722](https://doi.org/10.1063/1.3215722)` . [43] Firman, _Fast_ _bounded_ _power_ _diagram_, `[https://uk.mathworks.com/matlabcentral/](https://uk.mathworks.com/matlabcentral/fileexchange/56633-fast-bounded-power-diagram)` `[fileexchange/56633-fast-bounded-power-diagram](https://uk.mathworks.com/matlabcentral/fileexchange/56633-fast-bounded-power-diagram)`, MATLAB Central File Exchange. [44] F. Aurenhammer, _Power_ _diagrams:_ _properties,_ _algorithms_ _and_ _applications_, SIAM Journal on Computing 16 (1987), pp. 78–96, Available at `[https://doi.org/10.1137/0216006](https://doi.org/10.1137/0216006)` . 25 [45] F. McCollum, _Power_ _diagrams_, `[https://uk.mathworks.com/matlabcentral/](https://uk.mathworks.com/matlabcentral/fileexchange/44385-power-diagrams)` `[fileexchange/44385-power-diagrams](https://uk.mathworks.com/matlabcentral/fileexchange/44385-power-diagrams)`, MATLAB Central File Exchange. [46] A. Spettl, T. Werz, C. Krill III, and V. Schmidt, _Parametric_ _representation_ _of_ _3d_ _grain_ _ensembles_ _in_ _polycrystalline_ _microstructures_, Journal of Statistical Physics 154 (2014), pp. 913–928, Available at `[https://doi.org/10.1007/s10955-013-0893-7](https://doi.org/10.1007/s10955-013-0893-7)` . [47] M. Hifi and R. M’Hallah, _A_ _literature_ _review_ _on_ _circle_ _and_ _sphere_ _packing_ _problems:_ _Models_ _and_ _methodologies_, Advances in Operations Research 2009 (2009), pp. 150624:1–150624:22. [48] M. Emelianenko, L. Ju, and A. Rand, _Nondegeneracy and weak global convergence of the Lloyd_ _algorithm_ _in_ R <sup>_d_</sup>, SIAM Journal on Numerical Analysis 46 (2008), pp. 1423–1441, Available at `[https://doi.org/10.1137/070691334](https://doi.org/10.1137/070691334)` . [49] D. Luenberger and Y. Ye, _Linear_ _and_ _Nonlinear_ _Programming_, 3rd ed., Springer, 2008. [50] Q. Du, M. Emelianenko, and L. Ju, _Convergence_ _of_ _the_ _Lloyd_ _algorithm_ _for_ _computing_ _cen-_ _troidal_ _Voronoi_ _tessellations_, SIAM Journal on Numerical Analysis 44 (2006), pp. 102–119, Available at `[https://doi.org/10.1137/040617364617364](https://doi.org/10.1137/040617364617364)` . 26

섹션 본문 95문단 · 40,096자

(제목 없음)

1We present a fast algorithm for generating Laguerre diagrams with cells of given volumes, which can be used for creating RVEs of polycrytalline materials for computational homogenization, or for fitting Laguerre diagrams to EBSD or XRD measurements of metals. Given a list of desired cell volumes, we solve a convex optimization problem to find a Laguerre diagram with cells of these volumes, up to any prescribed tolerance. The algorithm is built on tools from computational geometry and optimal transport theory which, as far as we are aware, are new to the microstructure modelling community. We illustrate the speed and accuracy of the algorithm by generating RVEs with user-defined volume distributions with up to 20,000 grains in 3D. We can achieve volume percentage errors of less than 1% in the order of minutes on a standard desktop PC. We also give examples of polydisperse microstructures with bands, clusters and size gradients, and of fitting a Laguerre diagram to 3D EBSD measurements of an IF steel.

Introduction

2Voronoi diagrams and their generalizations are often used to represent the microstructure of polycrystalline metals and foams, e.g., [1,3,7,12,20,21,22,25,29,28,34,33,35,36], with individual Voronoi cells representing grains in metals and pores or bubbles in foams. They can be used to generate complex microstructures quickly using a relatively small number of parameters, and they are often used as representative volume elements (RVEs) for computational homogenization, e.g., [2,14,39].

3In this paper we focus on the class of weighted Voronoi diagrams known as Laguerre diagrams (or power diagrams or radical Voronoi tessellations); see Definition 2.1. Laguerre diagrams have more degrees of freedom than Voronoi diagrams and so can represent more complex geometries, yet they are no more expensive to compute (Voronoi diagrams and Laguerre diagrams have the same algorithmic complexity [6]).

4Goal of this paper. A limitation of Laguerre diagrams is that there is not an explicit relation between their generators and their geometric properties, such as the volumes of their cells. The goal of this paper is to develop algorithms for creating Laguerre diagrams with user-defined cell size distributions. Our motivation comes from steel modelling. We wish to generate realistic RVEs of single-and multi-phase steels for computational homogenization simulations. Unlike much of the literature on Laguerre modelling of polycrystals [1,32,33,35], our primary aim is not to fit Laguerre diagrams to EBSD or XRD data, but rather to create a tool for generating a rich family of (possibly never-observed) microstructures, which can be combined with multiscale simulations to optimize grain geometries and lead to the development of new alloys. Having said that, our algorithms are also very well suited for generating Laguerre diagrams with texture intensities that match EBSD data, as we demonstrate in Example 5.3. With these applications to steel in mind, we often refer to Laguerre cells as grains, although our results can be applied more generally to other polycrystalline metals and to foams.

5Main results. Our main result is Algorithm 2, which generates 'regularized' Laguerre diagrams with grains of prescribed volumes, up to any given tolerance; see Section 3. It is an iterative method with two steps at each iteration: 1. The regularization step, which is used to avoid generating diagrams with unrealistic, highly irregular or elongated grains; 2. The optimization step, which solves a smooth, unconstrained convex optimization problem to find the weights of the Laguerre diagram so that the grains have the desired volumes. The more iterations, the more regular the Laguerre diagram.

6We also provide a simplified version, Algorithm 1, which performs a single iteration with an optimization step but no regularization step. We include this for illustrative purposes (to demonstrate the effect of the regularization step of Algorithm 2) and also because it can be used to fit a Laguerre diagram to EBSD measurements of grain volumes and centroids (Example 5.3).

7We present the theory underlying the algorithms in Section 2. The algorithm uses results from computational geometry and optimal transport theory [24,30], a field of mathematics that has recently gained great popularity and found applications in a wide range of areas including data science, economics, image processing, partial differential equations and statistics. We believe however that this is its first application in the steel industry.

8Advantages and disadvantages of our approach. The advantages of our method are • it is fast;

9• it can create Laguerre diagrams with grains of exact volumes, in principle of any desired tolerance up to machine precision;

10• it gives some control over the spatial distribution of the grains;

11• it can also create periodic Laguerre diagrams, which are important for computational homogenization.

12The disadvantages of our method are

13• it provides no direct control over the centroids of the grains or their morphology, e.g., their aspect ratio;

14• it is currently limited to Laguerre diagrams and so the grains cannot have curved boundaries or be non-convex.

15We now discuss these advantages and disadvantages in more detail, give evidence in support of our claims, and compare our method with others in the literature.

16Controlling grain volumes: Speed and accuracy. Figure 6 show that we can create Laguerre diagrams in 3D with up to 20,000 grains in around 10 minutes on a standard desktop PC (not using parallel computation), where the volumes of the grains are correct to within 1%. For 10,000 grains we require as little as 2.5 minutes (see Figure 6), although the time depends on the regularity of the microstructure; in Example 5.3 it took 6.25 minutes for 9211 grains. In our implementation of Algorithm 2 we simply used MATLAB's all-purpose fminunc optimization algorithm. With modern, customized optimal transport optimization algorithms such as [19,23] it should be possible to use our method to generate Laguerre diagrams with given volume distributions with 100,000 grains in a few minutes [23, Table 3] or even one million grains in less than an hour [23, Table 4]. The reason our method is fast is that it is equivalent to solving a sequence of convex optimization problems. We discuss this further in Section 4. We now compare this with the speed of other algorithms. It is difficult to make a direct comparison in some cases since different methods fit different geometric properties.

17In [29] a stochastic optimization method (the cross-entropy method) is used to solve a nonconvex optimization problem to fit a Laguerre diagram to 3D XRD measurements of grain volumes and centroids. They report simulation times (performed using parallel computation) of 19.2 hours for 1439 grains and 122.3 hours for 8063 grains. Note that it is hard to compare their run times with ours since they are also fitting centroids; their method does not try to fit the volumes exactly like we do, but rather obtain a good fit for both volumes and centroids, and their method can produce empty Laguerre cells (grains with volume zero). While the main focus of our paper is to fit volumes only, we give an example of fitting volumes and centroids in Example 5.3, where we fit a Laguerre diagram to 3D EBSD measurements of an IF steel with 9211 grains. The run time is 6.25 minutes and the volumes are correct to within 0.56%. The centroid errors of most of the grains are comparable to those given in [29,Fig. 9], although overall our method does worse than [29] at centroid fitting, as expected. Other approaches that use stochastic optimization methods to solve non-convex optimization problems include [31,34].

18Sphere-packing methods are popular for fitting Laguerre diagrams to volume distributions [12,25,28,37]. If you have n non-overlapping spheres S 1 , . . . , S n with centres x 1 , . . . , x n and radii r 1 , . . . , r n , then the Laguerre diagram with seeds x i and weights w i = r 2 i (see Definition 2.1) has the property that cell L i contains sphere S i . Therefore the volume of L i is at least the volume of S i . The idea of sphere-packing methods is that if the spheres are close-packed, then the volumes of the Laguerre cells are approximately equal to the volumes of the solid spheres. The disadvantage of this method is that it is inexact and computationally expensive since the sphere-packing problem is NP hard [18]. Nevertheless, this method provided us with inspiration for a good initial guess for the optimization simulation in Example 5.3 (see also Section 4.2.1).

19In [1] a method is proposed for fitting grain measurements with generalised balanced power diagrams (GBPDs), which are a generalization of Laguerre diagrams. GBPDs are generated by triples (x i , w i , A i ) of seeds x i , weights w i , and positive definite matrices A i ; the matrices A i give some control over the aspect ratio of the generalized Laguerre cells; the case A i = I for all i corresponds to a standard Laguerre diagram. The advantage of GBPDs is that they give a high degree of control over the morphology of the grains [1,. The disadvantage is that they are hard to compute. In [1] they approximate GBPDs by voxels, and they fit discretized GBPDs to grain measurements by solving a high-dimensional linear programming problem, where the number of unknowns equals the number of grains multiplied by the number of voxels. They report that to fit a discretized GBPD to 109 grains in 3D took around 6 hours on a standard laptop (this involved solving a linear programming problem with over 77 million variables and 78 million constraints) [1,Sec. 5.3]. Again, it should be noted that it is difficult to compare their run times with ours since they are fitting grain volumes and morphology, not only grain volumes like us.

20A heuristic method for approximately fitting GBPDs to measurements of grain volumes, centroids and aspect ratios was proposed by [35]. Their method does not involve solving any optimization problem at all; it includes explicit formulas for the generators (x i , w i , A i ) in terms of the data. It is reported in [35] that the method is comparable in accuracy with the optimization methods of [1,34,31] but takes a small fraction of the computation time.

21No run times or volume errors are reported in [35] and so we cannot make a more precise comparison with our method.

22Controlling grain geometry. The main goal of our method is to fit grain volumes fast and accurately. Unlike other methods [1,29,31,32,33,34,35] it is not specifically designed for fitting grain morphology. We now discuss to what extent we can control the geometry of Laguerre diagrams.

23Our method gives some control over the spatial distribution of the grains, as shown in Figures 4,5,12, where we create microstructures with bands, clusters, and size gradients.

24Several authors use grain centroids as a measure of fitting-error when fitting Laguerre diagrams to data measurements, e.g., [29,35]. We show how we can approximately fit grain centroids to 3D EBSD data in Example 5.3, although the accuracy is much lower than the volume accuracy.

25In its current form our method gives no direct control over the aspect ratio of the grains. Like the sphere-packing method, Algorithm 2 tends to produce grains that are too round compared to grains typically seen in metals; see Section 4.4.

26There are several ways, however, that our method could be generalised to give more control over the morphology of the grains. For example, by combining our method with multilevel Voronoi diagrams [20,39] we could maintain control over the volume of the grains while producing more realistic RVEs with non-convex and elongated grains. The idea would be to first use Algorithm 2 to create a Laguerre diagram with N 'micro-grains' of equal volume for large N . Then we would glue together the micro-grains into non-convex 'macro-grains'. By choosing which grains to glue, we would control the volume and the morphology of the macrograins. (The multilevel Voronoi method glues together two micro-grains if their generators lie in the same Voronoi cell of a 'coarser' Voronoi diagram with fewer generators.)

27In principle our algorithms can also be generalized very easily to produce GBPDs with grains of given volumes (up to any desired tolerance) by modifying the objective functions g and g k in Algorithms 1 and 2 (simply replace the Laguerre cells L i with generalized Laguerre cells, and replace the isotropic distances |x − x i | with anisotropic distances |x − x i | A i ). This would again allow us to control both the volumes and the aspect ratio of the grains. In practice, however, it is expensive to compute GBPDs to high accuracy; discretizing them with voxels greatly increases the cost of the algorithm. Without developing new computational geometry algorithms for the efficient computation of GBPDs, this limits the method to a small number of grains or greatly increases the run time (cf. the run time of 6 hours for 109 grains in 3D in [1]).

28Since our method is currently limited to Laguerre diagrams, then the grains cannot have curved boundaries or be non-convex. Curved grain boundaries can be created using additively-weighted Voronoi diagrams (Apollonius diagrams) [6], anisotropic diagrams [3], or GBPDs [1,31,33,35], although these are all more costly to compute than Laguerre diagrams. Algorithms 1 and 2 can also be modified to produce Apollonius diagrams with grains of given volumes (in the definition of the objective functions g and g k simply replace the the Laguerre cells L i with Apollonius cells, and replace the squared distances |x − x i | 2 with non-squared distances |x − x i |) but again the implementation cost is an obstacle at the present time. We plan to explore this and the above generalizations in a future paper.

29Outline of the paper. In Section 2 we recall the definition and some important properties of Laguerre diagrams. In particular Property 2.3 forms the basis of our work. Section 3 includes our main result, Algorithm 2, for generating regularized Laguerre diagrams with grains of given volumes, as well as some simple illustrative examples in 2D. Section 3 also includes Algorithm 1, which can be used for fitting a Laguerre diagram to 3D EBSD or XRD measurements of grain volumes and centroids. We discuss practical issues about how the algorithms can be implemented on a computer in Section 4. Section 5 includes some large examples (10,000+ grains) and run time tests in 3D, including examples of RVEs of Interstitial Free (IF) steels.

Laguerre diagrams

30In this section we recall some facts about Laguerre diagrams.

Notation.

31Let Ω ⊂ R d be the region occupied by a metal. We consider both the 2-and 3-dimensional cases (d = 2 and d = 3). For simplicity we assume that Ω is a convex polygon if d = 2 or a convex polyhedron if d = 3. In principle the algorithms below can be used for non-convex regions with curved boundaries, but they become harder to implement. In all our examples below we take Ω to be a box. If U is a subset of Ω, let |U | denote its area if d = 2 or its volume if d = 3.

32Definition 2.1 ( [6,27]). Let x 1 , . . . , x n be distinct points in Ω and w 1 , . . . , w n be real numbers (not necessarily positive). The Laguerre diagram or power diagram generated by the weighted points (

33We refer to the sets L i as Laguerre cells or grains.

34Laguerre diagrams have the following basic properties [6,27]:

35• The Laguerre cells tessellate Ω, which means that n i=1 L i = Ω and cells can only intersect along their boundaries.

36• If all the weights are equal, w 1 = w 2 = . . . = w n , then the Laguerre diagram is simply a Voronoi diagram.

37• Adding a constant to all the weights does not affect the Laguerre diagram, i.e., the weighted points

38generate the same diagram for any c ∈ R.

39• A generator x i need not belong to its Laguerre cell L i .

40• There can be empty Laguerre cells, L j = ∅ for some j.

41Now we recall two advanced properties of Laguerre diagrams, Properties 2.2 and 2.3. These are the key ingredients for generating RVEs with grains of given sizes (given areas if d = 2 or given volumes if d = 3). They are well-known in the computational geometry and optimal transport communities, but seem to be largely unknown in the microstructure modelling community. Property 2.2 states that there always exists a Laguerre diagram with grains of given sizes. Property 2.3 gives a constructive way of finding one.

42The weights w i in Property 2.2 can be computed using the following result:

43. Then (i) The function g is concave.

44(ii) The gradient of g has components

45for all i ∈ {1, . . . , n}.

46. . , (x n , w n ) has cells of size m 1 , . . . , m n :

47Property 2.3 forms the basis of Algorithms 1 and 2. It means that if we want to generate a Laguerre diagram with grains of given sizes, then we just need to find critical points of g. Since g is concave, this is equivalent to maximizing g, or to minimizing −g, which is a smooth, unconstrained, convex optimization problem. Fast numerical methods are available for solving this [10].

48Controlling the spatial distribution of grains. Property 2.3 not only allows you to control the size distribution of grains, it also gives you some control over their spatial distribution. Given positive numbers m 1 , . . . , m n with n i=1 m i = |Ω|, there are infinitely many

49. . , n}. This can be seen from Property 2.3; any choice of distinct points x 1 , . . . , x n gives a Laguerre diagram with grains of size m 1 , . . . , m n . In Section 4.3.1 we will show how to choose x 1 , . . . , x n to control the spatial distribution of the grains.

50Connection with optimal transport theory. Properties 2.2 and 2.3 can also be stated in the language of semi-discrete optimal transport theory 1 ; see, e.g., [23], [26], [30,Sec. 6.4.2]. This connection gives us a way of finding critical points of g using fast modern methods from optimal transport theory [19,23]. We discuss this connection briefly at the end of Section 3 and will discuss it further in a future paper.

Statement of the algorithms

51In this section we state the main contributions of this paper. For concreteness we state the algorithms in three dimensions, but they can also be used in two dimensions (just replace volume with area and polyhedron with polygon wherever they appear in Algorithms 1 and 2). Our main result is Algorithm 2. First however we consider a simplified version, Algorithm 1, which will help us to understand the importance of the regularization step in Algorithm 2. Algorithm 1 can also be used for data-driven modelling to fit a Laguerre diagram to EBSD or XRD measurements of grain volumes and centroids (see Example 5.3). Algorithm 1 is not new and goes back at least as far as [5]. Our role is simply to bring it to the attention of the microstructure modelling community.

Algorithm 1 Generate a Laguerre diagram with grains of given volumes

52Input: A convex polyhedron Ω representing a sample of metal, a list of volumes m 1 , . . . , m n such that m i > 0 and n i=1 m i = volume(Ω), and a percentage error tolerance ε.

Method:

53Initialization. Choose or randomly select n distinct points x 1 , . . . , x n in Ω. Optimization step. Use a numerical optimization method to find w = (w 1 , . . . , w n ) that maximizes the function g defined in equation (2.1). Initialize the optimization method using the initial guess w init = 0 and terminate it using the stopping criterion |∇g(w)| < 10 −2 ε min j m j . , where x = 1/185 so that the total area of all the grains equals the area of Ω. The actual areas of the grains returned by Algorithm 1 are correct to within ε = 1% error. The initialization step of Algorithm 1 was performed using the MATLAB function rand to select x 1 , . . . , x 50 (pseudo)randomly from a uniform distribution. While the grains have the correct areas to within 1%, the microstructure is somewhat irregular and unrealistic, with some highly elongated grains. This leads us to Algorithm 2, which produces more regular microstructures; compare Figures 1 and 2(i).

54is the Laguerre diagram obtained in the previous iteration, which is generated by x

552. Optimization step. Use a numerical optimization method to find w (k) = w (k) 1 , . . . , w (k) n that maximizes the concave function

56n , w n . Initialize the optimization method using the initial guess w init = w (k−1) and terminate it using the stopping criterion ∇g k w (k) < 10 −2 ε min j m j .

57n that we used for the initialization step in Example 3.1. Observe from Figure 2 how the Laguerre diagram becomes more regular as the number of iterations k increases, and how it appears to be converging. The diagram already looks quite regular after just 4 or 5 iterations and the user may be happy to take far fewer than K = 100 iterations. We discuss how to choose K in the following section.

58Periodic Laguerre diagrams. Algorithms 1 and 2 can be modified to create periodic Laguerre diagrams for use as RVEs for computational homogenization (RVEs are usually taken to be periodic to avoid artificial boundary effects). To create periodic diagrams in a rectangular box Ω of side lengths l 1 , l 2 , l 3 , modify Algorithms 1 and 2 as follows. Define the periodic distance between x, y ∈ Ω by |x − y| per = min{|x − y + (il 1 , jl 2 , kl 3 )| : i, j, k ∈ Z}.

59In Algorithms 1 and 2 replace the Laguerre cells L i by periodic Laguerre cellsL i , which are defined byL

60In Algorithm 1 replace g by

61Replace g k in Algorithm 2 is an analogous way.

62Convergence of Algorithm 2 -centroidal Laguerre diagrams. It can be proved that Algorithm 2 converges as K → ∞, meaning that the generator locations x (k) i settle down as we take more and more iterations, like we see in Figure 2. To be more precise, there exist x 1 , . . . , x n such that lim k→∞ x (k) i = x i for all i ∈ {1, . . . , n}. We omit the proof here to avoid too many mathematical technicalities; it will appear in a forthcoming paper. We do however examine the limiting Laguerre diagram. By taking the limit k → ∞ in equation (3.1), we see that

63Therefore the generator x i is the centroid of its own Laguerre cell L i for all i. Such a Laguerre diagram is known as a centroidal Laguerre diagram or a centroidal power diagram, a term introduced in [11]; see also [9,38]. Centroidal Laguerre diagrams tend to be more regular than non-centroidal Laguerre diagrams, as illustrated by Figure 2(i) (centroidal) and Figure 1 (non-centroidal). Connection with Lloyd's algorithm. If we omit the optimization step in Algorithm 2 and set the weights to be zero for all iterations, w (k) = 0 for all k, then we obtain the wellknown Lloyd's algorithm for computing centroidal Voronoi tessellations (Voronoi diagrams where each generator is the centroid of its own Voronoi cell) [13]. Therefore Algorithm 2 can be interpreted as a generalized Lloyd algorithm with capacity constraints where cell L i is constrained to have volume m i . An alternative method for generating centroidal Laguerre diagrams with capacity constraints is given in [38,Sec. 4].

64Energy-decreasing property of Algorithm 2. Algorithm 2 can also be interpreted as an energy-decreasing optimization method. We describe this briefly here and postpone the details until a forthcoming paper (again, to avoid too many mathematical technicalities here). Given m 1 , . . . , m n with i m i = |Ω|, define

65Here the minimum is taken over all possible partitions of Ω, not just Laguerre diagrams. This is an example of an optimal transport problem. For example, in two dimensions E could represent the minimum (squared) cost of transporting the recyclable waste generated by a population uniformly distributed over a country Ω to recycling centres located at

66It can be shown that This is known as the optimal location problem in the economics literature [8] and the quantization problem in the discrete geometry [17], electrical engineering [16] and probability literature [15]. Thanks to the regularization step (Algorithm 2, Step 1), it can be proved that Algorithm 2 is energy-decreasing in the sense that

67Therefore Algorithm 2 can be viewed as a descent method for minimizing E. An alternative method for this is given in [23,Sec. 4] where, instead of updating x (k) i using our regularization step, they update it using a quasi-Newton (LBFGS) optimization step applied to E.

Computing Laguerre diagrams

68One of the main expenses of Algorithms 1 and 2 is the computation of Laguerre diagrams. This happens whenever the objective function g or g k is evaluated, which could happen many times within a single optimization step. A Laguerre diagram of n generators can be computed in O(n log n) flops in 2D and O(n 2 ) flops in 3D [6, Sec. 6.2.2]. In applications n could be 10, 000 or more, and hundreds or thousands of Laguerre diagrams could be computed in a single run of either algorithm. Therefore it is important to use efficient software.

69For our 2D computations we used the MATLAB function power bounded from the MAT-LAB File Exchange [40], which implements Aurenhammer's lifting method [4] and crops the diagram to a rectangular box Ω.

70The function power bounded is limited to 2D, and so for our 3D computations we used (a slightly modified version of) the C++ library Voro++ [42] combined with a MEX file so that we could run Voro++ via MATLAB. In 3D we also tried the MATLAB function powerDiagramWrapper from the MATLAB File Exchange [41], combined with our own code to crop the diagram to a cuboid Ω, but we found Voro++ to be faster. Another advantage of Voro++ is that it can create periodic Laguerre diagrams.

71We also used Tata Steel's own in-house Laguerre diagram code to visualise Laguerre diagrams in 2D and 3D.

Optimization methods

72The other main expense of Algorithms 1 and 2 is the optimization step. For each algorithm this is a smooth, unconstrained, concave maximization problem and so is very tractable. We used the MATLAB function fminunc to minimize −g and −g k (and hence maximize g and g k ), which uses a quasi-Newton algorithm [10]. This requires an initial guess w init for the minimum point.

Choice of initial guess

73For Algorithm 1 we recommend the initial guess w init = 0. For data fitting (like Example 5.3, where the seeds x i are taken from EBSD measurements), if the target grains are relatively spherical, then a better choice may be (w init ) i = m i /π in 2D or (w init ) i = (3m i /(4π)) 2/3 in 3D. In other words, (w init ) i = r 2 i where r i is the radius of a ball of area m i in 2D or volume m i in 3D. This is motivated by sphere-packing methods [12,25,28,37].

74For Algorithm 2 the initial guess should depend on the iteration k. For the first iteration k = 1 we recommend w init = 0. For iterations k ≥ 2 we recommend w init = w (k−1) , the solution of the optimization step from the previous iteration. As the number of iterations increases and the points x (k) i converge, the initial guess w init = w (k−1) becomes better and better and consequently the optimization step becomes quicker and quicker. This is illustrated in Figure 3, which shows the relative run time of each iteration for Example 3.2. We see that the total runtime of the algorithm is not proportional to the number of iterations K; most of the expense is in the first few iterations.

75Note that for the first iteration, k = 1, the initial guess w init = 0 does not incorporate any information about the locations x (0) i . It is possible to improve the speed of the first iteration by using a more sophisticated choice of w init , e.g., using the multilevel method of Mérigot [26] or Lévy [23], which generate a good initial guess w init by solving a sequence of smaller optimization problems with fewer grains. (For example, you can obtain a good initial guess w init for n grains by first solving a coarser problem with n/2 grains; you can obtain a good initial guess for n/2 grains by first solving a coarser problem with n/4 grains, etc.) We found that Mérigot's multilevel method [26] in 2D could halve the run time of iteration k = 1 when there are n = 10, 000 grains. It is reported that Lévy's multilevel program GEOGRAM can handle one million grains in 3D [23, Table 4]. It is also possible to obtain a better initial guess w init for iterations k ≥ 2 as follows. The Lloyd step (3.1) of Algorithm 2 could be replaced with a damped Lloyd step of the form

76where λ is a damping parameter between 0 and 1. The choice λ = 1 corresponds to the Lloyd step (3.1). The closer λ is to 0, the closer x

77, and so the better the initial guess w init = w (k−1) . Therefore the optimization step is faster for smaller λ. On the other hand, the regularization step has less effect for smaller λ, and it is necessary to increase the number of iterations K to achieve the same amount of regularization. For our purposes the full Lloyd step λ = 1 was sufficiently fast and so we did not try to optimize the choice of λ.

Choice of the tolerance

78For simplicity we chose the tolerance ε of the optimization step of Algorithm 2 to be fixed at each iteration k (the optimization step terminates when ∇g k w (k) < 10 −2 ε min j m j ). The algorithm could be speeded up, however, by taking ε = ε k to depend on k. In order for Algorithm 2 to produce a Laguerre diagram with grains of given volumes up to ε% error, we only need the tolerance to be ε at the final iteration, ε K = ε. For previous iterations we could use a cruder tolerance: ε = ε K < ε K−1 < · · · < ε 2 < ε 1 . It is tempting to think that the larger the tolerance, the faster the optimization step. On the other hand, if ε k−1 is bigger than ε k , then the initial guess w init = w (k−1) at iteration k may be worse, and the optimization step at iteration k may be slower. So the tolerances ε k must be chosen carefully. The choice of fixed tolerance ε k = ε for all k is a simple, reliable option, which is why we used it.

Choice of optimization algorithm

79The speed of the optimization step depends of course not only on the choice of the initial guess w init and the tolerance ε, but also on the choice of the optimization algorithm. For example, instead of using a quasi-Newton method like we did, one could use Newton's method. Newton's method tends to converge faster than quasi-Newton methods (quadratically rather than superlinearly), although it is harder to implement since it requires the second derivative of g (whereas quasi-Newton methods only require the first derivative) [10].

80It can be shown (see, e.g., [9]) that

81where a ij is the area of the face between cell i and cell j and N i is the index set of the neighbours of cell i (that is j ∈ N i if and only if cell j and cell i share a face). The pseudoinverse of this Hessian matrix is used in a damped Newton method in [19]. The damped Newton method takes fractions of a full Newton step in order to control the error and the minimum volume of a cell (to stop cells disappearing). The method is proved to converge globally with order 1 and locally with order 2.

Initialization: Effect on the spatial distribution

82In this section we discuss the initialization step of Algorithms 1 and 2.

Initialization of the seeds

83The locations of the generators x 1 , . . . , x n at the termination of Algorithm 2 is a strong function of the initial choice x A further example of controlling the spatial distribution of grains can be seen in Figure 5. In this example n = 1000 grains have areas drawn from a random distribution such that the ratio of the largest to the smallest grain size is at most 100. The Laguerre diagram in Figure 5(a) has the property that the grain sizes tend to increase form left to right. A variety of spatial distributions of grain sizes can be simulated by first distributing the seed locations appropriately. Figure 5(b) shows how a more complicated distribution can be produced.

Initialization of the weights

84The choice of w (0) in the initialization step of Algorithm 2 is also important. One should choose w

Stopping criteria

85In Algorithm 2 the user must specify the number of regularization steps K. As we discussed in Section 3, for large values of K the Laguerre diagram outputted by Algorithm 2 is a approximately a centroidal Laguerre diagram, which means that each seed x i . Centroidal Laguerre diagrams tend to have very regular-shaped cells, e.g., in 2D if the grains all have the same target areas, m i = 1/n, and if n and K are large, then the Laguerre diagram outputted by Algorithm 2 looks locally like a regular hexagonal tiling. Indeed for steel microstructures we found that if K is too large, then Algorithm 2 tends to produce grains that are too 'round' compared to EBSD measurements of grain aspect ratios.

86Instead of fixing the number of steps K in advance, the user could terminate the algorithm whenever some measure of the maximum grain aspect ratio 2 falls below a critical threshold.

87Or the user could terminate the algorithm if the distance |x

88| moved by the seeds from one iteration to the next falls below some threshold. The Laguerre diagram {L (k) i } tends to evolve slowly with k when k is large, as illustrated in Figure 2, and the evolution can slow down dramatically when there is a T1 topological transition (to borrow a term from foam dynamics). This topological transition involves a change of cell neighbour relations, in 2D this is via coalesence of two triple junctions of cell boundaries. So in general there is little to be gained from performing a large number of regularization steps, especially since our aim is not to produce a centroidal Laguerre diagram, but rather to produce a physically realistic microstructure.

Examples

89This section includes some large examples in 3D to illustrate the capabilities of our algorithms.

90Example 5.1 (Run time tests). Figure 6 gives some run times of Algorithm 2 in 3D. The black dotted line in the graph shows how the run time increases with n. We see that it grows roughly quadratically up to about n = 5000, for both the single phase case r = 1 and the dual phase case r = 5. This means that, for this range of n, the speed of the algorithm is determined by the time it takes to compute a Laguerre diagram of n cells, which is O(n 2 ) in 3D (see Section 4.1). Therefore the run time of our algorithm scales optimally in n for n < 5000 for these examples. For n > 5000 the run time grows a little faster than O(n 2 ); the cost of the optimization steps dominates the cost of computing Laguerre diagrams. Observe also from Figure 6 that it is more expensive to compute dual phase RVEs (r = 5) than single phase RVEs (r = 1).

91Example 5.2 (Generating a periodic RVE of an IF steel). Figure 7 shows an example of a periodic Laguerre diagram created using Algorithm 2. The target volumes m i are taken from a 3D EBSD measurement of an IF (interstitial free) steel (EN 10130 grade DC06). There are n = 9211 grains in a box of dimensions 670µm × 80µm × 480µm. We took the initial seed locations x (0) 1 , . . . , x (0) n to be the centres of mass of the grains from the EBSD data, and we performed K = 10 regularization steps with a tolerance of ε = 0.5%. The grains in Figure 7 are coloured according to their texture (lattice orientation) by mapping the three Euler angles linearly to RGB values. The textures were taken from the EBSD data. Figure 8 shows that the volumes of all the grains are correct to within 0.5%, and most volumes are correct to within 0.05%. Example 5.3 (Fitting a Laguerre diagram to EBSD measurements). The main aim of this paper is to create Laguerre diagrams with given volume distributions for use in computational homogenization simulations. We briefly mention, however, how Algorithm 1 can be used to fit a Laguerre diagram to EBSD data of grain volumes and centroids. Figure 9 is an example of a non-periodic Laguerre diagram fitted to a 3D EBSD measurement of an IF steel (EN 10130 grade DC06) with n = 9211 grains in a box of dimensions 670µm × 80µm × 480µm (this is the same EBSD data used in the previous example). In O(n 2 ) Figure 6: Run times in seconds of Algorithm 2 for creating single phase (monodisperse) and dual phase (polydisperse) periodic RVEs in 3D. There are n/2 grains of volume x and n/2 grains of volume rx in a cube of side length 100 with at most ε = 1% error in the volumes of the grains (r = 1 corresponds to a single phase material, r = 5 corresponds to a dual phase material, x is chosen so that the total volume of the grains equals the volume of the box). We used K = 5 regularization steps, and the initial seed locations x

92n were chosen randomly from a uniform distribution. The simulations were performed on an Intel Xeon E5-1620V3 (3.5GHz, 4 cores, 8 threads). The graph on the right has a log-log scale. The black dotted line is the graph of the function cn 2 , where c is a constant. It is included to illustrate how the run times grow with n. took x 1 , . . . , x n to be the centroids of the grains from the EBSD data. The target volumes m i were also taken from the EBSD data. We used a tolerance of ε = 1%. As in the previous example, Figure 9 is coloured according to the texture of the grains. Observe that Figure 9 is less regular than Figure 7, which is due to the regularization steps of Algorithm 2. Figure 10 shows that the volumes of all the grains are correct to within 0.56%, and most volumes are correct to within 0.1%. Figure 11 shows the errors in the centroids. As expected, these are higher than the volume errors since Algorithm 1 does not directly try to fit the centroids. The relative error of 79% of the grain centroids is less than 1 and the relative error of 93% of the grain centroids is less than 2. The run time for this example was 376 seconds on an Intel Xeon E5-1620V3 (3.5GHz, 4 cores, 8 threads) with the initial guess (w init ) i = (3m i /(4π)) 2/3 , which is inspired by sphere-packing methods [12,25,28,37].

93Example 5.4 (Generating a dual phase RVE with a banded microstructure). Figure 12 shows an example of a periodic, dual phase Laguerre diagram with a band of small grains in the centre, generated using Algorithm 2. There are n = 10, 000 grains: 8000 grains of volume x and 2000 grains of volume 20x (where x was chosen so that the total volume of the grains equals the volume of the box). We used K = 20 regularization steps and a volume tolerance of 1%. The grains are coloured according to their volume. In order to obtain the banded structure, we placed the initial seeds x (0) 1 , . . . , x (0) n at random within bands of the correct volume. We see from Figure 12 that these bands were largely preserved by the regularization steps.

Conclusions

94In this paper we introduced a fast optimization method for generating Laguerre diagrams with user-defined grain size distributions. The volumes of the grains can be controlled exactly (to within any given tolerance). We also demonstrated how the spatial and texture distribution of the grains can be partially controlled. Our algorithms can create both non-periodic Laguerre diagrams, e.g., for data fitting, or period Laguerre diagrams, e.g., for generating RVEs of Figure 9: A non-periodic Laguerre diagram fitted to 3D EBSD data of an IF steel using Algorithm 1 (see Example 5.3). The grains are coloured according to their texture (lattice orientation). The volume distribution has a fitting error of less than 1%. The texture intensity inherits the same fitting error. Figure 11: A histogram of the relative error of the centroids of the grains for Example 5.3. The relative error for grain i is defined by |xi − ci|/ri where xi is the centroid of grain i from the EBSD data, ci is the centroid of the Laguerre cell Li, and ri is the radius of a sphere of volume mi, where mi is the target volume of grain i. This definition of relative error was proposed by [29]. The maximum relative error is 11.16%, which is worse than the result given in [29, Fig. 9], although for most of the grains the relative errors are comparable: 7278 of the 9211 grains have relative error less than 1, and 8596 of the 9211 grains have relative error less than 2. polycrystalline metals or solid foams for computational homogenization.

95A limitation of our method is that we have no direct control over the morphology of the grains, e.g., over their centroids or aspect ratio. Also our algorithms do not incorporate any physics, e.g, how the microstructure was formed during crystallization, processing, recrystallization. Consequently we found that for certain steels the grains tend to be too round. We intend to address these issues in a future paper by extending our results to a more general class of Laguerre diagrams.

참고문헌 52건

  1. A Numerical Algorithm for<i>L</i><sub>2</sub>Semi-Discrete Optimal Transport in 3D ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2015 10.1051/m2an/2015055
  2. Voronoi Diagrams and Delaunay Triangulations Chapman and Hall/CRC eBooks · Informa · 2004 10.1201/9781420035315-23
  3. Foundations of Quantization for Probability Distributions Lecture notes in mathematics · Springer Nature · 2000 10.1007/bfb0103945
  4. Chord length distribution of Voronoi diagram in Laguerre geometry with lognormal-like volume distribution Materials Characterization · Elsevier BV · 2005 10.1016/j.matchar.2005.07.005
  5. A Literature Review on Circle and Sphere Packing Problems: Models and Methodologies Advances in Operations Research · Hindawi Publishing Corporation · 2009 10.1155/2009/150624
  6. Optimum quantization and its applications Advances in Mathematics · Elsevier BV · 2003 10.1016/j.aim.2003.07.017
  7. On the Use of Laguerre Tessellations for Representations of 3D Grain Structures Advanced Engineering Materials · Wiley · 2010 10.1002/adem.201000258
  8. Modeling and characterization of two-phase composites by Voronoi diagram in the Laguerre geometry based on random close packing of spheres Computational Materials Science · Elsevier BV · 2010 10.1016/j.commatsci.2009.11.028
  9. A Multiscale Approach to Optimal Transport Computer Graphics Forum · Wiley · 2011 10.1111/j.1467-8659.2011.02032.x
  10. The optimal structure of market areas Journal of Economic Theory · Elsevier BV · 1972 10.1016/0022-0531(72)90147-0
  11. Nondegeneracy and Weak Global Convergence of the Lloyd Algorithm in $\mathbb{R}^d$ SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2008 10.1137/070691334
  12. Large strain compressive response of 2-D periodic representative volume element for random foam microstructures Mechanics of Materials · Elsevier BV · 2013 10.1016/j.mechmat.2013.06.006
  13. Tessellation growth models for polycrystalline microstructures Computational Materials Science · Elsevier BV · 2015 10.1016/j.commatsci.2015.02.006
  14. On Optimal Weighted Balanced Clusterings: Gravity Bodies and Power Diagrams SIAM Journal on Discrete Mathematics · Society for Industrial and Applied Mathematics · 2012 10.1137/110832707
  15. Parametric Representation of 3D Grain Ensembles in Polycrystalline Microstructures Journal of Statistical Physics · Springer Science+Business Media · 2013 10.1007/s10955-013-0893-7
  16. 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
  17. Power Diagrams: Properties, Algorithms and Applications SIAM Journal on Computing · Society for Industrial and Applied Mathematics · 1987 10.1137/0216006
  18. Minkowski-Type Theorems and Least-Squares Clustering Algorithmica · Springer Science+Business Media · 1998 10.1007/pl00009187
  19. Centroidal Voronoi Tessellations: Applications and Algorithms SIAM Review · Society for Industrial and Applied Mathematics · 1999 10.1137/s0036144599352836
  20. <scp>VORO++</scp>: A three-dimensional Voronoi cell library in C++ Chaos An Interdisciplinary Journal of Nonlinear Science · American Institute of Physics · 2009 10.1063/1.3215722
  21. Convergence of the Lloyd Algorithm for Computing Centroidal Voronoi Tessellations SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2006 10.1137/040617364
  22. Realistic nano-polycrystalline microstructures: beyond the classical Voronoi tessellation The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2012 10.1080/14786435.2011.637984
  23. Spatial Tessellations: Concepts and Applications of Voronoi Diagrams 1992
  24. Centroidal Power Diagrams, Lloyd's Algorithm, and Applications to Optimal Location Problems SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2015 10.1137/141000993
  25. Inverting Laguerre Tessellations The Computer Journal · Oxford University Press · 2014 10.1093/comjnl/bxu029
  26. Laguerre approximation of random foams The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2015 10.1080/14786435.2015.1078511
  27. Analysis of banded microstructures in multiphase steels assisted by transformation-induced plasticity Computational Materials Science · Elsevier BV · 2014 10.1016/j.commatsci.2013.12.002
  28. 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
  29. Fitting Laguerre tessellation approximations to tomographic image data The Philosophical Magazine A Journal of Theoretical Experimental and Applied Physics · Taylor & Francis · 2016 10.1080/14786435.2015.1125540
  30. A multilevel approach to the evolutionary generation of polycrystalline structures Computational Materials Science · Elsevier BV · 2015 10.1016/j.commatsci.2015.11.018
  31. Linear and nonlinear programming. Mathematics and Computers in Simulation · Elsevier BV · 1986 10.1016/0378-4754(86)90092-3
  32. Convex Optimization Cambridge University Press eBooks · Cambridge University Press · 2004 10.1017/cbo9780511804441
  33. Optimal Transport for Applied Mathematicians : Calculus of Variations, PDEs, and Modeling 2015
  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. Centroidal power diagrams with capacity constraints ACM Transactions on Graphics · Association for Computing Machinery · 2016 10.1145/2980179.2982428
  36. DESCRIPTION OF THE 3D MORPHOLOGY OF GRAIN BOUNDARIES IN ALUMINUM ALLOYS USING TESSELLATION MODELS GENERATED BY ELLIPSOIDS Image Analysis & Stereology · Slovenian Society for Stereology and Quantitative Image Analysis · 2017 10.5566/ias.1656
  37. 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
  38. Direct parameter estimation for generalised balanced power diagrams Philosophical Magazine Letters · Taylor & Francis · 2018 10.1080/09500839.2018.1472399
  39. Data-Driven Selection of Tessellation Models Describing Polycrystalline Microstructures Journal of Statistical Physics · Springer Science+Business Media · 2018 10.1007/s10955-018-2096-8
  40. Radical Voronoï tessellation from random pack of polydisperse spheres: Prediction of the cells’ size distribution Computer-Aided Design · Elsevier BV · 2018 10.1016/j.cad.2018.09.001
  41. Modeling polycrystalline materials with elongated grains International Journal for Numerical Methods in Engineering · Wiley · 2018 10.1002/nme.6004
  42. Reconstruction of Grains in Polycrystalline Materials From Incomplete Data Using Laguerre Tessellations Microscopy and Microanalysis · Oxford University Press · 2019 10.1017/s1431927619000485
  43. Notions of optimal transport theory and how to implement them on a computer Computers & Graphics · Elsevier BV · 2018 10.1016/j.cag.2018.01.009
  44. Convergence of a Newton algorithm for semi-discrete optimal transport Journal of the European Mathematical Society · European Mathematical Society · 2019 10.4171/jems/889
  45. 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
  46. Spatial Tessellations Wiley series in probability and statistics · Wiley · 2000 10.1002/9780470317013
  47. Convex Optimization 2004 10.1017/cbo9780511804441
  48. Quantization IEEE Transactions on Information Theory · Institute of Electrical and Electronics Engineers · 1998 10.1109/18.720541
  49. Optimal Transport for Applied Mathematicians Progress in nonlinear differential equations and their applications · 2015 10.1007/978-3-319-20828-2
  50. Linear and Nonlinear Programming International series in management science/operations research/International series in operations research & management science · Springer Science+Business Media · 2008 10.1007/978-0-387-74503-9
  51. Voronoi Diagrams and Delaunay Triangulations WORLD SCIENTIFIC eBooks · World Scientific · 2012 10.1142/8685
  52. Computational Methods for Microstructure-Property Relationships Springer eBooks · Springer Nature · 2010 10.1007/978-1-4419-0643-4