Learn R Programming

libamtrack (version 0.6.3)

AT.effective.charge.from.E.MeV.u: AT.effective.charge.from.E.MeV.u

Description

Effective charge according to Barkas-Bethe-approximation: for particles with given kinetic energy per nucleon

Usage

AT.effective.charge.from.E.MeV.u(E.MeV.u, particle.no)

Arguments

E.MeV.u
vector of energies of particle per nucleon [MeV] (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).

Value

  • effective.chargeEffective charge according to Barkas-Bethe-approximation (array of size n)
  • statusstatus

See Also

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

Examples

Run this code
# Charge pick-up of several nuclids depending on ion energy
df          <- data.frame( E.MeV.u          = 10^seq(-1, 2, length.out = 50),
                           particle.name    = c("1H", "3He", "6Li", "12C",
 "16O"),
                           effective.charge = 0)
for(i in 1:nrow(df)){
   df$effective.charge[i] <- AT.effective.charge.from.E.MeV.u(  E.MeV.u     =
 df$E.MeV.u[i], 
                                                                particle.no =
 AT.particle.no.from.particle.name(df$particle.name[i])[1])
}

Run the code above in your browser using DataLab