physicsscholars / mcgpu

Automatically exported from code.google.com/p/mcgpu
0 stars 0 forks source link

Inclusion of phase space file as input for x-ray source #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It might be useful to be able to input as an x-ray source a phase space file, 
where a phase space file is defined as a file containing photons  scored at a 
specific plane with the each particle's location, energy and direction encoded 
in the file/.

An example use would be to simulate an x-ray tube starting with the electrons 
striking the tungsten anode generating photons and then tracking the photons 
all the way to the collimator using a separate MC simulation (e.g. BEAMnrc, 
Geant4, etc) and scoring the photons at the exit of the collimators  in a phase 
space file.

The phase space file could then be used as an input the mcgpu as a source. 
Potentially a database of phase space files for some common x-ray tubes could 
be generated and available similar to the effort to create a common source of 
phase space files for external beam radiation therapy. 
(http://www-nds.iaea.org/phsp/phsp.htmlx)

Original issue reported on code.google.com by boot...@gmail.com on 15 Jul 2010 at 8:01

GoogleCodeExporter commented 9 years ago
Thanks bootsma!

The PSF file can not be directly read from the GPU but it could be possible to 
store all or part of the PSF in the GPU main memory before starting the 
simulation in the GPU.

I will probably include this feature in future versions of the code (if you 
decide to code this feature yourself I will be happy to add your code in the 
main distribution:).

Original comment by andre...@gmail.com on 15 Jul 2010 at 9:30