Skip to content

A minimum Monte Carlo simulation code for positron propagation in the magnetic field.

Notifications You must be signed in to change notification settings

MengXiangxi/PMRMC

Repository files navigation

PMRMC

Meng, Xiangxi, PhD, Beijing Cancer Hospital & Peking University

Jin Lujia, Peking University

mengxiangxi@pku.edu.cn

Problem

In PET/MR imaging, a special phenomenon is observed. For positrons with longer ranges, the PSF measured in air is deformed. However, without the magnetic field, the positron range is approximately spherical.

The aim of this code is to reproduce the phenomenon.

Scheme

The schematic representation of the phenomenon a) with and b) without the magnetic field. The preliminary results are shown in c).

Basic algorithms

  1. Many positrons are simulated, independent from each other.
  2. The initial scalar velocity follows a Maxwell distribution, and the direction of the velocity is random.

Hint

In a uniform distribution across the surface of a sphere, the coordinates can be generated as follows:

$$\theta = 2 \pi u; \ \phi = \sin ^{-1}(2 v-1)$$

where $u$ and $v$ are random variables following a uniform distribution on [0,1].

  1. Lorentz force is considered during the propagation.
  2. Scattering is considered, and modeled with a Russian roulette.
  3. The scattering angle is (temporarily) uniformly distributed.
  4. The annihilation is modeled with a Russian roulette.

Output data format

The output data is in 7 columns.

Position X, Position Y, Position Z, Velocity X, Velocity Y, Velocity Z, Number of Scattering

Functionalities

  1. Follow the track of a certain positron before annihilation.
  2. Plot all annihilation sites as a point cloud.

Dependencies

Plan

The further plan includes to use a more dedicated Monte Carlo simulation platform to validate these results, and to introduce parallel computation in the process.

Aug-2-2020

About

A minimum Monte Carlo simulation code for positron propagation in the magnetic field.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published