Skip to content

3D Grid code used in PH5023 Monte Carlo Radiation Transport (MCRT) techniques @ St Andrews University

License

Notifications You must be signed in to change notification settings

lewisfish/3DGridCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3DGridCode

3DGridCode

3D Grid code used in PH5023 Monte Carlo Radiation Transport (MCRT) techniques @ St Andrews University

How to run

Using Make

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.

Using FPM

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

Documentation of the API can be found here.

Explanation of the code and the MCRT method can be found here.

Make & GFortran

Check version, or whether installed, by opening terminal and typing make --version and gfortran --version

Make

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.

GFortran

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.

References

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

About

3D Grid code used in PH5023 Monte Carlo Radiation Transport (MCRT) techniques @ St Andrews University

Resources

License

Stars

Watchers

Forks

Packages

No packages published