Skip to content

Latest commit

 

History

History
41 lines (22 loc) · 1.41 KB

README.md

File metadata and controls

41 lines (22 loc) · 1.41 KB

Verifying Monte Carlo simulations using a finite volume method

This repository contains the code and methods presented at the 8th World Congress of Biomechanics.

Installation

Installing the tools is as easy as calling:

addpath('classes');

Reference

Data

DOI

Conference presentation

Rose et al. Verifying Monte Carlo simulations of diffusion tensor cardiovascular magnetic resonance using a finite volume method. 2018. 8th World Congress of Biomechanics, Dublin, Ireland.

Examples

MATLAB scripts to create these graphics are located in the .examples/ directory.

Finite volume

First, we show a free diffusion case where the concentration spreads out from an initial spike in the center:

FV 1D Free

Next, we investigate the convergence of the solution with increased number of finite volumes. This example also includes permeable internal boundaries. Note that the step change in concentration across the boundaries is smeared when a too low resolution is chosen.

FV 1D Convergence

Random walk

To illustrate the random walk, we generate an arbitrary domain with some restrictions and seed walkers in the center. See the animation below:

RW 2D Animation