A GEANT4 Linac written purely in the python environment using IPython notebook.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
images markup included Nov 18, 2014
macros Delete oglix.mac Nov 18, 2014
.DAWN_1.history markup included Nov 18, 2014
.gitignore gitignore update Oct 7, 2014
LICENSE Initial commit Oct 7, 2014
README.md Removed boot2docker version number Mar 9, 2015
main.ipynb Update main.ipynb Nov 20, 2014

README.md

IPython GEANT4 Linac

A GEANT4 Linac written purely in the python environment using IPython Notebook. An example of the IPython Notebook running the GEANT4 code can be seen here.

Note, the methods outlined below will likely use upwards of 2 GB of data and about 1-2 hours computer time.

If you have any trouble getting this to work first try running docker pull simonbiggs/geant4-examples in case I have released an update. If you are still having trouble then feel free to contact me I am more than happy to help.

Windows 7/8

In order to install Geant4 within Windows you can use Docker. These are the steps to acheive this:

  • Download and run docker-install.exe
  • Run Boot2Docker from within the program menu (or desktop)
  • Press [Enter] when asked for an SSH keyphrase
  • Copy the following into the docker command window:
    • docker run -p 8888:8888 simonbiggs/geant4-examples
    • On your first run this will download GEANT4
  • Once downloaded type 192.168.59.103:8888 into a chrome or firefox browser

Be warned that if you use the docker method of installation data will not be saved once you close boot2docker, therefore you need to download the .ipynb files to your computer. These can be uploaded again by dragging and dropping into the browser window when you next start up docker.

Mac OS X

In order to install Geant4 within Mac OS X you can use Docker. These are the steps to acheive this:

  • Download and run Boot2Docker
  • Run the newly installed Boot2Docker from within your applications folder
  • Copy the following into the docker terminal:
    • docker run -p 8888:8888 simonbiggs/geant4-examples
    • On your first run this will download GEANT4
  • Once downloaded type 192.168.59.103:8888 into a chrome, firefox, or safari browser

Be warned that if you use the docker method of installation data will not be saved once you close boot2docker, therefore you need to download the .ipynb files to your computer. These can be uploaded again by dragging and dropping into the browser window when you next start up docker.

Linux

Install docker using the method for your os described here. An example for Ubuntu 14.10 is by typing within the terminal:

sudo apt-get install docker.io

Once installed run the following command within terminal as root (sudo):

docker run -p 8888:8888 simonbiggs/geant4-examples

Once downloaded type localhost:8888 into a chrome or firefox browser.

Be warned that if you use the docker method of installation data will not be saved once you stop the docker process, therefore you need to download the .ipynb files to your computer. These can be uploaded again by dragging and dropping into the browser window when you next start up docker.