Giter VIP home page Giter VIP logo

tissue-ablation-mc's Introduction

Tissue-Ablation-MC

DOI

This repository contains the source codes for the 3D grid Cartesian monte carlo radiation transfer codes developed as part of my phd. The codes simulate the transfer of light through tissue/phantoms and calculates the heat induced due to the laser. Heats effect on tissue is also modelled with tissue ablation etc.

Thesis chapter on how code operates

Heat Sim

The FORTRAN source files are:

        ran2.f               random number generator
        constants.f90        contains the various constants used in the simulation
        photon_vars.f90      contains the various photons variables
        iarray.f90           contains the arrays variables names
        opt_prop.f90         tracks optical properties of the system
        subs.f90             inits arrays and directory paths 
        ch_opt.f90           sets rhokap and albedo arrays with correct values
        gridset.f90          sets up the various grids
        inttau2.f90          generates a tau value and integrates through the grid
        sourceph.f90         photon source subroutine
        writer.f90           writes out results
        3dFD.f90             Heat simulation
        mcpolar.f90          main program. calls heat sim and does MC sim

Input parameters are in:

input.params
The file that compiles the code and creates the executable file 'mcgrid' is:

Only been tested on linux so far. Works with intel and gfortran compilers. Also been tested on computing clusters. http://www-solar.mcs.st-and.ac.uk/~herbert/cluster/

install.sh

This can be run by ./install.sh
May have to change permissions first in order to execute the script.
This can be done by using sudo chmod +755 instsll.sh on linux

./install.sh -m

just complies the code

./install -n (number of cores)

complies and runs the code on (number of cores). If left with nothing the default is 1 core.

To do/implement

  • Speed up if possible
  • More...

tissue-ablation-mc's People

Contributors

lewisfish avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.