Next Article in Journal
Global–Local Deep Fusion: Semantic Integration with Enhanced Transformer in Dual-Branch Networks for Ultra-High Resolution Image Segmentation
Next Article in Special Issue
(2+1)-Dimensional Fifth-Order KdV Equation and (2+1)-Dimensional Gardner Equation Obtained from Ideal Fluid Model Revisited—Solitary Wave Solutions
Previous Article in Journal
Investigating the Effect of Cyclodextrin Nanosponges and Cyclodextrin-Based Hydrophilic Polymers on the Chemical Pharmaceutical and Toxicological Profile of Al(III) and Ga(III) Complexes with 5-Hydroxyflavone
Previous Article in Special Issue
Filtering Efficiency and Design Properties of Medical- and Non-Medical-Grade Face Masks: A Multiscale Modeling Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Bridging Continuous and Lattice-Based Models of Two-Dimensional Diffusion: A Systematic Approach for Estimating Transition Probabilities, Grid Size and Diffusivity

by
Tricity M. Andrew
†,‡ and
Mansoor A. Haider
*,‡
Department of Mathematics, North Carolina State University, Raleigh, NC 27695, USA
*
Author to whom correspondence should be addressed.
Current address: Center for Developmental Biology and Regenerative Medicine, Seattle Children’s Research Institute, Seattle, WA 98101, USA.
These authors contributed equally to this work.
Appl. Sci. 2024, 14(13), 5442; https://doi.org/10.3390/app14135442
Submission received: 20 April 2024 / Revised: 18 June 2024 / Accepted: 20 June 2024 / Published: 23 June 2024
(This article belongs to the Special Issue Multiscale Modeling of Complex Fluids and Soft Matter)

Abstract

:
Lattice-based models have been broadly applied in mathematical and computational modeling of biological and biomedical systems for which spatial effects are important. These discrete models commonly include diffusion of mobile constituents as a key underlying mechanism. While the direct simulation of diffusion in continuous (off-lattice) domains is possible, it is computationally intensive, particularly when multiple coupled mechanisms are involved. This study presents a systematic approach for connecting continuous models of two-dimensional diffusion with internal obstacles to discrete, lattice-based (surrogate) models of diffusion. Results from continuous model simulations on a representative domain, and over many realizations, are used to develop accurate lattice-based surrogate models by exploiting internal symmetries. Probabilities determined for the lattice-based surrogate models are also connected to theoretical diffusivities for 2D random walks on a square lattice, necessitating the calibration of a spatial grid size. This approach can facilitate the inclusion of more accurate diffusive transport models of complex media within the general framework of lattice-based models that incorporate multiple coupled mechanisms.

1. Introduction

Lattice-based models have seen broad application in the study of a variety of mechanisms and dynamics through simulation in environments where incorporation of spatial effects is important. For example, they have been commonly used for modeling biotransport, cell dynamics and tissue dynamics with applications in many biological and biomedical areas [1,2,3,4,5,6]. One example is the cellular Potts model, in which a biological cell is defined over a region comprising multiple lattice sites [2,5,6]. This lattice-based modeling framework enables the study of coupled mechanisms in biological cell dynamics and has been applied to various biomedical problems, including epidermal biology, cancer, angiogenesis and vasculogenesis [1,4]. Such discrete, lattice-based models commonly involve diffusion (e.g., of mobile solutes) as a key transport mechanism. Alternatively, agent-based models [7,8,9] often restrict movement to a lattice, with random walks commonly used as a simple or convenient approach to advance individual agent locations at each time increment. In such cases, diffusion of nutrients and cell-synthesized solutes is an important coupled mechanism.
As computing power has advanced, direct simulation in continuous-domain (off-lattice) models is a useful tool for investigating systems where particles or agents interact with a background medium or with each other. However, the direct approach can become tedious or computationally intensive in situations involving several coupled mechanisms or complex geometry or in the presence of many particles or agents. The ability to systematically connect off-lattice (continuous) models to lattice-based (discrete) models, accounting for a few key underlying model features or mechanisms, has the potential to improve the overall accuracy of discrete models. Moreover, such discrete models can also be connected to estimates of theoretical diffusivities for random walks on a two-dimensional (2D) square lattice. An appropriate spatial length scale (grid size) must be determined for the discrete model, especially when diffusion is one of several coupled mechanisms in a 2D lattice-based model.
In this study, we evaluate the extent to which 2D lattice-based surrogate models can preserve measures of particle diffusivity observed in direct simulation of continuous models based on 2D random walks with internal obstacles. Our overall approach is illustrated in Figure 1. Results from continuous model simulations (Figure 1A) on a 2D representative volume element (RVE), and over many realizations, are used to develop lattice-based surrogate models (Figure 1B) that reproduce key features of the continuous model. This is accomplished by exploiting internal symmetries in the continuous model representation. Probabilities in the lattice-based surrogate models are also connected to theoretical diffusivities for 2D random walks on a square lattice (Figure 1C). This final step requires calibration of the discrete length scale (grid size) in the square lattice surrogate model.
The random walker is prescribed a fixed particle radius, and obstacle radii are varied in the context of two different obstacle configurations, each having distinct internal symmetries. Particle dynamics observed for the continuous model simulations are used to develop probabilistic lattice-based surrogate models for transitions across RVE subdomains. The subdomains are chosen to preserve internal symmetries for each of the two obstacle arrangements. A primary advantage of this approach is the capability of the surrogate models to bypass the need to directly represent the obstacles in the simulation domain.
The well-known linear relationship between the mean squared particle displacement and time for the continuous model [10,11,12] is used to estimate and compare diffusivities for both the continuous and lattice-based surrogate models. This comparison motivates the introduction of a simulation parameter (commitment index) that is calibrated to minimize adverse effects of noise on achieving stationarity of transition probabilities in the lattice-based surrogate model. Theoretical derivations for isotropic and anisotropic diffusion on a 2D lattice are used to connect the transition probabilities in the lattice-based surrogate models to theoretical estimates of the diffusivity for a square lattice surrogate model. Relations enforcing consistency between diffusivity estimates, based on continuous model simulations and analytical results on the lattice, are used to estimate the effective spacing (grid size) in a (square) lattice-based model for both obstacle configurations.
This paper is organized as follows. In Section 2, effective diffusivity is first outlined in terms of the mean squared displacement of a single particle undergoing a 2D random walk in a continuous domain or on a 2D lattice. Section 3 presents our equally spaced obstacles model (Section 3.2) and our multisize obstacles model (Section 3.3). Within each model, quantities are defined to determine probabilities connecting the continuous model with its lattice-based surrogate model. In Section 4, methods for calibrating the lattice-based surrogate models based on the continuous model simulation results are first presented (Section 4.1). A framework is then presented to connect the lattice-based surrogate models to square lattice surrogate models (Section 4.2), necessitating the calibration of the square lattice grid size parameter. Our results are presented for both models in Section 5, including the calculation of all model probabilities and calibration of other model parameters, followed by a brief discussion and conclusions in Section 6. Supplementary derivations are presented in Appendix A and Appendix B.

2. Effective Diffusivity

We first summarize approaches for estimating the effective diffusivity of a particle undergoing 2D random walks based on observations of its mean squared displacement.

2.1. Effective Diffusivity in a Continuous Domain

Normal diffusion describes diffusion via random walks of a particle in a continuous domain. The mean-squared displacement  r 2 , relative to a fixed starting location at  t = 0 , is calculated by averaging displacement trajectories over a large number of realizations. In prior studies of 2D single particle random walks, it was shown that  r 2  grows linearly with time (t) after a sufficiently large number of time steps have passed [10,11,12]. The general formula for normal diffusion is written in terms of an effective diffusivity ( κ ) as [11,12,13]
r 2 = ( 2 d ) κ t ,
where d is the dimension of the medium. In our study, all simulation results are sampled in a stationary time regime where this observed relationship is linear; the effective diffusivity is estimated by rearranging (1) to obtain
κ = r 2 ( 2 d ) N Δ t ,
where N is the number of time steps (of size  Δ t ) in the simulation.

2.2. Effective Diffusivity on a 2D Lattice

To develop our lattice-based surrogate models, we estimate the diffusivity analogous to (2) but based on analyzing  r 2  on the lattice. In this section, we demonstrate, via an analytical derivation, that a particle undergoing random walks on a 2D lattice exhibits normal diffusion, to leading order. Overall, our derivations of mean squared displacements and theoretical diffusivities for random walks on 2D lattices are based on analytical approaches outlined in Holmes [14].
We can track  r 2  systematically through a set of transition probabilities (Figure 2). Here,  p x  and  p y  denote the probability of moving, at the next time step, to adjacent horizontal (by  Δ x ) or vertical (by  Δ y ) lattice sites, respectively. The particle remains in its current location with probability  1 p x p y . In this section, we denote the mean squared displacement as  r K 2 ( N ) , with K referring to the number of realizations of a single particle random walk on the 2D lattice and N denoting a particular time step.

2.2.1. Lattice Representation of Mean Squared Displacement

The mean squared displacement after N time steps and for K realizations is
r K 2 ( N ) = 1 K i = 1 K x i 2 ( N ) + y i 2 ( N ) ,
where  x i ( N )  and  y i ( N )  are the horizontal and vertical particle locations, respectively. The mean squared displacement is then  r 2 = lim K r K 2 ( N ) .
For brevity, let  x i N  and  y i N  denote the horizontal and vertical positions of the  i t h  particle at time step N, respectively, (the full notation is utilized in the Appendices). We write these positions as
x i N = x i N 1 + h x i N , y i N = y i N 1 + h y i N , i = 1 , , K ,
where  h x i N  and  h y i N  are the possible displacements with associated step sizes of  Δ x  and  Δ y , respectively. In any one time step  Δ t , the five possible transitions are
( i ) h x i N = ± Δ x , h y i N = 0 , ( ii ) h x i N = 0 , h y i N = ± Δ y , ( iii ) h x i N = h y i N = 0 ,
where cases (i) (horizontal transition) and (ii) (vertical transition) occur with equal probability, and case (iii) represents no transition.
Substituting (4) into (3),  r 2  can be written in recursive form as
r 2 = lim K r K 2 ( N ) = lim K 1 K i = 1 K x i N 1 + h x i N 2 + y i N 1 + h y i N 2 , = lim K 1 K i = 1 K ( x i N 1 ) 2 + x i N 1 h x i N + ( h x i N ) 2 + ( y i N 1 ) 2 + y i N 1 h y i N + ( h y i N ) 2 , = lim K r K 1 2 ( N ) . + lim K 1 K i = 1 K x i N 1 h x i N + ( h x i N ) 2 + y i N 1 h y i N + ( h y i N ) 2 .
In the next subsection, we briefly discuss limits used to simplify (6).

2.2.2. Useful Limits for Simplifying Equation (6)

We use two main limit results in simplifying Equation (6). Direct evaluation of these limits is summarized in Appendix A and Appendix B, resulting in the following values associated with case (i) (horizontal transition) above:
lim K 1 K i = 1 K ( h x i N ) 2 = p x ( Δ x ) 2 , lim K 2 K i = 1 K x i N h x i M = 0 when M > N .
Analogous results also hold for the vertical transition case (ii).

2.2.3. Reduced Form of Mean Squared Displacement

Using (7), we rewrite (6) as
lim K r K 2 ( N ) = lim K r K 1 2 ( N ) + lim K 1 K i = 1 K x i N 1 h x i N + lim K 1 K i = 1 K y i N 1 h y i N + lim K 1 K i = 1 K ( h x i N ) 2 + lim K 1 K i = 1 K ( h y i N ) 2 ,
to simplify (8) to the relation,
lim K r K 2 ( N ) = lim K r K 1 2 ( N ) + p x ( Δ x ) 2 + p y ( Δ y ) 2 .
Lastly, the recurrence property enables (9) to be simplified to
r 2 = lim K r K 2 ( N ) = N p x ( Δ x ) 2 + N p y ( Δ y ) 2 .
On a square lattice ( Δ x = Δ y ), (10) can be reduced to the linear relation
r 2 = lim K r K 2 ( N ) = N ( p x + p y ) ( Δ x ) 2 = N ( 1 q ) ( Δ x ) 2 ,
where we denote q as the probability of staying in the current subdomain, i.e., since  q + p x + p y = 1 . Equation (11) will serve as the basis for connecting the square lattice surrogate models with the lattice-based surrogate models obtained from the continuous model simulations (see Section 4.3).

3. Models

We consider direct simulation of 2D random walks on a continuous domain. Results from these simulations are used to determine transition probabilities in the lattice-based surrogate model. The number of such independent probabilities, as well as their values, change for different obstacle arrangements. We consider a single particle undergoing random walks in a 2D representative volume element (RVE). Within the RVE, we place a small number of rigid obstacles with which the particle collides; the collisions are idealized to be perfectly elastic with the angle of reflection equal to the angle of incidence. The RVE is assumed to have periodic boundary conditions, further capturing internal symmetries in the background medium. Two different obstacle arrangements are considered (Figure 3): (i) equally spaced obstacles (Figure 3a) and (ii) multisize obstacles (Figure 3b). While both cases model inhomogeneous, anisotropic materials, case (i) exhibits a greater degree of (rotational) symmetry as compared to case (ii). The second case also serves as a simple analogue of a composite with two different obstacle sizes.

3.1. Continuous Model Simulation Details

We consider symmetries inherent to each case that are evident when the RVE is partitioned into nine equally sized subdomains for case (i) (Figure 3a) and four equally sized subdomains in case (ii) (Figure 3b). Each (square) subdomain is prescribed a length  L = 10 ; thus, to capture internal symmetries, the RVE is  30 × 30  for case (i) and  20 × 20  for case (ii). The state of the system at time t is the subdomain in which the particle is located (1–9 in case (i) and 1–4 in case (ii), Figure 3). State changes, which are vertical or horizontal transitions between neighboring subdomains, are tracked to determine transition probabilities for this surrogate model (see Section 3.2.2 and Section 3.3.2).
Additional assumptions are as follows: (a) our single particle has prescribed radius  R part  and moves with a speed  v = 8 ; (b) at  t = 0 , the particle is placed at the center of subdomain 5 for the equally spaced obstacles model and at the center of subdomain 3 for the multisize obstacles model; (c) at each time step of prescribed temporal step size  Δ t = 0.05 , a new direction is chosen, via uniform sampling, from  θ [ 0 , 2 π ] , and the particle is advanced a distance of  Δ x = v Δ t  in this direction; (d) collisions with the obstacles are perfectly elastic, i.e., the particle bounces off the obstacle at the (reflected) incidence angle relative to the local tangent line at the point of collision.
We simulate many realizations over  N t = 1 × 10 7  time steps to generate plots of the mean-squared displacement  r 2  versus time. For all simulations considered in this study, 2000 realizations on a high-performance cluster computer were sufficient for the slopes of these linear curves to reach stationary values.

3.2. Equally Spaced Obstacles Model

3.2.1. Continuous Model

For the equally spaced obstacles model, the circular obstacles (radius  R obs ) are centered on the subdomain intersection points. The particle radius is fixed at  R part = 1.0 , and the obstacle radius is varied from  0.5  to  3.0  by increments of 0.5. This range was chosen to enable particle movement between obstacles; an obstacle radius greater than 3.0 inhibits transitions between subdomains.

3.2.2. Lattice-Based Surrogate Model

Figure 4 illustrates the construction of the 2D lattice-based surrogate model for the equally spaced obstacles case (Figure 3a). A periodic extension of the RVE is shown, with a primary transition from the center subdomain illustrated. Due to extensive symmetries in this case, all internal transitions across boundary walls between subdomains are equivalent. The probability of diagonal transitions is zero due to the presence of obstacles at the subdomain corners. Hence, the lattice model has only two distinct transition probabilities, that the particle (1) stays in its current subdomain ( p 1 E ) or (2) moves to a neighboring subdomain in a cardinal direction ( p 2 E ). The corresponding state transitions are illustrated for subdomain 5 in Figure 4b. Since transition probabilities within a subdomain must sum to 1, only one surrogate model probability needs to be calculated from the results of continuous model simulations.
Results of the continuous model simulations (Figure 4a) are tracked via the time course  η ( t k ) ( t k = k Δ t , k = 0 , , N ) , where N is the total number of time steps.  η ( t k )  records the state of a particle as the index of the ith subdomain  ( i = 1 , , 9 )  at time  t k  if its center is located in that subdomain at time  t k . A  9 × 9  matrix  S ( k )  is used to track all transitions (including remaining in the same subdomain) up to the current time step ( S ( 0 )  is the zero matrix).  S ( k )  is updated according to the formula
S ( k ) η ( t k 1 ) , η ( t k ) = S ( k 1 ) η ( t k 1 ) , η ( t k ) + 1 , k = 1 , N .
S ( k )  is then used to build a vector  p E  of transition probabilities. Within each time step, a vector  T i E  ( i = 1 , , 9 ) is created to count transitions that occurred for each subdomain. In particular, the rows of  S ( k )  are used to create vector  T i E  by grouping transition sums by transition type; since the equally spaced obstacles model has two transition types,  T i E  has dimensions of  1 × 2 . At the current time  t k , we construct  T i E  from  S ( k )  as follows,
T i E = S ( k ) ( i , i ) , { j i } S ( k ) ( i , j ) , i = 1 , , 9 .
Due to the symmetries in the equally spaced obstacles case, we create the transition probability vector  p E  via the average:
p E = 1 N i = 1 N T i E .

3.3. Multisize Obstacles Model

3.3.1. Continuous Model

For the multisize obstacles model, the RVE has one set of obstacles with a fixed obstacle radius  R obs 1  and a second set of obstacles of radius  R obs 2  that is varied across cases. Symmetry for this model is preserved by partitioning the RVE using a  2 × 2  grid of subdomains (Figure 3b). We view the domain as having “columns” of obstacles; obstacles in the same column have identical radii. The particle radius and first obstacle radius are fixed at values of  R part = 1.0  and  R obs 1 = 1.0 , respectively. The second obstacle radius ( R obs 2 ) is then varied between  0.5  to  3.0  in increments of  0.5 .

3.3.2. Lattice-Based Surrogate Model

Figure 5 illustrates the construction of the 2D lattice-based surrogate model for the multisize obstacles case. A periodic extension of the RVE is shown, with primary transitions from subdomain 1 (top-left corner) illustrated. Due to inherent symmetries, all subdomains have the same number of distinct transition types. There are four types of transition with corresponding probabilities (Figure 5b). In type 1, the particle stays in its current subdomain ( p 1 M ). In types 2–4, it transitions to a neighboring subdomain (2,3 or 4) having two obstacles. We delineate the three latter types into probabilities as follows: the two obstacles are of different sizes ( R obs 1 R obs 2 ) along the boundary ( p 2 M ); the two obstacles are the same size  R obs 2  along the boundary ( p 3 M ); or the two obstacles are the same size  R obs 1  along the boundary ( p 4 M ). Again, the probabilities must sum to one; the three surrogate model probabilities need to be calculated from the results of the continuous model simulations.
Again, the time course  η ( t k )  records the state of the particle as the index of the ith subdomain ( i = 1 , . . . , 4 ) at time  t k  if its center is located in that subdomain at time  t k . For the multisize obstacles case, we differentiate between a horizontal transition within the RVE versus a horizontal transition into an extended domain by introducing an additional time course  ζ ( t k ) ( t k = k Δ t , k = 0 , , N ) , where
ζ ( t k ) = 1 if a horizontal transition occurred into an extended domain 0 otherwise ( includes all vertical transitions ) . .
In this case, the transition matrix  S ( k ) (for time steps  k = 1 , , N ) is a  4 × 5  (augmented) matrix; the fifth column tracks horizontal transitions occurring when the particle moves into an extended domain. For a large majority of time steps,  ζ ( t k ) = 0  and  S ( k )  are updated in a similar manner as in the equally spaced obstacles case via Equation (12) (Section 3.2.2). Alternatively, when  ζ ( t k ) = 1 , only the new column in the augmented matrix is updated via the formula
S ( k ) ( η ( t k 1 ) , 5 ) = S ( k ) ( η ( t k 1 ) , 5 ) + 1 , k = 1 , . . . , N .
and  S ( k )  is then used to build the vector  p M  of five transition probabilities.
Within each time step and for each of the four subdomains, a vector  T i M  ( i = 1 , 2 , 3 , 4 ) is created to count transitions, according to the following rules: (i) the first component counts the number of times a particle stayed in its current subdomain; (ii) the second component counts the number of times a particle moved vertically; (iii) the third component counts the number of times a particle moved horizontally but remained in the original RVE; (iv) the fourth component counts the number of times a particle moved horizontally but moved to the extended domain.
Due to the symmetries in this case, we create the transition probability vector  p M  via the average:
p M = 1 N j = 1 N T j M .

4. Model Calibration and Square Lattice Surrogate Models

4.1. Commitment Index

For random walks in our continuous model, a particle may cross, return and then recross a subdomain boundary several times before “committing” to a new subdomain. This leads to inaccuracy in the calculation of transition probabilities as stationary quantities in the lattice-based surrogate models. Consequently, we introduce a commitment index M C , to indicate the number of successive time steps after which a particle is deemed to commit to a new subdomain. The role of this parameter is illustrated in Figure 6 for the case  M C = 4 . While the value of  M C  requires calibration via direct comparison of simulated results for mean-squared displacement in the continuous and lattice-based surrogate models, we now explain its narrow range of variation.
(i)
Consider a particle, committed to a subdomain, that has just crossed the boundary into a neighboring subdomain (first-step location). A (black) ring indicates all possible particle locations at the next step, including some locations that result in recrossing the same boundary (Figure 6a).
(ii)
We next illustrate a few possible steps relative to the particle’s first-step location, thus indicating possible second-step locations. A (red) ring of possible 3rd-step locations is shown around each such second-step location (Figure 6b).
(iii)
Choosing one of the possible second-step locations that is in the new subdomain (gray ring), the resulting set of possible third-step locations is shown in red (Figure 6c).
(iv)
Lastly, the larger the number of successive steps for which a particle remains in the new subdomain, the smaller the probability that it will recross back into the subdomain to which it was previously committed; in Figure 6d, blue rings depict fourth-step locations.
For each of our two obstacle arrangements,  M C  is calibrated by constructing transition probabilities from continuous model simulations over a range of  M C  values and by comparing mean-squared displacement for the continuous and lattice-based surrogate models to identify the case with the best agreement (see Section 5.1).

4.2. Diffusivities for the Square Lattice Surrogate Models

Recall from Section 2 the following estimates of the effective diffusivity (e.g., (2) with  d = 2 ) for the continuous model and the surrogate model, respectively,
κ cont = r cont 2 4 N Δ t , and κ surr = r surr 2 4 N Δ t .
In Section 4.2, we use 2D Taylor series expansions to derive the (continuum) diffusion equation and the associated theoretical diffusivities on a lattice for both obstacle arrangements.

4.2.1. Equally Spaced Obstacles Model

Consider a 2D rectangular lattice with horizontal spacing  h ( = Δ x )  and vertical spacing  k ( = Δ y ) . Assuming a fixed volume and a uniform particle mass, let  u ( x , y , t )  be the density of particles and let q be the probability that a particle stays in its current subdomain;  ( 1 q )  is the probability of transitioning to a neighboring lattice point. The resulting particle density is given by
u ( x , y , t + Δ t ) = q u ( x , y , t ) + 1 4 ( 1 q ) u ( x + h , y , t ) + u ( x h , y , t ) + u ( x , y + k , t ) + u ( x , y k , t ) .
Consider the Taylor series expansions about the point  P ( x , y , t ) ,
u ( x , y , t + Δ t ) = u + u t ( Δ t ) + 1 2 u t t ( Δ t ) 2 + 1 6 u t t t ( Δ t ) 3 + . . . ,
u ( x ± h , y , t ) = u ± u x ( Δ x ) + 1 2 u x x ( Δ x ) 2 ± 1 6 u x x x ( Δ x ) 3 + . . . ,
u ( x , y ± k , t ) = u ± u y ( Δ y ) + 1 2 u y y ( Δ y ) 2 ± 1 6 u y y y ( Δ y ) 3 + . . . .
Using these series expansions, (19) becomes
u t ( Δ t ) + O ( ( Δ t ) 2 ) = ( 1 q ) 4 u x x ( Δ x ) 2 + u y y ( Δ y ) 2 + O ( ( Δ y ) 4 ) + O ( ( Δ x ) 4 ) .
Assuming a 2D square lattice ( Δ x = Δ y ) and dividing by  Δ t , we can rewrite (23) as
u t + O ( Δ t ) = ( 1 q ) 4 u x x ( Δ x ) 2 ( Δ t ) + u y y ( Δ x ) 2 ( Δ t ) + O ( Δ x ) 4 ( Δ t ) ,
resulting in the approximate equation (assuming  ( 1 q ) ( Δ x ) 4 Δ t ),
u t ( 1 q ) ( Δ x ) 2 4 ( Δ t ) u x x + u y y .
Recognizing (25) as the 2D diffusion equation, the theoretical diffusivity for the equal obstacles model (D) is given in terms of square lattice model properties by
D = ( 1 q ) ( Δ x ) 2 4 ( Δ t ) .

4.2.2. Multisize Obstacles Model

In the multisize obstacles model, the particle has different diffusivities in the vertical and horizontal directions. Yet, the large majority of lattice-based models in computational biology employ a square lattice. Thus, while our derivation below allows for distinct values of  Δ x  and  Δ y , we ultimately set these quantities to be equal in order to reconcile the two viewpoints.
We follow the same procedure as in Section 4.2.1, but for this case, note the following: (i)  q 1  is the probability that the particle stays at its current lattice point; (ii)  q x  is the probability that the particle moves to a neighboring lattice point in the horizontal direction; (iii)  q y  is the probability that the particle moves to a neighboring lattice point in the vertical direction. Note that  q 1 + q x + q y = 1 . We can then write the following relation for the particle density:
u ( x , y , t + Δ t ) = q 1 u ( x , y , t ) + q x 2 u ( x + h , y , t ) + q x 2 u ( x h , y , t ) + q y 2 u ( x , y + k , t ) + q y 2 u ( x , y k , t ) .
Via the Taylor series expansions in (20)–(22), the above equation can be expanded and simplified to
u + u t ( Δ t ) + O ( ( Δ t ) 2 ) = q 1 u + q x u + q y u + q x 2 u x x ( Δ x ) 2 + O ( ( Δ x ) 4 ) + q y 2 u y y ( Δ y ) 2 + O ( ( Δ y ) 4 ) .
Since  q 1 + q x + q y = 1 , upon dividing by  Δ t  we can rewrite (28) as
u t + O ( Δ t ) = q x 2 u x x ( Δ x ) 2 ( Δ t ) + q y 2 u y y ( Δ y ) 2 ( Δ t ) + q x 2 O ( Δ x ) 4 ( Δ t ) + q y 2 O ( Δ y ) 4 ( Δ t ) .
Imposing our restriction to a uniform 2D lattice ( Δ x = Δ y ), the simplified diffusion equation for the multisize obstacles case is thus (assuming  q x ( Δ x ) 4 Δ t  and  q y ( Δ x ) 4 Δ t )
u t ( Δ x ) 2 2 ( Δ t ) q x u x x + q y u y y .
Hence, when a 2D square lattice is used as a surrogate model for the multisize obstacles case, there are two theoretical diffusivities that we refer to as the horizontal diffusivity ( D H ) and the vertical diffusivity ( D V ) , which are given by
D H = q x ( Δ x ) 2 2 ( Δ t ) , D V = q y ( Δ x ) 2 2 ( Δ t ) .
We note that in the case  q x = q y , the diffusion equation for the multisize obstacles model (30) reduces to the diffusion equation for the equally spaced obstacles model (25).

4.3. Relating the Diffusivities

We now relate our effective diffusivities ( κ cont , κ surr )  in (18) to the theoretical diffusivities for each of the two obstacle models, i.e., (26) and (31).

4.3.1. Equally Spaced Obstacles Model

The effective diffusivity for the surrogate model  κ surr  is first used to approximate the effective diffusivity for the continuous model  κ cont . Specifically, slopes of the mean squared displacement response are matched by calibrating the commitment index  M C  in the surrogate model (see Section 4.1).
Substituting  r 2  from (11) for the surrogate model into the second relation of (18), we obtain the relations,
κ surr = r surr 2 4 N Δ t N ( 1 q ) ( Δ x ) 2 4 N Δ t = ( 1 q ) ( Δ x ) 2 4 Δ t = D .
Since  Δ t  is the same across all representations, it remains to calibrate  Δ x , i.e., the effective spatial grid size for the square lattice model with theoretical diffusivity D.
Although  L = 10  is a characteristic length scale for both the continuous and (surrogate) lattice models, it is not an appropriate choice for  Δ x  in (32). A particle at an arbitrary location in a subdomain has many different net distances it can travel before crossing into and committing to a neighboring subdomain. We determine the spatial step size via the representation  Δ x = L α , where  α > 1  will be calibrated based on our numerical simulations.
Substituting  Δ x = L α  into (32), we obtain
κ surr D | Δ x = L α = ( 1 q ) ( L α ) 2 4 Δ t = 1 α 2 D | Δ x = L .
Hence, the ratio of the two diffusivities can be used to approximate  α  via the formula
α D | Δ x = L κ surr .
Using this coordinated approach, we ensure that all diffusivity estimates obtained via simulations using the continuous model and the surrogate model are consistent with theoretical estimates for 2D random walks on a lattice based on the choice  Δ x = L α .

4.3.2. Multisize Obstacles Model

Considering the horizontal and vertical effective diffusivities independently, and using (2) with  d = 1 , we can define  κ H  and  κ V  as
κ H = r H 2 2 N Δ t , κ V = r V 2 2 N Δ t ,
where  r H 2  and  r V 2  are the horizontal and vertical mean squared displacements. In the multisize obstacles model, we identified horizontal and vertical components of diffusivity in terms of the corresponding probabilities (see (31)).
In contrast to the equally spaced obstacles model, here we do not directly identify the probabilities  q x  (of a horizontal transition) and  q y  (of a vertical transition) in the square lattice surrogate model. In particular,  q x  is not explicitly identified from our simulations, since our results delineate (1) a horizontal transition in the original RVE and (2) a horizontal transition to the extended domain. We, instead, relate the following ratios:
D H D V κ H κ V r H 2 r V 2 q x q y .
Note that in the case where all obstacles are the same size, this yields  D H D V .
For the lattice-based surrogate model, the four probabilities  p 1 , p 2 , p 3 , p 4  correspond to the transitions depicted in Figure 5b. Recall that  q 1 + q x + q y = 1  in the square lattice surrogate model and  p 1 + 2 p 2 + p 3 + p 4 = 1  in the lattice-based surrogate model. Equating these two relations and assuming that  q 1 = p 1  and that  2 p 2 = q y , we obtain the reduced equation
q x = p 3 + p 4 .
Assuming  κ H D H  and  κ V D V , we can use simulation results to calibrate  Δ x  using each of the two relations in (31) (see Section 5.2.2). Moreover, we note that the ratio of diffusivities in (36) is independent of the square lattice grid size.

5. Results

For both the equally spaced obstacles model (Section 3.2) and the multisize obstacles model (Section 3.3), we use results of the continuous model simulations to determine transition probabilities for the two surrogate models, as described in Section 3.2.2 and Section 3.3.2, respectively. As outlined in Section 3.1, we simulate a single particle (radius  R part ) undergoing a 2D random walk (speed  v = 8 ) with time step  Δ t = 0.05 . At each step, the direction is sampled from a uniform distribution and all collisions with internal obstacles are perfectly elastic. All continuous model simulations were carried out on a high-performance cluster computer for  N = 2000  realizations. Once transition probabilities were determined, the corresponding lattice-based surrogate model simulations were carried out on a laptop computer (MacBook Pro) in under 2.5 h. By contrast, the continuous model simulations were completed at a rate of 400 realizations per 27 h, distributed over eight processors (50 realizations per processor), for a specified set of model parameters. A total of  N t = 1 × 10 7  time steps were sufficient for all quantities of interest to exhibit stationary responses.

5.1. Building the Lattice-Based Surrogate Models

5.1.1. Equally Spaced Obstacles Case

Obstacle radii: Continuous model simulations were performed on the RVE for the equally spaced obstacles model (see Section 3.2.1 and Figure 3a). The particle radius was first fixed at  R part = 1.0 , and the obstacle radius ( R obs ) was varied from  0.5  to  3.0  by increments of 0.5. Stationarity and linearity of  r 2  versus time (Section 2.1) for an increasing number of realizations is illustrated, for a representative case ( R part = 1.0 R obs = 1.0 ), in Figure 7.
Determining transition probabilities: Based on the approach illustrated in Figure 4, continuous model results were used to determine transition probabilities for the equally spaced obstacles model via (14). These probabilities are illustrated for transitions from subdomain 6 over the time course of one realization in Figure 8b–d; rescaling the range more effectively illustrates the stay and leave probabilities (Figure 8c,d, respectively). This figure also demonstrates the stationary nature of these probabilities at later times. In determining the final stay ( p E ( 1 ) ) and leave ( p E ( 2 ) ) transition probabilities for the lattice-based surrogate model, values of each type were pooled together (see (14)) and then averaged across all realizations. Note that our results are consistent with the improbability of diagonal transitions (Figure 8d, blue curve).
Commitment index calibration: Lattice-based surrogate models were built using the transition probabilities obtained from the continuous model (see (14), Section 3.2.2) by first calibrating the commitment index  M C  (Section 4.1).  M C  was varied from 3 to 8 and calibrated by comparing the continuous and surrogate plots of  r 2  versus time. This procedure was repeated for varying obstacle radii, with the particle radius fixed at  R part = 1.0 , illustrated in Figure 9 for  R part = 1.0  and  R obs = 2.0 . Here,  M C = 5  yields the best result; 2000 realizations were sufficient to observe stationary values sufficient to calibrate  M C  (Figure 9—right). Probabilities and commitment index values are shown in Table 1. We observe that the sum of the first probability and four times the second probability is very close to 1 (based on symmetries in the RVE); the largest discrepancy was observed to be  3.6 × 10 6 . We also observe that the probability of staying in the current subdomain increases with the obstacle radius. Comparisons of slopes for  r 2  versus time for the continuous and surrogate models are compared in Table 2 and Figure 10. We observe differences in slopes ranging from 0.004% to roughly 4%.

5.1.2. Multisize Obstacles Case

Obstacle radii: Continuous model simulations were also performed for the multisize obstacles model (Figure 5) on an RVE partitioned into four subdomains as described in Section 3.3.1. The particle radius was fixed at  R part = 1.0 , with one obstacle radius fixed at  R obs 1 = 1.0  and the other obstacle radius ( R obs 2 ) varied from  0.5  to  3.0  in increments of 0.5. Stationarity and linearity of  r 2  versus time is illustrated, for a representative case ( R part = 1.0 R obs 1 = 1.0  and  R obs 2 = 1.0 ), in Figure 11.
Determining transition probabilities: Based on the approach illustrated in Figure 5, continuous model results were used to determine transition probabilities for the multisize obstacles model using (17).
Commitment index calibration: Lattice-based surrogate models were built using the transition probabilities obtained from the continuous model (Section 3.3.2) by first calibrating the commitment index  M C  (Section 4.1). For each case considered,  M C  was varied from 3 to 8 and calibrated by comparing the continuous and surrogate plots of  r 2  versus time. A sample plot illustrates increasing stationarity of the slope of  r 2  versus obstacle radius as the number of realizations increases (Figure 12—left).
We observe the manner in which the slope decreases with increasing obstacle radius  R obs 2 , which differs from that observed in the equally spaced obstacles case (Figure 10). A summary of the transition probabilities and values of  M C  needed to build the lattice-based surrogate model for all cases considered is provided in Table 3. Note that the sum of the probabilities in each row is 1 when the second probability is weighted by a factor of 2 due to symmetries in the RVE.
Comparisons of slopes for the relation between  r 2 , including the best values for  M C , are shown for the continuous and surrogate models in Table 4 and Figure 12—right. These results exhibit a difference in slopes ranging from 0.6% to roughly 7%.

5.2. Estimating Diffusivities

We use the continuous and lattice-based surrogate model results to estimate effective and theoretical diffusivities (see Figure 1).

5.2.1. Equally Spaced Obstacles Case

We estimate the effective diffusivities from simulated results for the mean squared displacement in both the continuous ( κ cont ) and surrogate ( κ surr ) models via (18) and for each obstacle radius (Figure 13).
Time averages for both effective diffusivities over the last 100,000 values are shown in Table 5, along with the commitment index  M C  and the stay probability q. The continuous and surrogate diffusivities exhibit a correlation coefficient of  R = 0.9784  and percent differences between  0.02 %  and roughly  6 % .
Estimated diffusivities for the surrogate models were used to compute values of  α 2  and  Δ x ( = L α ) , for each case. Comparisons of the effective diffusivities to the resulting theoretical diffusivities, determined via (33), are shown in Table 6. For comparison, the theoretical estimate of the diffusivity for the case  L = 10 , corresponding to  α 2 = 1 , is also shown in the table. The estimated values of both  α 2  (mean 5.0466, st. dev. 0.0888) and  Δ x  (mean 4.4519, st. dev. 0.0397) exhibited little variation or correlation ( R = 0.5532 ) across the range of obstacle sizes considered. This finding suggests that the coefficient  α 2  can be approximated as constant across the range of obstacle radii considered.
The 2D lattice-based surrogate model for the equally spaced obstacles case is thus fully represented by the set of parameters  q , p ( = 1 q ) , Δ x  and  α  shown in Table 6 for each obstacle radius.

5.2.2. Multisize Obstacles Case

We also estimated effective diffusivities from simulated results for the continuous and surrogate models via (18) and for each obstacle radius combination (Figure 14). Time averages for each of these effective diffusivities over the last 100,000 values are shown in Table 7 along with the commitment index  M C  and the stay probability q. The continuous and surrogate diffusivities exhibit a correlation coefficient of  R = 0.8503  and differences ranging between roughly  1.1 %  and  6.8 % .
Recalling Equation (31) (Section 4.2.2), for the theoretical diffusivities in the multisize obstacles case, we write
D H = q x ( Δ x M ) 2 2 ( Δ t ) , D V = q y ( Δ x M ) 2 2 ( Δ t ) .
Here,  Δ x M  denotes the effective grid size for the multisize obstacles case, and its value remains to be calibrated. Note, however, that the ratio of these two diffusivities is independent of this parameter. Consequently, we first examined this ratio using (36) by evaluating the relevant mean squared displacements (Figure 15) and their ratio (Figure 16).
The multisize obstacles model has the property that the RVE is more open in either the horizontal ( R obs 2 < 1 ) or vertical ( R obs 2 > 1 ) direction, depending on the value of  R obs 2 . This effect is subtle for  R obs 2 < 1  due to the large amount of available space for particle diffusion (Figure 15a and Figure 16a). Significant effects on the ratio of diffusivities are observed for larger values in the regime  R obs 2 > 1 , where available space in the horizontal direction becomes more limited (Figure 15e,f and Figure 16e,f). An increased time to achieve a stationary response is also observed for these cases.
The effective grid size  Δ x M  can be computed in one of two ways, by approximating  D H  and  D V  by  κ H  and  κ V , respectively, and solving the corresponding relation in (38) for  Δ x M  (Table 8). The values of  Δ x M  computed in this manner are  4.2268 ± 0.1444  (mean ± SD) using  κ H  and  4.0684 ± 0.2099  using  κ V . A single-factor ANOVA analysis results in p-values of 0.159 for  R o b s 2  between 0.5 and 3.0, 0.226 for  R o b s 2  between 0.5 and 2.5 and 0.394 for  R o b s 2  between 0.5 and 2.0. These findings suggest that  Δ x M  can be approximated as constant, with some caution needed for the case with the largest obstacle sizes.
The 2D lattice-based surrogate model for the multisize obstacles case is thus fully represented by the set of parameters  q x q y q 1 ( = 1 q x q y )  and  Δ x M , shown for each obstacle radius in Table 8. In reality, using an average of the two calculated values of  Δ x M  is recommended.

6. Discussion and Conclusions

In this study, we developed a systematic approach (outlined in Figure 1) for bridging two-dimensional continuous models of diffusive transport in the presence of rigid internal obstacles with perfectly elastic collisions with two types of surrogate models. The first type is a lattice-based surrogate model that exploits symmetries in the RVE of the continuous domain used for direct numerical simulation. The second type is a square lattice surrogate model that can enable the accurate estimation of diffusivities to be subsequently used in more general lattice-based modeling frameworks where diffusion is one of several important coupled mechanisms. Here, diffusion is often the fastest spatiotemporal mechanism. Our systematic approach can be used, first, to establish the discrete model probabilities and grid size for building 2D lattice models in applications that couple diffusion with additional mechanisms in a background medium having specific geometric properties. Conversely, in other applications, the ability to calibrate the grid size such that the associated probabilities are consistent with an observed or prescribed diffusivity may also be beneficial.
While the level of noise and error increases in the more complex (multisize obstacles) model considered in this study, it remains in a range that is comparable to the level of noise or variation typical for 2D lattice-based simulations with underlying stochastic or probabilistic mechanisms. Our approach is versatile in the sense that it can be extended to other geometric configurations of obstacles in an RVE exhibiting several degrees of symmetry. Similarly, the techniques used in our overall approach can be extended to three-dimensional lattice-based models for materials with internal geometric symmetries. Nevertheless, it should be noted that the computational time needed to achieve stationarity of the underlying continuous and lattice-based surrogate model probabilities can increase substantially with increasing model complexity. Consequently, the extent to which computation time is practical (versus prohibitive) will depend on the degree of internal symmetry in the background medium as well as availability of ultra-high-performance computing resources.

Author Contributions

Conceptualization, T.M.A. and M.A.H.; Methodology, T.M.A. and M.A.H.; Validation, T.M.A. and M.A.H.; Writing—original draft, T.M.A. and M.A.H.; Writing—review & editing, T.M.A. and M.A.H.; Visualization, T.M.A. and M.A.H. All authors contributed equally to this work. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded and the work was supported by the US National Science Foundation via grant DMS-1638521 and an NSF Graduate Research Fellowship.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author. The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Overview and Derivation of Type 1 Limits

We summarize several useful limits in evaluating Equation (6) (Section 2.2.2). We delineate these limits as those involving only the relative displacements (Type 1) and as those involving the position of the particle (Type 2). Direct evaluation of the Type 1 limits yields the following results associated with case (i):
lim K 1 K i = 1 K h x i N = 0 ,
lim K 1 K i = 1 K h x i N h x i M = 0 when N M ,
lim K 1 K i = 1 K ( h x i N ) 2 = p x ( Δ x ) 2 i . e . , w h e n   N = M .
Analogous results also hold for the vertical transition case (ii) and are derived using the same steps shown in this appendix.
The Type 2 limits can also be evaluated directly (see Appendix B) and yield the following results:
lim K 2 K i = 1 K x i N h x i M = 0 when M > N ,
lim K 1 K i = 1 K ( x i N ) 2 = N p x ( Δ x ) 2 .
The above limits are for the horizontal transition case ( x i ), but there are similar analogous results that can be derived using the same steps for the vertical transition case.

Derivation of Type 1 Limits

Evaluating Equation (A1). Consider the average displacement in the horizontal direction, over all realizations, as  K ,
lim K i = 1 K h x i ( N ) .
Let  k x 1 k x 2  and  k x 3  be defined as follows:
(i)
k x 1 : the number of times that  h x 1 ( N ) = 0 ,
(ii)
k x 2 : the number of times that  h x 1 ( N ) = Δ x ,
(iii)
k x 3 : the number of times that  h x 1 ( N ) = Δ x .
We can then write
lim K 1 K i = 1 K h x i ( N ) = lim K 1 K k x 2 ( Δ x ) + k x 3 ( Δ x ) = lim K ( Δ x ) k x 2 K k x 3 K .
For the equally spaced obstacles problem, moving left or right is equally likely. Hence, for very large values of K, it follows that  k x 2 K = p x 2  and that  k x 3 K = p x 2 . We then write
lim K 1 K i = 1 K h x i ( N ) = lim K ( Δ x ) k x 2 K k x 3 K = ( Δ x ) p x 2 p x 2 = 0 .
Similarly, in the vertical direction, by analogous steps we obtain the result
lim K 1 K i = 1 K h y i ( N ) = 0 .
Evaluating Equation (A2). We have three cases for  h x i ( N )  and  h x i ( M ) :
(i)
h x i ( N ) = Δ x  and  h x i ( M ) = Δ x  (or vice versa),
(ii)
h x i ( N ) = h x i ( M ) = Δ x  or  h x i ( N ) = h x i ( M ) = Δ x ,
(iii)
h x i ( N ) = 0  and/or  h x i ( M ) = 0 .
To describe the frequency of these cases, we define  k x 4 k x 5  and  k x 6 , respectively, as follows:
(i)
k x 4 : the number of times that  h x i ( N ) = Δ x  and  h x i ( M ) = Δ x  (or vice versa),
(ii)
k x 5 : the number of times that  h x i ( N ) = h x i ( M ) = Δ x  or  h x i ( N ) = h x i ( M ) = Δ x ,
(iii)
k x 6 : the number of times that  h x i ( N ) = 0  and/or  h x i ( M ) = 0 .
Consider the limit
lim K 1 K i = 1 K h x i ( N ) h x i ( M ) = lim K ( Δ x ) 2 k x 5 K k x 4 K .
We have equal probabilities for events corresponding with  k x 4  and  k x 5 , and we expect for very large values of K that  k x 4 K = k x 5 K . Hence,
lim K 1 K i = 1 K h x i ( N ) h x i ( M ) = lim K ( Δ x ) 2 k x 5 K k x 4 K = 0 .
Similarly, in the vertical direction, by analogous steps we obtain the result
lim K 1 K i = 1 K h y i ( N ) h y i ( M ) = 0 ,
when  N M .
Evaluating Equation (7). In the case  N = M , and with  k x 1 k x 2  and  k x 3  defined as above,
lim K 1 K i = 1 K h x i ( N ) h x i ( M ) = lim K 1 K i = 1 K h x i 2 ( N ) = lim K k x 2 + k x 3 K ( Δ x ) 2 ,
yielding the result
lim K k x 2 + k x 3 K = p x .
Hence, for  N = M ,
lim K 1 K i = 1 K h x i ( N ) h x i ( M ) = p x ( Δ x ) 2 ,
which corresponds to the first relation in (7). We can again follow a similar line of reasoning to obtain a similar result in the vertical direction.

Appendix B. Derivation of Type 2 Limits

Consider a particle’s possible horizontal locations after one time step,
x i ( N ) = x i ( N 1 ) + h x i ( N ) ,
We use induction to derive the second equation in (7).
When  N = 0 , we obtain
lim K 2 K i = 1 K x i ( 0 ) h x i ( M ) = 0 , M > 0 .
When  N = 1 , we have,
lim K 2 K i = 1 K x i ( 1 ) h x i ( M ) , M > 1 = lim K 2 K i = 1 K x i ( 0 ) + h x i ( 1 ) h x i ( M ) = lim K 2 K i = 1 K h x i ( 1 ) h x i ( M ) = 0 .
For  N > 1 , we employ mathematical induction, first assuming that
lim K 2 K i = 1 K x i ( N ) h x i ( M ) = 0 when M > N ,
holds for  N > 1 . We now show that it also holds for  N + 1 > 2  via the following steps:
lim K 2 K i = 1 K x i ( N + 1 ) h x i ( M ) = 2 K i = 1 K x i ( N ) + h x i ( N + 1 ) h x i ( M ) = 2 K i = 1 K x i ( N ) h x i ( M ) + 2 K i = 1 K h x i ( N + 1 ) h x i ( M ) .
Using the inductive hypothesis in Equation (A19), we obtain the result
lim K 2 K i = 1 K x i ( N + 1 ) h x i ( M ) = 0 for M > N ,
which corresponds to the second relation in (7).
Lastly, we use mathematical induction to show that
lim K 1 K i = 1 K x i 2 ( N ) = N p x ( Δ x ) 2 .
When  N = 1 , Equation (A22) becomes
lim K 1 K i = 1 K x i 2 ( 1 ) = lim K 1 K i = 1 K ( x i ( 0 ) + h i ( 1 ) ) 2 = p x ( Δ x ) 2 .
When  N = 2 , Equation (A22) becomes
lim K 1 K i = 1 K x i 2 ( 2 ) = lim K 1 K i = 1 K ( x i ( 1 ) + h i ( 2 ) ) 2 = lim K 1 K i = 1 K ( x i 2 ( 1 ) + 2 x i ( 1 ) h i ( 2 ) + h i 2 ( 2 ) ) = lim K 1 K i = 1 K x i 2 ( 1 ) + lim K 2 K i = 1 K x i ( 1 ) h i ( 2 ) + lim K 1 K i = 1 K h i 2 ( 2 ) .
We can rewrite this as
lim K 1 K i = 1 K x i 2 ( 2 ) = 2 p x ( Δ x ) 2 + lim K 2 K i = 1 K x i ( 1 ) h i ( 2 ) = 2 p x ( Δ x ) 2 + 0 .
We now consider the inductive step, assuming that for  N > 2 ,
lim K 1 K i = 1 K x i 2 ( N ) = N p x ( Δ x ) 2 ,
holds for N. We now show that it also holds for  N + 1  via the following steps:
lim K 1 K i = 1 K x i 2 ( N + 1 ) = lim K 1 K i = 1 K x i ( N ) + h i ( N + 1 ) 2 = lim K 1 K i = 1 K x i 2 ( N ) + 2 x i ( N ) h i ( N + 1 ) + h i 2 ( N + 1 ) = lim K 1 K i = 1 K x i 2 ( N ) + lim K 2 K i = 1 K x i ( N ) h i ( N + 1 ) + lim K 1 K i = 1 K h i 2 ( N + 1 ) .
Using the inductive hypothesis in Equation (A26), we obtain,
lim K 1 K i = 1 K x i 2 ( N + 1 ) = N p x ( Δ x ) 2 + lim K 2 K i = 1 K x i ( N ) h i ( N + 1 ) + p x ( Δ x ) 2 = ( N + 1 ) p x ( Δ x ) 2 + lim K 2 K i = 1 K x i ( N ) h i ( N + 1 ) .
The last term above is zero, so that
lim K 1 K i = 1 K x i 2 ( N + 1 ) = ( N + 1 ) p x ( Δ x ) 2 .
Hence,
lim K 1 K i = 1 K x i 2 ( N + 1 ) = N p x ( Δ x ) 2 , for all N 1 .

References

  1. Anderson, A.; Rejniak, K. Single-Cell-Based Models in Biology and Medicine; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2007. [Google Scholar]
  2. Glazier, J.A.; Graner, F. Simulation of the differential adhesion driven rearrangement of biological cells. Phys. Rev. E 1993, 47, 2128. [Google Scholar] [CrossRef] [PubMed]
  3. Jiang, Y.; Pjesivac-Grbovic, J.; Cantrell, C.; Freyer, J.P. A multiscale model for avascular tumor growth. Biophys. J. 2005, 89, 3884–3894. [Google Scholar] [CrossRef] [PubMed]
  4. Savill, N.J.; Hogeweg, P. Modelling morphogenesis: From single cells to crawling slugs. J. Theor. Biol. 1997, 184, 229–235. [Google Scholar] [CrossRef] [PubMed]
  5. Savill, N.J.; Sherratt, J.A. Control of epidermal stem cell clusters by Notch-mediated lateral induction. Dev. Biol. 2003, 258, 141–153. [Google Scholar] [CrossRef] [PubMed]
  6. Stott, E.L.; Britton, N.F.; Glazier, J.A.; Zajac, M. Stochastic simulation of benign avascular tumour growth using the Potts model. Math. Comput. Model. 1999, 30, 183–198. [Google Scholar] [CrossRef]
  7. An, G.; Fitzpatrick, B.; Christley, S.; Federico, P.; Kanarek, A.; Neilan, R.M.; Oremland, M.; Salinas, R.; Laubenbacher, R.; Lenhart, S. Optimization and control of agent-based models in biology: A perspective. Bull. Math. Biol. 2017, 79, 63–87. [Google Scholar] [CrossRef] [PubMed]
  8. Jamali, Y.; Jamali, T.; Mofrad, M.R.K. An agent based model of integrin clustering: Exploring the role of ligand clustering, integrin homo-oligomerization, integrin-ligand affinity, membrane crowdedness and ligand mobility. J. Comput. Phys. 2013, 244, 264–278. [Google Scholar] [CrossRef]
  9. Poleszczuk, J.; Macklin, P.; Enderling, H. Agent-based modeling of cancer stem cell driven solid tumor growth. Methods Mol. Biol. 2016, 1516, 335–346. [Google Scholar] [PubMed]
  10. Feder, T.J.; Brust-Mascher, I.; Slattery, J.P.; Baird, B.; Webb, W.W. Constrained diffusion or immobile fraction on cell surfaces: A new interpretation. Biophys. J. 1996, 70, 2767–2773. [Google Scholar] [CrossRef] [PubMed]
  11. Saxton, M. Anomalous Diffusion Due to Obstacles: A Monte Carlo Study. Biophys. J. 1994, 66, 394–401. [Google Scholar] [CrossRef] [PubMed]
  12. Saxton, M. Single-Particle Tracking: The Distribution of Diffusion Coefficients. Biophys. J. 1997, 72, 1744–1753. [Google Scholar] [CrossRef] [PubMed]
  13. Vilaseca, E.; Isvoran, A.; Madurga, S.; Pastor, I.; Garcés, J.L.; Mas, F. New insights into diffusion in 3D crowded media by Monte Carlo simulations: Effect of size, mobility and spatial distribution of obstacles. Phys. Chem. Chem. Phys. 2011, 13, 7396–7407. [Google Scholar] [CrossRef] [PubMed]
  14. Holmes, M.H. Introduction to the Foundations of Applied Mathematics; Springer: New York, NY, USA, 2009. [Google Scholar]
Figure 1. Illustration of the approach used for bridging continuous and lattice-based models in this study.
Figure 1. Illustration of the approach used for bridging continuous and lattice-based models in this study.
Applsci 14 05442 g001
Figure 2. Illustration of a particle undergoing a random walk on a 2D lattice. The particle moves one step (size  Δ x ) in the horizontal direction with probability  p x  (left) and one step (size  Δ y ) in the vertical direction with probability  p y  (right). The probability of staying in place is  1 p x p y .
Figure 2. Illustration of a particle undergoing a random walk on a 2D lattice. The particle moves one step (size  Δ x ) in the horizontal direction with probability  p x  (left) and one step (size  Δ y ) in the vertical direction with probability  p y  (right). The probability of staying in place is  1 p x p y .
Applsci 14 05442 g002
Figure 3. Sample domains (RVEs) for continuous model simulations ( R part = 1.0 ), with numbered subdomains: (a) equally spaced obstacles model (with  R obs = 2.0 ); (b) multisize obstacles model (with  R obs 1 = 1.0  and  R obs 2 = 2.0 ). Obstacles are shown as black circles and the particle undergoing random walks is shown as a red circle.
Figure 3. Sample domains (RVEs) for continuous model simulations ( R part = 1.0 ), with numbered subdomains: (a) equally spaced obstacles model (with  R obs = 2.0 ); (b) multisize obstacles model (with  R obs 1 = 1.0  and  R obs 2 = 2.0 ). Obstacles are shown as black circles and the particle undergoing random walks is shown as a red circle.
Applsci 14 05442 g003
Figure 4. Building a lattice-based surrogate model for the continuous model in the equally spaced obstacles case: (a) nine subdomains are used to exploit symmetry of the obstacle arrangement. and transitions between subdomains are tracked. (b) Lattice-based surrogate representation is shown, with red circles denoting corresponding subdomains in the continuous model.
Figure 4. Building a lattice-based surrogate model for the continuous model in the equally spaced obstacles case: (a) nine subdomains are used to exploit symmetry of the obstacle arrangement. and transitions between subdomains are tracked. (b) Lattice-based surrogate representation is shown, with red circles denoting corresponding subdomains in the continuous model.
Applsci 14 05442 g004
Figure 5. Building a lattice-based surrogate model for the continuous model in the multisize obstacles case: (a) four subdomains are used to exploit symmetries of the obstacle arrangement, and transitions between subdomains are tracked. Smaller green circles indicate obstacles of fixed radius  R obs 1 = 1.0 , and larger blue circles indicate obstacles with varying obstacle radius  R obs 2 ; (b) lattice-based surrogate representation with red circles denoting corresponding subdomains in the continuous model.
Figure 5. Building a lattice-based surrogate model for the continuous model in the multisize obstacles case: (a) four subdomains are used to exploit symmetries of the obstacle arrangement, and transitions between subdomains are tracked. Smaller green circles indicate obstacles of fixed radius  R obs 1 = 1.0 , and larger blue circles indicate obstacles with varying obstacle radius  R obs 2 ; (b) lattice-based surrogate representation with red circles denoting corresponding subdomains in the continuous model.
Applsci 14 05442 g005
Figure 6. Illustration of the role of the commitment index (calibration) parameter  M C : (a) The particle (solid black circle) has just crossed the boundary between subdomains (dashed gray line) to reach its 1st-step location. Possible 2nd-step locations are indicated by the solid black ring. (b) Three possible 2nd-step locations are indicated by solid red circles. Some possible next steps (3rd-step locations) are shown with red rings. (c) A red ring illustrates the particle’s remaining possible 3rd-step locations when it has remained in the current subdomain at the prior step. (d) Possible 4th-step locations are indicated with blue rings.
Figure 6. Illustration of the role of the commitment index (calibration) parameter  M C : (a) The particle (solid black circle) has just crossed the boundary between subdomains (dashed gray line) to reach its 1st-step location. Possible 2nd-step locations are indicated by the solid black ring. (b) Three possible 2nd-step locations are indicated by solid red circles. Some possible next steps (3rd-step locations) are shown with red rings. (c) A red ring illustrates the particle’s remaining possible 3rd-step locations when it has remained in the current subdomain at the prior step. (d) Possible 4th-step locations are indicated with blue rings.
Applsci 14 05442 g006
Figure 7. Mean squared displacement versus time for the equally spaced obstacles model. Effects of an increasing number of realizations are shown for the case  R part = 1.0  and  R obs = 1.0 : (a) curves; (b) linear fits to the curves.
Figure 7. Mean squared displacement versus time for the equally spaced obstacles model. Effects of an increasing number of realizations are shown for the case  R part = 1.0  and  R obs = 1.0 : (a) curves; (b) linear fits to the curves.
Applsci 14 05442 g007
Figure 8. Transition probabilities for building the lattice-based surrogate model from the equally spaced obstacles (continuous) model. Transitions from subdomain 6 are illustrated: (a) simulation domain showing the 9 subdomains; (b) plot of all transition probabilities (here, only the stay probability is discernible); (c) magnified plot to illustrate the stay probability; (d) magnified plot to illustrate the leave probabilities.
Figure 8. Transition probabilities for building the lattice-based surrogate model from the equally spaced obstacles (continuous) model. Transitions from subdomain 6 are illustrated: (a) simulation domain showing the 9 subdomains; (b) plot of all transition probabilities (here, only the stay probability is discernible); (c) magnified plot to illustrate the stay probability; (d) magnified plot to illustrate the leave probabilities.
Applsci 14 05442 g008
Figure 9. Mean squared displacement and its slope for the equally spaced obstacles model. Results are shown for particle radius  R part = 1.0  and obstacle radius  R obs = 2.0 : (left r 2  versus time for continuous model and resulting surrogate model as the commitment index  M c  is varied; (right) slope as a function of obstacle radius for an increasing number of realizations.
Figure 9. Mean squared displacement and its slope for the equally spaced obstacles model. Results are shown for particle radius  R part = 1.0  and obstacle radius  R obs = 2.0 : (left r 2  versus time for continuous model and resulting surrogate model as the commitment index  M c  is varied; (right) slope as a function of obstacle radius for an increasing number of realizations.
Applsci 14 05442 g009
Figure 10. Slope of  r 2  versus time for equally spaced obstacles (continuous) model and the lattice-based surrogate model with best  M c  values. Results are shown for particle radius  R part = 1.0  and varying obstacle radius  R obs .
Figure 10. Slope of  r 2  versus time for equally spaced obstacles (continuous) model and the lattice-based surrogate model with best  M c  values. Results are shown for particle radius  R part = 1.0  and varying obstacle radius  R obs .
Applsci 14 05442 g010
Figure 11. Mean squared displacement versus time for the multisize obstacles model. Effects of an increasing number of realizations are shown for the case  R part = 1.0 R obs 1 = 1.0  and  R obs 2 = 1.5 : (a) curves; (b) linear fits to the curves.
Figure 11. Mean squared displacement versus time for the multisize obstacles model. Effects of an increasing number of realizations are shown for the case  R part = 1.0 R obs 1 = 1.0  and  R obs 2 = 1.5 : (a) curves; (b) linear fits to the curves.
Applsci 14 05442 g011
Figure 12. Slope of the mean squared displacement for the multisize obstacles model: (left) variation with obstacle radius as the number of realizations is increased; (right) comparison of the continuous and lattice-based surrogate models for the best  M C  values.
Figure 12. Slope of the mean squared displacement for the multisize obstacles model: (left) variation with obstacle radius as the number of realizations is increased; (right) comparison of the continuous and lattice-based surrogate models for the best  M C  values.
Applsci 14 05442 g012
Figure 13. Estimated effective diffusivities for the continuous and lattice-based surrogate models in the equally spaced obstacles case with  R part = 1.0 : (a R obs = 0.5 M C = 6 ; (b R obs = 1.0 M C = 6 ; (c R obs = 1.5 M C = 5 ; (d R obs = 2.0 M C = 5 ; (e R obs = 2.5 M C = 4 ; (f R obs = 3.0 M C = 4 .
Figure 13. Estimated effective diffusivities for the continuous and lattice-based surrogate models in the equally spaced obstacles case with  R part = 1.0 : (a R obs = 0.5 M C = 6 ; (b R obs = 1.0 M C = 6 ; (c R obs = 1.5 M C = 5 ; (d R obs = 2.0 M C = 5 ; (e R obs = 2.5 M C = 4 ; (f R obs = 3.0 M C = 4 .
Applsci 14 05442 g013
Figure 14. Estimated effective diffusivities for the continuous and lattice-based surrogate models in the multisize obstacles case with  R part = 1.0 R obs 1 = 1.0 : (a R obs 2 = 0.5 M c = 6 ; (b R obs 2 = 1.0 M c = 6 ; (c R obs 2 = 1.5 M c = 6 ; (d R obs 2 = 2.0 M c = 6 ; (e R obs 2 = 2.5 M c = 6 ; (f R obs 2 = 3.0 M c = 6 .
Figure 14. Estimated effective diffusivities for the continuous and lattice-based surrogate models in the multisize obstacles case with  R part = 1.0 R obs 1 = 1.0 : (a R obs 2 = 0.5 M c = 6 ; (b R obs 2 = 1.0 M c = 6 ; (c R obs 2 = 1.5 M c = 6 ; (d R obs 2 = 2.0 M c = 6 ; (e R obs 2 = 2.5 M c = 6 ; (f R obs 2 = 3.0 M c = 6 .
Applsci 14 05442 g014
Figure 15. Horizontal, vertical and (regular) mean squared displacements for the lattice-based surrogate model in the multisize obstacles case with  R part = 1.0 R obs 1 = 1.0 : (a R obs 2 = 0.5 M c = 6 ; (b R obs 2 = 1.0 M c = 6 ; (c R obs 2 = 1.5 M c = 6 ; (d R obs 2 = 2.0 M c = 6 ; (e R obs 2 = 2.5 M c = 6 ; (f R obs 2 = 3.0 M c = 6 .
Figure 15. Horizontal, vertical and (regular) mean squared displacements for the lattice-based surrogate model in the multisize obstacles case with  R part = 1.0 R obs 1 = 1.0 : (a R obs 2 = 0.5 M c = 6 ; (b R obs 2 = 1.0 M c = 6 ; (c R obs 2 = 1.5 M c = 6 ; (d R obs 2 = 2.0 M c = 6 ; (e R obs 2 = 2.5 M c = 6 ; (f R obs 2 = 3.0 M c = 6 .
Applsci 14 05442 g015
Figure 16. Ratio of horizontal and vertical diffusivities for the lattice-based surrogate model in the multisize obstacles case with  R part = 1.0 R obs 1 = 1.0 : (a R obs 2 = 0.5 M C = 6 ; (b R obs 2 = 1.0 M C = 6 ; (c R obs 2 = 1.5 M C = 6 ; (d R obs 2 = 2.0 M C = 6 ; (e R obs 2 = 2.5 M C = 6 ; (f R obs 2 = 3.0 M C = 6 .
Figure 16. Ratio of horizontal and vertical diffusivities for the lattice-based surrogate model in the multisize obstacles case with  R part = 1.0 R obs 1 = 1.0 : (a R obs 2 = 0.5 M C = 6 ; (b R obs 2 = 1.0 M C = 6 ; (c R obs 2 = 1.5 M C = 6 ; (d R obs 2 = 2.0 M C = 6 ; (e R obs 2 = 2.5 M C = 6 ; (f R obs 2 = 3.0 M C = 6 .
Applsci 14 05442 g016
Table 1. Transition probabilities in the lattice-based surrogate model for the equally spaced obstacles (continuous) model for the best values of  M c  with particle radius  R part = 1.0 .
Table 1. Transition probabilities in the lattice-based surrogate model for the equally spaced obstacles (continuous) model for the best values of  M c  with particle radius  R part = 1.0 .
Probability by Transition Type
R obs M c p 1 E p 2 E
0.57 0.99276 1.8099 × 10 3
1.06 0.99291 1.7724 × 10 3
1.55 0.99297 1.7573 × 10 3
2.05 0.99371 1.5734 × 10 3
2.54 0.99384 1.5401 × 10 3
3.04 0.99493 1.2676 × 10 3
Table 2. Slope values for  r 2  vs. t in the equally spaced obstacles (continuous) model ( R part = 1.0 ) and the lattice-based surrogate model. The best values of  M C  are also shown.
Table 2. Slope values for  r 2  vs. t in the equally spaced obstacles (continuous) model ( R part = 1.0 ) and the lattice-based surrogate model. The best values of  M C  are also shown.
R obs M c Slope (Continuous)Slope (Surrogate)Percent Difference
0.572.99842.87704.049%
1.062.90442.84681.983%
1.552.75072.75060.004%
2.052.47312.50941.468%
2.542.33762.43103.996%
3.042.07652.10161.209%
Table 3. Transition probabilities in the lattice-based surrogate model for the multisize obstacles (continuous) model for the best values of  M c  with particle radius  R part = 1.0  and  R obs 1 = 1.0 .
Table 3. Transition probabilities in the lattice-based surrogate model for the multisize obstacles (continuous) model for the best values of  M c  with particle radius  R part = 1.0  and  R obs 1 = 1.0 .
Probability by Transition Type
R obs 2 M c p 1 M p 2 M p 3 M p 4 M
0.56 0.99253 1.8680 × 10 3 2.0159 × 10 3 1.7147 × 10 3
1.06 0.99291 1.7715 × 10 3 1.7764 × 10 3 1.7725 × 10 3
1.56 0.99324 1.6894 × 10 3 1.5339 × 10 3 1.8510 × 10 3
2.06 0.99352 1.6203 × 10 3 1.2909 × 10 3 1.9522 × 10 3
2.55 0.99316 1.7098 × 10 3 1.1322 × 10 3 2.2850 × 10 3
3.05 0.99339 1.6502 × 10 3 8.1439 × 10 4 2.4950 × 10 3
Table 4. Slope values for  r 2  vs. t in the multisize obstacles (continuous) model ( R part = 1.0 R obs 1 = 1.0 ) and the lattice-based surrogate model. The best values of  M C  are also shown.
Table 4. Slope values for  r 2  vs. t in the multisize obstacles (continuous) model ( R part = 1.0 R obs 1 = 1.0 ) and the lattice-based surrogate model. The best values of  M C  are also shown.
R obs 2 M c Slope (Continuous)Slope (Surrogate)Percent Difference
0.562.98703.00590.632%
1.062.73572.85314.291%
1.562.73762.89395.709%
2.062.66182.47517.014%
2.552.49952.59043.637%
3.052.27102.36514.144%
Table 5. Effective diffusivities in the equally spaced obstacles case for the continuous model ( κ cont ) and the lattice-based surrogate model ( κ surr ). The stay probability (q) and best commitment index ( M C ) are also shown for each obstacle radius ( R obs ).
Table 5. Effective diffusivities in the equally spaced obstacles case for the continuous model ( κ cont ) and the lattice-based surrogate model ( κ surr ). The stay probability (q) and best commitment index ( M C ) are also shown for each obstacle radius ( R obs ).
R obs M C q κ cont κ surr Percent Difference
0.570.992760.75500.71005.960%
1.060.992910.73140.70843.145%
1.550.992970.67590.68621.524%
2.050.993710.61460.61650.309%
2.540.993840.58850.60162.226%
3.040.994930.51880.51870.019%
Table 6. Theoretical diffusivity (D) and grid size ( Δ x ) in the equally spaced obstacles case. The stay probability (q), best commitment index ( M C ) and theoretical diffusivity with  L = 10  ( D | Δ x = 10 ) are also shown for each obstacle radius ( R obs ).
Table 6. Theoretical diffusivity (D) and grid size ( Δ x ) in the equally spaced obstacles case. The stay probability (q), best commitment index ( M C ) and theoretical diffusivity with  L = 10  ( D | Δ x = 10 ) are also shown for each obstacle radius ( R obs ).
R obs q α 2 Δ x κ cont κ surr D D | Δ x = 10
0.50.992765.10484.42600.75500.71000.71003.6243
1.00.992915.00274.47090.73140.70840.70843.5440
1.50.992975.12244.41840.67590.68620.68623.5149
2.00.993715.09074.43210.61460.61650.61653.1384
2.50.993845.07284.43990.58850.60160.60163.0517
3.00.994934.88634.52390.51880.51870.51872.5343
Table 7. Effective diffusivities in the multisize obstacles case for the continuous model ( κ cont ) and the lattice-based surrogate model ( κ surr ). The resulting stay probability ( q 1 ) in the square lattice surrogate model and the best commitment index ( M C ) are also shown for each obstacle radius ( R obs ).
Table 7. Effective diffusivities in the multisize obstacles case for the continuous model ( κ cont ) and the lattice-based surrogate model ( κ surr ). The resulting stay probability ( q 1 ) in the square lattice surrogate model and the best commitment index ( M C ) are also shown for each obstacle radius ( R obs ).
R obs M c q 1 κ cont κ surr Percent Difference
0.560.99250.75090.74281.084%
1.060.99290.68420.72616.133%
1.560.99320.69430.74186.845%
2.060.99350.67460.62906.755%
2.550.99320.62050.64403.785%
3.050.99390.56670.59424.859%
Table 8. Estimated values of grid size  Δ x M  based on the lattice-based surrogate model simulation results for the multisize case using the effective horizontal diffusivity ( κ H ) and the effective vertical diffusivity ( κ V ). The resulting transition (leave) probabilities in the square lattice surrogate model are also shown.
Table 8. Estimated values of grid size  Δ x M  based on the lattice-based surrogate model simulation results for the multisize case using the effective horizontal diffusivity ( κ H ) and the effective vertical diffusivity ( κ V ). The resulting transition (leave) probabilities in the square lattice surrogate model are also shown.
R o b s 2 q y = 2 p 2 q x = p 3 + p 4 Δ x M  ( κ V  est.) Δ x M  ( κ H  est.)
0.5 0.0037360 0.0037629 4.2097 4.1652
1.0 0.0035430 0.0035489 4.0917 4.1101
1.5 0.0033788 0.0033849 4.3173 4.1280
2.0 0.0032406 0.0032431 4.4659 4.3340
2.5 0.0034196 0.0034172 4.1858 3.9538
3.0 0.0033004 0.0033094 4.0902 3.7193
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Andrew, T.M.; Haider, M.A. Bridging Continuous and Lattice-Based Models of Two-Dimensional Diffusion: A Systematic Approach for Estimating Transition Probabilities, Grid Size and Diffusivity. Appl. Sci. 2024, 14, 5442. https://doi.org/10.3390/app14135442

AMA Style

Andrew TM, Haider MA. Bridging Continuous and Lattice-Based Models of Two-Dimensional Diffusion: A Systematic Approach for Estimating Transition Probabilities, Grid Size and Diffusivity. Applied Sciences. 2024; 14(13):5442. https://doi.org/10.3390/app14135442

Chicago/Turabian Style

Andrew, Tricity M., and Mansoor A. Haider. 2024. "Bridging Continuous and Lattice-Based Models of Two-Dimensional Diffusion: A Systematic Approach for Estimating Transition Probabilities, Grid Size and Diffusivity" Applied Sciences 14, no. 13: 5442. https://doi.org/10.3390/app14135442

APA Style

Andrew, T. M., & Haider, M. A. (2024). Bridging Continuous and Lattice-Based Models of Two-Dimensional Diffusion: A Systematic Approach for Estimating Transition Probabilities, Grid Size and Diffusivity. Applied Sciences, 14(13), 5442. https://doi.org/10.3390/app14135442

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop