Skip to content

Verifying Monte Carlo simulations using a finite volume method

Notifications You must be signed in to change notification settings

janniklasrose/FV-RW-verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Verifying Monte Carlo simulations using a finite volume method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages