3D Grid code used in PH5023 Monte Carlo Radiation Transport (MCRT) techniques @ St Andrews University
First Download the code from this link
Then open a terminal and change directories to the codes location and unzip it.
Then type make
into your terminal to compile the code.
Then type ./mcgrid
to run the code.
First Download the code from this link
Then open a terminal and change directories to the codes location and unzip it.
Then type fpm run --profile release
to compile and run the code.
Details on installing FPM on your platform can be found here.
Documentation of the API can be found here.
Explanation of the code and the MCRT method can be found here.
Check version, or whether installed, by opening terminal and typing make --version
and gfortran --version
Mac: Install the xcode developer tools, found here. If make is still not installed, open terminal and type xcode-select - - install
.
Linux (Debian): Open a terminal and install by typing sudo apt-get install build-essential
.
Mac: Homebrew offers an easy install via brew install gcc
. The binaries can be installed directly from the gfortran maintainers, and additional info can be found here.
Linux (Debian): Open a terminal and install by typing sudo apt install gfortran
.
More details on GFortran may be found here.
Code was adapted and heavily modified from K. Woods code found here.
This code (3DGridCode) formed the basis of the following research projects:
Depth Penetration of Light into Skin as a Function of Wavelength from 200 to 1000 nm
Development of a Predictive Monte Carlo Radiative Transfer Model for Ablative Fractional Skin Lasers
Imaging in thick samples, a phased Monte Carlo radiation transfer algorithm
Simulation of Intraoperative PDT for Glioblastoma using Monte Carlo Radiative Transport