Learn R Programming

libamtrack (version 0.6.3)

AT.dose.Gy.from.fluence.cm2: AT.dose.Gy.from.fluence.cm2

Description

Returns dose in Gy for each given particle

Usage

AT.dose.Gy.from.fluence.cm2(E.MeV.u, particle.no, fluence.cm2,
 material.no, stopping.power.source.no)

Arguments

E.MeV.u
energy of particles in the mixed particle field (array of size n) (see also E.MeV.u).
particle.no
type of the particles in the mixed particle field (array of size n) (see also particle.no).
fluence.cm2
fluence for each particle type (array of size n).
material.no
material index (see also material.no).
stopping.power.source.no
stopping power source index (see also stopping.power.source.no).

Value

  • dose.Gybe allocated by the user which will be used to return the results (array of size n)

See Also

View the C source code here: http://sourceforge.net/apps/trac/libamtrack/browser/tags/0.6.3/src/AT_Phy sicsRoutines.c#L344

Examples

Run this code
# Compute dose from protons, He-3, C-12 and O-16 at
# same energy and fluence in air
AT.dose.Gy.from.fluence.cm2( E.MeV.u      = c(10, 10, 10, 10),
                             fluence.cm2  = c(1e7, 1e7, 1e7, 1e7),
                             particle.no  = c(1001, 2003, 6012, 8016),
                             material.no  = 7,
                             stopping.power.source.no = 2)

Run the code above in your browser using DataLab