Skip to content

SimonBiggs/docker-geant4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Docker context repo for GEANT4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published