<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>A concise python implementation of the lattice Boltzmann method on HPC for geo-fluid flow</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>01/01/2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10253868</idno>
					<idno type="doi">10.1093/gji/ggz423</idno>
					<title level='j'>Geophysical Journal International</title>
<idno>0956-540X</idno>
<biblScope unit="volume">220</biblScope>
<biblScope unit="issue">1</biblScope>					

					<author>Peter Mora</author><author>Gabriele Morra</author><author>David A Yuen</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[SUMMARY            The lattice Boltzmann method (LBM) is a method to simulate fluid dynamics based on modelling distributions of particles moving and colliding on a lattice. The Python scripting language provides a clean programming paradigm to develop codes based on the LBM, however in order to reach performance comparable to compiled languages, it needs to be carefully implemented, maximizing its vectorized tools, mostly integrated in the NumPy module. We present here the details of a Python implementation of a concise LBM code, with the purpose of offering a pedagogical tool for students and professionals in the geosciences who are approaching this technique for the first time. The first half of the paper focuses on how to vectorize a 2-D LBM code and show how if carefully done, this allows performance close to a compiled code. In the second part of the paper, we use the vectorization described earlier to naturally write a parallel implementation using MPI and test both weak and hard scaling up to 1280 cores. One benchmark, Poiseuille flow and two applications, one on sound wave propagation and another on fluid-flow through a simplified model of a rock matrix are finally shown.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">N U M E R I C A L S I M U L AT I O N M E T H O D O L O G Y</head><p>The LBM involves simulating particle number densities moving and colliding on a discrete lattice. In one time-step, the particle number densities can move by one lattice spacing along the orthogonal axes, or along diagonals, followed by modification of the number densities at the lattice nodes due to collision. We use the standard notation in LBM denoted DnQm for a simulation in D = n dimensions, and with Q = m velocities on the discrete lattice. In the following, we restrict ourselves to 2-D and use the D2Q9 lattice Boltzmann lattice arrangement shown in Fig. <ref type="figure">1</ref>. In this lattice, we define f &#945; (x, t) as the number density of particles moving in the &#945;-direction where the Q = 9 velocities are given by c &#945; = [(0, 0), (1, 0), (0, 1), ( -1, 0), (0, -1), (1, 1), ( -1, 1), ( -1, -1), ( -1, 1)] T . This choice means that c 0 is the zero velocity vector and so represents stationary particles, and c &#945; = -c &#945; + 2 for &#945; = (1, 2, 5, 6) are the velocities in the eight directions show in Fig. <ref type="figure">1</ref>. The lattice is unitary so the lattice spacing and time step are x = t = 1.</p><p>The LBM involves two steps: (a) streaming (movement) and (b) collision of a distribution function. If we wish to model thermal convection or thermal-chemical convection, we just model additional distribution functions, representing the energy and the chemical component (e.g. <ref type="bibr">Luo &amp; Girimaji 2002;</ref><ref type="bibr">Arcidiacono et al. 2007;</ref><ref type="bibr">Bartlett 2017)</ref>. In this paper, we focus on the technical aspects of implementing the LBM using Python. We therefore model a single distribution function, f &#945; representing the mass density of particles moving and colliding in the &#945;-direction on the discrete lattice. The evolution equation encompassing the two steps of moving (streaming) and colliding is given by</p><p>where f c &#945; (x, t) is the collision term and represents the redistribution of particle number densities at lattice site (x, t) due to collisions. The collision term can be calculated exactly, but this is computationally expensive and as such, is rarely done. Alternatively, the collision term can be calculated by the BGK method <ref type="bibr">(Qian et al. 1992;</ref><ref type="bibr">Chen &amp; Doolen 1998)</ref>, in which case the distributions relax to the equilibrium distribution. The BGK method is computationally efficient and gives satisfactory results provided the distributions are not too far from equilibrium. The BGK collision term is given by</p><p>where f eq &#945; (x, t) is used to denote the equilibrium distribution of f &#945; (x, t). It should be noted that since the simple single relaxation time BGK collision term given by eq. ( <ref type="formula">2</ref>) was proposed, more accurate and stable multiple relaxation time methods have been developed <ref type="bibr">(Lallemand &amp; Luo 2000;</ref><ref type="bibr">d'Humieres et al. 2002)</ref>. The equilibrium distribution is obtained by a Taylor expansion about the Boltzmann distribution given by</p><p>where D is the number of dimensions. Taking the Taylor's expansion of f eq , we obtain</p><p>Noting that the speed of sound is given by c s = &#8730; RT , and that on the D2Q9 lattice we have c s = &#8730; RT = c/ &#8730; 3 where c = x/ t = 1 is the lattice speed, we obtain the equilibrium distribution on the lattice of</p><p>In eq. ( <ref type="formula">2</ref>), the value of &#964; f is a relaxation time which relates to the kinematic viscosity &#957; f through</p><p>In eq. ( <ref type="formula">5</ref>) for the equilibrium distribution, the weighting scalars w &#945; are given by w 0 = 4/9 for &#945; = 0 (stationary particles), w &#945; = 1/9 for &#945; = (1, 2, 3, 4) (particles travelling along the two Cartesian axes), and w &#945; = 1/36 for &#945; = (5, 6, 7, 8) which are the particles travelling diagonally. Concise python implementation of the LBM on HPC</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>685</head><p>The macroscopic properties, density &#961; and velocity u relate to the distribution function</p><p>and</p><p>where &#961; = &#961;(x, t) is the macroscopic density, P(x, t) is the momentum density, R is the universal gas constant, and D is the number of dimensions. In the following, we restrict ourselves to two dimensions (D = 2) and we use units such that R = 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">A V E C T O R I Z E D P Y T H O N I M P L E M E N TAT I O N</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Initializing Python and MPI</head><p>Every Python program begins with the loading of the packages of relevance to the particular code being developed <ref type="bibr">(Langtangen et al. 2006)</ref>. Implementation of the vectorized version of the code will only use the numerical Python library NumPy (McKinney 2012) and the graphical libraries of Python to plot the results: MatPlotLib <ref type="bibr">(Hunter 2007)</ref>:</p><p>Next, we need to set an array, ai[], that contains pointers to opposite directions and an array, c[], that contains the lattice velocities, and ,w[], the weights associated with each of the nine lattice velocities. Refer to Section 2 for a precise formulation. We use the NumPy module to define the arrays explicitly: Finally, we need to define physical quantities associated with the relaxation time. This can be done based on a non-dimensional time step dt and lattice spacing dx equal to 1. Using a constant viscosity value in the entire domain and based on eq. ( <ref type="formula">6</ref>), the relaxation time and constants c 1 , ...c 4 of eq. ( <ref type="formula">5</ref>) can also be computationally defined:</p><p>Next, we must initialize the size of the domains, the number of time steps, and the arrays that we will use. When using NumPy, unlike standard Python, arrays need to be allocated, using the np.zeros() or np.ones() commands, defining their type <ref type="bibr">(Int, Float, etc.)</ref>. This allows the NumPy routines to quickly access the arrays in a vectorized form and greatly speeds the calculations. The type is generically defined as float, and will be set to either 32 bit or 64 bit float, depending on the architecture of the machine. The size of the grid is nx&#215;nz. For this implementation, we initialize nine arrays f, f stream, f eq, Delta f, rho, u, Pi, u2, cu:</p><p>To run an example simulation, it is necessary to initialize the density and velocity. We assume for this simple demonstrative example that there are no obstacles and that the media is homogeneous, and we will show how to add internal heterogeneities. Here the density is stored in rho and because the initial speed in the medium u is assumed to be zero, the function f will depend on the density only, with the appropriate weights. We consider here a point source located in the right of the domain, however the initial density can be modified in any way.</p><p>Before running a simulation for nt time steps, a last step is necessary, which is the creation of a vector of indexes. This is a key passage for running a vectorized simulation. This array of indexes will allow us to apply an instruction in the nine directions of the LBM algorithm and in every nx&#215;nz point in a vectorized manner, greatly speeding the streaming calculations by about two orders of magnitude:</p><p>where the array c[] that contains the lattice velocities is embedded in a general index indTotal[] of dimension na&#215;(nx&#215;nz). This architecture of indexes is what allows us to vectorize the Python version of the kernel of the LBM algorithm.</p><p>The Python time loop requires four steps:</p><p>1. Imposing the Boundary Conditions (periodic in this example) 2. Calculating the streaming term for f 3. Calculating the macroscopic velocity term u and the new density rho 4. Calculating the equilibrium distribution f eq, based on u and rho 5. Calculating the collision term Delta f and add it to f</p><p>The entire loop requires only 20 lines of code:</p><p>We note the following important observations:</p><p>1. The indexes array created above has been used in the definition of the new collision term</p><p>Here two reshape() instructions are used to change shape to the f array, but these do not consume any computing time, as they only refer to the internal structure of this array. This is explained in more detail in <ref type="bibr">(Morra 2018, chapter 3)</ref>.</p><p>2. If in the instruction f = f stream.copy(), copy() would be absent, then f would point to the memory allocated for f stream, which then would be modified.</p><p>3. In the instruction Pi = np.einsum('azx,ad-&gt;dzx',f,c) we used the function np.einsum(). This powerful tool allows one to perform any tensorial product, with any high-dimensional array, at the speed of the underlying C optimized code.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">The instruction u2</head><p>could be written using the Einstein summation function np.einsum <ref type="bibr">('ijk,ijk-&gt;jk', u, u)</ref> or by exploiting the linear algebra library of NumPy np.linalg.norm(u,axis=0) * * 2, but that would not accelerate the code. In the same way cu</p><p>could be written as np.einsum <ref type="bibr">('j,jkl-&gt;kl',c[a]</ref>,u) but it would not accelerate the code. For both cases the vectorization of NumPy is equally fast.</p><p>5. Separating the instructions Delta f = (f eq -f)/tau f and f += Delta f helps to avoid issues with the allocations of the NumPy array f.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Key tools for optimizing the kernel</head><p>To illustrate where vectorization plays a role, we show how to write the unoptimized version of the streaming step: Downloaded from <ref type="url">https://academic.oup.com/gji/article/220/1/682/5574400</ref> by guest on 29 June 2021 A user might also want to add a level of complexity by implementing regions where waves can penetrate, and others that do not vibrate, either with absorbing or non absorbing BC. If the impenetrable regions are called 'solid', and a solid array defines where flow is allowed (zero) and where it is not allowed (one), then the streaming step becomes where the 1D array denoted ai[] that was defined previously contains pointers to the opposite directions of flow of the number densities. Use of this pointer array allows so called 'bounce-back' boundary conditions to be applied to solid regions, which is equivalent to a zero-slip boundary condition at the edges of solids.</p><p>The code above for the streaming step works but it is extremely slow due to its explicit loops and the if statement. The reader can test this implementation and will find a decrease in speed of about two orders of magnitude relative to the optimized streaming step specified below. The same experiment can be done with all the other steps, which have been initially written in this unoptimized manner, and then vectorized.</p><p>The optimized streaming step with bounce-back boundary conditions is written as:</p><p>where the array solid[a] is a Boolean array that is set to True if the adjacent point in the a-direction is a solid region of the model where particles cannot penetrate, and to False if the adjacent point is a fluid region of the model. Here we exploited the equivalency in Python between 0 and 1 and False and True, respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">P E R F O R M A N C E O F T H E S E R I A L C O D E</head><p>Performance in Python depends on the libraries employed, and by how well optimized its most computationally intensive parts are (see <ref type="bibr">Morra 2018)</ref>. In particular it is possible to use Just in Time (JiT) compilation on certain routines or functions, and accelerate the code to speeds of 10 per cent slower, or even closer, to standard compiled codes <ref type="bibr">(Behnel et al. 2011)</ref>. Standard vectorization, however, as illustrated in the optimizations employed in the implementation shown in this work, already allows one to accelerate the code from non-vectorized Python by one order of magnitude or more.</p><p>We have also performed tests on different computing architectures, in particular, on (i) a MacBook Air with two cores in one 1.3 GHz Intel i5 processor, 8 GB of memory and on (ii) a home PC with 24 processor 2.7 GHz Xeon and 63 GB of memory, for the serial code. For the parallel implementation, we describe later tests using a computer cluster.</p><p>For a standard matrix product calculation, we found that on the MacBook Air, the fully vectorized Python version described here was 1.8 times slower than the default compiled (-O) C equivalent, and 3.7 times slower than the fully optimized supported optimization (-O2) of C. On the same machine, by using the Just in Time calculation <ref type="bibr">(Smith 2015)</ref> we found that the Python and the compiled C (standard, with -O optimization) where closer, with a gap of less than 10 per cent.</p><p>On the PC we found that the vectorized Python was only 10 per cent slower than the (-O) standard compiled version in C, while using the fully optimized (-O2) compilation C was 3.2 times faster than vectorized Python. When using Just in Time compilation on Python, this was about 10 per cent slower than regular (-O) C.</p><p>Overall we observe that Python represents a reasonable compromise between performance and usability. Although it can never completely match the performance of C, and is systematically less efficient than the best optimized compiled codes, code development in Python is very clear and easy to write, allowing fast development and debugging. We therefore recommend it for developing new HPC algorithms. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Domain decomposition</head><p>The first task of developing an MPI code is to determine how the physical domain maps onto slave nodes. The simplest way is to divide the physical domain into vertical strips. We will assume that the x-axis is longer than the z-axis and choose strips parallel to the z-axis.</p><p>Since in the LBM only nearest neighbor communications are needed, in the striped domain decomposition, the portion of data on the slave nodes that has to be communicated covers only a single unit in width. As an example, we show in Fig. <ref type="figure">2</ref> the spatial decomposition onto slave nodes and in Fig. <ref type="figure">2</ref> the expanded view of a two node problem with nx = 11. The first slave node has 6 units of space plus the two overlapping edges, and the second slave node has 5 units of space plus the two overlapping edges. Each domain is a constant size which equalizes work between processors, so the second domain has one empty column. Allowing for the one unit overlap of each domain, each slave node therefore contains seven columns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.1">Effect of choice of domain decomposition</head><p>In order to solve a problem with MPI, one needs to subdivide the problem into domains which are each solved on a processor. The choice of how to subdivide the problem into domains affects the amount of communication required by the algorithm. Here, we derive the formulas for the amount of communication per processor for a domain composition over the x-axis only, and over both the x-and y-axes, and compare these choices. We then generalize to the case of 3-D.</p><p>In the following, for simplicity we assume that the calculations are made over a square grid (2-D case) or cubic grid (3-D case) of size n D . We denote the number of dimensions of the calculations as D and the number of dimensions for the domain decomposition as d.</p><p>Consider first, a 1-D domain decomposition (d = 1) in a 2-D domain (D = 2). In this case, the amount of communication per processor denoted C(d, D) is proportional to twice the size of the grid</p><p>where the factor of 2 is due to having two sides to the domains. Hence, the communication cost per processor is proportional to the length of the y-axis for a problem that divides the x axis onto the n p processors. Now, we calculate the communication cost for the 2-D problem (D = 2) decomposed into square domains spanning onto the n p processors (d = 2). The area of each domain is given by</p><p>Hence, the length of each side of the domain is given by</p><p>In this case, the communication cost is proportional to four times the length of the square domains. The factor of 4 is due to there being two sides of each domain along each of the two dimensions. Hence, the communication cost is proportional to</p><p>One observes that the domain decomposition over d = 1 dimensions is less costly by a factor of 2 relative to the d = 2 dimensional domain decomposition, but more costly by a factor of n 1/2 p . Hence, for small problems (eg. n p &#8764; 1), the d = 1 dimensional domain decomposition is less costly by up to a factor of 2, while when n p 1, the d = 1 dimensional domain decomposition becomes more costly than the 2-D domain decomposition (d = 2) by a factor of &#8730; n p . The number of processors when the two domain decompositions are equally efficient can be calculated by solving</p><p>Downloaded from <ref type="url">https://academic.oup.com/gji/article/220/1/682/5574400</ref> by guest on 29 June 2021 which yields a crossover point at</p><p>In other words, for small cases with n p &lt; 4, the 1-D domain decomposition is most efficient, but the 2-D domain decomposition rapidly becomes much more efficient for cases of n p &gt; 4, and tends towards being more efficient by a factor of &#8730; n p /2. Next, we consider the communication cost for a 3-D problem. The cases for a 1-D and 2-D domain decompositions (d = 1, 2) are already covered by the -example above, aside from an additional factor of n required to calculate the area of domains (i.e. the area of the side of domains is given by L &#215; n where L is the length of the domains on the x-y plane, and the factor n is the length of domains over the z axis ). Namely, we have the communication cost for the case of D = 3 for 1-D and 2-D domains (d = 1, 2) given by</p><p>and</p><p>Next we consider the case of a 3-D problem (D = 3) decomposed into 3-D cubes (d = 3). The volume per processor is given by</p><p>so the length of the sides of the domains is given by</p><p>The area of sides of the domain cubes is L 2 , and each face of the cubes must be communicated (6 faces of a cube), so the communicational cost is proportional to</p><p>The above formulae can be generalized to work for all of the above cases (i.e. d = 1, . . . , 3, D = 2, 3). The generalized equation for communication costs is given by</p><p>Hence, the communication cost for a 3-D problem (D = 3) using a 3-D relative to a 2-D domain decomposition (d = 3 relative to d = 2) is given by</p><p>As for the previous 2-D case (D = 2) for 1-D and 2-D domain decompositions (d = 1,2), for a small number of processors (n p &#8764; 1), the relative cost of the d = 2 domain decomposition is faster by a small factor (3/2). And as the number of processors increases, the d = 3 domain decomposition is faster by a factor of n 1/6 p (n p 1). The crossover point where the d = 3 domain decomposition becomes more efficient than the d = 2 decomposition is given by</p><p>The generalized equation for the crossover when it becomes more efficient to use a d-dimensional domain decomposition compared to a (d -1)-dimensional decomposition can be solved by setting C(d, D)/C(d -1, D) to unity. Hence, we have</p><p>.</p><p>In other words, once the number of processors exceeds n p = 11, the 3-D domain decomposition is more efficient than a 2-D domain decomposition, and is much more efficient than a 1-D domain decomposition. We conclude that it is most efficient to use a domain decomposition over all axes (i.e. d = D). However, to simplify the example and Python coding in this didactic paper, we use a 1-D domain decomposition in the following 2-D examples. Also, we find that communication costs are small relative to other parts of the LBM algorithm. A future paper is planned on the implementation of the parallel 3-D LBM for convection. every slave node they have to be stored separately. This also helps accelerate the synchronization (left and right edges are sent first together, and then received together) and therefore improves the code performance (Fig. <ref type="figure">3</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.6">Setting the boundary conditions</head><p>In the examples shown in this paper, we specify a simple model of a porous solid rock matrix <ref type="bibr">(Torquato 2013)</ref>, and simulate (i) the flow from the left to the right of the model due to a density (and hence pressure) difference at the left and right boundaries and (ii) the propagation of a wave front through the matrix, where the grains are assumed rigid, and are therefore reflective for the incoming wave.</p><p>The following code shows the Python implementation that sets simplified left and right boundary conditions by using the left and right density to calculate the zero velocity equilibrium distributions. It should be noted that setting of accurate pressure or velocity boundary conditions is much more involved (Zhuo &amp; He 1997) and is not shown here where the main purpose is to show the Python implementation of the core LBM. As the left boundary is located on node 1 (i.e. rank=1) and the right boundary is located on node (nr-1) (i.e. rank=(nr-1)), we require no MPI communication step to set the densities at these boundaries. For approximate general boundary conditions at any location in space, a code similar to the put rho u() routine using the equilibrium distribution to set the number densities can be written (see Section 5.3), although again, it should be noted that accurate pressure or velocity boundary conditions require a more detailed treatment (Zhuo &amp; He 1997):</p><p>Although the gain is minimal, calling this routine only once for each loop of the simulation, we vectorize the assignment and compacted it into one line of code for each case. Notice how the float rho left and rho right are mapped to an array through np.ones(nz) in order to match the dimensionality of the boundary. The np.outer instruction represents an outer product, which allows two 1-D arrays to be combined into one 2-D array.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.7">Getting the density for plotting</head><p>In order to plot the results, which is managed from the master processor, one must get the density from the slave processors back to the master processor. The following Python code gets the density from slave processors back to the master processor. This   To understand the role of each component of the code on the performance, we compiled a detailed table with the broken down computing time for the two communications necessary at every step (get edges() and put rho boundaries()), and of the four computing steps-(1) streaming, (2) calculation of the macroscopic properties &#961; and u from the number densities f &#945; , (3) calculation of the equilibrium number densities f eq &#945; and (4) calculation and addition of the collision term f c &#945; . The four computing steps are respectively denoted Stream, Macro, Equilibrium and Collision. The exact timing for all of these steps for all the simulations for all the parallel tests are shown in Table <ref type="table">1</ref>. The most important observation is that the time required for all the communications is several orders of magnitude smaller than the computing time, meaning that the algorithm that we present is not prone to deadlocks or slow down for any number of processors. This can be appreciated clearly in the left-hand part of Fig. <ref type="figure">6</ref> where the times of the two communication steps are combined into one. This log-linear plot illustrates the orders of magnitude difference between computing and communication times, and demonstrates that communication costs are negligible.</p><p>A more detailed look at the computing times, on the right of the Fig. <ref type="figure">6</ref>, finally shows that the slight decrease in performance at 1280 processors is due mainly to an increase in the computing time of the Collision step, and in part to the other three computing steps. Overall, the communication is optimal enough for practical uses and also for the large problems considered here.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">A P P L I C AT I O N S</head><p>The code has been benchmarked with Poiseuille flow, a common test in the geodynamic literature <ref type="bibr">(Gerya 2009)</ref>. Fig. <ref type="figure">7</ref> shows that the numerical solution matches the analytical solution on the entire domain. Towards the edges, the kink is due to the bounce-back Boundary Conditions which are at half way between lattice sites (not exactly at lattice sites).</p><p>Simulations with this code have been performed for acoustic wave propagation and for fluid flow, both in a simplified solid rock matrix made up of circular grains and grain clusters. The matrix used for the fluid flow simulation is shown in Fig. <ref type="figure">8</ref> (left), and the matrix used for the wave propagation simulation is shown on the same figure, to the right.   </p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Downloaded from https://academic.oup.com/gji/article/220/1/682/5574400 by guest on 29 June 2021</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_1"><p>PA R A L L E L V E R S I O NIn the following, we present the algorithm and the Python parallel implementation of the LBM. In our implementation the calculations are performed on the slave nodes, while the master node sends and receives data, and creates output files. Downloaded from https://academic.oup.com/gji/article/220/1/682/5574400 by guest on 29 June 2021</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_2"><p>Scientific problems in geosciences that can be efficiently tackled with the LBM include fluid flow and wave propagation in porous media, thermochemical mantle convection, magma dynamics and volcanic eruptions. We will start off with classical 3-D mantle convection problems (e.g.<ref type="bibr">Rabinowicz et al. 1990</ref>). Assuming that the computational time continues to scale efficiently up to 10 thousand processors on a comparable cluster to the one we used for benchmarking (10 000 Xeon processing cores, connected with 56 Gb/sec (FDR) InfiniBand 2:1), Downloaded from https://academic.oup.com/gji/article/220/1/682/5574400 by guest on 29 June 2021</p></note>
		</body>
		</text>
</TEI>
