A simple and fast algorithm for computing discrete Voronoi, Johnson-Mehl or Laguerre diagrams of points
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (9) 타이어코드(10) 아라미드(21) 에폭시수지
기본 정보
- 저자
- DOI
- 10.1016/j.advengsoft.2022.103150
- 저널
- Advances in Engineering Software
- 발행년도
- 2022
- 발행기관
- Elsevier BV
- 피인용수
- 8
- 라이선스
- publisher-specific-oa
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.advengsoft.2022.103150
- 토픽
- Composite Material Mechanics
- OpenAlex ID
- W4221141193
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (9) 타이어코드, (10) 아라미드, (21) 에폭시수지
- R&D 측면
- 분석·모델링
- 확신도
- 0.80
- 근거 용어
- computational homogenisation, microstructures, Voronoi tessellations, FFT-based homogenisation, polycrystalline materials
- 판단 근거
- 이 논문은 재료의 미세구조(microstructure)를 디지털 이미지로 생성하는 알고리즘을 다루며, 이는 FFT 기반 균질화법(homogenisation)을 통한 재료의 기계적 거동 시뮬레이션에 필수적입니다.
- R&D 활용 포인트
- 복합소재(컴파운드), 아라미드, 타이어코드 등 고분자/섬유 기반 복합재료의 미세구조를 모델링하고, 이를 통해 재료의 강도, 내구성, 물성을 예측하는 R&D 시뮬레이션 기술로 활용 가능합니다.
- 평가 입력
- 섹션 본문 39,874자 중 30,032자 발췌
초록
초록이 없습니다.
본문 43,875자
본문 펼치기
섹션 본문 133문단 · 38,741자
(제목 없음)
1This article presents an algorithm to compute digital images of Voronoi, Johnson-Mehl or Laguerre diagrams of a set of punctual sites, in a domain of a Euclidean space of any dimension. The principle of the algorithm is, in a first step, to investigate the voxels in balls centred around the sites, and, in a second step, to process the voxels remaining outside the balls. The optimal choice of ball radii can be determined analytically or numerically, which allows a performance of the algorithm in O(N v ln N s ), where N v is the total number of voxels of the domain and N s the number of sites of the tessellation. Periodic and non-periodic boundary conditions are considered.A major advantage of the algorithm is its simplicity which makes it very easy to implement. This makes the algorithm suitable for creating high resolution images of microstructures containing a large number of cells, in particular when calculations using FFT-based homogenisation methods are then to be applied to the simulated materials.
Generation of microstructures in computational homogenisation
2Over the last three decades, considerable progress has been made in what might be called "computational homogenisation", as the part of computational mechanics dealing with homogenisation or micromechanics.
3Until the early 1990s, the available hardware and software computer resources hardly allowed numerical simulations on realistic microstructures (whether real or simulated) of heterogeneus materials whose geometries are often very complex. Therefore, most geometries of the microstructures studied were still very simplified. To overcome these limitations, the efforts of numerical engineers in the 1990s and 2000s focused on improving existing methods such as finite elements, for example with the development of multilevel finite element method (Feyel (2003)), or developing new, more efficient or more adapted methods, notably the FFT-based homogenisation method introduced by Moulinec and Suquet (1994). On the other hand, the progress of computer hardware, in particular the development of new parallel computers and the software tools (languages and application programming interfaces) that accompanied them, allowed numerical engineers to improve their codes, often at the cost of adapting numerical methods to this new paradigm (for example with domain decomposition methods (Tallec et al. (1991), Farhat and Roux (1991), Gosselet and Rey (2006))).
4In parallel with research on calculation methods, studies have been carried out on the microstructures themselves. The question of the representativeness of the elementary volume studied was raised with perhaps greater acuity than before (Gusev (1997), Kanit et al. (2003)). More recently, since the 2010s, the issue of the generation of artificial microstructures has received more particular attention. One of the questions is how to create an artificial microstructure that "mimics" a real microstructure, (Fritzen et al. (2009), Quey et al. (2011, Quey and Renversade (2018), van Nuland et al. (2021)). Another important issue is the efficiency of the algorithms generating the microstructures, whose performance can differ greatly from one method to another. The reader is referred to the review article by Bargmann et al. (2018) which covers the topic of microstructure generation.
Context of the study
5The present paper focuses on the generation of Voronoi, Laguerre and Johnson-Mehl diagrams -also called Voronoi, Johnson-Mehl and Laguerre tessellations -which are widely used for the simulation of microstructures of polycrystalline materials. More precisely, the objective being to calculate the mechanical behaviour of materials using FFT-based homogenisation methods (Moulinec and Suquet (1994), Moulinec and Suquet (1998)), the motivation of this study is to generate digital images of microstructures, i.e. discretisations of microstructures according to a regular grid, whose elementary data are generally called pixels in the two-dimensional case and voxels in the three-dimensional case. In the rest of this article, the term voxel is used for any dimension (2, 3 or higher).
6Instead of the term "digital image", which is widely used in the image processing community (Pratt (2007)), some authors prefer to speak of "raster images" as opposed to "vector images" or "vector graphics" for which the image is described by geometric shapes. The object of this study is thus referred to in the literature as "raster Voronoi tessellations" (Lee et al. (2011)) or "raster-based method" (Li et al. (1999)), but more often as "discrete Voronoi diagrams" (Velić et al. (2009)).
7A special attention is given, in the present paper, to the case of large images with a high number of grains. Indeed, it is not uncommon nowadays to apply FFT-based homogenisation methods on microstructures discretised with hundreds of millions of voxels (Müller et al. (2015), Boittin et al. (2017), Chen et al. (2019), , Marano et al. (2021) ) and, in the case of polycrystalline materials, composed of hundreds of thousands of grains (Wojtacki et al. (2020)). The generation of such microstructures can lead to non negligible computation times. For example, to generate an image of 1000 × 1000 × 1000 voxels of a Voronoi tessellation containing 1 000 000 grains, the general code Neper of polycrystal generation (Quey (2021a)) requires about 11 300 seconds on a 8-core processor Xeon Silver 4208 (2.10 GHz).
8Moreover, since FFT-based methods make the implicit assumption that the fields involved are periodic, we are interested, although not exclusively, in the case where the tessellations exhibit periodic conditions at the boundaries of the spatial domain studied.
9An additional constraint imposed by micromechanical studies is that the "sites" or "seeds" defining the tessellation are not necessarily placed on the exact positions of voxels of the image to be created. Indeed, the grid of the image must be able to be chosen independently of the layout of the sites, for example in the case where several realisations of the same tessellation are desired with images of different spatial resolutions.
Algorithms for creating tessellations
10Simply put, a Voronoi tessellation of a given set of discrete points in a Euclidean space, hereafter referred to as sites, is a tiling of the space into regions, each of which gathers all points in the space closer to a given site than to any other. Laguerre and Jonhson-Mehl tessellations can be considered as variants of Voronoi tessellations, where the function evaluating the proximity of one point to another is different from the Euclidean distance. More precise definitions are given in section 2.
11Since their introduction (Voronoi (1908)), Voronoi tessellations gave rise to an abundant literature. Many authors have been interested in the mathematical properties of these constructions (see Stoyan et al. (1995), Aurenhammer (1991) or Okabe et al. (2000) for Voronoi tessellations, Møller (1992) for those of Johnson-Mehl and Aurenhammer (1991), Okabe et al. (2000) or Lautensack and Zuyev (2008) for Laguerre tessellations) and, in particular, in how to describe and calculate the cells of the tiling of the space that constitutes them. Numerous algorithms have been proposed, among which two families can be distinguished schematically.
121. A first category of algorithms, mainly from the robotics and computer vision communities, are interested in the calculation of the Euclidean Distance Transform (EDT), which consists in evaluating for each voxel of an image its distance to a given region of interest of the image (see among others Saito and Toriwake (1994), Breu et al. (1995), Hirata (1996)). When these regions of interest are composed of isolated voxels, this problem reduces to that of creating an image of a Voronoi tessellation. See Fabbri et al. (2008) for a review and comparison of existing algorithms. Several of the proposed algorithms achieve the optimal performance in O(N v ), where N v is the total number of voxels in the image. 2. Another family of methods, mainly from the computational geometry community, determines the geometric parameters of the cells (for example, the vertices, edges, facets of the polygons or polyhedra which constitute the cells of the Voronoi tessellations in the two-dimensional or three-dimensional cases, respectively). An extensive review of the existing algorithms for Voronoi diagrams, and a comparison of their efficiency can be found in Okabe et al. (2000). It appears that some algorithms attain the optimal time complexity O(N s ), where N s is the number of sites, but that many methods behave in O(N s ln N s ), which is the "worst-case optimal time complexity", or even worse.
13However, these algorithms have a number of drawbacks for the problem addressed in this paper. Although the approximations on the calculation of the distance in early EDT algorithms, imposed largely by the technical limitations of the time, have been overcome today with algorithms that achieve what is called "Exact EDT", all of the proposed algorithms, to the best of the author's knowledge, place the sites of the Voronoi cells in the exact location of a voxel, which is inadequate for the present study.
14For the case of interest of this study, i.e. the creation of images of tessellations, the algorithms of the second type must be completed by a step where it must be determined to which cell of the tessellation each voxels of the image belongs. So to speak, after having described the geometry of the cells of the tessellation, the algorithm must "fill" the cells with the voxels they contain. This option is rarely implemented in the existing codes but is proposed by the Neper code (Quey et al. (2011), Quey (2021a), where it is called "raster tessellation meshing". As the whole numerical methods in question are rather delicate to implement, materials science researchers often opt either to use Neper or to implement a simple brute force algorithm whose low performance in O(N v N s ) makes it unsuitable for large simulations.
15The aim of this article is to propose a simple algorithm, just a little more difficult to implement than the brute force algorithm, but with much better performance in O N v ln N s .
16First, in section 2 of the article, the tessellations of Voronoi, Johnson-Mehl and Laguerre are briefly introduced. In section 3, an accelerated algorithm is presented for the different types of tessellations and its performance is compared to that of Neper code, in section 4.
Voronoi tessellations
17A Voronoi tessellation, also called Voronoi diagram, associated with a given set S = {x s } s=1,...,N s of N s points, called "sites", "seeds" or "generators", of a given domain Ω of a Euclidean space, is a division of the domain into N s zones, called "cells", each cell s including all the points of the domain that are closer to the site s of position x s than to any other site in the set. Thus, the cell C s associated to the site s of the set S is a subdivision of domain Ω defined by
18where d(x, y) denotes the distance between the two points x and y. Throughout the article, multidimensional quantities, such as vectors x and x s in relation 1, are noted in bold type while scalar data are in normal type. The distance d(, ) used above can be the usual Euclidean distance, but in the case of periodic conditions on the boundaries of domain Ω, the Euclidean distance can advantageously be replaced by what is called hereafter the Lperiodic distance. The reader is referred to Appendix A for the definition (A.6) and calculation (A.7) of the L-periodic distance. In the rest of the article, the distance d(, ) denotes either the Euclidean distance or the L-periodic distance, depending on the boundary conditions considered.
19In practical applications, the Euclidean space considered is most often two-or three-dimensional, but the definition of the Voronoi tessellation given above is valid for any finite dimension.
20An example of a two-dimensional Voronoi tessellation, generated from 50 sites randomly arranged in the area, is shown in Figure 1. Periodic conditions on the borders of the domain have been assumed.
Johnson-Mehl tessellations
21The model of the Johnson-Mehl tessellation, also called Johnson-Mehl-Avrami-Kolmogorov tessellation, has been developed to account for crystallisation in a material (Johnson and Mehl (1939)). To put it simply, a crystal grows from a site that appears in the volume at a given location and at a given time, until its boundaries reach those of other crystals. The tessellation is the resulting division of the space, when all the crystals have finished growing and have therefore completely covered the domain of space Ω considered. Thus, considering the set of sites given by
22where x s is the position of site s and t s is its birth time (i.e. the time at which the site appears in Ω and starts to grow), a given point x of the space would be reached by the growth of the crystal generated by site s -in the absence of interactions with any other site -at time t which is
23where G is the radial growth of the crystals, supposed to be constant and to be identical for all the crystals. Thus, the cell associated with a given site s is defined by
24or, equivalently,
25G being supposed to be positive.
Laguerre tessellations
26A Laguerre tessellation, also called power diagram, is generally presented in the literature as a partition of the space in cells defined by a set of spheres s of centres x s and radii r s . A given point x belongs to the cell C s associated with the site -or spheres which minimises the so-called "power distance" p d (x, s) defined by
27Hence, the cell associated to the site s is defined by
28Alternatively, from a physical point of view and as detailed in Appendix B, a Laguerre tessellation can be considered as the resulting partition of a crystallisation process starting from a set of sites S = {(x s , t s )} s=1,2,...,N s , where x s is the location of the site s and t s is its birth time, with a constant growth G of the square of the radii of the crystals. The principle remains similar to that of Johnson-Mehl tessellation: crystal s reaches a given point x at time t given by
29and finally the cell C s associated to a given site s is defined by
30This notation has the advantage of making the definitions of Johnson-Mehl and Laguerre tessellations similar.
31Remark. In the particular case where all sites appear at the same time, or in the case G is zero, when using definitions 5 and 9, Johnson-Mehl and Laguerre tessellations reduce to a Voronoi tessellation.
Tessellation algorithms
32In this section, algorithms are presented that solve the problem studied, the terms of which are briefly recalled here.
33• The algorithms must create a digital image of a Voronoi, Johnson-Mehl or Laguerre tessellation of a set of punctual sites.
34• The positions of the sites are arbitrary and do not necessarily coincide with voxel centres.
35• The distance used to estimate the proximity of a voxel to a site must be exact.
36• The boundary conditions of the image created can be periodic or non-periodic.
37• Although most applications of Voronoi tessellation relate to two-or three-dimensional spaces, the algorithms should apply to spaces of any dimension.
38• The domain Ω, in which the tessellation is created, is a d-dimensional rectangular parallelepiped, i.e. a volume of the Euclidean space of dimension d, defined by Ω = [0, L 1 ) × ... × [0, L d ) in a given orthonormal basis.
39In addition, the arrangement of the sites in the volume are considered purely random, following a uniform probability distribution. In the case of the Voronoi diagram, this type of tessellations is sometimes called "Poisson-Voronoi tessellations".
40The computational cost of the algorithms are estimated by counting the total number of calculations of distance between points performed during the execution of the algorithms (and in some cases, the number of calculations of the square of the distance). The effect of memory access and compilation optimisation are not considered, as it largely depends on the system on which the algorithms are implemented.
A brute force algorithm
41The most simple algorithm to build an image of a Voronoi tessellation consists of calculating for each voxel its distance to all the sites and thus determining the closest site. Diagram 1 schematises this algorithm. Similar algorithms can easily be devised to Johnson-Mehl or Laguerre tessellations.
42• an image I of n = (n 1 , n 2 , ..., n d ) voxels describing the tessellation in space domain Ω
43• an image D of n = (n 1 , n 2 , ..., n d ) voxels giving the distance of each point x(k) to the closest Voronoi site
44In the case of Voronoi and Laguerre tessellations (but not of Johnson-Mehl tessellations), a substantial gain in efficiency can be achieved by considering the square of the distance when comparing the distances between a given voxel and all the sites, as this saves the costly calculation of a square root repeated many times. Despite this improvement, the method still performs poorly, the total cost of the algorithm being in O(N v N s ), where N v is the total number of voxels in the image and N s is the number of sites.
An accelerated Voronoi tessellation algorithm 3.2.1. Principle of the algorithm
45Starting from the observation that the cells of a Poisson-Voronoi tessellation are all fairly similar in size, the principle of the algorithm consists first in examining a given neighborhood of all the sites, and determining for each voxel in the neighborhood whether the site considered is the closest, and then, in a second step, in processing the remaining voxels with the "brute force" algorithm described above.
46The algorithm is detailed below.
Detail of the algorithm
47We start by choosing balls of investigation, B s , centred on each site x s of S with a given radius r 0 and a corresponding volume v 0 :
48The choice of r 0 and v 0 is discussed in section 3.2.3. The voxels inside each investigation ball are considered and their distance to the associated site is evaluated and saved. After all the balls have been examined, two cases are possible for a given voxel of domain Ω:
49• It belongs to one or more balls. In other words, the distance between the voxel and all the sites is smaller than r 0 only for the sites that are the centres of these balls. Thus the voxel belongs to the cell of the nearest of these sites.
50• It belongs to no balls.
51To complete the tessellation, the distance between each voxel of the second case and all the sites are evaluated and the voxel is assigned to the cell of the closest site.
52Diagram 2 summarises the algorithm that performs these tasks.
Remarks.
53Similarly to what has already been mentioned in section 3.1, the algorithm can be accelerated by considering the square of the distance instead of the distance. A by-product of Algorithm 2 is the image D of the EDT (see section 1.3).
Optimal choice of the size of the investigation ball
54The choice of the radius r 0 of the investigation balls plays a crucial role on the efficiency of Algorithm 2. When r 0 is large, the number of voxels inside the balls and thus the number of calculations of their distance to the centres of the balls are high. Inversely, the number of voxels outside the balls is small and becomes zero when the balls cover the whole domain Ω. When r 0 is small, the situation is the opposite: the number of distance calculations in the first step of the algorithm is small and the one of the second step is high. Between these two extremes, there is an optimal choice for the size of the investigation balls.
55The number n step 1 of distance calculations in the first step of Algorithm 2 is equal to the total number of voxels inside the investigation balls. Neglecting the slight fluctuations of the number of voxels from one ball to another, due to spatial discretisation, one has
56where V is the volume of Ω and where v ′ s is the volume of intersection of the ball of investigation B s with the domain of interest, that is • in the non-periodic case: v ′ s is the volume of the intersection of the ball B s and the domain Ω. The balls of investigation crossing the boundaries of Ω must be truncated from their part outside Ω, resulting in a reduction of the number of voxels to be investigated; in that case, one has v ′ s < v 0 . In the case when the ball is entirely inside the domain Ω, one has v ′ s = v 0 . And in the extreme case when the ball encompasses the whole domain Ω, one has v ′ s = V.
57• in the periodic case: v ′ s is the volume of the intersection of the ball B s and the domain Ω s which is the translation of parallelepiped Ω, centred on x s . As long as the ball is smaller than the sphere inscribed in Ω s (i.e. r 0 ≤ L i /2, ∀i = 1, ..., d), one has v ′ s = v 0 . When the ball is bigger than the circumscribed sphere (i.e.
58And between these two cases, v ′ s takes intermediate values.
59Algorithm 2: Faster algorithm to create an image of a Voronoi tessellation in a Euclidean space of dimension d input :
60output:
61• an image I of n = (n 1 , n 2 , ..., n d ) voxels describing the Voronoi tessellation in space domain Ω
62• an image D of n = (n 1 , n 2 , ..., n d ) voxels giving the distance of each point x(k) to the closest Voronoi site (i.e. the map of the Euclidean Distance Transform)
63Initialisation: radius r 0 of the balls of investigation is calculated using relation 17
64Step 1:
65Step 2:
66With Voronoi tessellations, the conditions ensuring that v ′ s = v 0 (small balls compared to the domain size) are satisfied in most of the cases, and, in the periodic case, relation 11 becomes
67If non-periodic conditions are assumed, one has only an upper bound,
68which tends to be exact when the number of grains increases and thus when the ratio of spheres crossing the boundaries of Ω decreases. In the following, expression 12 is used, as a fair approximation of the algorithm behaviour.
69The number n step 2 of estimation of the distances in the second step of Algorithm 2 is given by
70n out being the number of voxels at a distance greater than r 0 from all sites. The value of n out depends on the set of sites, nevertheless, its statistics can be determined. When a site s is randomly placed in the volume, the probability for a given point of the domain to be outside the ball B s of radius r 0 centred on the site is given by
71In the same manner as above, v ′ s is approximated by v ′ s = v 0 and thus
72As the positions of the N s sites are supposed to be uncorrelated, the probability for a given point to remain outside the N s balls of volume v 0 centred on the sites, is p N s = Π s p s ,
73where the notation Π s means the product for all s ∈ S. Hence
74Finally, the mean number of voxels outside all the balls is given by
75and the mean number of distance calculations in step 2 is
76Thus, the total number of distance calculations in Algorithm 2 is estimated by
77The optimal choice for v 0 , i.e. the value of v 0 which minimises E(n step 1+2 ), is therefore easy to calculate:
78With this choice of v 0 one has
79When the number N s of sites is high, one has
80Thus, the computational performance of the algorithm is in O N v ln N s , which is significantly more efficient than the one of Algorithm 1 for which the total number of distance calculations is in O(N v N s ). When different configurations are considered for which the number of sites N s vary but the resolution, defined as the mean number of voxels per Voronoi cell, remains constant, the performance of the algorithm at constant resolution can be considered as being in O N s ln N s while the performance of the brute force algorithm is in O(N 2 s ). The number of distance calculations as a function of the radius r 0 , deduced from relation 16, is plotted in Figure 2 and compared with the actual numbers of distance calculations made during an execution of the algorithm, applied to the creation of an image of 200×200×200 voxels of a Voronoi tessellation from 1000 given sites. The correspondence is significant and the minimum of the curve is well estimated by relation 17. Expression 18, approximating the behaviour of the fast algorithm for large numbers of sites, is compared in Figure 3 with the actual number of distance calculations for the case of a 1000 × 1000 × 1000 images with varying numbers of cells, again leading to an appreciable agreement.
Remark. When the numbers of sites becomes very large, the expression 17 of volume v 0 can be approximated by
81Comparing it with the average volume of the cells < v s >= V/N s , one has v 0 < v s > ≃ ln N s . This ratio never stops increasing, which reflects the increasing computational weight of step 2 as N s grows. This effect could be reduced by using a more efficient algorithm than the brute force algorithm in step 2. However, this point is developed in this article, for simplicity.
82An example of realisation of microstructure with Algorithm 2 is presented in Figure 4.
An accelerated Johnson-Mehl tessellation algorithm 3.3.1. Description of the algorithm
83The principle of the accelerated algorithm remains the same for Johnson-Mehl tessellations, except that the quantity used to determine the site of the cell which a given voxel belongs to, is no longer the Euclidean distance, but the time t at which the growth of the crystal centred on the site reaches the point, given by relation 3, which can be recalled here:
84The algorithm for the Johnson-Mehl tessellation thus resumes to the following: at a given time t 0 , whose choice is discussed in section 3.3.2, the spherical region of the fictitious crystallisation process of each site is examined. The radius r s of the ball of site s is given by
85where (.) + denotes the positive part. The voxels in the ball of radius r s centred on the site x s , i.e. the voxels satisfying
86are examined and the time they are reached by the crystal growth is evaluated with relation 3. After this step, there are two different cases for each voxel of the image:
87• it belongs to one or more balls, i.e. relation 20 is satisfied for one or more sites, thus the voxel belongs to the cell of the one of these sites which minimises d(x, x s )/G + t s ,
88• it belongs to no balls. In that case, the value of d(x, x s )/G + t s is calculated for all the sites and the voxel belongs to the cell of the site which minimises it.
89The algorithm is summarised in Diagram 3. The differences with the algorithm for Voronoi tessellations are that the radii of the balls around the sites vary according to the sites, and that the quantity used to evaluate the proximity of a site is different.
Optimal choice for t 0
90The value of t 0 must be chosen to minimise the computational cost of the algorithm, such as v 0 in the algorithm for Voronoi tessellations.
91The cost of the first step of the algorithm is proportional to the number of voxels in the balls centred on the sites, i.e.
92where v ′ s is defined as in the case of Voronoi tessellation: it is the volume of the intersection of the ball B s and of the domain Ω s ( respectively Ω) in the periodic case (respectively in the non-periodic case), except that the balls B s have radii r s depending on the sites while they have an identical radius r 0 in the Voronoi algorithm.
93When a ball is smaller than the sphere inscribed in the domain, one has
94where v s is the volume of the whole ball B s ( i.e. the volume of a ball of radius r s of relation 19). When the ball encompasses the whole domain, one has v ′ s = V . The exact expression of v ′ s , taking into account the case when the ball is between these two extreme cases is uselessly complicate and can be approximated by
95It can in no way be assumed that the balls B s are all small and that v ′ s = v s . In contrast to Voronoi tessellations, a wide dispersion of size of balls can occur, and the case when some balls reach the size of the volume must be taken into account.
96The cost of the first step of the algorithm thus reads
97The cost of the second step depends on the number of voxels which have not been assigned to a cell in step 1, or, in other words, which are located outside all the investigation balls. The probability for a point x to be outside a given ball B s is given by p s = 1 − v ′ s /V , which can be approximated, using relation 22, by
98Under the assumption that the position and size of the balls are uncorrelated, the probability for a given point x to be outside all the balls is approximated by
99The number of voxels that have to be taken into account in step 2 of the algorithm can therefore be estimated by
100and the mean of the cost of step 2 can be estimated by
101Finally, the estimation of the total cost of the algorithm is given by
102with v ′ s given by expression 22 . The cost of step 1 is an increasing function of t 0 which varies from 0 when t 0 = min s (t s ) to a maximum value when the radial growth of the first site to appear (i.e. arg min s (t s ) ) exceeds the size of the domain, i.e. at a time given by
103in the case of periodic conditions, or at a time t 0 verifying
104in the case of non-periodic conditions. The cost of step 2 is a decreasing function of t 0 that varies from N s N v when t 0 = min s (t s ), to 0 when t 0 = min s (t s ) + 1 2G d i=1 L 2 i in the periodic case, or at a time t 0 lower than min s (t s ) + 1 G d i=1 L 2 i in the non-periodic case. Thus the optimal value for t 0 , i.e. the value of t 0 that minimises n step 1+2 given by relation 28, must be searched between these two extreme values, e.g. with a dichotomy method, for a negligible computational cost. Figure 5 illustrates the computational cost of the algorithm in a three-dimensional example. An image of 200 × 200 × 200 voxels of a Johnson-Mehl tessellation with 10 000 sites is created. The slight discrepancy observed for high values of t 0 between the model and the data, for G = 0.1, is most likely due to the approximation made by the model on the volume of the investigation balls when they cross the domain boundaries. This is consistent with the fact that the volume of the balls are overestimated by expression 22. Nevertheless, this does not affect the estimation of the optimal t 0 which is very satisfactory. • parameter G: "crystal growth rate" output :
105• an image I(x) of n = (n 1 , n 2 , ..., n d ) voxels describing the Johnson-Mehl tessellation in space domain Ω temporary:
106• an image D of same dimension as I
Initialisation:
107t 0 is estimated using the method described in section 3.3.2 forall k ∈ {1, ...,
108Step 1: forall s = 1, 2, ..., N s do forall k | x(k) ∈ (Ball of center x s and radius r s = G(t
109Step 2: Measure of the numbers of distance calculations actually carried out in a given realisation with the algorithm (empty circles). Left: growth rate G = 0.1, the optimal choice found with the algorithm is t 0 = 1.57, right: growth rate G = 10, the optimal choice found with the algorithm is t 0 = 0.051. Optimal value of t 0 estimated following the method described in section 3.3.2 (black circle).
110Remark. Before applying the algorithm, it can be useful to rearrange the list of the sites. Indeed, in some cases, some sites may result in the creation of no cell because they have been reached by the crystal growth of another site before they started to grow themselves. This happens typically when the growth rate G is large. To reduce the computation time, it is advantageous to discard these ineffective sites from the set in a preliminary step.
An accelerated Laguerre tessellation algorithm
111The algorithm proposed for Laguerre tessellations is almost identical to the one of Jonhnson-Mehl tessellations, except that the investigations balls, corresponding to the crystal growth at a given time t 0 , have radii given by
112and that the function to evaluate the proximity of a point x to a site x s , is given by relation 8. Moreover, the optimal choice of t 0 must be searched between min s (t s ) and min s (t s )
113An illustration of the behaviour of the algorithm is given in Figure 6. Simarly to the Johnson-Mehl algorithm, the optimal value of t 0 is well estimated by the model, although a slight discrepancy (here for G = 0.1) between the model and the data for high values of t 0 , which is likely due to the approximation made in the model in relation 22.
114An illustration of the performance of the algorithm as a function of the number of sites is presented in Figure 7.
Comparison with the Neper code
115The performance of the algorithm proposed in this article is compared to that of the general code Neper (version 4.2.0.) which is widely used in the mechanics community involved in numerical simulations of crystalline materials. Neper is a versatile code developed by Romain Quey (Quey et al. (2011)) which enables to generate artificial polycrystalline microstructure of Voronoi type, and to create a mesh, typically to apply a finite element calculation, or to create an image of the tessellation, for example to visualise it or to apply a calculation using an FFT-based homogenisation method.
116Neper, which offers many more general features than the algorithms proposed here, can be applied to the creation of rasterised images of tessellations. Schematically, in that case, Neper proceeds in two successive steps. In a first step, starting from the position of the sites of the Voronoi tessellation, the geometry of the tessellation is determined, i.e. the vertices, edges and facets of the polyhedral cells are determined and stored, using a so-called "cell-based algorithm". In a second step, the image is created by a rasterisation process in which the cell to which each voxel of the image belongs is determined (Quey (2021b)). The brute force algorithm described in section 3.1, the algorithm outlined in section 3.2 and the code Neper were applied to create a three-dimensional image of a Voronoi tessellation containing a number of sites varying from 100 to 2 000 000. In each case, the same set of sites was used by the three algorithms. The dimension of the images has been fixed to 500 × 500 × 500, which is a realistic size for common calculations using an FFT-based homogenisation method. Figure 8 shows the execution times of the different algorithms, all three parallelised with OpenMP, on a 8-core processor Xeon Silver 4208 (2.10 GHz). The code Neper was applied in two configurations depending on whether only the step of creating the geometrical description of the cells was carried out (empty squares on Figure 8), or whether this step was followed by the creation of an image by "rasterisation" (black squares on Figure 8). It can be seen that the time to create the image from the geometrical description of the cells remains approximately constant at around 140 seconds for the different site numbers, but that the time taken to create the geometrical description increases with the number of sites: beyond about 10 000 sites, this time alone exceeds the time it takes to execute the accelerated Algorithm 3.2.
117Unsurprisingly, the brute force algorithm has low performance and the time it takes to run is proportional to the number of sites. Nevertheless , for a low number of sites (less than 1000), and in this specific case, it can compete with Neper.
118The accelerated code is better in all cases and, as expected, takes an execution time of the order of the logarithm of the number of sites, which increases its relative performance as the number of sites increases. It took less than 30 seconds to create an image of 2 000 000 cells.
Conclusion
119In this paper, an algorithm has been presented for creating digital images of Voronoi, Johnson-Mehl and Laguerre tessellations of punctual sites assumed to be randomly distributed in the domain considered. The principle of the algorithm is to assign the voxels belonging to balls centred around the sites of the tessellation, to the cell corresponding to the closest of these sites. The choice of the radii of these investigation balls plays a predominent role on the performance of the algorithm. An analytical development enables to find a close to optimal choice, whose validity has been verified by numerical tests.
120Incidentally, a relevant definition of the distance is introduced for the case of a periodic microstructure and a simple expression is given to calculate it.
Available code
121A beta version of the code applying the algorithms presented in this article is freely available on the site: https://lma-software-craft.cnrs.fr/voronoi-johnson-mehl-and-laguerre-tessellations . where x denotes the position of the voxel and x s the one of the site or centre, where k is a d-dimensional vector of integer components k i , and where d E denotes the usual Euclidean distance:
122where x i and y i are the components of vectors x and y in an orthonormal basis.
123In the particular case where the sites are inside the unit cell and that the ball diameter is smaller than the dimensions of the unit cell, it is sufficient to estimate the distances between the voxels of the image of the unit cell and the ball centres which has been repeated by one period forward and backward in every directions (Fritzen et al. (2009), Bargmann et al. (2018) or Yan et al. (2011)), and one has
124(each component k i of k only takes the value −1, 0 or 1). Thus, to evaluate expression A.5, one has to calculate 9 Euclidean distances in a two-dimensional problem, and 27 Euclidean distances in a three-dimensional problem. However, this approach does not work in the more general case where the points whose distance is to be calculated can be located outside the unit cell. This typically occurs in the case of a microstructure that contains inclusions whose size exceeds one of the dimensions of the unit cell (for example long fibers in a periodic microstructure). Therefore, we define the L-periodic distance between two points of coordinates x and y of the Euclidean spacewhich can be located outside the unit cell -where the property considered is supposed to be periodic, with periods L i , with i = 1, 2, ..., d, by
Calculation of the L-periodic distance
125In this paragraph, the expression of the L-periodic distance is developed to obtain a formulation convenient to use in practice.
126It is straightforward that relation A.6 simplifies into
127In the case when the vectors L i are all orthogonal to each other, they can be noted
128where L i are positive scalars and e i are the unit vectors of an orthonormal basis. Hence, d L can be written
129where x i and y i are the components of x and y in the basis (e i ). With no real difficulties, it can be established that
130where N() is the "nearest integer function" defined as
131where ⌊.⌋ denotes the "floor function", that gives the greatest integer value lower or equal than its real number argument. The nearest integer function can be calculated using the function rint() of the C mathematical library. Finally, the L-periodic distance d L can be written
132(A.7)
133The numerical cost of the calculation of the L-periodic distance using expression A.7 is only slightly higher than the one of the Euclidean distance with expression A.4. In addition to being an exact method, it is very simple to implement and its numerical cost is much lower than evaluating the minimum of 27 (respectively 9) Euclidean distances in 3D (respectively 2D) problems, as proposed by Fritzen et al. (2009) and Bargmann et al. (2018). The time t s at which a site "appears", if one takes again the analogy with the crystallisation process, does not necessarily have to be negative if one remarks that the partition obtained does not depend on the choice of the time reference, i.e. the partition is unchanged if one considers time t ′ = t − t re f instead of t, the power-distance being modified into with t re f chosen adequately.
참고문헌 33건
- Nouvelles applications des paramètres continus à la théorie des formes quadratiques. Deuxième mémoire. Recherches sur les parallélloèdres primitifs. Journal für die reine und angewandte Mathematik (Crelles Journal) · De Gruyter · 1908 10.1515/crll.1908.134.198
- Image Sampling and Reconstruction 2006 10.1002/9780470097434.ch4
- Voronoi diagrams—a survey of a fundamental geometric data structure ACM Computing Surveys · Association for Computing Machinery · 1991 10.1145/116873.116880
- Domain decomposition methods for large linearly elliptic three-dimensional problems Journal of Computational and Applied Mathematics · Elsevier BV · 1991 10.1016/0377-0427(91)90150-i
- A raster-based method for computing Voronoi diagrams of spatial objects using dynamic distance transformation International Journal of Geographical Information Science · Taylor & Francis · 1999 10.1080/136588199241328
- Homogenization of linear elastic properties of short-fiber reinforced composites – A comparison of mean field and voxel-based methods International Journal of Solids and Structures · Elsevier BV · 2015 10.1016/j.ijsolstr.2015.02.030
- A method of finite element tearing and interconnecting and its parallel solution algorithm International Journal for Numerical Methods in Engineering · Wiley · 1991 10.1002/nme.1620320604
- 2D Euclidean distance transform algorithms ACM Computing Surveys · Association for Computing Machinery · 2008 10.1145/1322432.1322434
- A numerical method for computing the overall response of nonlinear composites with complex microstructure Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1998 10.1016/s0045-7825(97)00218-1
- Intergranular and intragranular behavior of polycrystalline aggregates. Part 1: F.E. model International Journal of Plasticity · Elsevier BV · 2001 10.1016/s0749-6419(00)00061-9
- A Fast Robust Algorithm for Computing Discrete Voronoi Diagrams Journal of Mathematical Modelling and Algorithms · Springer Science+Business Media · 2008 10.1007/s10852-008-9097-6
- Random Laguerre tessellations Advances in Applied Probability · Cambridge University Press · 2008 10.1239/aap/1222868179
- Large-scale 3D random polycrystals for the finite element method: Generation, meshing and remeshing Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2011 10.1016/j.cma.2011.01.002
- Representative volume element size for elastic composites: A numerical study Journal of the Mechanics and Physics of Solids · Elsevier BV · 1997 10.1016/s0022-5096(97)00016-1
- Raster voronoi tessellation and its application to emergency modeling Geo-spatial Information Science · Taylor & Francis · 2011 10.1007/s11806-011-0569-x
- Random Johnson-Mehl tessellations Advances in Applied Probability · Cambridge University Press · 1992 10.2307/1427714
- Periodic three-dimensional mesh generation for crystalline aggregates based on Voronoi tessellations Computational Mechanics · Springer Science+Business Media · 2008 10.1007/s00466-008-0339-2
- Determination of the size of the representative volume element for random composites: statistical and numerical approach International Journal of Solids and Structures · Elsevier BV · 2003 10.1016/s0020-7683(03)00143-4
- A multilevel finite element method (FE2) to describe the response of highly non-linear structures using generalized continua Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2003 10.1016/s0045-7825(03)00348-7
- A fast numerical method for computing the linear and nonlinear mechanical properties of composites HAL (Le Centre pour la Communication Scientifique Directe) · Centre National de la Recherche Scientifique · 1994
- STOCHASTIC GEOMETRY AND ITS APPLICATIONS Bulletin of the London Mathematical Society · Wiley · 1988 10.1112/blms/20.4.380b
- Numerical simulations and modeling of the effective plastic flow surface of a biporous material with pressurizedintergranular voids Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2017 10.1016/j.cma.2017.05.004
- 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
- Generation of 3D representative volume elements for heterogeneous materials: A review Progress in Materials Science · Elsevier BV · 2018 10.1016/j.pmatsci.2018.02.003
- Analysis of the damage initiation in a SiC/SiC composite tube from a direct comparison between large-scale numerical simulation and synchrotron X-ray micro-computed tomography International Journal of Solids and Structures · Elsevier BV · 2018 10.1016/j.ijsolstr.2018.11.009
- A micromechanical model for the secondary creep of elasto-viscoplastic porous materials with two rate-sensitivity exponents: Application to a mixed oxide fuel International Journal of Solids and Structures · Elsevier BV · 2018 10.1016/j.ijsolstr.2018.12.026
- Reaction Kinetics in Processes of Nucleation and Growth 1939
- Spatial tessellations: concepts and applications of voronoi diagrams Computers & Geosciences · Elsevier BV · 1993 10.1016/0098-3004(93)90024-y
- An anisotropic Voronoi algorithm for generating polycrystalline microstructures with preferred growth directions Computational Materials Science · Elsevier BV · 2020 10.1016/j.commatsci.2020.109947
- Porous polycrystal plasticity modeling of neutron-irradiated austenitic stainless steels Journal of Nuclear Materials · Elsevier BV · 2020 10.1016/j.jnucmat.2020.152463
- FFT-based simulations of slip and kink bands formation in 3D polycrystals: Influence of strain gradient crystal plasticity Journal of the Mechanics and Physics of Solids · Elsevier BV · 2021 10.1016/j.jmps.2021.104295
- 2011 Eighth International Symposium on Voronoi Diagrams in Science and Engineering 2011 10.1109/isvd19463.2011
- Principia philosophiae Zenodo (CERN European Organization for Nuclear Research) · CERN European Organization for Nuclear Research · 1644 10.5281/zenodo.7161988