Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Jun 24;12(1):10759.
doi: 10.1038/s41598-022-14541-y.

Random walk diffusion simulations in semi-permeable layered media with varying diffusivity

Affiliations

Random walk diffusion simulations in semi-permeable layered media with varying diffusivity

Ignasi Alemany et al. Sci Rep. .

Abstract

In this paper we present random walk based solutions to diffusion in semi-permeable layered media with varying diffusivity. We propose a novel transit model for solving the interaction of random walkers with a membrane. This hybrid model is based on treating the membrane permeability and the step change in diffusion coefficient as two interactions separated by an infinitesimally small layer. By conducting an extensive analytical flux analysis, the performance of our hybrid model is compared with a commonly used membrane transit model (reference model). Numerical simulations demonstrate the limitations of the reference model in dealing with step changes in diffusivity and show the capability of the hybrid model to overcome this limitation and to offer substantial gains in computational efficiency. The suitability of both random walk transit models for the application to simulations of diffusion tensor cardiovascular magnetic resonance (DT-CMR) imaging is assessed in a histology-based domain relevant to DT-CMR. In order to demonstrate the usefulness of the new hybrid model for other possible applications, we also consider a larger range of permeabilities beyond those commonly found in biological tissues.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
(a) Left: Confocal fluorescence microscopy image of cardiomyocytes running vertically. The mean diffusion distance Δx30μm over 100ms is indicated as the radius of the yellow circle. Right: Schematic of an example domain with m=4 compartments with indices i. Each compartment has two barriers with their corresponding locations xb=bi, xb=bi+1=bj with permeabilities κi and κj. Note that the domain ends enforce the zero-flux boundary conditions (κ0=κm=0). (b) Illustration of the behaviour of a single walker at xp performing a random step δx towards a barrier at xb. Initially, the step is divided into δxi and δxj. Depending on the transit decision, the walker is either reflected elastically (x=xp+δxi-δxj) or enters the new compartment with Dj<Di. In the latter case, the remaining step after transit is modified to δxj to preserve a constant net step size. Note that |δxj|<|δxj| when entering a region of lower diffusion coefficient (and conversely for Dj<Di).
Figure 2
Figure 2
Illustration of the different possible sequences of events when a particle attempts a transit between compartments with low (Di, left) and high (Dj, right) diffusivity. Configuration 1 places the membrane in the low diffusivity region (xb<xd), while configuration 2 places the membrane in the high diffusivity region, (xb>xd). We illustrate cases A and B, where A refers to an attempted transit from ij and B from ji. Note that particles can freely cross the diffusivity interface xd from low (light blue) to high (dark blue) diffusivity regions, but may be reflected in attempting to cross from high to low diffusivity regions. For case 2, this results in multiple/infinite reflections in the infinitesimal gap δs between the membrane and the diffusivity jump.
Figure 3
Figure 3
Histograms of walker positions after random walk simulations of the steady state. Initial positions were sampled from a uniform distribution to seed walkers with a constant density throughout the domain. We have performed the simulations with Np=106. We applied the reference membrane model (top) described in Eq. (5), with permeability κ=0.05μm/ms, and the new hybrid model (bottom) from Eq. (6). Simulations were performed with varying step sizes δt for a short and a long simulation time T. We consider DL=0.5μm2/ms, DR=2.5μm2/ms and L=20μm.
Figure 4
Figure 4
Top figures: instantaneous (numerical/analytical) and time-averaged (plotted as the average over intervals of Δt=20ms) fluxes J(t) through the membrane as a function of simulation time. Bottom figure: Analytical and numerical net cumulative flux. We show results for two different step sizes δt: 20 and 0.5ms. Domain and simulation parameters are DL=0.5μm2/ms, DR=2.5μm2/ms, κ=0.05μm/ms, L=20μm, Np=106.
Figure 5
Figure 5
Global errors using the reference (upper row) and hybrid transit model (lower row) for different time steps δt, distinct diffusivity ratios DL:DR and two different permeabilities κ. The global error measures the accuracy of the numerical simulation by calculating the area between the analytical and numerical cumulative flux during the entire simulation. Simulations were run until t=1000ms with Np=106 walkers seeding the walkers in a partial uniform region in the left compartment x0[6,14μm].
Figure 6
Figure 6
Illustration of the process of synthesising a 1D domain from histology data. Left figure: An example of a region of histology from a wide-field microscopy image. This is part of a large stack of histology slices obtained from the mesocardium of swine. Cardiomyocytes (red–purple) are cut perpendicular to their long axis. Extra-cellular space is white, while collagen is stained blue. Right figure: Distribution of cell sizes from automatic segmentation for the entire stack of images as well as manual labelling of a small representative region.
Figure 7
Figure 7
Analytical and random walk solutions using Np=106 walkers and a time step of δt=1.5ms. Top: Transient solution U(x,t;x0) for initial concentration at x0 located in the centre of the domain considering three simulation times 50,100and1000ms. Bottom: Steady-state solution obtained after uniformly seeding the walkers in the domain. The simulation time is set to T=1000ms. The reference model results in accumulation of walkers in ECS compartments. Note that this effect is visually amplified by the choice of axis data range.
Figure 8
Figure 8
Absolute relative signal error and ADC values for a wide range of permeability values considering a very small (δt=0.01ms) and large (δt=1.5ms) time step. All the simulations consider Np=106 walkers, DECS=2μm2/ms and DICS=0.5μm2/ms.

References

    1. Hickson RI, Barry SI, Mercer GN. Critical times in multilayer diffusion. Part 1: Exact solutions. Int. J. Heat Mass Transf. 2009;52:5776–5783. doi: 10.1016/j.ijheatmasstransfer.2009.08.013. - DOI
    1. Vignoles GL. A hybrid random walk method for the simulation of coupled conduction and linearized radiation transfer at local scale in porous media with opaque solid phases. Int. J. Heat Mass Transf. 2016;93:707–719. doi: 10.1016/j.ijheatmasstransfer.2015.10.056. - DOI
    1. Decamps M, De Schepper A, Goovaerts M. Applications of δ-function perturbation to the pricing of derivative securities. Phys. A Stat. Mech. Appl. 2004;342:677–692. doi: 10.1016/j.physa.2004.05.035. - DOI
    1. Berestyki H, Rodriguez N. Analysis of a heterogeneous model for riot dynamics: The effect of censorship of information. Eur. J. Appl. Math. 2016;27:554–582. doi: 10.1017/S0956792515000339. - DOI
    1. Zhang M. Calculation of diffusive shock acceleration of charged particles by skew Brownian motion. Astrophys. J. 2000;541:428–435. doi: 10.1086/309429. - DOI

Publication types